doc: Document ptsname_r bug on Cygwin.
[gnulib.git] / ChangeLog
blob88063510f9ec70be6f85caac25f78d110538e779
1 2021-01-20  Bruno Haible  <bruno@clisp.org>
3         doc: Document ptsname_r bug on Cygwin.
4         * doc/glibc-functions/ptsname_r.texi: Mention Cygwin bug.
6 2021-01-20  Bruno Haible  <bruno@clisp.org>
8         sethostname tests: Avoid test failure on Cygwin.
9         * tests/test-sethostname2.c (main): Treat errno EACCESS like EPERM.
11 2021-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13         fnmatch, regex, fts: FALLTHROUGH consistency
14         Be more consistent about how FALLTHROUGH is defined.
15         For Gnulib, use attribute.h.  For glibc, use __GNUC__ >= 7.
16         Problem for glibc reported by Vaseeharan Vinayagamoorthy in:
17         https://sourceware.org/pipermail/libc-alpha/2021-January/121778.html
18         * lib/fnmatch.c (FALLTHROUGH) [_LIBC]:
19         * lib/regex_internal.h (FALLTHROUGH) [_LIBC]:
20         Don’t worry about Clang, as it’s not needed and provokes GCC.
21         * lib/fts.c (FALLTHROUGH) [!_LIBC]:
22         * lib/regex_internal.h (FALLTHROUGH) [!_LIBC]:
23         Rely on attribute.h for FALLTHROUGH
24         * modules/regex: Depend on attribute module.
26 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
28         spawn-pipe: Fix SIGSEGV on OS/2 kLIBC.
29         * lib/spawn-pipe.c [OS/2 kLIBC]: Check directory correctly if it means
30         a current directory.
32 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
34         dirent: Fix compilation error in C++ mode on OS/2 kLIBC.
35         * lib/dirent.in.h (dirfd): Redefine dirfd macro as a rpl function
36         always.
38 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
40         zerosize-ptr: Fix compilation on OS/2 kLIBC.
41         * tests/zerosize-ptr.h [OS/2 kLIBC]: Don't use mmap().
43 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
45         stddef: Fix compilation for max_align_t on OS/2 kLIBC.
46         * lib/stddef.in.h [OS/2 kLIBC]: Include <cstddef> in C++ mode.
48 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
50         yield: Implement for OS/2 kLIBC.
51         * modules/yield (Depends-on): Add sched_yield.
53         sched_yield: Implement for OS/2 kLIBC.
54         * lib/sched_yield.c (sched_yield) [OS/2 kLIBC]: New implementation.
56 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
58         spawn: Use special invocation for <spawn.h> on OS/2 kLIBC.
59         * lib/spawn.in.h: Use special invocation to include <spawn.h> properly
60         on OS/2 kLIBC.
62 2021-01-18  Bruno Haible  <bruno@clisp.org>
64         noreturn tests: Avoid test failure on Solaris 10/x86 with cc.
65         * tests/test-noreturn.c (main): Return 0.
67 2021-01-18  Bruno Haible  <bruno@clisp.org>
69         uninorm tests: Fix compilation error on Cygwin.
70         * tests/uninorm/test-nfc.c (n): Don't define when using a preinstalled
71         libunistring on Windows.
72         * tests/uninorm/test-nfd.c (n): Likewise.
73         * tests/uninorm/test-nfkc.c (n): Likewise.
74         * tests/uninorm/test-nfkd.c (n): Likewise.
76 2021-01-17  Bruno Haible  <bruno@clisp.org>
78         immutable: Implement on native Windows.
79         * lib/immutable.h (IMMUTABLE_EFFECTIVE): Set to 1 on native Windows.
80         * lib/immutable.c: Include <windows.h>.
81         (CreateFileMapping): New macro.
82         (init_pagesize, init_mmap_file, alloc_pages, free_pages): Add
83         implementation for native Windows.
85 2021-01-17  Bruno Haible  <bruno@clisp.org>
87         canonicalize-lgpl tests: Fix link error.
88         * modules/canonicalize-lgpl-tests (Makefile.am): Link
89         test-canonicalize-lgpl with $(LIBINTL).
91 2021-01-17  Bruno Haible  <bruno@clisp.org>
93         canonicalize-lgpl: Work around // handling in realpath() of musl 1.2.2.
94         Reported by Natanael Copa <ncopa@alpinelinux.org> in
95         <https://lists.gnu.org/archive/html/bug-gettext/2021-01/msg00021.html>.
96         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add a test whether // is
97         the same as /, on Linux only.
98         * lib/canonicalize-lgpl.c: Correct indentation of preprocessor
99         directives.
100         * doc/posix-functions/realpath.texi: Mention the musl 1.2.2 bug.
102 2021-01-17  Bruno Haible  <bruno@clisp.org>
104         canonicalize[-lgpl] tests: Add more tests.
105         * tests/test-canonicalize.c (main): Add detailed tests for // handling.
106         * tests/test-canonicalize-lgpl.c (main): Likewise.
108 2021-01-17  Bruno Haible  <bruno@clisp.org>
110         argp tests: Avoid test failures on Alpine Linux.
111         * tests/test-argp-2.sh: Use the test framework (init.sh). Use the
112         'compare' function instead of 'diff -c'.
113         * tests/test-argp-version-etc-1.sh: Likewise.
115 2021-01-17  Bruno Haible  <bruno@clisp.org>
117         get-rusage-data tests: Avoid test failure on musl libc.
118         * modules/get-rusage-data-tests (Files): Add m4/musl.m4.
119         (configure.ac): Invoke gl_MUSL_LIBC.
120         * tests/test-get-rusage-data.c (main): Treat musl libc like glibc.
122 2021-01-17  Bruno Haible  <bruno@clisp.org>
124         immutable, get-rusage-data: Fix autoconf warning.
125         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Define through AC_DEFUN_ONCE.
127 2021-01-16  Bruno Haible  <bruno@clisp.org>
129         vma-iter: Port to 64-bit Haiku.
130         * lib/vma-iter.c (vma_iterate): Adapt to changed signature of
131         get_next_area_info.
133 2021-01-15  Bruno Haible  <bruno@clisp.org>
135         doc: Update doc about realpath.
136         * doc/posix-functions/realpath.texi: Update info about macOS.
138 2021-01-13  Paul Eggert  <eggert@cs.ucla.edu>
140         verify: simplify static_assert configuration
141         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1):
142         Do not define for C++.  This should be good enough nowadays,
143         since recent-enough C++ compilers have static_assert.
144         (_GL_HAVE_STATIC_ASSERT_CXX11, _GL_HAVE_STATIC_ASSERT_CXX17):
145         Remove.  All uses replaced by simply checking __cpp_static_assert.
147 2021-01-13  Simon Josefsson  <simon@josefsson.org>
149         lib-msvc-compat: Update libtool usage recommendation.
150         * doc/ld-output-def.texi (Visual Studio Compatibility): Install
151         .def files into libdir, not bindir.  Have libfoo-*.def file depend
152         on libfoo.la to fix parallell builds.
154 2021-01-12  Bruno Haible  <bruno@clisp.org>
156         verify: Use C++11 static_assert when available.
157         Reported by Alexandre Duret-Lutz <adl@lrde.epita.fr> in
158         <https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00177.html>.
159         * lib/verify.h (_GL_HAVE_STATIC_ASSERT_CXX11): New macro.
160         (_GL_HAVE_STATIC_ASSERT_CXX17): Renamed from _GL_HAVE_STATIC_ASSERT1.
161         (_GL_VERIFY): Use static_assert when available with C++11 syntax.
163 2021-01-11  Paul Eggert  <eggert@cs.ucla.edu>
165         tempname: consume less entropy
166         Derived from a glibc patch proposed by Adhemerval Zanella in:
167         https://sourceware.org/pipermail/libc-alpha/2021-January/121302.html
168         * lib/tempname.c: Include stdbool.h.
169         (random_bits): New arg use_getrandom.
170         (try_tempname_len): Skip getrandom on the first try,
171         unless __GT_NOCREATE.
172         * modules/tempname (Depends-on): Add stdbool.
174 2021-01-10  Bruno Haible  <bruno@clisp.org>
176         lchmod-tests: Fix link error.
177         * modules/lchmod-tests (Makefile.am): Don't assume that LIBINTL is set.
179 2021-01-10  Simon Josefsson  <simon@josefsson.org>
181         Correct preceeding change.
182         * top/gitsub.sh: Update link.
184 2021-01-09  Bruno Haible  <bruno@clisp.org>
186         immutable: Add tests.
187         * tests/test-immutable.sh: New file.
188         * tests/test-immutable.c: New file.
189         * modules/immutable-tests: New file.
191         immutable: New module.
192         * lib/immutable.h: New file.
193         * lib/immutable.c: New file.
194         * m4/immutable.m4: New file.
195         * m4/mprotect.m4: New file, based on libffcall/m4/codeexec.m4.
196         * modules/immutable: New file.
198 2021-01-10  Simon Josefsson  <simon@josefsson.org>
200         Use https:// instead of git://.
201         * build-aux/bootstrap (default_gnulib_url): Ditto.
202         * config/srclistvars.sh: Ditto.
203         * doc/gnulib-readme.texi (Git Checkout): Ditto.
204         * doc/gnulib-tool.texi (VCS Issues): Ditto.
205         * top/gitsub.sh: Update link.
207 2021-01-09  Paul Eggert  <eggert@cs.ucla.edu>
209         snippet/_Noreturn: port to pedantic clang
210         Problem reported by Joe Nelson in:
211         https://lists.gnu.org/r/bug-gnulib/2021-01/msg00152.html
212         * doc/noreturn.texi: Improve.
213         * lib/_Noreturn.h (_Noreturn):
214         * m4/gnulib-common.m4 (gl_COMMON_BODY):
215         Do not assume _Noreturn works as-is when __STRICT_ANSI__ is
216         defined, unless __STDC_VERSION__ indicates C11 or later.
217         * lib/_Noreturn.h (_Noreturn): Fall back on __attribute__
218         ((__noreturn__)) if Clang; this merges the
219         2020-08-10T23:53:13Zbruno@clisp.org patch to m4/gnulib-common.m4.
221 2021-01-09  Darshit Shah  <darnir@gnu.org>
223         Allow setting CVS username for gnu-web-doc-update.
224         * build-aux/gnu-web-doc-update: Introduce new option --user to set the
225         name of the user on Savannah, when it doesn't match $USER.
227 2021-01-09  Bruno Haible  <bruno@clisp.org>
229         exp* tests: Work around clang 6.0.1 optimization bugs on x86.
230         * tests/test-exp-ieee.h (test_function): Mark some variable as
231         'volatile'.
232         * tests/test-exp2-ieee.h (test_function): Likewise.
234 2021-01-09  Bruno Haible  <bruno@clisp.org>
236         fchmodat: Work around trailing slash bug in fchmodat() on AIX 7.2.
237         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): In the test whether fchmodat works,
238         also test for the trailing slashes behaviour. Define
239         HAVE_NEARLY_WORKING_FCHMODAT if this is the only missing feature.
240         * lib/fchmodat.c (fchmodat): If HAVE_NEARLY_WORKING_FCHMODAT, handle
241         trailing slashes here.
242         * modules/fchmodat (Depends-on): Sort by condition, not alphabetically.
243         * doc/posix-functions/fchmodat.texi: Document the AIX bug.
245 2021-01-09  Bruno Haible  <bruno@clisp.org>
247         fchmod-tests, fchmodat tests, lchmod tests: Add more tests.
248         * tests/test-fchmod.c: Include <fcntl.h>.
249         (BASE): New macro.
250         (main): Add more tests.
251         * tests/test-fchmodat.c (main): Add more tests.
252         * tests/test-lchmod.c (main): Likewise.
254 2021-01-09  Bruno Haible  <bruno@clisp.org>
256         utimensat: Fix typo in last commit.
257         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Fix typo in macro explanation.
259 2021-01-09  Bruno Haible  <bruno@clisp.org>
261         truncate: Document last workaround.
262         * doc/posix-functions/truncate.texi: Document the AIX bug.
264 2021-01-08  Paul Eggert  <eggert@cs.ucla.edu>
266         dynarray: work even if ‘free’ is replaced
267         Problem reported by Darshit Shah in:
268         https://lists.gnu.org/r/bug-gnulib/2021-01/msg00140.html
269         * lib/malloc/dynarray-skeleton.c (DYNARRAY_FREE): New macro.
270         Use it everywhere instead of DYNARRAY_NAME (free).
272         tempname: don’t block for minutes
273         Derived from a patch proposed by Adhemerval Zanella in:
274         https://sourceware.org/pipermail/libc-alpha/2021-January/121302.html
275         * lib/tempname.c (random_bits): Use GRND_NONBLOCK.
277         tempname: sync with proposed glibc patch
278         This is from Adhemerval Zanella in:
279         https://sourceware.org/pipermail/libc-alpha/2021-January/121301.html
280         * lib/tempname.c (__lxstat64): Remove.
281         (__lstat64, __stat64): New replacement macros.  All uses changed.
283         regex: stop using alloca
284         * lib/regex_internal.h: Do not include <alloca.h> or define
285         __libc_use_alloca or alloca.  Patch written by Adhemerval Zanella:
286         https://sourceware.org/pipermail/libc-alpha/2021-January/121374.html
287         * modules/regex (Depends-on): Remove alloca-opt.
289         regexec: remove alloca usage in build_trtable
290         Prompted by this different change proposed by Adhemerval Zanella:
291         https://sourceware.org/pipermail/libc-alpha/2021-January/121373.html
292         * lib/regexec.c (build_trtable): Prevent inlining,
293         so that it doesn’t bloat the caller’s stack.
294         Use auto variables instead of alloca/malloc.
295         After these changes, build_trtable’s total stack allocation is
296         only 20 KiB on a 64-bit machine, and this is less than glibc’s 64
297         KiB cutoff so there’s little point to using alloca to shrink it.
298         Although Gnulib traditionally has used a 4 KiB cutoff, going to 20
299         KiB here should not be a significant problem in practice;
300         Gnulib-using packages concerned about overflow of tiny stacks can
301         compile with something like gcc -fstack-clash-protection.
303         scratch_buffer: add scratch_buffer_dupfree macro
304         * lib/scratch_buffer.h (__libc_scratch_buffer_dupfree):
305         New macro, needed to support recent changes in this module.
307         regex: remove alloca usage on regex set_regs
308         Derived from this patch by Adhemerval Zanella:
309         https://sourceware.org/pipermail/libc-alpha/2021-January/121372.html
310         * lib/regex_internal.h: Include dynarray.h, for Gnulib.
311         * lib/regexec.c (DYNARRAY_STRUCT, DYNARRAY_ELEMENT)
312         (DYNARRAY_PREFIX): New macros.
313         Include malloc/dynarray-skeleton.c.
314         (set_regs): Use dynarray rather than alloca.
315         * modules/regex (Depends-on): Add dynarray.
317         dynarray: new module
318         * config/srclist.txt: Mention the new files.
319         * lib/cdefs.h (__attribute_maybe_unused__): New macro,
320         like Gnulib’s _GL_ATTRIBUTE_MAYBE_UNUSED but with glibc
321         naming conventions.
322         * lib/libc-config.h: Use it instead of __glibc_likely.
323         * lib/dynarray.h, modules/dynarray: New files.
324         * lib/malloc/dynarray-skeleton.c, lib/malloc/dynarray.h:
325         * lib/malloc/dynarray_at_failure.c:
326         * lib/malloc/dynarray_emplace_enlarge.c:
327         * lib/malloc/dynarray_finalize.c, lib/malloc/dynarray_resize.c:
328         * lib/malloc/dynarray_resize_clear.c, modules/dynarray:
329         New files, from glibc with the following changes needed for
330         portability to compilers that are not recent-enough GCC.
331         * lib/malloc/dynarray_at_failure.c: Include stdlib.h, for abort.
332         (__libc_dynarray_at_failure) [!_LIBC]: Simply abort.
333         * lib/malloc/dynarray_emplace_enlarge.c:
334         * lib/malloc/dynarray_resize.c:
335         Include intprops.h, and use INT_MULTIPLY_WRAPV instead
336         of __builtin_mul_overflow.
337         * lib/malloc/dynarray.h (__libc_dynarray_at_failure):
338         Use _Noreturn instead of __attribute__ ((noreturn)).
339         * lib/malloc/dynarray_resize_clear.c: Do not include stdlib.h;
340         it’s not needed.
341         (__libc_dynarray_resize_clear): Do not do arithmetic on void *.
342         * lib/malloc/dynarray-skeleton.c (struct DYNARRAY_STRUCT):
343         Do not use anonymous unions, as they are not in C99. All uses changed.
344         Use __nonnull (X) instead of __attribute__ ((nonnull X)),
345         and __attribute_maybe_unused__ instead of __attribute__ ((unused)).
347 2021-01-06  Simon Josefsson  <simon@josefsson.org>
349         bootstrap: Fix parsing of package name.
350         * build-aux/bootstrap (package): Attempt to use autoconf --trace
351         to parse AC_INIT before falling back to sed expression.
353 2021-01-07  Bruno Haible  <bruno@clisp.org>
355         localename: Fix link error with duplocale on AIX 7.2 (regr. 2019-12-18).
356         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
357         LOCALENAME_ENHANCE_LOCALE_FUNCS.
358         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE):
359         Set gt_working_uselocale.
360         (gt_INTL_THREAD_LOCALE_NAME): Set gt_fake_locales, gt_good_uselocale,
361         gt_localename_enhances_locale_funcs, LOCALENAME_ENHANCE_LOCALE_FUNCS.
362         Define HAVE_GOOD_USELOCALE, LOCALENAME_ENHANCE_LOCALE_FUNCS.
363         * m4/localename.m4 (gl_LOCALENAME): Test
364         gt_localename_enhances_locale_funcs instead of gt_nameless_locales.
365         * modules/locale (Makefile.am): Substitute
366         LOCALENAME_ENHANCE_LOCALE_FUNCS.
367         * lib/locale.in.h (newlocale, duplocale, freelocale): Don't override if
368         module 'localename' is in use but LOCALENAME_ENHANCE_LOCALE_FUNCS is 0.
369         * lib/localename.c (HAVE_GOOD_USELOCALE): Don't define here.
370         (get_locale_t_name, newlocale, duplocale, freelocale): Define if
371         LOCALENAME_ENHANCE_LOCALE_FUNCS.
373 2021-01-06  Bruno Haible  <bruno@clisp.org>
375         logb: Fix test failure on glibc/powerpc.
376         * doc/posix-functions/logb.texi: Update platform info.
377         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Test against bug with negative
378         subnormal numbers.
380 2021-01-06  Paul Eggert  <eggert@cs.ucla.edu>
382         libc-config: simplify clang __has_* macros
383         cdefs.h sometimes used names like __glibc_clang_has_attribute and
384         sometimes __glibc_has_attribute.  There is no need in glibc or
385         Gnulib to distinguish clang from other compilers here, so be
386         consistent and use the simpler names.
387         * lib/cdefs.h (__glibc_has_builtin, __glibc_has_extension):
388         Rename from __glibc_clang_has_builtin, __glibc_clang_has_extension.
389         All uses changed.
390         (__glibc_clang_has_attribute): Remove. All uses replaced
391         by __glibc_has_attribute.
392         * lib/libc-config.h [!__glibc_likely]: Undef them here too.
393         This fixes a problem where __glibc_has_attribute was not undeffed.
395 2021-01-06  Bruno Haible  <bruno@clisp.org>
397         flock: Update documentation.
398         * doc/glibc-functions/flock.texi: Document what to expect on AIX and
399         Solaris.
401 2021-01-06  Bruno Haible  <bruno@clisp.org>
403         ilogbl: Fix compilation error with xlclang on AIX 7.2.
404         * lib/math.in.h (ilogbl): Undefine macro before declaration.
406 2021-01-06  Bruno Haible  <bruno@clisp.org>
408         ilogbl: Fix test failures on AIX 7.1 in 64-bit mode.
409         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test also some denormalized
410         argument.
411         * doc/posix-functions/ilogbl.texi: Mention the AIX bug.
413 2021-01-06  Bruno Haible  <bruno@clisp.org>
415         ilogb: Fix test failures on AIX 7.1 in 64-bit mode.
416         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Test also some denormalized
417         argument.
418         * doc/posix-functions/ilogb.texi: Mention the AIX bug.
420 2021-01-05  Bruno Haible  <bruno@clisp.org>
422         fclose: Fix test failure on AIX 7.2.
423         * m4/fclose.m4 (gl_FUNC_FCLOSE_STDIN): New macro.
424         (gl_FUNC_FCLOSE): Invoke it. Set REPLACE_FCLOSE accordingly.
425         * doc/posix-functions/fclose.texi: Update platform information.
426         * doc/posix-functions/fflush.texi: Likewise.
428 2021-01-05  Bruno Haible  <bruno@clisp.org>
430         pipe-filter-gi: Fix test failure on AIX 7.2.
431         * lib/pipe-filter-aux.h (SSIZE_MAX) [AIX]: Set to 4096.
433 2021-01-05  Bruno Haible  <bruno@clisp.org>
435         utimens, utimensat, fdutimensat: Avoid test failures on AIX 7.2.
436         * lib/utimecmp.c (utimecmpat): On AIX, declare equality when the two
437         times differ by less than 0.01 seconds.
438         * tests/test-futimens.h (test_futimens): Pass UTIMECMP_TRUNCATE_SOURCE
439         flag.
441 2021-01-05  Bruno Haible  <bruno@clisp.org>
443         utimensat: Work around trailing slash bug in utimensat() on AIX 7.2.
444         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Require AC_CANONICAL_HOST. Add a
445         test for trailing slash handling. Improve cross-compilation guesses.
446         Conditionally define HAVE_NEARLY_WORKING_UTIMENSAT.
447         * lib/utimensat.c (rpl_utimensat): Add alternative implementation when
448         HAVE_NEARLY_WORKING_UTIMENSAT is defined.
449         * lib/utimens.c: Use the overridden utimensat when
450         HAVE_NEARLY_WORKING_UTIMENSAT is defined.
451         * doc/posix-functions/utimensat.texi: Mention the AIX bug.
453 2021-01-05  Bruno Haible  <bruno@clisp.org>
455         ptsname_r, ptsname: Avoid test failures on AIX 7.2.
456         * tests/test-ptsname_r.c (main): On AIX, set a 20-seconds timer.
457         * tests/test-ptsname.c (main): Likewise. On AIX, open a pty through
458         /dev/ptc and don't test the BSD ptys.
460 2021-01-05  Paul Eggert  <eggert@cs.ucla.edu>
462         libc-config: merge from glibc
463         Use a better way of keeping glibc <sys/cdefs.h> and gnulib
464         lib/cdefs.h mostly in sync, by using lib/cdefs.h only on platforms
465         where <sys/cdefs.h> does not work well enough for Gnulib.
466         * lib/cdefs.h: Go back to using _SYS_CDEFS_H rather than
467         _GL_DEFS_H as an include guard.
468         (__THROW, __THROWNL, __NTH, __NTHNL):
469         Define to noexcept for C++11 and later.
470         (__glibc_objsize, __glibc_objsize0): New, for _FORTIFY_SOURCE=3.
471         (__warndecl): Remove.
472         (__attribute_copy__): New macro, for GCC 9 support.
473         (__LDBL_REDIR, __LDBL_REDIR_DECL, __LDBL_REDIR1)
474         (__LDBL_REDIR1_DECL, __LDBL_REDIR1_NTH, __REDIRECT_NTH_LDBL)
475         (__REDIRECT_LDBL, __LDBL_REDIR_NTH):
476         Redirections for IEEE long double on powerpc64le.
477         (__LDBL_REDIR2_DECL): New macro.
478         (__attr_access): New macro, for GCC 10 bounds checking.
479         (__attribute_returns_twice__): New macro, for setjmp etc.
480         * lib/libc-config.h: Include <cdefs.h> only if __glibc_likely is
481         undefined.  The following changes apply only if __glibc_likely
482         is not defined.
483         (__LDBL_REDIR2_DECL, __attr_access, __attribute_returns_twice__)
484         (__glibc_clang_has_attribute, __glibc_clang_has_extension)
485         (__glibc_objsize, __glibc_objsize0):
486         Undef these new (or newer) <cdefs.h> macros.
487         (__P, __PMT, __always_inline): Do not undef, since cdefs.h does that.
488         (__glibc_likely): Do not undef, since this is inside
489         ifndef __glibc_likely.
490         (__warndecl): Do not undef; no longer defined.
492 2021-01-05  Jim Meyering  <meyering@fb.com>
494         maintainer-makefile: correct preceding change
495         * top/maint.mk (syntax-check-rules): Use LC_ALL=C, not LANG=C.
497 2021-01-05  Paul Eggert  <eggert@cs.ucla.edu>
499         maint: note syncs to glibc
500         * config/srclist.txt: filename.h, idx.h, scratch_buffer.h and
501         scratch_buffer_dupfree.c are now identical to glibc.  Add
502         commentary about some other syncs we’d like.
503         * modules/filename, modules/idx (Maintainer): Add glibc.
505 2021-01-05  Bruno Haible  <bruno@clisp.org>
507         truncate: Work around trailing slash bug in truncate() on AIX 7.2.
508         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Add a test whether truncate
509         rejects trailing slashes. Set REPLACE_TRUNCATE and define
510         TRUNCATE_TRAILING_SLASH_BUG if not.
511         * lib/truncate.c (orig_truncate): New function.
512         (truncate): Add alternative implementation when
513         TRUNCATE_TRAILING_SLASH_BUG is defined.
514         * modules/truncate (Depends-on): Add sys_stat, stat.
516 2021-01-05  Bruno Haible  <bruno@clisp.org>
518         mkfifoat: Fix cross-compilation guess (regression from 2021-01-04).
519         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Fix copy-and-paste mistake.
521 2021-01-05  Bruno Haible  <bruno@clisp.org>
523         ffsll: Override completely broken implementation on AIX in 32-bit mode.
524         * m4/ffsll.m4 (gl_FUNC_FFSLL): Test whether ffsll minimally works. If
525         not, set REPLACE_FFSLL.
526         * lib/string.in.h (ffsll): Consider REPLACE_FFSLL.
527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
528         REPLACE_FFSLL.
529         * modules/string (Makefile.am): Substitute REPLACE_FFSLL.
530         * modules/ffsll (Depends-on, configure.ac): Consider REPLACE_FFSLL.
531         * doc/glibc-functions/ffsll.texi: Mention the AIX 7.2 bug.
533 2021-01-04  Bruno Haible  <bruno@clisp.org>
535         symlinkat: Fix trailing slash handling.
536         * lib/symlinkat.c (rpl_symlinkat): Don't follow symlinks during the
537         trailing slash handling.
538         * modules/symlinkat (Depends-on): Update conditions.
540 2021-01-04  Bruno Haible  <bruno@clisp.org>
542         mkfifoat: Update module description.
543         * modules/mkfifoat (Depends-on): Update conditions after last commits.
545 2021-01-04  Bruno Haible  <bruno@clisp.org>
547         link: Improve trailing slash handling on native Windows.
548         * lib/link.c (link): If stat() fails, provide a better errno.
550 2021-01-04  Bruno Haible  <bruno@clisp.org>
552         mkfifoat: Work around trailing slash bug in mknodat() on AIX 7.2.
553         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Set also REPLACE_MKNODAT.
554         * lib/sys_stat.in.h (mknodat): Consider REPLACE_MKNODAT.
555         * lib/mknodat.c: Add an overriding implementation of mknodat().
556         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize REPLACE_MKNODAT.
557         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKNODAT.
558         * modules/mkfifoat (Depends-on, configure.ac): Consider REPLACE_MKNODAT.
559         * doc/posix-functions/mknodat.texi: Mention the AIX bug.
561         mkfifoat: Work around trailing slash bug in mkfifoat() on AIX 7.2.
562         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Add a test whether mkfifoat rejects
563         trailing slashes. Set REPLACE_MKFIFOAT if not.
564         * lib/sys_stat.in.h (mkfifoat): Consider REPLACE_MKFIFOAT.
565         * lib/mkfifoat.c: Add an overriding implementation of mkfifoat().
566         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
567         REPLACE_MKFIFOAT.
568         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKFIFOAT.
569         * modules/mkfifoat (Depends-on): Add fstatat.
570         (configure.ac): Consider REPLACE_MKFIFOAT.
571         * doc/posix-functions/mkfifoat.texi: Mention the AIX bug.
573 2021-01-04  Bruno Haible  <bruno@clisp.org>
575         libc-config: Avoid overriding the headers from an installed newer glibc.
576         Reported by Paul E Murphy <murphyp@linux.ibm.com> in
577         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00106.html>.
578         * lib/cdefs.h: Use a different include guard than glibc's <sys/cdefs.h>.
579         * lib/libc-config.h: Update accordingly.
581 2021-01-04  Simon Josefsson  <simon@josefsson.org>
583         maintainer-makefile: Invoke syntax-checks regardless of locale.
584         * top/maint.mk (syntax-check-rules): Invoke sed with LANG=C
585         environment because [a-z] may not include 'w' in all locales.
587 2021-01-04  Bruno Haible  <bruno@clisp.org>
589         nstrftime, time_rz: Avoid using an obsolete Autoconf macro.
590         Reported by Mike Gran <spk121@yahoo.com> in
591         <https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00067.html>.
592         * lib/time-internal.h: Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
593         * lib/time_rz.c: Likewise.
594         * lib/nstrftime.c: Set and test HAVE_STRUCT_TM_TM_ZONE, not
595         HAVE_TM_ZONE.
596         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Update comments.
598 2021-01-04  Bruno Haible  <bruno@clisp.org>
600         expm1f-ieee: Work around AIX 7.2 bug.
601         * m4/expm1f.m4 (gl_FUNC_EXPM1F): Initialize gl_expm1f_required. If
602         module 'expm1f-ieee' is in use, check whether expm1f works according to
603         IEEE.
604         * m4/expm1f-ieee.m4: New file.
605         * modules/expm1f-ieee (Files): Add it.
606         (Depends-on): Update conditions.
607         (configure.ac): Invoke gl_FUNC_EXPM1F_IEEE.
608         * doc/posix-functions/expm1f.texi: Mention the AIX bug.
610 2021-01-04  Bruno Haible  <bruno@clisp.org>
612         ffsl, ffsll: Work around AIX 7.2 problem.
613         * lib/string.in.h: On AIX, include <strings.h> for the declarations of
614         ffsl and ffsll.
615         * doc/glibc-functions/ffsl.texi: Document the AIX 7.2 problem.
616         * doc/glibc-functions/ffsll.texi: Likewise.
618 2021-01-04  Bruno Haible  <bruno@clisp.org>
620         ssfmalloc: Fix includes.
621         * lib/ssfmalloc.h: Include <strings.h>, for ffs().
622         * tests/test-ssfmalloc.c: Include <string.h>, for memset().
624 2021-01-03  Bruno Haible  <bruno@clisp.org>
626         quotearg tests: Avoid test failures on Solaris 11.3.
627         * tests/test-quotearg.sh: Copy the fr/ directory using 'cp -R', not
628         'cp -a'.
630 2021-01-03  Bruno Haible  <bruno@clisp.org>
632         tests: Fix link errors on Solaris, when libunistring-optional is in use.
633         * modules/wcwidth (Link): New section.
634         * modules/wcswidth (Link): New section.
635         * modules/mbchar (Link): New section.
636         * modules/mbfile (Link): Link against libunistring.
637         * modules/mbiter (Link): Likewise.
638         * modules/mbuiter (Link): Likewise.
639         * modules/mbmemcasecmp (Link): Likewise.
640         * modules/mbscasecmp (Link): Likewise.
641         * modules/mbscasestr (Link): Likewise.
642         * modules/mbschr (Link): Likewise.
643         * modules/mbscspn (Link): Likewise.
644         * modules/mbslen (Link): Likewise.
645         * modules/mbsncasecmp (Link): Likewise.
646         * modules/mbsnlen (Link): Likewise.
647         * modules/mbspbrk (Link): Likewise.
648         * modules/mbspcasecmp (Link): Likewise.
649         * modules/mbsrchr (Link): Likewise.
650         * modules/mbssep (Link): Likewise.
651         * modules/mbsspn (Link): Likewise.
652         * modules/mbsstr (Link): Likewise.
653         * modules/mbstok_r (Link): Likewise.
654         * modules/mbswidth (Link): Likewise.
655         * modules/exclude (Link): Likewise.
656         * modules/propername (Link): Likewise.
657         * modules/regex-quote (Link): Likewise.
658         * modules/trim (Link): Likewise.
659         * modules/mbmemcasecmp-tests (Makefile.am): Link the test program
660         against libunistring.
661         * modules/mbscasecmp-tests (Makefile.am): Likewise.
662         * modules/mbscasestr-tests (Makefile.am): Likewise.
663         * modules/mbschr-tests (Makefile.am): Likewise.
664         * modules/mbscspn-tests (Makefile.am): Likewise.
665         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
666         * modules/mbspbrk-tests (Makefile.am): Likewise.
667         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
668         * modules/mbsrchr-tests (Makefile.am): Likewise.
669         * modules/mbsspn-tests (Makefile.am): Likewise.
670         * modules/mbsstr-tests (Makefile.am): Likewise.
671         * modules/exclude-tests (Makefile.am): Likewise.
672         * modules/regex-quote-tests (Makefile.am): Likewise.
674 2021-01-03  Bruno Haible  <bruno@clisp.org>
676         c32ispunct tests: Avoid test failures on FreeBSD.
677         * tests/test-c32ispunct.c (main): On FreeBSD, disable tests that fail on
678         FreeBSD 12.1.1.
680 2021-01-04  Simon Josefsson  <simon@josefsson.org>
682         doc: Repeat warning that --with-tests cannot be used twice.
683         * doc/gnulib-tool.texi (Multiple instances): Remind reader of
684         --with-tests limitation.
686 2021-01-03  Bruno Haible  <bruno@clisp.org>
688         iconv, iconv_open: Improve documentation.
689         Reported by Noah Misch <noah@leadboat.com> in
690         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00172.html>.
691         * doc/posix-functions/iconv_open.texi: Add new paragraph "Portability
692         problems handled by Gnulib".
693         * doc/posix-functions/iconv.texi: Likewise. Update info about AIX.
694         * m4/iconv.m4 (AM_ICONV_LINK): Improve comments.
696 2021-01-03  Bruno Haible  <bruno@clisp.org>
698         iconv-h: Fix module description.
699         * modules/iconv-h (Include): Check HAVE_ICONV_H.
701 2021-01-03  Noah Misch  <noah@leadboat.com>
703         iconv_open: Fix module description.
704         * modules/iconv_open (Include): Check HAVE_ICONV, like modules/iconv.
706 2021-01-03  Bruno Haible  <bruno@clisp.org>
708         stddef: Override wrong max_align_t on AIX 7 with xlc in 64-bit mode.
709         * m4/stddef_h.m4 (gl_STDDEF_H): Make check for good max_align_t
710         stricter: Add tests for offsetof-based alignof.
711         * lib/stddef.in.h (max_align_t): Override on AIX in 64-bit mode.
712         * doc/posix-headers/stddef.texi: Document the AIX max_align_t bug.
714 2021-01-03  Bruno Haible  <bruno@clisp.org>
716         free-posix: Work around GCC mis-optimization bug.
717         Code by Bernhard Voelker <mail@bernhard-voelker.de>.
718         * lib/free.c (rpl_free): Add alternative complicated code for GCC.
720 2021-01-02  Bruno Haible  <bruno@clisp.org>
722         valgrind-tests: Disable valgrind if it would cause all tests to fail.
723         Suggested by Simon Josefsson <simon@josefsson.org> in
724         <https://lists.gnu.org/archive/html/help-gsasl/2021-01/msg00004.html>.
725         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Test $VALGRIND on an
726         executable produced by the current compiler. Set VALGRIND to empty if it
727         does not work. Don't set VALGRIND to empty if it merely does not accept
728         the --error-exitcode=1 --leak-check=full options.
730 2021-01-02  Bruno Haible  <bruno@clisp.org>
732         valgrind-tests: Really enable the valgrind options test.
733         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Don't assume that the
734         valgrind options --error-exitcode=1 --leak-check=full always work.
736 2021-01-02  Bruno Haible  <bruno@clisp.org>
738         utimensat: Fix test failures on macOS 10.13.
739         * lib/utimensat.c: Include <string.h>, <sys/stat.h>.
740         (rpl_utimensat): Check against invalid tv_nsec values. Before calling
741         utimensat, recognize a filename ending in a slash that does not point
742         to a directory.
744 2021-01-02  Bruno Haible  <bruno@clisp.org>
746         utimens: Fix test failure on macOS 10.13.
747         * lib/utimens.c: Include <string.h>.
749         utimens: Fix test failure on macOS 10.13.
750         * lib/utimens.c (fdutimens): Before calling utimensat, recognize a
751         filename ending in a slash that does not point to a directory.
753 2021-01-02  Bruno Haible  <bruno@clisp.org>
755         utimens: Avoid test failures on macOS 10.13.
756         Reported by Martin Storsjö <martin@martin.st> in
757         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
758         * tests/test-utimens-common.h (check_ctime): Define to -1 on macOS.
759         * tests/test-utimens.h (test_utimens): Don't expect a ctime change when
760         only the atime is requested to change.
761         * tests/test-futimens.h (test_futimens): Likewise.
762         * tests/test-lutimens.h (test_lutimens): Likewise.
764 2021-01-02  Bruno Haible  <bruno@clisp.org>
766         renameatu: Fix test failures on macOS.
767         Reported by Martin Storsjö <martin@martin.st> in
768         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
769         * lib/renameatu.c (renameatu): Don't call renameatx_np right away.
770         Instead, treat it as a variant of renameat, with all possible bugs that
771         renameat might have.
773 2021-01-02  Bruno Haible  <bruno@clisp.org>
775         getgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.
776         Reported by Bernhard Voelker <mail@bernhard-voelker.de> in
777         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00090.html>.
778         * tests/test-getgroups.c: Silence gcc warnings of type
779         -Wstringop-overflow.
781 2021-01-02  Bruno Haible  <bruno@clisp.org>
783         timespec_get: Add tests.
784         * tests/test-timespec_get.c: New file.
785         * modules/timespec_get-tests: New file.
787         timespec_get: New module.
788         * lib/time.in.h (timespec_get): New declaration.
789         * lib/timespec_get.c: New file.
790         * m4/timespec_get.m4: New file.
791         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
792         GNULIB_TIMESPEC_GET, HAVE_TIMESPEC_GET.
793         * modules/time (Makefile.am): Substitute GNULIB_TIMESPEC_GET,
794         HAVE_TIMESPEC_GET.
795         * modules/timespec_get: New file.
796         * tests/test-time-c++.cc (timespec_get): Check signature.
797         * doc/glibc-functions/timespec_get.texi: Mention the new module.
799 2021-01-01  Bruno Haible  <bruno@clisp.org>
801         time: Define TIME_UTC.
802         * lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros.
803         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC.
804         * modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC.
805         * tests/test-time.c: Check that TIME_UTC is defined and a positive
806         integer.
807         * doc/posix-headers/time.texi: Mention TIME_UTC.
809 2021-01-01  Bruno Haible  <bruno@clisp.org>
811         stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
812         * modules/stddef (Depends-on): Add extensions.
814 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
816         canonicalize: remove NARROW_ADDRESSES optimization
817         * lib/canonicalize-lgpl.c, lib/canonicalize.c (NARROW_ADDRESSES):
818         Remove, and remove all uses, as the optimization is arguably not
819         worth the extra complexity.  Suggested by Adhemerval Zanella in:
820         https://sourceware.org/pipermail/libc-alpha/2020-December/121203.html
822 2021-01-01  Bruno Haible  <bruno@clisp.org>
824         stddef: Try harder to get max_align_t defined on OpenBSD.
825         * m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
827 2021-01-01  Bruno Haible  <bruno@clisp.org>
829         aligned_alloc: Fix test failure on OpenBSD 6.8.
830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): On OpenBSD, define
831         _ISOC11_SOURCE.
832         * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Require it. Update
833         comment.
835 2021-01-01  Bruno Haible  <bruno@clisp.org>
837         posixtm tests: Disable part of the test on plaforms where it fails.
838         * tests/test-posixtm.c (T): Disable two tests on macOS as well.
840 2021-01-01  Bruno Haible  <bruno@clisp.org>
842         c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
843         * tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
844         Solaris 11 OmniOS.
845         * tests/test-c32isprint.c (main): Likewise.
846         * tests/test-c32ispunct.c (main): Likewise.
848 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
850         libc-config: port to Sun C 5.9
851         * lib/libc-config.h (libc_hidden_proto): Omit ", ..." in macro
852         definition.  It’s not needed for Gnulib and elicits a diagnostic
853         from Sun C 5.9 Patch 124867-12 2009/11/22.
855 2021-01-01  Bruno Haible  <bruno@clisp.org>
857         quotearg tests: Avoid test failures on Solaris 11.
858         * modules/quotearg-tests (Makefile.am): Set host_os in
859         TESTS_ENVIRONMENT.
860         * tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
861         directory that contains the .mo file.
863 2021-01-01  Bruno Haible  <bruno@clisp.org>
865         maint: Update copyright notices in --version output.
866         List the most recent year in which changes were made, per
867         <https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html>.
868         * build-aux/declared.sh (func_version): Say 2019.
869         * build-aux/libtool-next-version (func_version): Likewise.
870         * build-aux/run-test (func_version): Likewise.
871         * check-module (COPYRIGHT_NOTICE): Say 2012.
872         * lib/git-merge-changelog.c (main): Say 2020.
874 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
876         filename: change filename.h comment to LGPLv2.1+
877         * lib/filename.h: Change license notice to match what should be in
878         glibc, and what modules/filename specifies.  This is to simplify
879         syncing with glibc.
881         doc: mention year-0 bugs in Solaris etc.
882         * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi:
883         * doc/posix-functions/localtime.texi:
884         * doc/posix-functions/localtime_r.texi:
885         * doc/posix-functions/mktime.texi:
886         Mention year-0 bugs in localtime etc.
888 2020-12-31  Bruno Haible  <bruno@clisp.org>
890         ptsname_r: Fix test failure on Solaris.
891         * lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
892         the device.
894 2020-12-31  Bruno Haible  <bruno@clisp.org>
896         posixtm tests: Disable part of the test on plaforms where it fails.
897         * tests/test-posixtm.c (T): Disable two tests on Solaris.
899 2020-12-31  Bruno Haible  <bruno@clisp.org>
901         poll tests: Avoid test failure on AIX.
902         * tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after
903         shutdown" test on AIX.
904         * doc/posix-functions/poll.texi: Mention the AIX bug.
906 2020-12-31  Bruno Haible  <bruno@clisp.org>
908         poll tests: Avoid test failure on BSD and Solaris systems.
909         * tests/test-poll.c (test_accept_first, test_socket_pair): Disable the
910         "expecting POLLHUP after shutdown" test on all platforms except Linux.
912 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
914         fnmatch: merge from glibc + proposal
915         This merges the change proposed by Adhemerval Zanella in:
916         https://sourceware.org/pipermail/libc-alpha/2020-December/121212.html
917         which fixes a Gnulib bug that led to a failed assert.
918         * lib/fnmatch_loop.c (EXT): Use signed level, not unsigned, and
919         check that it stays nonnegative.  Use __flexarr instead of
920         FLEXIBLE_ARRAY_MEMBER, to port better to glibc.
921         * tests/test-fnmatch.c (main): New test cases, taken from glibc.
923         glob: merge proposed glibc changes
924         This merges the change proposed by Adhemerval Zanella in:
925         https://sourceware.org/pipermail/libc-alpha/2020-December/121211.html
926         * lib/glob.c (__lstat64, __stat64) [_LIBC]: Remove.
928 2020-12-31  Bruno Haible  <bruno@clisp.org>
930         memalign: Work around Solaris bug.
931         * lib/memalign.c: New file.
932         * m4/memalign.m4: New file.
933         * modules/memalign (Files): Add them.
934         (Depends-on): Add malloc-h.
935         (configure.ac): Invoke gl_FUNC_MEMALIGN. Conditionally compile
936         memalign.c. Set module indicator.
937         (Include): Include <malloc.h> unconditionally.
938         * doc/glibc-functions/memalign.texi: Mention the Solaris issues.
940         malloc-h: Add tests.
941         * tests/test-malloc-h.c: New file.
942         * modules/malloc-h-tests: New file.
943         * tests/test-malloc-h-c++.cc: New file.
944         * modules/malloc-h-c++-tests: New file.
946         malloc-h: New module.
947         * lib/malloc.in.h: New file.
948         * m4/malloc_h.m4: New file.
949         * modules/malloc-h: New file.
950         * doc/glibc-headers/malloc.texi: New file.
951         * doc/gnulib.texi (Glibc Header File Substitutes): Include it.
953 2020-12-31  Bruno Haible  <bruno@clisp.org>
955         unistd: Fix portability warnings.
956         * lib/unistd.in.h (fchownat, unlinkat): Fix module name in warning.
958 2020-12-31  Bruno Haible  <bruno@clisp.org>
960         utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
961         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
962         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
963         * lib/utime.c: Include <errno.h>.
965 2020-12-30  Karl Berry  <karl@freefriends.org>
967         config: srclistvars doc.
968         * config/srclistvars.sh: doc a couple of unusual source repo urls.
970 2020-12-30  Bruno Haible  <bruno@clisp.org>
972         getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana.
973         * tests/test-getlogin.c (main): Don't fail if getlogin() returns NULL
974         with no errno.
975         * tests/test-getlogin_r.c (main): Don't fail if getlogin_r() returns
976         EINVAL.
978 2020-12-29  Jim Meyering  <meyering@fb.com>
980         regex-tests: tweak to avoid a clang-10 warning
981         * tests/test-regex.c: Compare with explicit zero, rather than
982         as boolean to avoid this from clang-10:
983         test-regex.c:315:9: error: converting the result of '<<' to a \
984           boolean always evaluates to true \
985           [-Werror,-Wtautological-constant-compare]
986         if (! REG_STARTEND)
988         hash: add casts-to-float to avoid clang-10 warnings
989         * lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
990         to avoid this warning from clang-10 (for use in grep):
991           hash.c:501:11: error: implicit conversion from 'unsigned long' \
992             to 'float' changes value from 18446744073709551615 to \
993             18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
994           if (SIZE_MAX <= new_candidate)
995         (hash_insert_if_absent): Likewise.
997 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
999         canonicalize: fix size overflow treatment
1000         This also has some minor cleanups.
1001         * lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
1002         stddef.h, since the code no longer refers directly to ptrdiff_t.
1003         * lib/canonicalize-lgpl.c (realpath_stk):
1004         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1005         Treat size overflow like other out-of-memory.
1006         * lib/canonicalize.c: No need to include stdlib.h, since
1007         the code no longer refers to stdlib.h functions (other
1008         than those that canonicalize.h must declare).
1009         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1010         Do not bother terminating the string result on error.
1012 2020-12-29  Bruno Haible  <bruno@clisp.org>
1014         list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
1015         * lib/gl_list.hh: Include <stdlib.h>.
1016         * lib/gl_map.hh: Likewise.
1017         * lib/gl_omap.hh: Likewise.
1018         * lib/gl_set.hh: Likewise.
1019         * lib/gl_oset.hh: Likewise.
1021 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1023         canonicalize: fix ptrdiff_t overflow bug
1024         Problem reported by Adhemerval Zanella in:
1025         https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
1026         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1027         Include intprops.h.
1028         (NARROW_ADDRESSES): New constant.
1029         * lib/canonicalize-lgpl.c (realpath_stk):m
1030         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1031         Work even if strlen (END) does not fit in idx_t, or if adding
1032         N to it overflows.
1033         * modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
1034         Add intprops.
1036 2020-12-28  Bruno Haible  <bruno@clisp.org>
1038         havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
1039         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
1040         acl_is_expected_elfclass, use 'expr', not 'test'.
1042 2020-12-28  Bruno Haible  <bruno@clisp.org>
1044         ptsname_r: Fix a compiler warning on Solaris.
1045         * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
1047 2020-12-28  Bruno Haible  <bruno@clisp.org>
1049         gnulib-tool: Fix logic whether to add a dummy.c.
1050         * gnulib-tool (func_remove_if_blocks): New function.
1051         (func_modules_add_dummy): Use it to eliminate all conditional statements
1052         from the automake snippet.
1054 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1056         faccessat: revert recent EOVERFLOW change
1057         I misunderstood the glibc source code.  Deduced from
1058         Adhemerval Zanella’s proposed glibc patch in:
1059         https://sourceware.org/pipermail/libc-alpha/2020-December/121131.html
1060         * doc/posix-functions/faccessat.texi: It is not a problem.
1061         * lib/canonicalize-lgpl.c, lib/canonicalize.c, lib/faccessat.c:
1062         (FACCESSAT_NEVER_OVERFLOWS): Remove. All uses removed.
1063         * lib/faccessat.c: Revert to simpler version now that
1064         LSTAT_FOLLOWS_SLASHED_SYMLINK must be false.
1065         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW):
1066         Remove.  All uses removed.
1067         * modules/canonicalize, modules/canonicalize-lgpl (Files):
1068         Remove m4/faccessat.m4.
1070         canonicalize-lgpl: accommodate picky cpp
1071         * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
1072         case preprocessor is picky.  Reported by Adhemerval Zanella in:
1073         https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
1075         canonicalize: simplify via scratch_buffer_dupfree
1076         * config/srclist.txt: Adjust accordingly.
1077         * lib/canonicalize-lgpl.c (realpath_stk):
1078         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1079         Simplify by using scratch_buffer_dupfree.
1080         * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function.
1081         * lib/malloc/scratch_buffer_dupfree.c: New file.
1082         * modules/scratch_buffer (Files, Depends-on):
1083         Add malloc/scratch_buffer_dupfree.c.
1085 2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1087         regex: remove glibc21.m4
1088         It doesn’t seem to be needed any more; at least, I couldn’t
1089         reproduce the circa-2013 problem.  Perhaps the recent
1090         --conditional-dependencies fixes have removed the need for it.
1091         * m4/glibc21.m4: Remove.  All uses removed.
1093 2020-12-26  Bruno Haible  <bruno@clisp.org>
1095         gnulib-tool: Make --conditional-dependencies work with --with-tests.
1096         Reported by Paul Eggert in
1097         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00236.html>.
1098         * gnulib-tool (func_emit_tests_Makefile_am): Handle conditional
1099         dependencies like func_emit_lib_Makefile_am.
1101 2020-12-26  Bruno Haible  <bruno@clisp.org>
1103         execvpe: Make dependency to stdbool explicit.
1104         * lib/execvpe.c: Include <stdbool.h>.
1105         * modules/execvpe (Depends-on): Add stdbool.
1107         execlp: Add tests.
1108         * tests/test-execlp-main.c: New file.
1109         * tests/test-execlp.sh: New file.
1110         * modules/execlp-tests: New file.
1112         execlp: New module.
1113         * lib/execlp.c: New file.
1114         * m4/execlp.m4: New file.
1115         * modules/execlp: New file.
1116         * doc/posix-functions/execlp.texi: Mention more Windows problems and the
1117         new module.
1119         execle: Add tests.
1120         * tests/test-execle-main.c: New file.
1121         * tests/test-execle.sh: New file.
1122         * modules/execle-tests: New file.
1124         execle: New module.
1125         * lib/execle.c: New file.
1126         * m4/execle.m4: New file.
1127         * modules/execle: New file.
1128         * doc/posix-functions/execle.texi: Mention more Windows problems and the
1129         new module.
1131         execl: Add tests.
1132         * tests/test-execl-main.c: New file.
1133         * tests/test-execl.sh: New file.
1134         * modules/execl-tests: New file.
1136         execl: New module.
1137         * lib/execl.c: New file.
1138         * m4/execl.m4: New file.
1139         * modules/execl: New file.
1140         * doc/posix-functions/execl.texi: Mention more Windows problems and the
1141         new module.
1143         execv: Add tests.
1144         * tests/test-execv-main.c: New file.
1145         * tests/test-execv.sh: New file.
1146         * modules/execv-tests: New file.
1148         execv: New module.
1149         * lib/execv.c: New file.
1150         * m4/execv.m4: New file.
1151         * modules/execv: New file.
1152         * doc/posix-functions/execv.texi: Mention more Windows problems and the
1153         new module.
1155         execvp: Add tests.
1156         * tests/test-execvp-main.c: New file.
1157         * tests/test-execvp.sh: New file.
1158         * modules/execvp-tests: New file.
1160         execvp: New module.
1161         * lib/execvp.c: New file.
1162         * m4/execvp.m4: New file.
1163         * modules/execvp: New file.
1164         * doc/posix-functions/execvp.texi: Mention more Windows problems and the
1165         new module.
1167         execvpe: Add tests.
1168         * tests/test-execvpe-main.c: New file.
1169         * tests/test-execvpe.sh: New file.
1170         * modules/execvpe-tests: New file.
1172         execvpe: New module.
1173         * lib/execvpe.c: New file.
1174         * m4/execvpe.m4: New file.
1175         * modules/execvpe: New file.
1176         * doc/glibc-functions/execvpe.texi: Mention the Windows problems and the
1177         new module.
1179         execve: Add tests.
1180         * tests/test-exec-child.c: New file.
1181         * tests/test-execve-main.c: New file.
1182         * tests/test-execve.sh: New file.
1183         * modules/execve-tests: New file.
1185         execve: New module.
1186         * lib/execve.c: New file.
1187         * m4/execve.m4: New file.
1188         * modules/execve: New file.
1189         * doc/posix-functions/execve.texi: Mention more Windows problems and the
1190         new module.
1192         execve, execvpe, execvp, execv, execl, execle, execlp: Prepare modules.
1193         * lib/unistd.in.h (execl, execle, execlp, execv, execve, execvp,
1194         execvpe): Add declarations for the new modules.
1195         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether execl, execle, execlp,
1196         execv, execve, execvp, execvpe are declared.
1197         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EXEC*, HAVE_EXECVPE,
1198         REPLACE_EXEC*.
1199         * modules/unistd (Makefile.am): Substitute GNULIB_EXEC*, HAVE_EXECVPE,
1200         REPLACE_EXEC*.
1201         * tests/test-unistd-c++.cc: Check the signature of execl, execle,
1202         execlp, execv, execve, execvp, execvpe.
1204 2020-12-26  Bruno Haible  <bruno@clisp.org>
1206         stack: Fix typo in comments.
1207         * lib/stack.h: Fix typo in comments.
1209 2020-12-26  Bruno Haible  <bruno@clisp.org>
1211         bitset: Fix conflict with 'free-posix' module.
1212         * lib/bitset/base.h: Include <stdlib.h>.
1214 2020-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1216         idx: change idx.h comment to LGPLv2.1+
1217         * lib/idx.h: Change license notice to match what should be in glibc.
1218         gnulib-tool will change it as appropriate anyway, so this is just
1219         to simplify syncing with glibc.
1221 2020-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
1223         MODULES.html.sh: Update after 2020-12-19 change.
1224         * MODULES.html.sh (func_all_modules): Do s/free/free-posix/.
1226 2020-12-25  Bruno Haible  <bruno@clisp.org>
1228         Make it possible to turn off the mkdir override on Windows.
1229         * lib/sys_stat.in.h (mkdir): Conditionalize through GNULIB_MKDIR and
1230         GNULIB_MDA_MKDIR. Also support GNULIB_POSIXCHECK.
1231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_MKDIR,
1232         GNULIB_MDA_MKDIR.
1233         * modules/sys_stat (Makefile.am): Substitute GNULIB_MKDIR,
1234         GNULIB_MDA_MKDIR.
1235         * modules/mkdir (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
1236         * doc/posix-functions/mkdir.texi: Mention also the 'sys_stat' module.
1238         Make it possible to turn off each of the Windows oldnames workarounds.
1239         * lib/fcntl.in.h (creat, open):  Conditionalize each of the Windows
1240         oldnames workarounds through a GNULIB_MDA_<func> symbol.
1241         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
1242         * lib/search.in.h (lfind, lsearch): Likewise.
1243         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1244         Likewise.
1245         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1246         * lib/string.in.h (memccpy, strdup): Likewise.
1247         * lib/sys_stat.in.h (chmod, umask): Likewise.
1248         * lib/time.in.h (tzset): Likewise.
1249         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1250         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1251         read, rmdir, swab, unlink, write): Likewise.
1252         * lib/utime.in.h (utime): Likewise.
1253         * lib/wchar.in.h (wcsdup): Likewise.
1254         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize these
1255         GNULIB_MDA_<func> symbols.
1256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Likewise.
1257         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Likewise.
1258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1261         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
1262         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Likewise.
1263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
1264         * m4/utime_h.m4 (gl_UTIME_H_DEFAULTS): Likewise.
1265         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Likewise.
1266         * modules/fcntl-h (Makefile.am): Substitute these GNULIB_MDA_<func>
1267         symbols.
1268         * modules/math (Makefile.am): Likewise.
1269         * modules/search (Makefile.am): Likewise.
1270         * modules/stdio (Makefile.am): Likewise.
1271         * modules/stdlib (Makefile.am): Likewise.
1272         * modules/string (Makefile.am): Likewise.
1273         * modules/sys_stat (Makefile.am): Likewise.
1274         * modules/time (Makefile.am): Likewise.
1275         * modules/unistd (Makefile.am): Likewise.
1276         * modules/utime-h (Makefile.am): Likewise.
1277         * modules/wchar (Makefile.am): Likewise.
1279 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1281         canonicalize, canonicalize-lgpl: remove lint
1282         Pacify GCC.  Some of these problems were reported by Bruno Haible in:
1283         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00217.html
1284         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1285         Sort shared include directives, for consistency.
1286         (IF_LINT): New macro.
1287         (suffix_requires_dir_check): Mark with _GL_ATTRIBUTE_PURE.
1288         * lib/canonicalize-lgpl.c (GCC_LINT, _GL_ATTRIBUTE_PURE) [_LIBC]:
1289         New macros.
1290         (realpath_stk): Suppress bogus -Wmaybe-uninitialized warning.
1291         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1292         Omit unused local.  Suppress bogus -Wmaybe-uninitialized warning.
1294 2020-12-24  Bruno Haible  <bruno@clisp.org>
1296         spawn-pipe: Use posix_spawn by default on native Windows.
1297         * lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
1298         (create_pipe): Use it to decide among the two possible implementations.
1299         * modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
1301 2020-12-24  Bruno Haible  <bruno@clisp.org>
1303         unistd-safer: Implement pipe_safer on native Windows.
1304         * lib/pipe-safer.c (pipe_safer): Don't test HAVE_PIPE.
1305         * modules/unistd-safer (Depends-on): Add pipe-posix.
1307 2020-12-24  Bruno Haible  <bruno@clisp.org>
1309         execute: Use posix_spawn by default on native Windows.
1310         * lib/execute.c (EXECUTE_IMPL_AVOID_POSIX_SPAWN): New macro.
1311         (execute): Use it to decide among the two possible implementations.
1313 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1315         canonicalize-lgpl: merge proposed libc changes
1316         This merges the changes proposed for glibc in:
1317         https://sourceware.org/pipermail/libc-alpha/2020-December/121085.html
1318         https://sourceware.org/pipermail/libc-alpha/2020-December/121086.html
1319         * lib/canonicalize-lgpl.c: Include idx.h and filename.h
1320         unconditionally.
1321         (idx_t, IDX_MAX, FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME)
1322         (ISSLASH) [_LIBC]: Remove.
1324 2020-12-24  Bruno Haible  <bruno@clisp.org>
1326         posix_spawn-internal: Implement for native Windows.
1327         * lib/spawni.c (grow_inheritable_handles, shrink_inheritable_handles,
1328         close_inheritable_handles, memiszero, sigisempty, open_handle, do_open,
1329         do_dup2, do_close): New functions.
1330         (__spawni): Implement on native Windows.
1331         * modules/posix_spawn-internal (Depends-on): Add filename,
1332         concat-filename, findprog-in, malloca, windows-spawn.
1333         * doc/posix-functions/posix_spawn.texi: Update.
1334         * doc/posix-functions/posix_spawnp.texi: Likewise.
1336 2020-12-24  Bruno Haible  <bruno@clisp.org>
1338         windows-spawn: Export another auxiliary function.
1339         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
1340         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
1341         extracted from spawnpvech.
1342         (spawnpvech): Use it.
1344 2020-12-24  Bruno Haible  <bruno@clisp.org>
1346         windows-spawn: Export some more auxiliary functions.
1347         * lib/windows-spawn.h: Include <stdbool.h>.
1348         (struct inheritable_handles): New type.
1349         (init_inheritable_handles, compose_handles_block,
1350         free_inheritable_handles): New declarations.
1351         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
1352         New functions, based on spawnvech.
1353         (free_inheritable_handles): New function.
1354         (spawnpvech): Use them.
1356 2020-12-24  Bruno Haible  <bruno@clisp.org>
1358         windows-spawn: Export another auxiliary function.
1359         * lib/windows-spawn.h (compose_envblock): New declaration.
1360         * lib/windows-spawn.c (compose_envblock): New function, extracted from
1361         spawnpvech.
1362         (spawnpvech): Use it.
1364 2020-12-24  Bruno Haible  <bruno@clisp.org>
1366         windows-spawn: Export an auxiliary function.
1367         * lib/windows-spawn.h (compose_command): New declaration.
1368         * lib/windows-spawn.c (compose_command): New function, extracted from
1369         spawnpvech.
1370         (spawnpvech): Use it.
1372 2020-12-24  Bruno Haible  <bruno@clisp.org>
1374         posix_spawn* tests: Add support for native Windows.
1375         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
1376         like Cygwin.
1377         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
1378         SIGHUP and SIGPIPE. On native Windows, don't call
1379         posix_spawnattr_setsigmask.
1380         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
1381         * tests/test-posix_spawn-fchdir.c (main): Likewise.
1382         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
1383         output from Cygwin's 'pwd' program.
1384         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
1385         executable-shell-script part of the test.
1386         * tests/test-posix_spawnp-script.c (main): Likewise.
1387         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
1388         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
1389         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
1390         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
1391         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
1392         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
1393         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
1394         test the POSIX_SPAWN_PORTED conditional.
1395         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
1396         Define the POSIX_SPAWN_PORTED conditional here.
1398 2020-12-24  Bruno Haible  <bruno@clisp.org>
1400         sh-filename: Add support for native Windows.
1401         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
1403 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1405         careadlinkat: improve warning line number
1406         This propagates an idea first used in canonicalize-lgpl.
1407         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
1408         New macro.
1409         (careadlinkat): Use it.
1411         linkat: use eloop-threshold
1412         * lib/linkat.c: Include eloop-threshold.h.
1413         Do not include sys/param.h.
1414         (MAXSYMLINKS): Remove.
1415         (link_follow, linkat_follow): Use __eloop_threshold instead
1416         of MAXSYMLINKS.
1417         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
1418         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
1420         canonicalize-lgpl: use eloop-threshold
1421         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
1422         (MAXSYMLINKS, __eloop_threshold): Remove.
1423         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
1425         eloop-threshold: new module
1426         * config/srclist.txt: Add a comment about it.
1427         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
1429         canonicalize: prefer faccessat to stat
1430         A proper faccessat doesn't have the EOVERFLOW problem, and can be
1431         more efficient as it needn't gather data from the filesystem to
1432         fill in struct stat.  So use stat only if faccessat is absent,
1433         or when checking for symlink loops in canonicalize.c.
1434         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1435         Include fcntl.h, for AT_EACCESS.
1436         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
1437         (file_accessible): New function, based on faccessat but with
1438         a fallback to stat and with an EOVERFLOW workaround.
1439         (dir_check): Use it.
1440         (dir_suffix): New static constant.
1441         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
1442         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
1443         (__faccessat) [!_LIBC]: Define.
1444         (realpath_stk): Use dir_suffix now.
1445         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1446         If logical, don't check each component's existence; just check
1447         at the end, as that's enough.
1448         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1449         (gl_CANONICALIZE_LGPL_SEPARATE):
1450         Require gl_FUNC_FACCESSAT_EOVERFLOW,
1451         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
1452         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
1453         as the code does not use HAVE_READLINK.
1454         * modules/canonicalize, modules/canonicalize-lgpl (Files):
1455         Add m4/faccessat.m4, m4/lstat.m4.
1456         (Depends-on): Add fcntl-lh.
1458         faccessat: work around F_OK EOVERFLOW bug
1459         * doc/posix-functions/faccessat.texi: Mention the problem.
1460         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
1461         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
1462         for F_OK and EOVERFLOW, which means we can return 0.
1463         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
1464         (gl_FUNC_FACCESSAT): Use it.
1466         stat failing with EOVERFLOW implies existence
1467         * lib/euidaccess.c (euidaccess):
1468         * lib/file-has-acl.c (file_has_acl):
1469         * lib/link.c (link, rpl_link):
1470         * lib/mkdir.c (rpl_mkdir):
1471         * lib/mkfifo.c (rpl_mkfifo):
1472         * lib/mknod.c (rpl_mknod):
1473         * lib/ptsname_r.c (__ptsname_r):
1474         * lib/symlink.c (rpl_symlink):
1475         * lib/symlinkat.c (rpl_symlinkat):
1476         * lib/unlink.c (rpl_unlink):
1477         * lib/unlinkat.c (rpl_unlinkat):
1478         * lib/utime.c (utime):
1479         If stat fails with EOVERFLOW the file exists, so treat it that way
1480         in file-existence tests that do not need struct stat values.
1482         canonicalize-lgpl: remove freea macro
1483         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
1485         canonicalize, canonicalize-lgpl: fix symlink bug
1486         Problem reported by Adhemerval Zanella in:
1487         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
1488         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1489         (suffix_requires_dir_check, dir_check): New functions.
1490         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
1491         closer to the related GCC diagnostics.
1492         * lib/canonicalize-lgpl.c (realpath_stk):
1493         * lib/canonicalize.c (canonicalize_file_mode_stk):
1494         Use them to fix a bug with .../symlink-to-regular-file/ etc.
1495         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
1496         (realpath_stk): New function,
1497         with the contents of the old __realpath and a new scratch buffer arg.
1498         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
1499         (__realpath): Use it.
1500         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
1501         Add test cases for the bugs.
1503 2020-12-24  Bruno Haible  <bruno@clisp.org>
1505         execute: Treat signalled processes like wait-process does.
1506         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
1507         (execute): Recognize the case where the exit code indicates a signalled
1508         child process.
1509         * tests/test-execute-main.c (main): Update expected test result.
1510         * modules/execute (Depends-on): Add sys_wait.
1512 2020-12-24  Bruno Haible  <bruno@clisp.org>
1514         windows-spawn: Improve errno upon failure on native Windows.
1515         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
1516         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
1517         * tests/executable-script.sh: New file.
1518         * tests/test-posix_spawn-script.c (main): Also try executing
1519         executable-script.sh.
1520         * tests/test-posix_spawnp-script.c (main): Likewise.
1521         * tests/test-execute-script.c (main): Likewise.
1522         * tests/test-spawn-pipe-script.c (main): Likewise.
1523         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
1524         * modules/posix_spawnp-tests (Files): Likewise.
1525         * modules/execute-tests (Files): Likewise.
1526         * modules/spawn-pipe-tests (Files): Likewise.
1528 2020-12-24  Bruno Haible  <bruno@clisp.org>
1530         findprog-in: Improve errno upon failure on native Windows.
1531         * lib/findprog-in.c (find_in_given_path): If the file basename has no
1532         dot and the search with a suffix returned no result, do also a search
1533         without a suffix, and set errno = ENOEXEC if we find a file in this way.
1534         * tests/test-spawn-pipe-script.c (main): Update expected errno.
1536 2020-12-23  Bruno Haible  <bruno@clisp.org>
1538         posix_spawn, posix_spawnp: Fix execution of scripts.
1539         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
1540         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
1541         or posix_spawnp allows unsecure execution of scripts.
1542         * doc/posix-functions/posix_spawn.texi: Document the script execution
1543         problem.
1544         * doc/posix-functions/posix_spawnp.texi: Likewise.
1546 2020-12-23  Bruno Haible  <bruno@clisp.org>
1548         Add unit tests regarding execution of scripts.
1549         * tests/executable-script: New file.
1550         * tests/executable-shell-script: New file.
1551         * tests/test-posix_spawn-script.c: New file.
1552         * tests/test-posix_spawnp-script.c: New file.
1553         * tests/test-execute-script.c: New file.
1554         * tests/test-spawn-pipe-script.c: New file.
1555         * modules/posix_spawn-tests (Files): Add
1556         tests/test-posix_spawn-script.c, tests/executable-script,
1557         tests/executable-shell-script.
1558         (Makefile.am): Compile and run test-posix_spawn-script.
1559         * modules/posix_spawnp-tests (Files): Add
1560         tests/test-posix_spawnp-script.c, tests/executable-script,
1561         tests/executable-shell-script.
1562         (Makefile.am): Compile and run test-posix_spawnp-script.
1563         * modules/execute-tests (Files): Add tests/test-execute-script.c,
1564         tests/executable-script, tests/executable-shell-script.
1565         (Makefile.am): Compile and run test-execute-script.
1566         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
1567         tests/executable-script, tests/executable-shell-script.
1568         (Makefile.am): Compile and run test-spawn-pipe-script.
1570 2020-12-23  Bruno Haible  <bruno@clisp.org>
1572         Don't execute scripts without '#!' marker through /bin/sh.
1573         This reflects the change done in glibc through
1574         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
1575         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
1576         * lib/spawni.c (internal_function): Remove macro.
1577         (script_execute): Remove function.
1578         (__spawni): Don't invoke script_execute.
1579         * lib/execute.c (execute): Disable the ENOEXEC handling.
1580         * lib/spawn-pipe.c (create_pipe): Likewise.
1581         * NEWS: Mention the change.
1583 2020-12-23  Bruno Haible  <bruno@clisp.org>
1585         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
1586         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
1587         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
1588         * lib/spawni.c (__spawni): Update function parameters.
1590 2020-12-23  Bruno Haible  <bruno@clisp.org>
1592         posix_spawn tests: Add two more tests.
1593         * tests/test-posix_spawn-inherit0.c: New file, based on
1594         tests/test-posix_spawn-open2.c.
1595         * tests/test-posix_spawn-inherit1.c: New file, based on
1596         tests/test-posix_spawn-open2.c.
1597         * modules/posix_spawn-tests (Files): Add them.
1598         (Depends-on): Add fflush.
1599         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
1600         test-posix_spawn-inherit1.
1602 2020-12-23  Bruno Haible  <bruno@clisp.org>
1604         posix_spawn tests: Add another test.
1605         * tests/test-posix_spawn-open2.c: New file, based on
1606         tests/test-posix_spawn-open1.c.
1607         * modules/posix_spawn-tests (Files): Add it.
1608         (Makefile.am): Compile and run test-posix_spawn-open1.
1610 2020-12-20  Bruno Haible  <bruno@clisp.org>
1612         Remove support for broken <wchar.h> in AIX 3.
1613         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
1615 2020-12-20  Bruno Haible  <bruno@clisp.org>
1617         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
1618         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
1619         * lib/mbchar.h: Likewise.
1620         * lib/mbiter.h: Likewise.
1621         * lib/mbuiter.h: Likewise.
1622         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
1623         * lib/mbfile.h: Don't include <time.h>.
1624         * lib/mbswidth.h: Update comment.
1625         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
1626         <wchar.h>.
1627         * lib/wctype.in.h: Likewise.
1628         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
1629         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
1630         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
1631         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
1632         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
1633         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
1634         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
1635         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
1636         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
1637         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
1638         AC_FUNC_MBRTOWC): Likewise.
1639         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
1640         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
1641         Likewise.
1642         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
1643         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1644         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
1646         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
1647         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1648         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
1649         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
1650         Likewise.
1651         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
1652         gl_WCSRTOMBS_NULL): Likewise.
1653         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
1654         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1655         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1657         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1658         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
1659         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
1660         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
1661         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
1662         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
1664 2020-12-20  Bruno Haible  <bruno@clisp.org>
1666         isnanf: Fix autoconf test.
1667         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
1669 2020-12-20  Bruno Haible  <bruno@clisp.org>
1671         Remove some of the support for obsolete IRIX 4 and 5.
1672         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
1673         libsun.
1674         * tests/init.sh (setup_): Don't talk about IRIX 5.
1676 2020-12-20  Bruno Haible  <bruno@clisp.org>
1678         filemode: Remove Cray support.
1679         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
1680         (filemodestring): Don't produce an 'M' type.
1681         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
1682         * m4/st_dm_mode.m4: Remove file.
1683         * modules/filemode (Files): Remove it.
1685 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1687         free-posix: assume glibc 2.33 fixes this.
1688         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
1689         Use compile-time test rather than guessing for cross-builds.
1691 2020-12-20  Bruno Haible  <bruno@clisp.org>
1693         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
1694         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
1695         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
1696         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
1698 2020-12-20  Bruno Haible  <bruno@clisp.org>
1700         float: Fix compilation error when gnulib's float.h exists twice.
1701         Reported by Santiago Vila <sanvila@unex.es>.
1702         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
1704 2020-12-19  Bruno Haible  <bruno@clisp.org>
1706         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
1707         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
1708         Don't trust _POSIX_VERSION for this test.
1710 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1712         free-posix: port to GNU/Linux
1713         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
1714         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
1715         other GNU/Linux hosts.
1717 2020-12-19  Bruno Haible  <bruno@clisp.org>
1719         free-posix: Add tests.
1720         * tests/test-free.c: New file.
1721         * tests/macros.h (ASSERT_NO_STDIO,
1722         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
1723         WRITE_TO_STDERR): New macros.
1724         * modules/free-posix-tests: New file.
1726 2020-12-18  Bruno Haible  <bruno@clisp.org>
1728         free-posix: Add C++ declaration test.
1729         * tests/test-stdlib-c++.cc (free): New declaration.
1731 2020-12-18  Bruno Haible  <bruno@clisp.org>
1733         free-posix: New module, renamed from 'free'.
1734         * modules/free-posix: Renamed from modules/free.
1735         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
1736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
1737         not GNULIB_FREE.
1738         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
1739         GNULIB_FREE.
1740         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
1741         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
1742         what it does.
1743         * NEWS: Mention that module 'free' no longer exists.
1744         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
1745         * modules/canonicalize-lgpl (Depends-on): Likewise.
1747 2020-12-18  Bruno Haible  <bruno@clisp.org>
1749         free: Remove support for obsolete platforms.
1750         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
1751         CANNOT_FREE_NULL.
1752         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
1753         * modules/free (Description): Update.
1754         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
1756 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1758         intprops: port to ICC 2021.1 Beta 20201112
1759         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
1760         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
1761         Add a clause for other compilers that claim to support
1762         __builtin_mul_overflow_p, since we might as well find out about
1763         slackers other than Clang and ICC.
1764         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
1765         like older GCCs even when it claims to be a newer one.
1767 2020-12-18  Bruno Haible  <bruno@clisp.org>
1769         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
1770         Reported by Stefan Liebler <stli@linux.ibm.com> in
1771         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
1772         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
1773         GCC 5.x and 6.x.
1774         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
1775         GCC 5.x and 6.x.
1777 2020-12-17  Bruno Haible  <bruno@clisp.org>
1779         free: Fix warning.
1780         Reported by Pádraig Brady <P@draigBrady.com> in
1781         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
1782         * lib/stdlib.in.h (free): New declaration.
1783         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
1784         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
1785         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
1786         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
1787         'free' as a macro here.
1788         * modules/free (Depends-on): Add stdlib.
1789         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
1791 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1793         canonicalize-lgpl: fix AIX test failures
1794         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
1795         Problem reported by Bruno Haible in:
1796         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
1797         * lib/canonicalize-lgpl.c: Include sys/stat.h.
1798         (__realpath): When testing a file name ending in '/', use stat
1799         rather than readlink, so that it does the right thing on AIX.
1800         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
1802         canonicalize: omit second readlink when not needed
1803         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1804         Omit second readlink when (can_exist != CAN_MISSING
1805         && startlen != 0 && !logical).  Simplify.
1807         canonicalize: remove arbitrary 8192-byte limit
1808         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
1809         like GNU Hurd that do not define the PATH_MAX macro, and similarly
1810         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
1811         using scratch buffers.  Lessen the number of differences between
1812         the two source files, to simplify this and future maintenance.
1813         * lib/canonicalize-lgpl.c (__realpath):
1814         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1815         Use scratch buffers instead of malloc and malloca.  This avoids
1816         the need for alloca, and avoids the need for malloc in most cases.
1817         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
1818         easier to compare, e.g., by sorting include files and by switching
1819         to the GNU convention of calling file names "file names", not
1820         "path names".  Include stdbool.h, scratch_buffer.h.
1821         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
1822         (malloca) [_LIBC]: Remove.
1823         [!_LIBC]: Do not include malloca.h.
1824         (get_path_max): New function, so that pathconf is called only in
1825         the rare and dubious case when when RESOLVED is not null and
1826         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
1827         file name, as we care about the longest file name starting from
1828         "/" (not from the input file name), and POSIX does not specify
1829         what pathconf does on a non-directory file anyway.  If PATH_MAX is
1830         not defined, do not worry about overriding a path_max of 0, and do
1831         not let path_max exceed IDX_MAX.
1832         (__realpath): Remove an assumption that file name components
1833         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
1834         the Hurd, presumably).
1835         When allocating the result, allocate it to just the right size;
1836         this costs nothing when the result is smaller than 1023 bytes,
1837         and for larger results it's probably worth the CPU to call realloc,
1838         as canonicalize.c already does.
1839         * lib/canonicalize.c: Include attribute.h.
1840         Do not include pathmax.h or xgetcwd.h.
1841         (PATH_MAX): Do not define, so file names longer than 8192 bytes
1842         work on platforms with no fixed limit.
1843         (canonicalize_filename_mode_stk): New function, with
1844         the content of the old canonicalize_filename_mode.
1845         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
1846         since the scratch buffers now do memory management for us.
1847         Use rawmemchr instead of adding strlen.
1848         Use mempcpy instead of mempcpy + size.
1849         Assume free preserves errno.
1850         (canonicalize_filename_mode): Use it.
1851         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
1852         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
1853         scratch_buffer, stdbool, xalloc-die.
1854         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
1855         malloca, realloc-posix.  Add scratch_buffer, stdbool.
1857         canonicalize-lgpl: simplify merge to glibc
1858         This patch lessens the differences between git glibc
1859         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
1860         The (perhaps wishful) goal is to make them identical.
1861         * lib/canonicalize-lgpl.c [!_LIBC]:
1862         Include <libc-config.h>, not config.h.
1863         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
1864         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
1865         Do not include alloca.h, since we use malloca now.
1866         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
1867         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
1868         freea so that the mainline code can be kept #ifdef free.
1869         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
1870         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
1871         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
1872         __eloop_threshold.  All uses of their definiens changed.
1873         (SIZE_MAX): Remove; no longer needed.
1874         (alloc_failed): Remove, and remove all instances.
1875         No need for alloc_failed now that free preserves errno.
1876         (__realpath): Default path_max to 1024 instead of 8192, as that’s
1877         the glibc tradition and is safer when the 2nd argument is null.
1878         Use __rawmemchr instead of strchr.
1879         Use __mempcpy where appropriate.
1880         Simplify test for overflow so that it does not need SIZE_MAX.
1881         Do not preserve errno around free or freea calls; no longer needed.
1882         Mark __realpath with libc_hidden_def.
1883         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
1884         malloc-posix, mempcpy, realloc-posix, rawmemchr.
1885         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
1887         free: preserve errno
1888         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
1889         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
1890         platforms that do not preserve errno.
1891         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
1892         Also, define CANNOT_FREE_NULL if free cannot free NULL.
1893         * modules/free (configure.ac): Also replace 'free' if
1894         it does not preserve errno.
1896         idx: simplify IDX_MAX, remove IDX_WIDTH
1897         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
1898         to UNSIGNED_IDX_T.
1899         (IDX_WIDTH): Remove, since it’s not used and its value
1900         arguably should be PTRDIFF_WIDTH anyway.
1902 2020-12-16  Bruno Haible  <bruno@clisp.org>
1904         posix_spawn_file_actions_addfchdir-tests: Rename test.
1905         * tests/test-posix_spawn-fchdir.c: Renamed from
1906         tests/test-posix_spawn5.c.
1907         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
1908         Update.
1910         posix_spawn_file_actions_addchdir-tests: Rename test.
1911         * tests/test-posix_spawn-chdir.c: Renamed from
1912         tests/test-posix_spawn4.c.
1913         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
1914         Update.
1916         posix_spawn-tests: Rename test.
1917         * tests/test-posix_spawn-open1.c: Renamed from
1918         tests/test-posix_spawn3.c.
1919         * modules/posix_spawn-tests (Files, Makefile.am): Update.
1921         posix_spawnp-tests: Rename test.
1922         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
1923         tests/test-posix_spawn2.c.
1924         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
1925         tests/test-posix_spawn2.in.sh.
1926         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1928         posix_spawnp-tests: Rename test.
1929         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
1930         tests/test-posix_spawn1.c.
1931         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
1932         tests/test-posix_spawn1.in.sh.
1933         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1935 2020-12-14  Bruno Haible  <bruno@clisp.org>
1937         findprog-in: Allow overriding the current directory.
1938         * lib/findprog.h (find_in_given_path): Add directory argument.
1939         * lib/findprog-in.c (find_in_given_path): Likewise.
1940         * lib/execute.c (execute): Update caller.
1941         * lib/spawn-pipe.c (create_pipe): Likewise.
1942         * lib/windows-spawn.c (spawnpvech): Likewise.
1943         * NEWS: Mention the change.
1945 2020-12-14  Bruno Haible  <bruno@clisp.org>
1947         posix_spawn-internal: Make better use of 'const'.
1948         * lib/spawn_int.h (__spawni): Does not need write access to the elements
1949         of argv and envp.
1950         * lib/spawni.c (__spawni, script_execute): Likewise.
1951         * lib/spawn.c (posix_spawn): Update caller.
1952         * lib/spawnp.c (posix_spawnp): Likewise.
1954 2020-12-14  Bruno Haible  <bruno@clisp.org>
1956         spawn: Make it compile on native Windows.
1957         * modules/spawn (Depends-on): Add signal-h.
1959 2020-12-14  Bruno Haible  <bruno@clisp.org>
1961         windows-spawn: Avoid shadowing a variable.
1962         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
1964 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1966         string: port memchr macro to AIX 7.2 XLC
1967         Its <string.h> defines a memchr macro to help inlining.
1968         * lib/string.in.h (memchr): #undef before #defining.
1970         canonicalize: fix AIX test failures
1971         Problem reported by Bruno Haible in:
1972         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
1973         * lib/canonicalize.c (canonicalize_filename_mode):
1974         When testing a file name ending in '/', use stat rather than
1975         readlink, so that it does the right thing on AIX.
1976         * modules/canonicalize (Depends-on): Add readlink, to pull in the
1977         recent changes in the Gnulib readlink module.
1979         Assume readlink/readlinkat ERANGE fix
1980         * lib/areadlink-with-size.c (areadlink_with_size):
1981         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
1982         * lib/careadlinkat.c (readlink_stk):
1983         Do not worry about readlink or readlinkat failing with errno == ERANGE,
1984         since the Gnulib readlink and readlinkat modules now fix that.
1986         getcwd: port to AIX
1987         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
1988         in case our sys/stat.h #defined a function macro with the same name.
1990         readlink, readlinkat: add ERANGE portability
1991         Fix some portability issues with Gnulib's readlink and readlinkat,
1992         notably mostly working around the ERANGE problem in AIX and HP-UX.
1993         * doc/posix-functions/readlink.texi:
1994         * doc/posix-functions/readlinkat.texi:
1995         ERANGE problem is mostly fixed now.  Mention AIX problem with
1996         trailing / and EINVAL.  Lessen differences between these two files.
1997         * lib/readlink.c (rpl_readlink):
1998         * lib/readlinkat.c (rpl_readlinkat):
1999         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
2000         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
2001         Lessen spurious differences between the readlink and readlinkat code.
2002         * lib/readlinkat.c (rpl_readlinkat):
2003         Fix bug where stat was used where fstatat was intended.
2004         * m4/readlink.m4 (gl_FUNC_READLINK):
2005         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
2006         to identify readlink problems more precisely.  All uses changed.
2007         Guess no on AIX or HP-UX for this variable.
2008         Add check for whether readlink truncates results,
2009         and define new macro READLINK_TRUCATE_BUG accordingly.
2010         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
2011         Also check gl_cv_func_readlink_trailing_slash when deciding
2012         whether to replace readlinkat.
2013         * modules/readlinkat (Depends-on): Most dependencies are also
2014         needed if replacing readlinkat.  fstatat is different, as it
2015         is needed only if replacing an existing readlinkat.
2017 2020-12-13  Bruno Haible  <bruno@clisp.org>
2019         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
2020         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
2021         the stdin_handle and/or stdout_handle.
2023 2020-12-12  Bruno Haible  <bruno@clisp.org>
2025         Fix gnulib-tool error when some modules occur in tests/.
2026         * doc/gnulib.texi (Specification): Update statistics.
2027         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
2028         (Using AC_LIBOBJ): New section.
2029         * check-AC_LIBOBJ: New file.
2030         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
2031         * modules/fopen-gnu (Files): Add lib/fopen.c.
2032         * modules/memmem (Files): Add lib/memmem.c.
2033         * modules/renameat (Files): Add lib/at-func2.c.
2034         * modules/strcasestr (Files): Add lib/strcasestr.c.
2035         * modules/strstr (Files): Add lib/strstr.c.
2037 2020-12-11  Bruno Haible  <bruno@clisp.org>
2039         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
2040         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
2041         elements of argv.
2042         * lib/sh-quote.c (shell_quote_argv): Likewise.
2043         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
2044         the return type.
2045         * lib/windows-spawn.c (prepare_spawn): Likewise.
2046         * lib/os2-spawn.h (prepare_spawn): Likewise.
2047         * lib/os2-spawn.c (prepare_spawn): Likewise.
2048         * lib/execute.h (execute): Does not need write access to the elements of
2049         prog_argv.
2050         * lib/execute.c (execute): Likewise.
2051         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
2052         Likewise.
2053         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
2054         create_pipe_out): Likewise.
2055         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
2056         Likewise.
2057         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
2058         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
2059         * lib/javaexec.h (execute_fn): Does not need write access to the
2060         elements of prog_argv.
2061         * lib/javaexec.c (execute_java_class): Update variable types and remove
2062         casts to 'char *'.
2063         * lib/csharpexec.h (execute_fn): Does not need write access to the
2064         elements of prog_argv.
2065         * lib/csharpexec.c (execute_csharp_using_mono,
2066         execute_csharp_using_sscli): Update variable types and remove casts to
2067         'char *'.
2068         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2069         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
2070         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
2071         is_jikes_present): Update variable types and remove casts to 'char *'.
2072         * lib/javaversion.c (execute_and_read_line): Does not need write access
2073         to the elements of prog_argv.
2074         * lib/csharpcomp.c (compile_csharp_using_mono,
2075         compile_csharp_using_sscli): Update variable types and remove casts to
2076         'char *'.
2077         * tests/test-sh-quote.c (main): Update variable types and remove casts
2078         to 'char *'.
2079         * tests/test-execute-main.c (main): Update variable types and remove
2080         casts to 'char *'.
2081         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
2082         remove casts to 'char *'.
2083         * NEWS: Mention the changes.
2085 2020-12-11  Bruno Haible  <bruno@clisp.org>
2087         execute-tests: Fix compilation error with MSVC.
2088         * tests/test-execute-child.c (is_device): With _fstat, use
2089         'struct _stat', not 'struct stat'.
2091 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2093         vararrays: just use 2.70
2094         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
2095         and later, since Autoconf 2.70 matches Gnulib now.
2097         sys_types: just use 2.70
2098         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
2099         Reindent to match Autoconf sources.
2100         Use Autoconf 2.70 as a prerequisite, not 2.69c.
2102         stdint: port to Autoconf 2.70
2103         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
2104         instead of assuming that AC_INCLUDES_DEFAULT does it.
2105         The old code relied on AC_INCLUDES_DEFAULT being called
2106         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
2107         but this does not occur in Autoconf 2.70.
2109         pid_t.m4: just use 2.70
2110         * m4/pid_t.m4 (AC_TYPE_PID_T):
2111         Use Autoconf 2.70 as a prerequisite, not 2.69c.
2113         largefile: just use 2.70
2114         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
2115         Use Autoconf 2.70 as a prerequisite, not 2.69c.
2117         AC_C_RESTRICT: update from Autoconf
2118         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
2119         as a prerequisite, not 2.69c, since 2.70 is now out.
2120         (AC_C_RESTRICT): Define only for 2.70 or earlier.
2121         Try __restrict__ before __restrict.
2123         extensions: update from Autoconf
2124         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
2125         Provide a default implementation for Autoconf 2.69 or earlier.
2126         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
2127         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
2129         alloca: update from Autoconf
2130         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
2131         Trivial update to match Autoconf 2.70.
2133 2020-12-11  Bruno Haible  <bruno@clisp.org>
2135         memchr: Work around memory overrun bug on AIX 7.2.
2136         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
2137         * doc/posix-functions/memchr.texi: Mention the AIX bug.
2139 2020-12-11  Bruno Haible  <bruno@clisp.org>
2141         execute-tests: Fix compilation error on AIX in 32-bit mode.
2142         * tests/test-execute-child.c: In order to get the original definition of
2143         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
2144         include the system's <sys/stat.h> and use it before including other
2145         header files.
2147 2020-12-10  Bruno Haible  <bruno@clisp.org>
2149         windows-spawn: Relicense under LGPLv2+.
2150         * modules/windows-spawn (License): Change to LGPLv2+.
2152 2020-12-10  Bruno Haible  <bruno@clisp.org>
2154         execute, spawn-pipe: Fix memory leak on native Windows.
2155         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
2156         * lib/windows-spawn.c: Don't include xalloc.h.
2157         (quoted_arg_length, quoted_arg_string): New functions, extracted from
2158         prepare_spawn.
2159         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
2160         elements of *new_argv together.
2161         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
2162         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
2163         * lib/os2-spawn.c: Don't include xalloc.h.
2164         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
2165         elements of *new_argv together.
2166         * lib/execute.c: Include xalloc.h.
2167         (execute): Check return value of prepare_spawn. Free the memory
2168         allocated by prepare_spawn.
2169         * modules/execute (Depends-on): Add xalloc-die.
2170         * lib/spawn-pipe.c: Include xalloc.h.
2171         (create_pipe): Check return value of prepare_spawn. Free the memory
2172         allocated by prepare_spawn.
2173         * modules/spawn-pipe (Depends-on): Add xalloc-die.
2175 2020-12-10  Bruno Haible  <bruno@clisp.org>
2177         findprog-in: Relicense under LGPLv2+.
2178         Paul Smith's approval is in
2179         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
2180         * modules/findprog-in (License): Change to LGPLv2+.
2182 2020-12-10  Bruno Haible  <bruno@clisp.org>
2184         findprog-in: Don't exit upon out-of-memory.
2185         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
2186         code.
2187         * lib/findprog-in.c: Don't include xalloc.h.
2188         (find_in_given_path): Call concatenated_filename, not
2189         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
2190         return NULL with errno set.
2191         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
2192         concat-filename, strdup-posix, malloc-posix.
2194 2020-12-09  Bruno Haible  <bruno@clisp.org>
2196         fmaf: Work around a bug on FreeBSD 12.2/arm.
2197         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
2198         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
2200 2020-12-09  Bruno Haible  <bruno@clisp.org>
2202         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
2203         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
2204         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
2205         * lib/glthread/threadlib.c: Include <errno.h>.
2206         (glthread_in_use): For FreeBSD, provide an alternative implementation
2207         that uses pthread_key_create.
2209 2020-12-09  Bruno Haible  <bruno@clisp.org>
2211         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
2212         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
2213         not 'isnan'.
2215 2020-12-08  Bruno Haible  <bruno@clisp.org>
2217         std-gnu11: Make compatible with Autoconf 2.70.
2218         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
2219         use.
2221 2020-12-08  Bruno Haible  <bruno@clisp.org>
2223         argp: Avoid undefined behaviour when invoking qsort().
2224         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
2225         Reported by Jeffrey Walton <noloader@gmail.com> in
2226         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
2227         * lib/argp-help.c (group_cmp): Remove third argument.
2228         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
2229         upon hol_cluster_cmp.
2230         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
2231         (hol_entry_cmp): Rewritten to implement a total order.
2233 2020-12-08  Bruno Haible  <bruno@clisp.org>
2235         argp: Improve comments.
2236         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
2237         null pointer.
2238         (struct hol_entry): Fix comment regarding sort order of group.
2239         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
2240         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
2241         (hol_cluster_is_child, argp_hol): Move functions.
2242         (HOL_ENTRY_PTRCMP): Remove unused macro.
2244 2020-12-08  Bruno Haible  <bruno@clisp.org>
2246         argp: Don't pass invalid arguments to isspace() and isalnum().
2247         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
2248         before passing it to isspace() or isalnum().
2250 2020-12-08  Bruno Haible  <bruno@clisp.org>
2252         argp: Don't rely on undefined behaviour of _tolower().
2253         Patch by Eric Blake
2254         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
2255         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
2256         not upper-case.  Pass correct range to tolower.
2258 2020-12-07  Bruno Haible  <bruno@clisp.org>
2260         unicodeio: Fix wrong result on FreeBSD.
2261         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2262         characters on all platforms.
2264 2020-12-07  Bruno Haible  <bruno@clisp.org>
2266         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
2267         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
2268         FreeBSD systems.
2270 2020-12-07  Bruno Haible  <bruno@clisp.org>
2272         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
2273         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
2274         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
2275         trivially of sbrk is not available.
2276         * doc/glibc-functions/sbrk.texi: Mention that the function does not
2277         exist in FreeBSD 12.2/arm64.
2278         * doc/glibc-functions/brk.texi: Likewise.
2280 2020-12-07  Bruno Haible  <bruno@clisp.org>
2282         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
2283         Suggested by Zack Weinberg in
2284         <https://savannah.gnu.org/support/?110294>.
2285         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
2286         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
2288 2020-12-07  Bruno Haible  <bruno@clisp.org>
2290         Tweak the Windows oldnames workaround.
2291         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
2292         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
2293         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
2294         always.
2295         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
2296         * lib/stdlib.in.h (putenv): Likewise.
2298 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
2300         doc: fix flat address space discussion
2301         * doc/gnulib-readme.texi (Other portability assumptions):
2302         Move the all-bits-zero assumption outside the flat address space
2303         section, since the two issues are independent.
2305         doc: document -static-libubsan more
2306         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
2307         -static-libubsan a bit more.  Mostly cons.
2309 2020-12-06  Bruno Haible  <bruno@clisp.org>
2311         doc: Add more details regarding the undefined behaviour sanitizer.
2312         * doc/gnulib-readme.texi (High Quality): Describe
2313         -fsanitize-undefined-trap-on-error better.
2315 2020-12-06  Bruno Haible  <bruno@clisp.org>
2317         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
2318         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
2319         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
2320         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
2321         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
2322         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
2323         a preprocessor #define.
2324         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
2325         * lib/search.in.h (lfind, lsearch): Likewise.
2326         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
2327         Likewise.
2328         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
2329         * lib/string.in.h (memccpy, strdup): Likewise.
2330         * lib/sys_stat.in.h (chmod, umask): Likewise.
2331         * lib/time.in.h (tzset): Likewise.
2332         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
2333         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
2334         read, rmdir, swab, unlink, write): Likewise.
2335         * lib/utime.in.h (utime): Likewise.
2336         * lib/wchar.in.h (wcsdup): Likewise.
2337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
2338         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
2339         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
2340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
2341         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
2342         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
2343         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
2344         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
2345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
2346         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
2347         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
2348         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
2349         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
2350         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
2352 2020-12-06  Bruno Haible  <bruno@clisp.org>
2354         doc: Mention some missing function declarations.
2355         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
2356         AIX.
2357         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
2358         FreeBSD.
2359         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
2360         Cygwin.
2361         * doc/pastposix-functions/fcvt.texi: Likewise.
2362         * doc/pastposix-functions/gcvt.texi: Likewise.
2364 2020-12-06  Bruno Haible  <bruno@clisp.org>
2366         doc: Tweak example.
2367         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
2368         'print'.
2370 2020-12-06  Bruno Haible  <bruno@clisp.org>
2372         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
2373         * tests/test-filenamecat.c: Include idx.h.
2374         (main): Mark prefixlen as nonnegative.
2375         * modules/filenamecat-tests (Depends-on): Add idx.
2377 2020-12-06  Bruno Haible  <bruno@clisp.org>
2379         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
2380         * lib/time_rz.c: Include idx.h.
2381         (save_abbr): Mark zone_size as nonnegative.
2382         * modules/time_rz (Depends-on): Add idx.
2384 2020-12-06  Bruno Haible  <bruno@clisp.org>
2386         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
2387         * lib/parse-datetime.y: Include idx.h.
2388         (textint): Mark digits as nonnegative.
2389         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
2390         dsts_seen, times_seen, zones_seen as nonnegative.
2391         (lookup_word): Mark wordlen as nonnegative.
2392         (yylex): Mark count as nonnegative.
2393         (parse_datetime2): Mark tzsize as nonnegative.
2394         * modules/parse-datetime (Depends-on): Add idx.
2396 2020-12-06  Bruno Haible  <bruno@clisp.org>
2398         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
2399         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
2400         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
2401         nonnegative.
2402         * modules/fnmatch (Depends-on): Add idx.
2404 2020-12-06  Bruno Haible  <bruno@clisp.org>
2406         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
2407         * lib/c-stack.c: Include idx.h.
2408         (die): Mark buflen as nonnegative.
2409         * modules/c-stack (Depends-on): Add idx.
2411 2020-12-06  Bruno Haible  <bruno@clisp.org>
2413         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
2414         * lib/backupfile.c: Include idx.h.
2415         (numbered_backup): Mark base_offset as nonnegative.
2416         (backupfile_internal): Likewise.
2417         * modules/backup-rename (Depends-on): Add idx.
2418         * modules/backupfile (Depends-on): Likewise.
2420 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2422         doc: fix curved quotes issue
2423         * doc/gnulib.texi: Set txicodequoteundirected and
2424         txicodequotebacktick so that ` and ' in examples do not generate
2425         curved single quotes that do the wrong thing when cut and pasted.
2427         doc: mention static and dynamic checking
2428         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
2429         for static and dynamic checking.
2431         intprops: Add INT_ADD_OK etc.
2432         * doc/intprops.texi (Checking Integer Overflow): New section.
2433         * lib/intprops.h: From a suggestion by Bruno Haible in:
2434         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
2435         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
2437         doc: move exotic platfroms to Target Platforms
2438         * doc/gnulib-intro.texi (Supported Platforms)
2439         (Formerly Supported Platforms, Unsupported Platforms):
2440         New subsections, split off from Target Platforms.
2441         (Unsupported Platforms): Move the exotic-platform stuff here ...
2442         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
2443         section.
2445         doc: mention intptr_t etc. and IBM i
2446         * doc/gnulib-readme.texi (Other portability assumptions):
2447         Mention intptr_t and uintptr_t, and that arithmetic on them
2448         works in the usual way.
2449         (Exotic platforms): New section, containing material from
2450         the old 'Integer Portability' section.  Also mention IBM i.
2451         * doc/intprops.texi (Wraparound Arithmetic):
2452         Say that the macros work on unsigned integers too.
2453         (Integer Portability): Remove.
2455 2020-12-04  Bruno Haible  <bruno@clisp.org>
2457         utime: Fix a test failure on macOS 10.13.
2458         Reported by Martin Storsjö <martin@martin.st> in
2459         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2460         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
2461         slashes on files.
2462         * lib/utime.c (utime): Add alternative implementation for Unix
2463         platforms.
2464         * modules/utime (Depends-on): Add stat.
2465         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
2466         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
2467         trailing-slash bug.
2468         * doc/posix-functions/open.texi: Likewise.
2469         * doc/posix-functions/stat.texi: Likewise.
2470         * doc/posix-functions/symlink.texi: Likewise.
2472 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2474         intprops: update doc and mention Unisys
2475         * doc/gnulib-readme.texi (Other portability assumptions):
2476         Also mention ptrdiff_t when talking about widths and overflow.
2477         * doc/intprops.texi (Integer Properties): Summarize new section.
2478         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
2479         evaluates its argument.
2480         (Integer Bounds): Fix typo.
2481         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
2482         Document that the _WRAPV macros now support pointers to unsigned
2483         integers.
2484         (Integer Range Overflow): Update SEI CERT citation.
2485         (Integer Portability): New subsection, which mentions
2486         the oddball Unisys platforms as non-Gnulib targets.
2488 2020-12-03  Bruno Haible  <bruno@clisp.org>
2490         idx: Clarify that idx_t always behaves like a signed type.
2491         Suggested by Paul Eggert in
2492         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
2493         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
2494         Don't test UNSIGNED_IDX_T.
2496 2020-12-03  Bruno Haible  <bruno@clisp.org>
2498         idx: New module.
2499         * lib/idx.h: New file.
2500         * modules/idx: New file.
2501         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
2502         ptrdiff_t.
2503         * lib/canonicalize.c: Likewise.
2504         * modules/canonicalize-lgpl (Depends-on): Add idx.
2505         * modules/canonicalize (Depends-on): Likewise.
2507 2020-12-03  Bruno Haible  <bruno@clisp.org>
2509         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
2510         Reported by Martin Storsjö <martin@martin.st> in
2511         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2512         * tests/test-fprintf-posix3.c: Skip the test on macOS.
2513         (main): Return a different exit code at each point. Allow 100 KB extra
2514         memory consumption.
2515         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
2516         doesn't work" diagnostic.
2518 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2520         canonicalize: refactor can_mode flag
2521         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
2522         (multiple_bits_set): ... this new static function.  Uses changed.
2523         (canonicalize_filename_mode): Refactor for clarity to avoid
2524         modifying the CAN_MODE argument.
2526         canonicalize: prefer signed integer types
2527         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
2528         (seen_triple, canonicalize_filename_mode): Prefer signed to
2529         unsigned types where either will do, as they avoid some glitches
2530         in comparisons and can trap on overflow when debugging.
2532         canonicalize: fix most of another EOVERFLOW issue
2533         * lib/canonicalize.c (canonicalize_filename_mode):
2534         Do not call stat if fewer than 20 symlinks have been traversed.
2535         This avoids EOVERFLOW failure in the common case where there
2536         are not that many symlinks, while continuing to catch loops
2537         (or fail due to EOVERFLOW) in the unusual case when there
2538         are many symlinks to traverse.
2540         canonicalize: do not assume symlinks have st_ino
2541         * lib/canonicalize.c (canonicalize_filename_mode):
2542         When checking for loops, use st_dev and st_ino from the parent
2543         directory not from the symlink, as pre-2017 POSIX says these
2544         members are not reliable for symlinks.  Couple this with START
2545         (the remaining file name to be resolved), not NAME (the whole file
2546         name with START as its suffix).
2547         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
2549         canonicalize: fix EOVERFLOW bug
2550         * lib/canonicalize.c (canonicalize_filename_mode):
2551         When testing whether a directory entry is a symbolic link, or a
2552         directory or other, do not use lstat or stat or
2553         areadlink_with_size.  Just use areadlink, as this suffices and it
2554         avoids the EOVERFLOW problem that lstat and stat have.
2555         * modules/canonicalize (Depends-on): Depend on areadlink instead
2556         of areadlink-with-size and stat.
2558         canonicalize-lgpl: fix EOVERFLOW bug
2559         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
2560         (__realpath): Do not use lstat.  Just use readlink, as this
2561         suffices and it avoids the EOVERFLOW problem that lstat has.
2562         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
2564 2020-12-02  Bruno Haible  <bruno@clisp.org>
2566         strsignal-tests: Fix test failure on macOS 10.13.
2567         Reported by Martin Storsjö <martin@martin.st> in
2568         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2569         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
2570         to be longer than the expected result.
2572 2020-12-02  Bruno Haible  <bruno@clisp.org>
2574         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
2575         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
2576         recursive self-include problem on FreeBSD 12.2 in C++ mode.
2578 2020-12-02  Bruno Haible  <bruno@clisp.org>
2580         spawn-pipe: Allow caller to specify directory for the subprocess.
2581         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
2582         Add directory argument.
2583         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
2584         (create_pipe): Add directory argument. If specified, resolve the program
2585         file name and make it absolute, first. Pass the directory to spawnpvech
2586         and posix_spawn_file_actions_addchdir.
2587         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
2588         argument.
2589         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
2590         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
2591         * tests/test-spawn-pipe-main.c (test_pipe): Update.
2592         * NEWS: Mention the change.
2593         * lib/csharpcomp.c (compile_csharp_using_mono,
2594         compile_csharp_using_sscli): Update.
2595         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
2596         is_gcj_43): Update.
2597         * lib/javaversion.c (execute_and_read_line): Update.
2598         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
2599         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
2601 2020-12-02  Bruno Haible  <bruno@clisp.org>
2603         execute: Allow caller to specify directory for the subprocess.
2604         * lib/execute.h (execute): Add directory argument.
2605         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
2606         (execute): Add directory argument. If specified, resolve the program
2607         file name and make it absolute, first. Pass the directory to spawnpvech
2608         and posix_spawn_file_actions_addchdir.
2609         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
2610         posix_spawn, posix_spawn_file_actions_addchdir.
2611         * tests/test-execute-main.c: Add test for passing a directory.
2612         * tests/test-execute-child.c: Likewise.
2613         * tests/test-execute.sh: Update.
2614         * modules/execute-tests (Depends-on): Add mkdir.
2615         * NEWS: Mention the change.
2616         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
2617         * lib/csharpexec.c (execute_csharp_using_mono,
2618         execute_csharp_using_sscli): Update.
2619         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2620         compile_using_javac, compile_using_jikes, is_javac_present,
2621         is_jikes_present): Update.
2622         * lib/javaexec.c (execute_java_class): Update.
2624 2020-12-01  Bruno Haible  <bruno@clisp.org>
2626         vma-iter: Add support for macOS11/arm64.
2627         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
2628         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
2629         and by Martin Storsjö <martin@martin.st> in
2630         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2631         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
2633 2020-12-01  Bruno Haible  <bruno@clisp.org>
2635         spawn-pipe: Fix handling of OS/2 kLIBC.
2636         Reported by KO Myung-Hun <komh78@gmail.com> in
2637         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
2638         * modules/spawn-pipe (configure.ac): Use the common idiom for
2639         recognizing the OS/2 operating system.
2641 2020-11-30  Bruno Haible  <bruno@clisp.org>
2643         execute: Fix uninitialized use of errno.
2644         * lib/execute.c (execute): Preserve errno across several system calls.
2646 2020-11-30  Bruno Haible  <bruno@clisp.org>
2648         access tests: Fix test failure on native Windows.
2649         * tests/test-access.c (main): Change permissions of f2 file before
2650         attempting to remove it.
2652 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
2654         faccessat: link with $(LIB_EACCESS)
2655         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
2656         module depends on euidaccess.
2658 2020-11-30  Bruno Haible  <bruno@clisp.org>
2660         execute, spawn-pipe: Make multithread-safe on native Windows.
2661         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
2662         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
2663         (spawnpvech): New declaration.
2664         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
2665         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
2666         (_): Remove macro.
2667         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
2668         undup_safer_noinherit): Remove functions.
2669         (spawnpvech): New function.
2670         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
2671         cloexec, dup2, error, gettext-h.
2672         * lib/execute.c: Include msvc-nothrow.h.
2673         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
2674         * lib/spawn-pipe.c: Include msvc-nothrow.h.
2675         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
2676         instead of _spawnvpe.
2677         * modules/execute (Depends-on): Add msvc-nothrow.
2678         * modules/spawn-pipe (Depends-on): Likewise.
2680 2020-11-30  Bruno Haible  <bruno@clisp.org>
2682         execute, spawn-pipe: Improve documentation.
2683         * lib/execute.h: Describe progname, prog_path, prog_argv.
2684         * lib/spawn-pipe.h: Likewise.
2686 2020-11-30  Bruno Haible  <bruno@clisp.org>
2688         execute tests: Add more tests.
2689         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
2690         inherited file descriptors >= 3.
2691         * tests/test-execute-child.c: Likewise.
2692         * tests/test-execute.sh: Update.
2694 2020-11-30  Bruno Haible  <bruno@clisp.org>
2696         havelib: Fix for non-ELF platforms (regression 2019-11-17).
2697         Reported by comex <comexk@gmail.com> in
2698         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
2699         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
2700         don't expect an ELF header.
2702 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2704         bitset: use integer_length in table implementation
2705         * lib/bitset/table.c (tbitset_list_reverse): Use
2706         BITSET_FOR_EACH_BIT_REVERSE.
2708 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2710         bitset: use integer_length in list implementation
2711         * lib/bitset/list.c (lbitset_list_reverse): Use
2712         BITSET_FOR_EACH_BIT_REVERSE.
2714 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2716         bitset: use integer_length in vector implementation
2717         * lib/bitset/array.c (vbitset_list_reverse): Use
2718         BITSET_FOR_EACH_BIT_REVERSE.
2720 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2722         bitset: use integer_length in array implementation
2723         * modules/bitset (Depends-on): Add integer_length_l.
2724         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
2725         * lib/bitset/array.c (abitset_list_reverse): Use it.
2727 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2729         bitset: style: use consistent names
2730         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
2731         and 'boffset' as 'bitoff', for consistency with the other
2732         implementations.
2733         * bitset/table.c (tbitset_list_reverse): Likewise.
2735 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2737         bitset: style: sort header
2738         * lib/bitset/base.h (bitset_ffs): Rename as...
2739         (bitset_ffs_): this.
2740         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
2742 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2744         bitset: tests: check BITSET_FOR_EACH_REVERSE
2745         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
2746         Check BITSET_FOR_EACH_REVERSE.
2748 2020-11-29  Bruno Haible  <bruno@clisp.org>
2750         spawn-pipe tests: Fix test failure with MSVC.
2751         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
2752         (gl_msvc_invalid_parameter_handler): New function.
2753         (main): Set a global invalid-parameter handler.
2754         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
2756 2020-11-29  Bruno Haible  <bruno@clisp.org>
2758         execute: Add tests.
2759         * tests/test-execute.sh: New file.
2760         * tests/test-execute-main.c: New file.
2761         * tests/test-execute-child.c: New file.
2762         * modules/execute-tests: New file.
2764 2020-11-29  Bruno Haible  <bruno@clisp.org>
2766         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
2767         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
2768         works.
2769         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
2770         fallback implementation as on Haiku.
2771         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
2772         effective.
2773         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
2775 2020-11-29  Bruno Haible  <bruno@clisp.org>
2777         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
2778         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
2779         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
2780         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
2781         * lib/windows-spawn.c: Remove modifications for kLIBC.
2782         * modules/spawn-pipe (Files): Add the new files.
2783         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
2785 2020-11-28  Bruno Haible  <bruno@clisp.org>
2787         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
2788         Reported by Paul Eggert in
2789         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
2790         * m4/sparcv8+.m4: New file.
2791         * modules/sparcv8+: New file.
2792         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
2794 2020-11-28  Bruno Haible  <bruno@clisp.org>
2796         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
2797         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
2799 2020-11-28  Bruno Haible  <bruno@clisp.org>
2801         windows-spawn: New module.
2802         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
2803         implementations.
2804         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
2805         * modules/windows-spawn: New file.
2806         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
2807         * lib/spawn-pipe.c: Likewise.
2808         * modules/execute (Files): Remove lib/w32spawn.h.
2809         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2810         xalloc.
2811         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2812         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
2813         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2814         xalloc.
2815         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2817 2020-11-27  Bruno Haible  <bruno@clisp.org>
2819         ssfmalloc tests: Port to macOS 11.
2820         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
2822 2020-11-26  Bruno Haible  <bruno@clisp.org>
2824         Fix dependencies of modules that use '_exit' on native Windows.
2825         Reported by Jim Meyering in
2826         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
2827         * modules/_Exit (Depends-on): Add unistd.
2828         * modules/closein (Depends-on): Likewise.
2829         * modules/closeout (Depends-on): Likewise.
2830         * modules/forkpty (Depends-on): Likewise.
2831         * modules/posix_spawn-internal (Depends-on): Likewise.
2832         * modules/savewd (Depends-on): Likewise.
2833         * modules/stat-time-tests (Depends-on): Likewise.
2835 2020-11-26  Bruno Haible  <bruno@clisp.org>
2837         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
2838         * modules/raise-tests (Depends-on): Add unistd.
2839         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
2841 2020-11-25  Jim Meyering  <meyering@fb.com>
2843         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
2844         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
2845         non-NULL, since we don't bother handing strdup failure.
2847         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
2848         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
2849         * tests/test-raise.c: Include unistd.h.
2850         (handler): Use _exit, not exit.
2852 2020-11-23  Bruno Haible  <bruno@clisp.org>
2854         Use the correct printf format attribute for mingw.
2855         Reported by Reuben Thomas <rrt@sc3d.org> in
2856         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
2858         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
2859         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
2861         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
2862         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
2863         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2864         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
2865         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
2866         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
2868         * modules/vasnprintf (Depends-on): Add stdio.
2869         * lib/vasnprintf.h: Include <stdio.h>.
2870         (asnprintf, vasnprintf): Use the standard printf format attribute.
2872         * modules/xvasprintf (Depends-on): Add stdio.
2873         * lib/xvasprintf.h: Include <stdio.h>.
2874         (xasprintf, xvasprintf): Use the standard printf format attribute.
2876         * modules/xprintf (Depends-on): List stdio first.
2877         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
2878         depends on GNULIB_VPRINTF_POSIX.
2879         (xfprintf, xvfprintf): Use a printf format attribute that depends on
2880         GNULIB_VFPRINTF_POSIX.
2882         * modules/c-vasnprintf (Depends-on): Add stdio.
2883         * lib/c-vasnprintf.h: Include <stdio.h>.
2884         (c_vasnprintf): Use the standard printf format attribute.
2886         * modules/c-vasprintf (Depends-on): Add stdio.
2887         * lib/c-vasprintf.h: Include <stdio.h>.
2888         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
2890         * modules/c-vsnprintf (Depends-on): Add stdio.
2891         * lib/c-vsnprintf.h: Include <stdio.h>.
2892         (c_vsnprintf): Use the standard printf format attribute.
2894         * modules/c-snprintf (Depends-on): Add stdio.
2895         * lib/c-snprintf.h: Include <stdio.h>.
2896         (c_snprintf): Use the standard printf format attribute.
2898         * modules/c-xvasprintf (Depends-on): Add stdio.
2899         * lib/c-xvasprintf.h: Include <stdio.h>.
2900         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
2902         * modules/error (Depends-on): Depend on stdio always.
2903         * lib/error.h: Include <stdio.h>.
2904         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
2905         (error, error_at_line): Use a printf format attribute that depends on
2906         GNULIB_VFPRINTF_POSIX.
2907         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2908         _GL_ATTRIBUTE_FORMAT_PRINTF.
2910         * modules/verror (Depends-on): Add stdio.
2911         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
2912         (verror, verror_at_line): Use the standard printf format attribute.
2913         * lib/verror.c: Include "error.h".
2915         * modules/argp (Depends-on): Add stdio.
2916         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
2917         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
2919         * modules/libtextstyle-optional (Depends-on): Add stdio.
2920         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
2921         printf format attribute.
2923         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
2924         format attribute.
2926 2020-11-23  Pádraig Brady  <P@draigBrady.com>
2928         selinux-at, selinux-h: use const correct declarations
2929         * lib/se-selinux.in.h: Use const for "set" functions,
2930         to match current selinux, and support cleaner user code.
2931         * lib/selinux-at.c: Likewise.
2932         * lib/selinux-at.h: Likewise.
2934 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2936         canonicalize-lgpl: fix memory leak
2937         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
2938         which could have occurred if BUF was so large that malloc was
2939         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
2940         this eliminates the need to free BUF separately.
2942 2020-11-22  Bruno Haible  <bruno@clisp.org>
2944         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
2945         * modules/xvasprintf (Depends-on): Add xalloc.
2946         * modules/pipe-filter-gi (Depends-on): Likewise.
2947         * modules/execute (Depends-on): Likewise, for w32spawn.h.
2948         * modules/spawn-pipe (Depends-on): Likewise.
2950 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
2952         bootstrap: add option hooks
2953         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
2954         (bootstrap_option_hook): Likewise.
2955         (usage): Call bootstrap_print_option_usage_hook.
2957 2020-11-22  Bruno Haible  <bruno@clisp.org>
2959         argp: Don't break getprogname on non-glibc systems.
2960         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
2961         program_invocation_name and program_invocation_short_name.
2963 2020-11-22  Bruno Haible  <bruno@clisp.org>
2965         doc: Document <link.h>.
2966         * doc/glibc-headers/link.texi: New file.
2967         * doc/gnulib.texi: Include it.
2969 2020-11-22  Bruno Haible  <bruno@clisp.org>
2971         doc: Add references to the LSB.
2972         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
2973         * doc/posix-functions/*.texi: Likewise.
2975 2020-11-22  Bruno Haible  <bruno@clisp.org>
2977         doc: Fix a makeinfo warning (regression 2020-11-03).
2978         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
2980 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
2982         parse-datetime: fix printf format typo
2983         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
2984         previous patch to this file.  Problem reported by Chris Elvidge in
2985         <https://bugs.gnu.org/44763#32>.
2987         setlocale-null-tests: work around GCC bug 44511
2988         * tests/test-setlocale_null-mt-all.c:
2989         * tests/test-setlocale_null-mt-one.c:
2990         Ignore -Wreturn-type, to work around GCC bug 44511.
2992         nl_langinfo-tests: work around GCC bug 44511
2993         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
2994         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
2995         Problem reported for GNU grep by Andreas Schwab
2996         <https://bugs.gnu.org/44535>.
2998         selinux-h: add stubs for selabel_open etc.
2999         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
3000         because matchpathcon is deprecated in favor of selabel_open etc.,
3001         so this patch adds stubs for these functions.
3002         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
3003         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
3004         as it is needed for selabel_open and selinux/selinux.h declares
3005         this type here.
3006         * modules/selinux-h (Files): Add the new files.
3007         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
3008         (lib_SOURCES): Add se-label.in.h, se-label.c.
3009         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
3010         (selinux/label.h): New rule, mimicking selinux/context.h.
3011         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
3012         (Include): Add selinux/label.h.
3014 2020-11-21  Bruno Haible  <bruno@clisp.org>
3016         Update after 'test-driver' in Automake changed.
3017         * build-aux/test-driver.diff: Rebase.
3019 2020-11-21  Daiki Ueno  <ueno@gnu.org>
3021         read-file: remove dead assignment
3022         * lib/read-file.c (fread_file): Remove dead assignment when
3023         RF_SENSITIVE is set, flagged by clang-analyzer.
3025 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3027         bitset: tests: exercise the stats too
3029         * tests/test-bitset.c: Display the stats at the end of the test.
3030         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
3031         last bin, display "256-..." rather that "256-511", since the last bin
3032         does count item greater than or equal to 256.
3034 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3036         bitset: tests: try harder to break it
3037         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
3038         BITSET_LIST_SIZE.
3039         (main): Likewise.
3040         While at it, also exercise super small bitsets.
3042 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3044         bitset: use ffs where possible in the vector implementation
3045         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
3047 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3049         bitset: use ffs where possible in the table implementation
3050         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
3052 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3054         bitset: check empty and full bitsets
3055         * tests/test-bitset.c (check_zero, check_ones): New.
3056         (check_attributes): Use them.
3058 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3060         bitset: be sure to always return a value
3061         * lib/bitset/array.c (abitset_small_list): Always update *next and
3062         return a value.
3064 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3066         vcs-to-changelog: Expect spaces in file names
3067         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
3068         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
3069         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
3070         tabs to spaces.
3071         (list_changes): Use tabs to identify file names.
3073 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3075         bitset: strengthen tests
3076         * tests/test-bitset.c (compare): Also check count.
3077         Deal only with random values, move the one-bit tests to...
3078         (check_one_bit): this new function.
3079         (check_attributes): Call it.
3081 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3083         bitset: fix iteration over table bitsets
3084         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
3086 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3088         bitset: rename internal details for consistency
3089         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
3091 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3093         bitset: test: run deterministic tests on several bitset sizes
3094         * tests/test-bitset.c (check_attributes): Run it with small and large
3095         sizes.
3097 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3099         bitset: use ffs where possible in the list implementation
3100         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
3102 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3104         bitset: use ffs where possible in array implementation
3105         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
3107 2020-11-17  Bruno Haible  <bruno@clisp.org>
3109         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
3110         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
3111         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
3112         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
3113         C++ mode.
3115 2020-11-17  Bruno Haible  <bruno@clisp.org>
3117         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
3118         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
3119         is always declared.
3120         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
3121         declared.
3123 2020-11-17  Bruno Haible  <bruno@clisp.org>
3125         Fix link errors on AIX.
3126         * modules/clean-temp (Link): Link with $(LIBTHREAD).
3127         * modules/getumask (Link): Link with $(LIBTHREAD).
3128         * modules/getumask-tests (Makefile.am): Link test-getumask with
3129         $(LIBTHREAD).
3130         * modules/supersede (Link): Link with $(LIBTHREAD).
3131         * modules/supersede-tests (Makefile.am): Link test-supersede with
3132         $(LIBTHREAD).
3133         * modules/fatal-signal (Link): New section.
3134         * modules/execute (Link): New section.
3135         * modules/csharpexec (Link): Link with $(LIBTHREAD).
3136         * modules/javaexec (Link): Link with $(LIBTHREAD).
3137         * modules/spawn-pipe (Link): New section.
3138         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
3139         $(LIBTHREAD).
3140         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
3141         * modules/javacomp (Link): Link with $(LIBTHREAD).
3142         * modules/javaversion (Link): Link with $(LIBTHREAD).
3143         * modules/pipe-filter-gi (Link): New section.
3144         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
3145         test-pipe-filter-gi2-main with $(LIBTHREAD).
3146         * modules/pipe-filter-ii (Link): New section.
3147         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
3148         test-pipe-filter-ii2-main with $(LIBTHREAD).
3149         * modules/term-style-control (Link): New section.
3150         * modules/term-style-control-tests (Makefile.am): Link
3151         test-term-style-control-hello, test-term-style-control-yes with
3152         $(LIBTHREAD).
3153         * modules/wait-process (Link): New section.
3154         * modules/nonblocking-pipe-tests (Makefile.am): Link
3155         test-nonblocking-pipe-main with $(LIBTHREAD).
3156         * modules/nonblocking-socket-tests (Makefile.am): Link
3157         test-nonblocking-socket-main with $(LIBTHREAD).
3159 2020-11-16  Bruno Haible  <bruno@clisp.org>
3161         Fix link errors on platforms with libunistring.
3162         * modules/c32isalnum (Link): New section.
3163         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
3164         $(LIBUNISTRING).
3165         * modules/c32isalpha (Link): New section.
3166         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
3167         $(LIBUNISTRING).
3168         * modules/c32isblank (Link): New section.
3169         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
3170         $(LIBUNISTRING).
3171         * modules/c32iscntrl (Link): New section.
3172         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
3173         $(LIBUNISTRING).
3174         * modules/c32isdigit (Link): New section.
3175         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
3176         $(LIBUNISTRING).
3177         * modules/c32isgraph (Link): New section.
3178         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
3179         $(LIBUNISTRING).
3180         * modules/c32islower (Link): New section.
3181         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
3182         $(LIBUNISTRING).
3183         * modules/c32isprint (Link): New section.
3184         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
3185         $(LIBUNISTRING).
3186         * modules/c32ispunct (Link): New section.
3187         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
3188         $(LIBUNISTRING).
3189         * modules/c32isspace (Link): New section.
3190         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
3191         $(LIBUNISTRING).
3192         * modules/c32isupper (Link): New section.
3193         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
3194         $(LIBUNISTRING).
3195         * modules/c32isxdigit (Link): New section.
3196         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
3197         $(LIBUNISTRING).
3198         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
3199         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
3200         $(LIBUNISTRING).
3202 2020-11-16  Bruno Haible  <bruno@clisp.org>
3204         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
3205         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
3206         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
3207         * modules/getumask-tests (Makefile.am): Link test-getumask with
3208         $(LIBINTL).
3209         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
3210         * modules/supersede-tests (Makefile.am): Link test-supersede with
3211         $(LIBINTL).
3212         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
3213         $(LIBINTL).
3215 2020-11-16  Bruno Haible  <bruno@clisp.org>
3217         getumask: Document link dependencies.
3218         * modules/getumask (Link): New section.
3220 2020-11-16  Bruno Haible  <bruno@clisp.org>
3222         Update link dependencies in modules after 2020-09-09 change.
3223         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
3224         * modules/mkdtemp (Link): Likewise.
3225         * modules/mkostemp (Link): Likewise.
3226         * modules/mkostemps (Link): Likewise.
3227         * modules/mkstemp (Link): Likewise.
3228         * modules/mkstemps (Link): Likewise.
3229         * modules/supersede (Link): Likewise.
3230         * modules/tmpfile (Link): Likewise.
3231         * modules/tmpfile-safer (Link): Likewise.
3233 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3235         getumask-tests: port to Solaris 10 etc.
3236         Problem reported by Tom Christensen in:
3237         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
3238         * modules/getumask-tests (test_getumask_LDADD):
3239         Add $(LIB_CLOCK_GETTIME).
3241 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3243         bitset: use ffsl to accelerate iterations over set bits
3244         Suggested by Bruno Haible.
3245         * modules/bitset: Depend upon ffsl.
3246         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
3247         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
3249 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3251         bitset: more tests
3252         * tests/test-bitset.c (compare): Make it clear that the random values
3253         should not be modified.
3254         Check bitset_first, bitset_last and BITSET_FOR_EACH.
3256 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3258         bitset: fix the copy from lbitset to other types
3259         * lib/bitset/list.c (lbitset_copy): Rename as...
3260         (lbitset_copy_): this.
3261         (lbitset_copy): New.
3262         Dispatch to heterogeneous/homogeneous copy.
3264 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3266         bitset: making debug traces more useful
3267         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
3269         bitset: comment changes
3270         * lib/bitset.c: Move some documenting comments to...
3271         * lib/bitset.h: here.
3272         * lib/bitset/array.c: Fix some comments.
3274 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
3276         careadlinkat: warn better about GCC bug 93644
3277         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
3278         not in effect, use "#warning" to let builders know more clearly
3279         about GCC bug 93644, because the bug triggers even if no -W option
3280         is given to GCC.
3282 2020-11-13  Jim Meyering  <meyering@fb.com>
3284         hard-locale-tests: avoid a -Wstrict-prototypes warning
3285         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
3286         changing "main ()" to "main (void)". This was the only case that
3287         triggered a warning when building grep with --enable-gcc-warnings.
3289 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3291         time_rz: simplify CVE-2017-7476 fix
3292         * lib/time_rz.c: Do not include limits.h; I think it was included
3293         under the mistaken impression that limits.h defines SIZE_MAX.
3294         (SIZE_MAX): Remove.
3295         (save_abbr): Put string length into a ptrdiff_t variable,
3296         so that the size comparison works naturally.  This
3297         fixes CVE-2017-7476 in a cleaner way.
3299         parse-datetime: streamline overflow checking
3300         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
3301         did not work for unsigned destinations, and since time_t might
3302         be unsigned that meant it did not work for time_t destinations.
3303         This limitation of INT_ADD_WRAPV has been fixed, so we can
3304         now streamline parse-datetime.y a bit.
3305         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
3306         has not been used for a while.
3307         (yylex, parse_datetime2): Assume C99 declarations after statements.
3308         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
3309         to TYPE_MINIMUM.
3310         (parse_datetime2): No need for time_overflow now that
3311         INT_ADD_WRAPV works for unsigned results.
3313         parse-datetime-tests: port to Alpine Linux 3.12.1
3314         * tests/test-parse-datetime.c: Include errno.h for errno,
3315         and unistd.h for _SC_TZNAME_MAX and sysconf.
3316         (main): In the outlandishly-long time zone abbreviation test,
3317         do not exceed TZNAME_MAX as this has undefined behavior,
3318         and on Alpine Linux 3.12.1 it makes the test fail.
3320 2020-11-09  Pádraig Brady  <P@draigBrady.com>
3322         mgetgroups: avoid warning with clang
3323         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
3324         so disable -Wpointer-sign for all clang versions.
3326 2020-11-07  Bruno Haible  <bruno@clisp.org>
3328         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
3329         Reported by Simon Josefsson in
3330         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
3331         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
3332         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
3333         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3335 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3337         tests: pacify Sun C 5.9
3338         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
3339         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
3340         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
3341         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
3342         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
3343         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
3344         Remove unreachable ‘return NULL;’s.
3346         tests: port better to XLC 12.01
3347         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
3348         even in code that is not executed, as IBM XLC 12.01 complains "The
3349         subscript -1 is less than zero."
3350         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
3351         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
3352         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
3353         arguments than are required by the macro definition."
3355 2020-11-03  Bruno Haible  <bruno@clisp.org>
3357         aligned-malloc: Use fixes from the new modules.
3358         * modules/aligned-malloc (Depends-on): Add posix_memalign,
3359         aligned_alloc, memalign.
3360         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
3362 2020-11-03  Bruno Haible  <bruno@clisp.org>
3364         aligned_alloc: Add tests.
3365         * tests/test-aligned_alloc.c: New file.
3366         * modules/aligned_alloc-tests: New file.
3368         aligned_alloc: New module.
3369         * lib/stdlib.in.h (aligned_alloc): New declaration.
3370         * lib/aligned_alloc.c: New file.
3371         * m4/aligned_alloc.m4: New file.
3372         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
3373         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
3374         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
3375         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
3376         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
3377         * modules/aligned_alloc: New file.
3378         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
3379         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
3380         AIX bug.
3382 2020-11-03  Bruno Haible  <bruno@clisp.org>
3384         posix_memalign: Add tests.
3385         * tests/test-posix_memalign.c: New file.
3386         * modules/posix_memalign-tests: New file.
3388         posix_memalign: New module.
3389         * lib/stdlib.in.h (posix_memalign): New declaration.
3390         * lib/posix_memalign.c: New file.
3391         * m4/posix_memalign.m4: New file.
3392         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
3393         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
3394         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
3395         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
3396         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
3397         * modules/posix_memalign: New file.
3398         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
3399         * doc/posix-functions/posix_memalign.texi: Mention the new module and
3400         the OpenBSD bug.
3402 2020-11-03  Bruno Haible  <bruno@clisp.org>
3404         memalign: Add tests.
3405         * tests/test-memalign.c: New file.
3406         * modules/memalign-tests: New file.
3408         memalign: New module.
3409         * modules/memalign: New file.
3410         * doc/glibc-functions/memalign.texi: Mention the new module.
3412 2020-11-03  Bruno Haible  <bruno@clisp.org>
3414         verify tests: Fix crash with GCC (regression 2020-11-02).
3415         * tests/test-verify.c (main): Fix initializer of s.
3417 2020-11-03  Pádraig Brady  <P@draigBrady.com>
3419         mountlist: recognize more file system types as remote
3421         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
3422         "remote" file systems from stat.c in coreutils.
3424 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
3426         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
3427         * tests/test-verify.c (main): Initialize state variable.
3428         Reported by Bruno Haible for GCC 5.4.0.
3430 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
3432         dfa.h: support inclusion from C++
3433         * lib/dfa.h: Allow multiple inclusion, and inclusion from
3434         C++ code.  The latter was suggested by Arnold Robbins.
3436 2020-11-01  Bruno Haible  <bruno@clisp.org>
3438         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
3439         * tests/test-ssfmalloc.c: Include <limits.h>.
3440         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
3442 2020-11-01  Bruno Haible  <bruno@clisp.org>
3444         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
3445         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
3447 2020-11-01  Jim Meyering  <meyering@fb.com>
3449         dfa-tests: test for today's invalid-merge fix
3450         * tests/test-dfa-invalid-merge.sh: New file.
3451         * modules/dfa-tests (Files): Add it.
3452         (TESTS): Add it.
3454 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3456         dfa: retain sequences of similar nodes in optimization
3457         DFA was merging similar nodes when it should not.  For example,
3458         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
3459         is not merged.  Problem reported by Gonzalo Padrino in
3460         https://bugs.gnu.org/44351
3461         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
3462         optimization.
3464 2020-11-01  Jim Meyering  <meyering@fb.com>
3466         test-dfa-match-aux.c: accept EREs, not BREs
3467         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
3468         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
3470 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
3472         verify tests: avoid -Wmissing-declarations warnings
3473         * tests/test-verify.c (test_assume_expressions): Add declaration.
3474         (test_assume_optimization): Likewise.
3475         (test_assume_noreturn): Likewise.
3476         (main): Move down after all other definitions.  While at it, also
3477         call test_assume_expressions and test_assume_optimization as a
3478         runtime check.
3480 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3482         sys_stat: update comments for S_IRWXUGO, S_IXUGO
3483         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
3484         Perhaps these macros should be removed, as they’re not in either
3485         POSIX or GNU.  They could be moved to stat-macros.h, which would
3486         be cleaner in some sense.
3488 2020-10-25  Bruno Haible  <bruno@clisp.org>
3490         ssfmalloc tests: Small tweaks.
3491         * tests/test-ssfmalloc.c: Add comments.
3492         (alloc_pages): Don't require PROT_EXEC bits.
3493         (block_sizes): Add more small sizes, for better coverage of
3494         ssfmalloc-bitmap.h.
3496         ssfmalloc tests: Portability to Minix.
3497         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
3498         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
3499         * m4/mmap-anon.m4: Update comment.
3501         ssfmalloc: Portability to AIX.
3502         * modules/ssfmalloc (Include): Add ssfmalloc.h.
3503         (Link): New section.
3504         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
3505         $(LIBTHREAD).
3507         ssfmalloc: Portability to Cygwin.
3508         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
3509         (pg_offset_t): Define depending on PAGESIZE_MAX.
3510         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
3511         (PAGESIZE_MAX): New macro.
3513         ssfmalloc: Fix buffer overrun in bitmap search.
3514         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
3515         word *words_end.
3517 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3519         doc: mention ‘restrict’ and C++
3520         * doc/gnulib-readme.texi (C99 features assumed): Document
3521         that ‘restrict’ should be avoided in C++ code.
3523 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
3525         selinux-at, selinux-h: port to SELinux 3.1
3526         The new release finally deprecated the typedef 'security_context_t',
3527         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
3528         Use the simpler 'char *' instead.
3529         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
3530         (lgetfilecon): Likewise.
3531         (fgetfilecon): Likewise.
3532         (map_to_failure): Likewise.
3533         (rpl_getfilecon): Likewise.
3534         (rpl_lgetfilecon): Likewise.
3535         (rpl_fgetfilecon): Likewise.
3536         * lib/se-selinux.in.h (security_context_t): Remove typedef.
3537         (getcon): Adjust type of context parameter.
3538         (freecon): Likewise.
3539         (getfscreatecon): Likewise.
3540         (setfscreatecon): Likewise.
3541         (matchpathcon): Likewise.
3542         (getfilecon): Likewise.
3543         (lgetfilecon): Likewise.
3544         (fgetfilecon): Likewise.
3545         (setfilecon): Likewise.
3546         (lsetfilecon): Likewise.
3547         (fsetfilecon): Likewise.
3548         (security_check_context): Likewise.
3549         (security_check_context_raw): Likewise.
3550         (setexeccon): Likewise.
3551         (security_compute_create): Likewise.
3552         * lib/selinux-at.c (getfileconat): Likewise.
3553         (lgetfileconat): Likewise.
3554         (setfileconat): Likewise.
3555         (lsetfileconat): Likewise.
3556         * lib/selinux-at.h: Likewise.
3558 2020-10-19  Bruno Haible  <bruno@clisp.org>
3560         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
3561         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
3562         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
3563         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
3564         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
3565         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
3566         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
3568 2020-10-18  Bruno Haible  <bruno@clisp.org>
3570         ssfmalloc: Add tests.
3571         * tests/test-ssfmalloc.c: New file.
3572         * modules/ssfmalloc-tests: New file.
3574         ssfmalloc: New module.
3575         * lib/ssfmalloc.h: New file.
3576         * lib/ssfmalloc-bitmap.h: New file.
3577         * modules/ssfmalloc: New file.
3579 2020-10-18  Bruno Haible  <bruno@clisp.org>
3581         wchar: Fix configure test result on some versions of AIX.
3582         Reported by Clément Chigot <clement.chigot@atos.net> in
3583         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
3584         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
3585         systems.
3587 2020-10-18  Bruno Haible  <bruno@clisp.org>
3589         time: Fix warning about asctime when asctime is not used.
3590         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
3591         invocation.
3593 2020-10-18  Bruno Haible  <bruno@clisp.org>
3595         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
3596         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
3597         '_GL_ATTRIBUTE_CONST'.
3598         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
3599         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
3600         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
3601         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
3602         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
3603         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
3604         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
3606 2020-10-18  Bruno Haible  <bruno@clisp.org>
3608         obstack: Fix a clang warning.
3609         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
3611 2020-10-16  Bruno Haible  <bruno@clisp.org>
3613         hash: Rename hash_delete to hash_remove.
3614         * lib/hash.h (hash_remove): Renamed from hash_delete.
3615         (hash_delete): New declaration.
3616         * lib/hash.c (hash_remove): Renamed from hash_delete.
3617         (hash_delete): New function.
3618         * tests/test-hash.c (main): Update.
3619         * lib/fts-cycle.c (leave_dir): Likewise.
3620         * NEWS: Mention the change.
3622 2020-10-16  Bruno Haible  <bruno@clisp.org>
3624         hash, xhash: Make usable from C++.
3625         * lib/hash.h: Add extern "C".
3627 2020-10-16  Bruno Haible  <bruno@clisp.org>
3629         hash, xhash: Move comments to the .h file.
3630         * lib/hash.c: Move comments meant for the user from here...
3631         * lib/xhash.c: ... and here...
3632         * lib/hash.h: ... to here.
3634 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
3636         Don't declare an intention to modify the return value of strerror.
3637         * tests/test-perror2.c (main): Assign the return value of strerror to a
3638         'const char *' variable.
3640 2020-10-11  Bruno Haible  <bruno@clisp.org>
3642         *printf: Avoid "expanded before it was required" warning.
3643         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
3644         AC_DEFUN_ONCE.
3646 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
3648         getprogname: Add support for OpenServer 6 and UnixWare 7.
3649         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
3650         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
3652 2020-10-11  Bruno Haible  <bruno@clisp.org>
3654         tests: Avoid a name clash on UnixWare.
3655         Reported by Tim Rice <tim@multitalents.net> in
3656         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
3657         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
3659 2020-10-11  Bruno Haible  <bruno@clisp.org>
3661         stdioext: Update comments regarding UnixWare.
3662         Reported by Tim Rice <tim@multitalents.net> in
3663         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3664         * lib/fbufmode.c: Update comments.
3665         * lib/fflush.c: Likewise.
3666         * lib/fpending.c: Likewise.
3667         * lib/fpurge.c: Likewise.
3668         * lib/freadable.h: Likewise.
3669         * lib/freadable.c: Likewise.
3670         * lib/freadahead.c: Likewise.
3671         * lib/freading.h: Likewise.
3672         * lib/freading.c: Likewise.
3673         * lib/freadptr.c: Likewise.
3674         * lib/freadseek.c: Likewise.
3675         * lib/fseeko.c: Likewise.
3676         * lib/fseterr.c: Likewise.
3677         * lib/fwritable.h: Likewise.
3678         * lib/fwritable.c: Likewise.
3679         * lib/fwriting.h: Likewise.
3680         * lib/fwriting.c: Likewise.
3682 2020-10-11  Bruno Haible  <bruno@clisp.org>
3684         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
3685         Reported by Tim Rice <tim@multitalents.net> in
3686         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3687         Uses the info from
3688         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
3689         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
3691 2020-10-11  Bruno Haible  <bruno@clisp.org>
3693         stdioext: Avoid compilation errors on UnixWare 7.
3694         Reported by Tim Rice <tim@multitalents.net> in
3695         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
3696         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
3697         * lib/fpurge.c: Likewise.
3698         * lib/freadable.h: Likewise.
3699         * lib/freading.h: Likewise.
3700         * lib/fwritable.h: Likewise.
3701         * lib/fwriting.h: Likewise.
3702         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
3703         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3704         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
3705         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
3706         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
3707         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
3709 2020-10-11  Bruno Haible  <bruno@clisp.org>
3711         stdioext: Update comments regarding Cygwin.
3712         * lib/fpending.c: Update comments.
3713         * lib/fpurge.c: Likewise.
3714         * lib/freadable.h: Likewise.
3715         * lib/freadable.c: Likewise.
3716         * lib/freading.h: Likewise.
3717         * lib/freading.c: Likewise.
3718         * lib/fwritable.h: Likewise.
3719         * lib/fwritable.c: Likewise.
3720         * lib/fwriting.h: Likewise.
3721         * lib/fwriting.c: Likewise.
3723 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
3725         Fix "warning: implicit declaration of function 'pthread_sigmask'".
3726         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
3727         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
3729 2020-10-10  Bruno Haible  <bruno@clisp.org>
3731         *-list, *-oset, *-omap: Avoid possible compiler warnings.
3732         Reported by Marc Nieper-Wißkirchen in
3733         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
3734         * lib/gl_anylinked_list2.h (gl_linked_iterator,
3735         gl_linked_iterator_from_to): Mark as 'pure'.
3736         (gl_linked_iterator_free): Mark as 'const'.
3737         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
3738         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
3739         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
3740         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
3741         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
3742         (gl_tree_iterator_free): Mark as 'const'.
3743         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
3744         'pure'.
3745         (gl_tree_iterator_free): Mark as 'const'.
3746         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
3747         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
3748         (gl_tree_iterator_free): Mark as 'const'.
3749         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
3750         compare_position_threshold): Mark as 'pure'.
3751         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
3752         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
3753         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
3754         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
3755         'pure'.
3756         (gl_array_iterator_free): Mark as 'const'.
3757         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
3758         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
3759         (gl_array_iterator_free): Mark as 'const'.
3760         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
3761         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
3762         gl_array_iterator_atleast): Mark as 'pure'.
3763         (gl_array_iterator_free): Mark as 'const'.
3764         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
3765         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
3766         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
3767         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
3768         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
3769         gl_carray_sortedlist_search): Mark as 'pure'.
3770         (gl_carray_iterator_free): Mark as 'const'.
3772 2020-10-10  Bruno Haible  <bruno@clisp.org>
3774         rbtree-list: Avoid possible compiler warnings.
3775         This mirrors the change of avltree-list on 2014-09-16.
3776         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
3777         declaration. Add cast to void for ignored value of check_invariants.
3779 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
3781         stack: New module.
3782         * MODULES.html.sh: Add entry for the stack module.
3783         * modules/stack: New file.
3784         * modules/stack-tests: New file.
3785         * lib/stack.h: New file.
3786         * tests/test-stack.c: New file.
3788 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3790         attribute: improve const, pure doc
3791         Problem reported by Marc Nieper-Wißkirchen in:
3792         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
3793         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
3794         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
3796 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3798         thread: pacify GCC on Solaris 10
3799         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
3800         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
3801         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
3802         where pthread_t is unsigned int.
3804 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3806         c-stack: avoid AS_IF
3807         Problem reported by Bruno Haible in:
3808         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
3809         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
3811         c-stack: pacify GCC 9.3.1 when using libsigsegv
3812         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
3814 2020-10-04  Bruno Haible  <bruno@clisp.org>
3816         localename: Fix a couple of "unused parameter" warnings.
3817         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
3818         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
3819         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
3820         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
3821         parameter list.
3823 2020-10-04  Bruno Haible  <bruno@clisp.org>
3825         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
3826         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
3827         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
3828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
3829         HAVE_SNPRINTF_TRUNCATION_C99.
3830         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
3831         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
3833 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3835         c-stack: streamline Solaris configuration
3836         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
3837         the code is used only if a test for sigaltstack worked
3838         in some other way.
3839         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
3840         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
3841         heuristic does not work).
3842         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
3843         we no longer require the libsigsegv module.
3844         (Depends-on): Depend on havelib, not libsigsegv.
3846         c-stack: stop using SIGSTKSZ
3847         It’s been proposed to stop making SIGSTKSZ an integer constant:
3848         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
3849         Also, using SIGSTKSZ in #if did not conform to current POSIX.
3850         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
3851         * lib/c-stack.c (SIGSTKSZ): Remove.
3852         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
3853         All uses changed.
3855         c-stack: fix libsigsegv typo
3856         Problem reported by Bruno Haible in:
3857         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
3858         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
3859         to be used only on Solaris (exactly where it is not needed!).
3861 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
3863         MODULES.html.sh: Fix typo.
3864         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
3866 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3868         version-etc: pacify Oracle Studio 12.6
3869         Without this patch, it complains: "version-etc.h", line 64:
3870         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
3871         pedantic mode.
3872         * lib/version-etc.h (version_etc): Port to C89 macro rules.
3874 2020-09-27  Bruno Haible  <bruno@clisp.org>
3876         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
3877         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3878         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3879         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
3880         ourselves; don't use AC_DECL_SYS_SIGLIST.
3882 2020-09-27  Bruno Haible  <bruno@clisp.org>
3884         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
3885         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3886         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3887         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
3888         instead of _AC_COMPUTE_INT.
3890 2020-09-27  Bruno Haible  <bruno@clisp.org>
3892         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
3893         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3894         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3895         Based on a patch by Paul Eggert.
3896         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
3897         test STDC_HEADERS. Assume <stdlib.h> exists.
3898         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3900 2020-09-27  Bruno Haible  <bruno@clisp.org>
3902         Enable testing of prereleases of Autoconf 2.70.
3903         Suggested by Paul Eggert in
3904         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
3905         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
3906         >= 2.70.
3907         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
3908         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
3909         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
3911 2020-09-27  Bruno Haible  <bruno@clisp.org>
3913         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
3914         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3915         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3916         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
3917         AC_PROG_CC, depending on the Autoconf version.
3919 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
3921         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
3922         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
3923         of AC_HELP_STRING.
3924         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
3926 2020-09-27  Bruno Haible  <bruno@clisp.org>
3928         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
3929         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3930         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3931         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
3933 2020-09-27  Bruno Haible  <bruno@clisp.org>
3935         extensions: Simplify last commit.
3936         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
3937         AC_GNU_SOURCE ever.
3939 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3941         extensions: require AC_GNU_SOURCE only for <=2.63
3942         Problem reported by Gavin Smith in:
3943         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
3944         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
3945         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
3946         shouldn’t be needed after that, and Autoconf 2.70 complains about
3947         it being obsolete.
3949 2020-09-26  Bruno Haible  <bruno@clisp.org>
3951         regex-tests: Make test more robust.
3952         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
3953         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
3955 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3957         regex-tests: fix possible Turkish false-alarm
3958         * modules/regex-tests (Depends-on): Add wctype-h.
3959         * tests/test-regex.c: Include wctype.h.
3960         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
3961         as the Turkish regex test assumes this.
3963         regex-tests: fix test and add debug output
3964         Perhaps this will fix the recent grep test failure reported at:
3965         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
3966         At least, the debug output should help narrow down the failure.
3967         * tests/test-regex.c: Include stdarg.h, stdio.h.
3968         (exit_status): New var.
3969         (report_error): New function.
3970         (main): Use it to report failures to stdout instead of merely
3971         exiting with some nonzero status.  The status info alone isn’t
3972         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
3973         regex before calling re_compile_pattern, fixing a portability bug.
3975         regex: no longer match glibc
3976         * config/srclist.txt: Comment out regex_internal.c for now.
3978 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3980         regex: fix ignore-case Turkish bug
3981         * lib/regex_internal.c (build_wcs_upper_buffer):
3982         Do not assume that converting single-byte character to upper
3983         yields a single-byte character.  This is not true for Turkish,
3984         where towupper (L'i') yields L'İ', which is not single-byte.
3985         * tests/test-regex.c (main): Test for this bug.
3987         regex: port to weird isascii platforms
3988         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
3990 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3992         dfa: make dfasupported a global function
3993         * lib/dfa.c (dfasupported): Rename, and make it global.
3994         Update caller.
3995         * lib/dfa.h (dfasupported): Add prototype.
3997 2020-09-20  Bruno Haible  <bruno@clisp.org>
3999         canonicalize: Add support for UNC file names on native Windows.
4000         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
4001         <https://savannah.gnu.org/bugs/?59079>.
4002         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
4003         extend the prefix to include the server.
4005 2020-09-20  Bruno Haible  <bruno@clisp.org>
4007         supersede: Fix test failures on native Windows.
4008         * lib/supersede.c (open_supersede): Handle non-regular files on native
4009         Windows like on Solaris.
4010         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
4012 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4014         test-stdalign: test Oracle Studio better
4015         * doc/posix-headers/stdalign.texi (stdalign.h):
4016         * tests/test-stdalign.c (main):
4017         Sun Studio Bug #2125432 seems to be fixed.
4019         c-stack: output diagnostic in single 'write'
4020         * lib/c-stack.c (die): In the typical case, use just one 'write'
4021         syscall to output the diagnostic, as this lessens interleaving.
4022         (die, c_stack_action): Assume C99.
4023         * modules/c-stack (Depends-on): Add c99, mempcpy.
4025         c-stack: improve checking if !libsigsegv
4026         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
4027         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
4028         unlikely pointer overflow.  Also, fix some obsolete code and typos.
4029         I found these problems while looking into this bug report:
4030         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
4031         * lib/c-stack.c: Include c-stack.h first, to test interface.
4032         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
4033         max_align_t, intprops.h for INT_ADD_WRAPV.
4034         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
4035         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
4036         for libsigsegv 2.8 and earlier since the bug should be fixed
4037         after that.
4038         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
4039         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
4040         Assume sprintf returns byte count; this assumption is safe now.
4041         (page_size): New static volatile variable, since sysconf isn’t
4042         documented to be async-signal-safe on Solaris.  This variable is
4043         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
4044         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
4045         SIGINFO_WORKS).
4046         (segv_handler): Use it if present.  Never report null pointer
4047         dereference as a stack overflow.  Check for (unlikely) unsigned
4048         and/or pointer overflow.
4049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4050         Rename cache variables to gl_cv_sys_stack_overflow_works
4051         and gl_cv_sys_xsi_stack_overflow_heuristic.
4052         All uses changed.
4053         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
4054         c-stack no longer uses STACK_DIRECTION.
4055         Do not check for unistd.h, since we depend on unistd.
4056         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
4057         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
4058         stdbool, stddef.
4060 2020-09-20  Bruno Haible  <bruno@clisp.org>
4062         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
4063         * m4/musl.m4: Revert 2020-09-19 patch.
4064         * m4/setlocale_null.m4: Likewise.
4065         * modules/setlocale-null: Likewise.
4067 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
4068             Bruno Haible  <bruno@clisp.org>
4070         relocatable-prog: Fix for multiple relocatable library directories.
4071         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
4072         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
4073         being attached to a single one.
4075 2020-09-19  Jim Meyering  <meyering@fb.com>
4077         test-verify.c: avoid -Wshadow warnings
4078         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
4079         (enum): Capitalize member names. Adjust uses.
4081 2020-09-19  Bruno Haible  <bruno@clisp.org>
4083         havelib: Avoid linking with libc.a on GNU systems.
4084         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
4085         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
4086         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
4087         dependency_libs value of a .la file, ignore '-lc' options on GNU
4088         systems.
4090 2020-09-19  Bruno Haible  <bruno@clisp.org>
4092         Fix recognition of musl libc on Alpine Linux 3.10.
4093         Reported by Jeffrey Walton <noloader@gmail.com> in
4094         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
4095         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
4096         (gl_MUSL_LIBC): Require it.
4097         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
4098         * modules/setlocale-null (Files): Add m4/musl.m4.
4100 2020-09-19  Bruno Haible  <bruno@clisp.org>
4102         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
4103         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
4104         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
4105         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
4106         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
4107         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
4108         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
4109         or <threads.h>.
4110         (ITEMS, MAX_RESULT_LEN): New macros.
4111         (nl_langinfo_unlocked): New function.
4112         (gl_get_nl_langinfo_lock): New declaration.
4113         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
4114         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
4115         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
4116         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
4117         REPLACE_NL_LANGINFO.
4118         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
4119         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
4120         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
4121         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
4122         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
4124 2020-09-18  Bruno Haible  <bruno@clisp.org>
4126         fsusage, getaddrinfo: Produce more regular configure output.
4127         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
4128         corresponding AC_MSG_RESULT.
4129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
4131 2020-09-18  Bruno Haible  <bruno@clisp.org>
4133         Add back gl_SILENT.
4134         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
4136 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4138         c-stack-tests: fix -fsanitize=undefined false alarm
4139         * tests/test-c-stack2.sh: Skip the test-harness self-test
4140         if ‘gcc -fsanitize=undefined’ is in use.
4142 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
4144         signalblocking: simplify and remove gl_SILENT
4145         gl_SILENT was problematic because if a trap was sprung, stderr
4146         generated during the trap was lost.  Avoid the problem by
4147         removing the need for gl_SILENT.
4148         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
4149         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
4150         Simplify, avoiding the need for gl_SILENT while preserving the
4151         ability of the user to override the value of the cache variable,
4152         now ac_cv_func_sigprocmask.
4154 2020-09-17  Bruno Haible  <bruno@clisp.org>
4156         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
4157         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
4158         (gl_SILENT): Use 'exec', not a compound statement, to redirect
4159         AS_MESSAGE_FD.
4161 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
4163         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
4164         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
4165         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
4166         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
4167         Define to 0.
4168         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
4169         Do not use __builtin_mul_overflow_p.
4171         libc-config: port __THROW to Ubuntu 4
4172         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
4173         for GCC 3.3.  Problem reported by Jeffrey Walton in:
4174         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
4175         The GCC 3.3.4 documentation says the attribute should work, but
4176         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
4177         little point or desire to research this circa-2004 platform further,
4178         so just avoid the attribute there.
4180 2020-09-17  Jim Meyering  <meyering@fb.com>
4182         test-dfa-match.sh: port timeout work-around to newer Busybox
4183         * tests/test-dfa-match.sh: Update timeout -t portability test to
4184         accommodate Busybox 1.30.0 and newer.
4186 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
4188         fnmatch: adjust to match glibc fix
4189         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
4190         This does not affect Gnulib; it merely keeps Gnulib and glibc
4191         closer together, to help with any eventual merge, by incorporating
4192         a recent glibc patch.  The patch and the following commentary is
4193         by Andreas Schwab.
4194         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
4195         contains the index into the extra array, whereas wextra points
4196         into the extra array at this index, containing the length of the
4197         following collating sequence in the wide character representation.
4199 2020-09-16  Bruno Haible  <bruno@clisp.org>
4201         stat, fstat: Fix compilation error with old mingw headers.
4202         Reported by Eli Zaretskii <eliz@gnu.org> in
4203         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
4204         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
4205         define it.
4207 2020-09-16  Bruno Haible  <bruno@clisp.org>
4209         stat, fstat: Fix when compiling for versions older than Windows Vista.
4210         Reported by Eli Zaretskii <eliz@gnu.org> in
4211         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
4212         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
4213         that was originally set before we redefined it.
4214         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
4215         (gl_PREREQ_STAT): Require it.
4216         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
4218 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4220         dfa: remove dfa-heap-overrun workaround
4221         * lib/dfa.c (reorder_tokens): Go back to a single pass that
4222         both sets map[*] and does other things.  This reverts
4223         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
4224         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
4225         fixed the underlying problem.
4227 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4229         dfa: avoid use of uninitialized constraint
4230         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
4231         to zero here.
4232         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
4233         use of an uninitialized constraint by later code when ! (flags[i]
4234         & OPT_QUEUED) means merge_nfa_state was not called to initialize
4235         the constraint.  Problem found by running 'valgrind src/grep -E
4236         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
4238         dfa: assume C99 in reorder_tokens
4239         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
4241         dfa: fix dfa-heap-overrun failure
4242         * lib/dfa.c (reorder_tokens): When setting
4243         map[d->follows[i].elems[j].index], instead of incorrectly assuming
4244         that (i < d->follows[i].elems[j].index), use two loops, one to set
4245         the map array and the other to use it.  The incorrect assumption
4246         caused some elements to be missed, and this in turn caused grep's
4247         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
4248         with GCC.  I found this bug while investigating
4249         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
4250         and I think the bug also occurs on GNU/Linux but with more-subtle
4251         symptoms.  The bug predates the recent dfa.c changes; perhaps the
4252         recent changes make the bug more likely.
4254 2020-09-13  Bruno Haible  <bruno@clisp.org>
4256         parse-datetime: Make the build rule work with parallel 'make'.
4257         Reported by Daiki Ueno <ueno@gnu.org> in
4258         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
4259         * modules/parse-datetime (Makefile.am): Use a phony target and the
4260         general idiom for rules that produce multiple files.
4262 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
4264         getpass: Check for nonnull prompt argument while avoiding warnings.
4265         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
4266         (getpass) [!_WIN32]: Print prompt only if nonnull.
4268 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4270         dfa: epsilon-closure tweaks (Bug#40634)
4271         Rename BACKWORD to BACKWARD consistently.
4272         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
4273         (addtok_mb): Redo slightly to make it act more like a state machine.
4274         Check depth only when it increases.
4275         (epsclosure): Let the switch test the tokens.
4276         (dfaanalyze): Cache tindex.  Simplify position loops.
4277         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
4278         only if it is not null, since we're testing that anyway.
4279         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
4281 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4283         dfa: use backward set in removal of epsilon closure
4284         When removing in epsilon closure, the code searched all nodes
4285         sequentially, and this was slow for some cases.  Build a backward
4286         set before search, and only check previous position with the set.
4287         Problem reported in <https://bugs.gnu.org/40634>.
4288         * lib/dfa.c (struct dfa): New member 'epsilon'.
4289         (addtok_mb): Check whether a pattern has epsilon node or not.
4290         (epsclosure): New arg BACKWORD; caller changed.  When removing
4291         epsilon node and reconnecting, check only previous positions.
4292         Treat BEG as if it were character.
4293         (dfaanalyze): Build backward set.
4295 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4297         canonicalize: fix pointer indexing bugs
4298         Problem reported by Florian Weimer in:
4299         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
4300         * lib/canonicalize-lgpl.c (__realpath):
4301         * lib/canonicalize.c (canonicalize_filename_mode):
4302         Do not generate a pointer past the end of the array.
4303         * lib/canonicalize.c (canonicalize_filename_mode):
4304         Do not use a pointer after passing it to realloc.
4306 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4308         tempname: help merge with glibc
4309         Inspired by draft patches by Adhemerval Zanella in:
4310         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
4311         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
4312         * lib/tempname.c: Include stdalign.h, time.h.
4313         If _LIBC, do not include random-bits.h.
4314         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
4315         (RANDOM_BITS): Remove, replacing with ...
4316         (random_bits): ... this new static function.  All uses changed.
4317         Add entropy each time if getrandom is not supported.
4318         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
4319         Assume 64-bit support a la C99.
4320         (try_tempname_len): Take advantage of ASLR when initializing
4321         random value.
4322         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
4324         getcwd: merge recent glibc changes
4325         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
4326         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
4328 2020-09-06  Bruno Haible  <bruno@clisp.org>
4330         attribute: Clarify which file to include.
4331         * modules/attribute (Include): Add "attribute.h".
4333 2020-09-06  Bruno Haible  <bruno@clisp.org>
4335         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
4336         * lib/pipe-filter-ii.c: Include <process.h>.
4337         * lib/pipe-filter-gi.c: Likewise.
4339 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4341         verify: avoid __builtin_assume
4342         Our latest attempt to use Clang’s __builtin_assume caused a crash
4343         in GNU Emacs that we spent quite some time tracking down as being
4344         caused by the switch to __builtin_assume.  It’s not known whether
4345         the crash is due is a Clang bug or a portability bug in GNU Emacs.
4346         For now, play it safe and avoid __builtin_assume.
4347         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
4348         (assume): Simplify by not trying to use Clang’s __builtin_assume.
4350 2020-09-05  Bruno Haible  <bruno@clisp.org>
4352         Fix several "warning: no previous prototype for function".
4353         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
4354         in front of the declaration of the lookup function in
4355         unicase/locale-languages.h.
4356         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
4357         unictype/bidi_byname.h.
4358         * modules/unictype/category-byname (Makefile.am): Likewise in
4359         unictype/categ_byname.h.
4360         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
4361         unictype/combiningclass_byname.h.
4362         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
4363         unictype/joininggroup_byname.h.
4364         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
4365         unictype/joiningtype_byname.h.
4366         * modules/unictype/property-byname (Makefile.am): Likewise in
4367         unictype/pr_byname.h.
4368         * modules/unictype/scripts (Makefile.am): Likewise in
4369         unictype/scripts_byname.h.
4370         * modules/uninorm/composition (Makefile.am): Likewise in
4371         uninorm/composition-table.h.
4373 2020-09-05  Bruno Haible  <bruno@clisp.org>
4375         select: Fix "warning: no previous prototype for function".
4376         * lib/select.c: Include <sys/select.h>.
4378 2020-09-05  Bruno Haible  <bruno@clisp.org>
4380         Use module 'c99' when needed for variadic macros with '...' syntax.
4381         * modules/crypto/sm3 (Depends-on): Add c99.
4383 2020-09-05  Bruno Haible  <bruno@clisp.org>
4385         Use module 'c99' when needed for subobject initializer syntax.
4386         * modules/tempname (Depends-on): Add c99.
4387         * modules/nstrftime-tests (Depends-on): Likewise.
4389 2020-09-05  Bruno Haible  <bruno@clisp.org>
4391         Use module 'c99' when needed for declaration-after-statement syntax.
4392         * modules/backup-rename (Depends-on): Add c99.
4393         * modules/backupfile (Depends-on): Likewise.
4394         * modules/bitset-tests (Depends-on): Likewise.
4395         * modules/bitsetv (Depends-on): Likewise.
4396         * modules/c-strtod (Depends-on): Likewise.
4397         * modules/c-strtold (Depends-on): Likewise.
4398         * modules/clean-temp (Depends-on): Likewise.
4399         * modules/copy-file (Depends-on): Likewise.
4400         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
4401         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
4402         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
4403         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
4404         * modules/crypto/md5-buffer (Depends-on): Likewise.
4405         * modules/crypto/md5-tests (Depends-on): Likewise.
4406         * modules/crypto/sha1-buffer (Depends-on): Likewise.
4407         * modules/crypto/sha1-tests (Depends-on): Likewise.
4408         * modules/crypto/sha256-buffer (Depends-on): Likewise.
4409         * modules/crypto/sha256-tests (Depends-on): Likewise.
4410         * modules/crypto/sha512-buffer (Depends-on): Likewise.
4411         * modules/crypto/sha512-tests (Depends-on): Likewise.
4412         * modules/diffseq (Depends-on): Likewise.
4413         * modules/fatal-signal (Depends-on): Likewise.
4414         * modules/fchmodat (Depends-on): Likewise.
4415         * modules/fstrcmp (Depends-on): Likewise.
4416         * modules/fsusage (Depends-on): Likewise.
4417         * modules/fts (Depends-on): Likewise.
4418         * modules/fts-tests (Depends-on): Likewise.
4419         * modules/getumask (Depends-on): Likewise.
4420         * modules/git-merge-changelog (Depends-on): Likewise.
4421         * modules/hash-map (Depends-on): Likewise.
4422         * modules/hash-set (Depends-on): Likewise.
4423         * modules/lchmod (Depends-on): Likewise.
4424         * modules/libgmp-tests (Depends-on): Likewise.
4425         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
4426         * modules/linkedhash-map (Depends-on): Likewise.
4427         * modules/linkedhash-set (Depends-on): Likewise.
4428         * modules/long-options (Depends-on): Likewise.
4429         * modules/mbrtoc32 (Depends-on): Likewise.
4430         * modules/memchr2-tests (Depends-on): Likewise.
4431         * modules/memmem-tests (Depends-on): Likewise.
4432         * modules/memrchr-tests (Depends-on): Likewise.
4433         * modules/mktime-internal (Depends-on): Likewise.
4434         * modules/nstrftime (Depends-on): Likewise.
4435         * modules/opendirat (Depends-on): Likewise.
4436         * modules/parse-datetime (Depends-on): Likewise.
4437         * modules/quotearg-simple-tests (Depends-on): Likewise.
4438         * modules/same (Depends-on): Likewise.
4439         * modules/supersede (Depends-on): Likewise.
4440         * modules/supersede-tests (Depends-on): Likewise.
4441         * modules/time_rz (Depends-on): Likewise.
4442         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4443         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
4444         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
4445         * modules/xalloc (Depends-on): Likewise.
4446         * modules/xnanosleep (Depends-on): Likewise.
4448 2020-09-05  Bruno Haible  <bruno@clisp.org>
4450         Fix "warning: array initialized from parenthesized string constant".
4451         * tests/test-memmem.c (main): Remove parentheses around string constant.
4452         * tests/test-c-strcasestr.c (main): Likewise.
4453         * tests/test-strcasestr.c (main): Likewise.
4455 2020-09-05  Bruno Haible  <bruno@clisp.org>
4457         argmatch tests: Fix ISO C compliance warning.
4458         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
4459         invocation.
4461 2020-09-05  Bruno Haible  <bruno@clisp.org>
4463         uniname/uniname: Fix -Wshadow warning.
4464         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
4465         * modules/uniname/uniname (Depends-on): Add c99.
4467 2020-09-05  Bruno Haible  <bruno@clisp.org>
4469         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
4470         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
4471         argument to size_t.
4472         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
4473         n to size_t.
4475 2020-09-05  Bruno Haible  <bruno@clisp.org>
4477         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
4478         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
4479         u32_uctomb): Change type of last argument to ptrdiff_t.
4480         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
4481         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4482         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
4483         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
4484         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
4486 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4488         manywarnings: remove -Wchkp and -Wabi from C++ too
4489         Suggested by Reuben Thomas in:
4490         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
4491         At some point somebody should merge the many other manywarnings-c.m4
4492         changes into manywarnings-c++.m4 too, e.g.,
4493         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
4494         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
4495         Remove -Wchkp, -Wabi.
4497 2020-08-30  Bruno Haible  <bruno@clisp.org>
4499         strerrorname_np: Add tests.
4500         * tests/test-strerrorname_np.c: New file.
4501         * modules/strerrorname_np-tests: New file.
4503         strerrorname_np: New module.
4504         * lib/string.in.h (strerrorname_np): New declaration.
4505         * lib/strerrorname_np.c: New file.
4506         * m4/strerrorname_np.m4: New file.
4507         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
4508         is declared.
4509         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
4510         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
4511         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
4512         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
4513         * modules/strerrorname_np: New file.
4514         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
4515         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
4516         the glibc 2.32 bug.
4518 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
4520         perror, strerror_r: remove unportable tests
4521         Problem reported by Florian Weimer in:
4522         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
4523         * tests/test-perror2.c (main):
4524         * tests/test-strerror_r.c (main): Omit unportable tests.
4526 2020-08-26  Bruno Haible  <bruno@clisp.org>
4528         stdint, wchar, wctype-h: Change configure message.
4529         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
4530         enough..." instead of "checking whether wint_t is too small...".
4532 2020-08-26  Bruno Haible  <bruno@clisp.org>
4534         time_rz: Change configure message.
4535         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
4536         near extrema..." instead of "checking whether localtime loops forever
4537         near extrema...".
4539 2020-08-26  Bruno Haible  <bruno@clisp.org>
4541         stdint: Change configure message.
4542         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
4543         without ISO C predefines..." instead of "checking whether stdint.h
4544         predates C++11...".
4546 2020-08-26  Bruno Haible  <bruno@clisp.org>
4548         socketlib: Change configure message.
4549         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
4550         instead of "checking if we need to call WSAStartup in winsock2.h and
4551         -lws2_32...".
4553 2020-08-26  Bruno Haible  <bruno@clisp.org>
4555         include_next: Change configure message.
4556         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
4557         code line length is unlimited..." instead of "checking whether system
4558         header files limit the line length...".
4560 2020-08-26  Bruno Haible  <bruno@clisp.org>
4562         getcwd: Change configure message.
4563         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
4564         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
4565         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
4567 2020-08-26  Bruno Haible  <bruno@clisp.org>
4569         chdir-long: Change configure message.
4570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
4571         system supports file names of any length..." instead of "checking
4572         whether this system has an arbitrary file name length limit...".
4573         Set gl_cv_have_unlimited_file_name_length instead of
4574         gl_cv_have_arbitrary_file_name_length_limit.
4575         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
4577 2020-08-26  Bruno Haible  <bruno@clisp.org>
4579         ceill: Change configure message.
4580         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
4581         instead of "checking whether ceill() breaks with small values...".
4583 2020-08-26  Bruno Haible  <bruno@clisp.org>
4585         iconv: Change configure message.
4586         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
4587         with its POSIX signature..." instead of "checking for iconv
4588         declaration...". Remove K&R C support.
4590 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
4592         getcwd: help the merge back into glibc
4593         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
4594         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
4595         The idea is to make it easier for Gnulib lib/getcwd.c to match
4596         glibc io/getcwd-generic.c.
4597         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
4598         Include not-cancel.h.
4599         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
4600         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
4601         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
4602         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
4603         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
4604         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
4605         (__getcwd_generic): Rename from __getcwd.
4606         Use the abovementioned macros for consistency with glibc.
4607         (weak_alias): Remove.
4609 2020-08-25  Bruno Haible  <bruno@clisp.org>
4611         verify: Avoid warnings when assume(0) is used.
4612         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
4613         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
4614         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
4615         the constant 0.
4616         * tests/test-verify.c (f): New function.
4617         (state): New type.
4618         (test_assume_expressions, test_assume_optimization,
4619         test_assume_noreturn): New functions.
4621 2020-08-25  Bruno Haible  <bruno@clisp.org>
4623         fstrcmp: Clarification regarding NOTE_ORDERED.
4624         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
4626 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4628         diffseq: new option NOTE_ORDERED
4629         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
4630         * NEWS: Mention this.
4631         * lib/diffseq.h (NOTE_ORDERED): New macro.
4632         (IF_LINT2): Remove; no longer needed.
4633         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
4634         subproblem and iterate to do the larger.
4636 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4638         sys_types: let Autoconf 2.70 do pid_t
4639         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
4640         only for Autoconf versions 2.69 and earlier, since 2.70
4641         will be fixed.
4643 2020-08-23  Bruno Haible  <bruno@clisp.org>
4645         tests: Don't assume that pid_t fits in an 'int'.
4646         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
4647         of 'int'.
4648         * tests/test-nonblocking-socket-main.c (main): Likewise.
4650         sys_types: Fix definition of pid_t on 64-bit MSVC.
4651         * m4/pid_t.m4: New file.
4652         * modules/sys_types (Files): Add it.
4653         * modules/dirent (Files): Likewise.
4654         * modules/fcntl-h (Files): Likewise.
4655         * modules/sched (Files): Likewise.
4656         * modules/signal-h (Files): Likewise.
4657         * modules/spawn (Files): Likewise.
4658         * modules/sys_stat (Files): Likewise.
4659         * modules/sys_wait (Files): Likewise.
4660         * modules/termios (Files): Likewise.
4661         * modules/unistd (Files): Likewise.
4663 2020-08-23  Bruno Haible  <bruno@clisp.org>
4665         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
4666         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
4667         program.
4669 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4671         intprops: be consistent about +X vs X+0
4672         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
4674         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
4675         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
4676         is a bit-field, on older GCC or non-GCC compilers where we do
4677         things ourselves instead of using __builtin_mul_overflow.
4678         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
4679         to applying sizeof to a bit-field.
4680         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
4681         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
4683 2020-08-23  Bruno Haible  <bruno@clisp.org>
4685         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
4686         Reported by Jörg Sonnenberger <joerg@netbsd.org>
4687         via Thomas Klausner <tk@giga.or.at> in
4688         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
4689         * lib/supersede.c (open_supersede): When opening an existing non-regular
4690         file on Solaris, use O_CREAT although it should not be necessary.
4692 2020-08-23  Bruno Haible  <bruno@clisp.org>
4694         verify: Make assume work on bit field expressions (regr. 2020-08-22).
4695         Reported by Benno Schulenberg <bensberg@telfort.nl> in
4696         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
4697         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
4698         variable.
4700 2020-08-23  Bruno Haible  <bruno@clisp.org>
4702         libc-config: Improve comments.
4703         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
4704         cannot use clang's __diagnose_if__ here.
4706 2020-08-22  Bruno Haible  <bruno@clisp.org>
4708         verify: Do use __builtin_assume on clang.
4709         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
4710         variable in a statement expression.
4712 2020-08-22  Bruno Haible  <bruno@clisp.org>
4714         sig2str: Add more signals.
4715         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
4717 2020-08-22  Bruno Haible  <bruno@clisp.org>
4719         doc: Update for OpenBSD 6.0, 6.7.
4720         * doc/*/*.texi: Update.
4721         * m4/printf.m4: Update comments and cross-compilation guesses.
4722         * m4/ceill.m4: Update comments.
4723         * m4/getcwd-abort-bug.m4: Likewise.
4724         * m4/ilogb.m4: Likewise.
4725         * m4/ilogbf.m4: Likewise.
4726         * m4/langinfo_h.m4: Likewise.
4727         * m4/modf.m4: Likewise.
4728         * m4/modff.m4: Likewise.
4730 2020-08-22  Bruno Haible  <bruno@clisp.org>
4732         doc: Mention sig2str module.
4733         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
4735 2020-08-21  Bruno Haible  <bruno@clisp.org>
4737         sigdescr_np: Add tests.
4738         * tests/test-sigdescr_np.c: New file.
4739         * modules/sigdescr_np-tests: New file.
4741         sigdescr_np: New module.
4742         * lib/string.in.h (sigdescr_np): New declaration.
4743         * lib/sigdescr_np.c: New file.
4744         * m4/sigdescr_np.m4: New file.
4745         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
4746         declared.
4747         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
4748         HAVE_SIGDESCR_NP.
4749         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
4750         HAVE_SIGDESCR_NP.
4751         * modules/sigdescr_np: New file.
4752         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
4753         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
4755 2020-08-20  Bruno Haible  <bruno@clisp.org>
4757         sigabbrev_np: Add tests.
4758         * tests/test-sigabbrev_np.c: New file.
4759         * modules/sigabbrev_np-tests: New file.
4761         sigabbrev_np: New module.
4762         * lib/string.in.h (sigabbrev_np): New declaration.
4763         * lib/sigabbrev_np.c: New file.
4764         * m4/sigabbrev_np.m4: New file.
4765         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
4766         declared.
4767         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
4768         HAVE_SIGABBREV_NP.
4769         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
4770         HAVE_SIGABBREV_NP.
4771         * modules/sigabbrev_np: New file.
4772         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
4773         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
4775 2020-08-20  Bruno Haible  <bruno@clisp.org>
4777         stdalign tests: Skip test with AIX xlclang.
4778         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
4780 2020-08-20  Bruno Haible  <bruno@clisp.org>
4782         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
4783         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
4784         workaround as for GCC versions < 4.9.
4786 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4788         Sync up ProjectQuirks comments and documentation
4789         Transform the ProjectQuirks comments into a docstring so that it can
4790         be accessed from python as ProjectQuirks.__doc__ and harmonize
4791         descriptions with the documentation.
4792         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
4793         Transform comments into a docstring.
4794         * doc/vcs-to-changelog.texi: Sync up description with comments.
4796         Split ProjectQuirks out into its own file
4797         ProjectQuirks is used by external quirks files and importing it from
4798         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
4799         is cleaner to put it in its own file anyway.
4800         * build-aux/vcstocl/projectquirks.py: A new file...
4801         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
4802         we move ProjectQuirks and import the file.
4804 2020-08-19  Bruno Haible  <bruno@clisp.org>
4806         uchar: Fix compilation errors in C++ mode on macOS.
4807         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
4808         system header file before attempting to use 'char16_t' and 'char32_t'.
4810 2020-08-19  Bruno Haible  <bruno@clisp.org>
4812         ansi-c++-opt: Work around an autoconf macro reordering problem.
4813         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
4814         section.
4816 2020-08-19  Bruno Haible  <bruno@clisp.org>
4818         math C++ tests: Fix compilation error in with GCC 10.
4819         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
4820         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
4821         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4823 2020-08-19  Bruno Haible  <bruno@clisp.org>
4825         uchar: Fix compilation errors in C++ mode on OpenBSD.
4826         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
4827         CXX_HAS_UCHAR_TYPES is 1.
4828         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
4829         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
4830         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
4832 2020-08-19  Bruno Haible  <bruno@clisp.org>
4834         Fix compilation errors in C++ mode on OpenBSD.
4835         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
4836         OpenBSD with clang, use the approach without C preprocessor macro.
4838 2020-08-18  Bruno Haible  <bruno@clisp.org>
4840         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
4841         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
4842         AC_LANG_POP.
4844 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4846         verify: avoid __built_assume on Clang
4847         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
4848         Clang 9 incorrectly diagnoses arguments as having side effects
4849         even when they do not.  I guess Clang 9 considers any function
4850         call as if it had a side effect here.
4852         libc-config: avoid Clang’s __diagnose_if__
4853         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
4854         For now, do not use __diagnose_if__ here, as this fails
4855         on Fedora 31 with Clang 9.0.1, with diagnostic
4856         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
4857         size than length of destination buffer
4858         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
4859         for functions that are not called?
4861         careadlinkat: speedup for GCC 10 with GCC_LINT
4862         Inspired by a suggestion by Bruno Haible in:
4863         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
4864         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
4865         (readlink_stk): New function, with most of the old careadlinkat
4866         contents and with a new STACK_BUF arg.  Inline it in GCC 10
4867         if GCC_LINT.
4868         (careadlinkat): Use the new function for everything but the
4869         stack buffer.
4871         * build-aux/gcc-warning.spec: Update comments.
4873 2020-08-17  Bruno Haible  <bruno@clisp.org>
4875         Assume autoconf >= 2.64.
4876         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
4878 2020-08-17  Bruno Haible  <bruno@clisp.org>
4880         Revert autoupdate's revert.
4881         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
4883 2020-08-17  Bruno Haible  <bruno@clisp.org>
4885         uchar C++ tests: Fix build error on FreeBSD 12.
4886         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
4887         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
4888         <cuchar> does not exist.
4890 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4892         time_rz: remove unused functions
4893         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
4895         time_rz: fix issues with mktime_z failures
4896         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
4897         Use a cheaper tm_yday test for failed mktime.
4899 2020-08-16  Bruno Haible  <bruno@clisp.org>
4901         intprops test: Strengthen on clang.
4902         * tests/test-intprops.c (VERIFY): Use verify_stmt.
4904 2020-08-16  Bruno Haible  <bruno@clisp.org>
4906         nstrftime: Guide inlining also on clang.
4907         * lib/nstrftime.c (iso_week_days): Inline also on clang.
4909 2020-08-16  Bruno Haible  <bruno@clisp.org>
4911         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
4912         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
4914 2020-08-16  Bruno Haible  <bruno@clisp.org>
4916         log2l: Disable MSVC workaround on clang.
4917         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
4919 2020-08-16  Bruno Haible  <bruno@clisp.org>
4921         argp: Emit a warning also with clang.
4922         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
4923         clang.
4925 2020-08-16  Bruno Haible  <bruno@clisp.org>
4927         libc-config: Enable __REDIRECT macro also on clang.
4928         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
4929         __ASMNAME2): Define on clang like on GCC.
4931 2020-08-16  Bruno Haible  <bruno@clisp.org>
4933         regex: Use initializer shorthand syntax also with clang.
4934         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
4935         with clang.
4937 2020-08-16  Bruno Haible  <bruno@clisp.org>
4939         regex: Use space optimization also with clang.
4940         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
4941         with clang.
4943 2020-08-16  Bruno Haible  <bruno@clisp.org>
4945         Use _Static_assert and static_assert primitives when present on clang.
4946         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
4947         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
4948         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
4950 2020-08-16  Bruno Haible  <bruno@clisp.org>
4952         Use 'throw ()' for optimization in C++ mode also on clang.
4953         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
4954         * lib/getopt-cdefs.in.h (__THROW): Likewise.
4955         * lib/md5.h (__THROW): Likewise.
4957 2020-08-16  Bruno Haible  <bruno@clisp.org>
4959         absolute-header: Add support for clang.
4960         * modules/absolute-header (Makefile.am): Include '__clang__' in the
4961         HAVE_INCLUDE_NEXT expression.
4963 2020-08-16  Bruno Haible  <bruno@clisp.org>
4965         Fix "warning: implicitly declaring library function 'strcasecmp'".
4966         * lib/argp-help.c: Include <strings.h>.
4968 2020-08-16  Bruno Haible  <bruno@clisp.org>
4970         stdio: Don't break attribute 'scanf' on clang.
4971         * lib/stdio.in.h (scanf): Treat clang like GCC.
4973 2020-08-16  Bruno Haible  <bruno@clisp.org>
4975         Use __restrict also on clang.
4976         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
4977         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
4978         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
4980 2020-08-16  Bruno Haible  <bruno@clisp.org>
4982         pthread-spin: Use GCC built-ins also on clang.
4983         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4984         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
4985         also on clang.
4987 2020-08-16  Bruno Haible  <bruno@clisp.org>
4989         asyncsafe-spin tests: Update.
4990         * tests/test-asyncsafe-spin2.c: Update to match the change in
4991         lib/asyncsafe-spin.c from 2020-08-11.
4993 2020-08-16  Bruno Haible  <bruno@clisp.org>
4995         setenv: Use tree code also with clang.
4996         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
4998 2020-08-16  Bruno Haible  <bruno@clisp.org>
5000         math: Optimize signbit also on clang.
5001         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
5002         on clang.
5004 2020-08-16  Bruno Haible  <bruno@clisp.org>
5006         avltreehash-list, rbtreehash-list: Optimize also on clang.
5007         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
5008         __builtin_expect also on clang.
5010 2020-08-16  Bruno Haible  <bruno@clisp.org>
5012         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
5013         * lib/socket.c: Use WSASocketW, not WSASocketA.
5015         Fix "warning: format specifies type 'unsigned long'".
5016         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
5017         argument to match the format directive.
5019         Fix "warning: no case matching constant switch condition '0'".
5020         * tests/test-fcntl.c (check_flags): Add a 'default' case.
5022         Fix "warning: integer overflow in expression".
5023         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
5024         remove a 'long' overflow.
5026         Fix "warning: "getpagesize" redefined".
5027         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
5028         macro.
5030         Fix "warning: implicitly declaring library function 'strncasecmp'".
5031         * lib/strptime.c: Include <strings.h>.
5033         Fix "warning: 'snprintf' macro redefined".
5034         * lib/strerror_r.c (snprintf): Undefine before redefining.
5036         Fix "warning: address of array 'locale' will always evaluate to 'true'".
5037         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
5039         Fix "warning: '__stat64' macro redefined".
5040         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
5042         Fix "warning: 'format' attribute argument not supported: rpl_printf".
5043         * lib/stdio.in.h (printf): Treat clang like GCC.
5045         Fix "warning: attribute declaration must precede definition" with clang.
5046         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
5047         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
5048         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
5049         on non-glibc systems.
5050         * lib/netdb.in.h (gai_strerror): Likewise.
5051         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
5052         * lib/sys_stat.in.h (fstat): Likewise.
5053         * lib/utime.in.h (utime): Likewise.
5055         Fix undesired warnings.
5056         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
5057         clang.
5059 2020-08-16  Bruno Haible  <bruno@clisp.org>
5061         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
5062         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
5063         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
5064         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
5065         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
5067 2020-08-16  Bruno Haible  <bruno@clisp.org>
5069         Don't use Autoconf quadrigraphs.
5070         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
5071         Autoconf quadrigraph.
5072         * m4/free.m4 (gl_FUNC_FREE): Likewise.
5073         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
5074         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
5075         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
5076         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5077         * m4/math_h.m4 (gl_MATH_H): Likewise.
5078         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
5080 2020-08-16  Bruno Haible  <bruno@clisp.org>
5082         Fix quoting of AC_LANG_PROGRAM arguments.
5083         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
5084         arguments through [[...]].
5085         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
5086         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
5087         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5088         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
5089         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
5090         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5091         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
5092         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5093         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
5094         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
5095         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
5096         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
5097         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5099 2020-08-16  Bruno Haible  <bruno@clisp.org>
5101         Assume autoconf >= 2.64.
5102         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
5103         * DEPENDENCIES: Require Autoconf 2.64 or newer.
5104         * NEWS: Mention the changed requirement.
5105         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
5106         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
5107         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
5108         variables.
5109         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5110         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
5111         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
5112         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
5113         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
5114         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
5115         Likewise.
5116         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
5117         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
5118         * m4/configmake.m4: Update comment.
5120 2020-08-16  Bruno Haible  <bruno@clisp.org>
5122         sys_ioctl: Simplify.
5123         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
5124         AC_INCLUDES_DEFAULT.
5126 2020-08-16  Bruno Haible  <bruno@clisp.org>
5128         Fix quoting of AC_LANG_SOURCE arguments.
5129         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
5130         GL_NOCRASH expansion.
5131         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
5132         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5133         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5134         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5135         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5137 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5139         nstrftime: be more predictable about errno
5140         This aligns nstrftime better with draft POSIX 202x strftime.
5141         * lib/nstrftime.c: Include errno.h.
5142         (width_add, __strftime_internal): Set errno on failure,
5143         and preserve it on success.  Check for mktime_z failure.
5144         * modules/nstrftime (Depends-on): Add errno.
5145         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
5146         * tests/test-nstrftime.c: Include intprops.h, limits.h.
5147         (errno_test): New test function.
5148         (main): Call it.
5150 2020-08-15  Bruno Haible  <bruno@clisp.org>
5152         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
5153         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
5154         from dependency analysis first.
5156 2020-08-15  Bruno Haible  <bruno@clisp.org>
5158         Determine asm output option and filename suffix for MSVC/clang.
5159         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
5160         clang-cl.
5162 2020-08-15  Bruno Haible  <bruno@clisp.org>
5164         doc: Update for MSVC/clang.
5165         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
5166         that MSVC 14 does not have.
5168 2020-08-15  Bruno Haible  <bruno@clisp.org>
5170         Revert autoupdate's revert.
5171         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
5173 2020-08-15  Bruno Haible  <bruno@clisp.org>
5175         frexpl: Fix configuration test result on MSVC.
5176         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
5177         zero.
5179 2020-08-15  Bruno Haible  <bruno@clisp.org>
5181         Support compiling without -loldnames on native Windows.
5182         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
5183         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
5184         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
5185         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
5186         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
5187         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
5188         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
5189         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
5190         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5191         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
5192         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
5193         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
5194         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
5195         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
5196         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
5197         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5198         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5199         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5200         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
5201         Likewise.
5202         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
5203         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5204         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
5205         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
5206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5207         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
5208         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
5209         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5210         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
5211         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
5212         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
5213         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
5214         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
5215         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5216         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
5217         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5218         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5219         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5220         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
5221         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5222         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
5223         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5224         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5225         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5226         * m4/utimens.m4 (gl_UTIMENS): Likewise.
5227         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5228         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5229         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
5230         test for getcwd.
5231         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
5232         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
5233         with GL_MDA_DEFINES.
5234         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
5235         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
5236         prefixed symbol.
5237         * lib/search.in.h (lfind, lsearch): Likewise.
5238         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
5239         Likewise.
5240         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
5241         * lib/string.in.h (memccpy, strdup): Likewise.
5242         * lib/sys_stat.in.h (chmod, umask): Likewise.
5243         * lib/time.in.h (tzset): Likewise.
5244         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
5245         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
5246         read, rmdir, swab, unlink, write): Likewise.
5247         * lib/utime.in.h (utime): Likewise.
5248         * lib/wchar.in.h (wcsdup): Likewise.
5249         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
5250         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
5251         rpl_-prefixed macro.
5252         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
5253         * lib/close.c (close_nothrow): On native Windows, use _close.
5254         * lib/creat.c (orig_creat): On native Windows, use _creat.
5255         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
5256         * lib/dup2.c (dup2_nothrow): Use _dup2.
5257         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
5258         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
5259         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
5260         * lib/open.c (orig_open): On native Windows, use _open.
5261         * lib/read.c (read_nothrow): Use _read.
5262         * lib/rmdir.c: On native Windows, use _rmdir.
5263         * lib/unlink.c: On native Windows, use _unlink.
5264         * lib/write.c (write_nothrow): Use _write.
5265         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
5266         undefined symbol.
5267         * lib/sys_socket.in.h (close): Likewise.
5268         * lib/sys_time.in.h (close): Likewise.
5269         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
5271 2020-08-15  Bruno Haible  <bruno@clisp.org>
5273         Fix "unknown pragma ignored" warnings with clang on native Windows.
5274         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
5275         * lib/cbrtf.c: Likewise.
5276         * lib/ceil.c: Likewise.
5277         * lib/floor.c: Likewise.
5278         * lib/fma.c: Likewise.
5279         * lib/fmod.c: Likewise.
5280         * lib/rint.c: Likewise.
5281         * lib/round.c: Likewise.
5282         * lib/trunc.c: Likewise.
5283         * tests/test-ceil2.c: Likewise.
5284         * tests/test-ceilf2.c: Likewise.
5285         * tests/test-floor2.c: Likewise.
5286         * tests/test-floorf2.c: Likewise.
5287         * tests/test-trunc2.c: Likewise.
5288         * tests/test-truncf2.c: Likewise.
5289         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5290         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5292 2020-08-15  Bruno Haible  <bruno@clisp.org>
5294         Fix compilation errors in C++ mode with clang on native Windows.
5295         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
5296         non-glibc systems.
5297         * lib/sched.in.h (sched_yield): Likewise.
5299 2020-08-14  Bruno Haible  <bruno@clisp.org>
5301         stdnoreturn: Work around problem with MSVC/clang.
5302         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
5303         system header after <stdnoreturn.h>.
5304         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
5306 2020-08-14  Bruno Haible  <bruno@clisp.org>
5308         utime-h: Generate an utime.h file always.
5309         * modules/utime-h (Makefile.am): Generate utime.h always.
5310         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
5311         GL_GENERATE_UTIME_H.
5313 2020-08-14  Bruno Haible  <bruno@clisp.org>
5315         mktime, mktime-internal: Remove obsolete code.
5316         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
5318 2020-08-14  Bruno Haible  <bruno@clisp.org>
5320         getcwd: Remove obsolete code.
5321         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
5322         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5324 2020-08-14  Bruno Haible  <bruno@clisp.org>
5326         tzset: Assume the function exists.
5327         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
5328         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
5329         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
5330         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
5331         HAVE_TZSET.
5332         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
5333         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
5335         nstrftime: Assume tzset exists.
5336         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
5337         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
5338         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
5340         mktime, mktime-internal: Assume tzset exists.
5341         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
5342         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
5344 2020-08-14  Bruno Haible  <bruno@clisp.org>
5346         strdup: Assume the function exists.
5347         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
5348         whether strdup exists.
5349         * modules/strdup (Files): Remove lib/strdup.c.
5350         (configure.ac): Don't compile strdup.c.
5351         * modules/strdup-posix (Depends-on, configure.ac): Don't test
5352         ac_cv_func_strdup.
5353         * doc/posix-functions/strdup.texi: Update.
5354         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
5355         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
5356         (Depends-on): Remove unistr/u8-strlen.
5358 2020-08-13  Bruno Haible  <bruno@clisp.org>
5360         sys_random: Work around an uClibc bug.
5361         Reported by akater <nuclearspace@gmail.com>
5362         via Stefan Kangas <stefan@marxist.se>
5363         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
5364         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
5365         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
5366         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5367         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
5369 2020-08-12  Bruno Haible  <bruno@clisp.org>
5371         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
5372         Reported by Florian Weimer in
5373         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
5374         * lib/gen-uni-tables.c (output_predicate): Change the element type of
5375         the level3 array to 'unsigned int'.
5376         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
5377         * lib/unictype/categ_*.h: Regenerated.
5378         * lib/unictype/ctype_*.h: Regenerated.
5379         * lib/unictype/pr_*.h: Regenerated.
5380         * lib/unictype/sy_*.h: Regenerated.
5381         * lib/unicase/cased.h: Regenerated.
5382         * lib/unicase/ignorable.h: Regenerated.
5384 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5386         stdint: port intptr_t to more-recent MinGW
5387         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
5388         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
5389         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
5390         Apparently those two macros were removed in mingwrt-3.22
5391         dated 2016-07-14.
5393 2020-08-12  Bruno Haible  <bruno@clisp.org>
5395         thread-optim: Export function-like macros only.
5396         Suggested by Paul Eggert.
5397         * lib/thread-optim.h (gl_multithreaded): New macro.
5398         (IF_MT_DECL, IF_MT): Remove macros.
5399         * doc/multithread.texi (Multithreading Optimizations): Add a small
5400         example.
5401         * lib/fatal-signal.c: Update all uses.
5402         * lib/clean-temp.c: Likewise.
5403         * lib/localename.c: Likewise.
5404         * modules/localename (Depends-on): Add stdbool.
5406 2020-08-12  Bruno Haible  <bruno@clisp.org>
5408         Revert autoupdate's revert.
5409         * config/srclist.txt: Mark regex.h as needing sync with glibc.
5411 2020-08-11  Bruno Haible  <bruno@clisp.org>
5413         thread-optim: Fix a compiler warning.
5414         * lib/thread-optim.h (IF_MT_DECL): Define differently.
5416 2020-08-11  Bruno Haible  <bruno@clisp.org>
5418         Use __restrict also on clang.
5419         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
5420         (__restrict_arr): On clang, define like on GCC.
5421         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
5422         (_Restrict_arr_): Use _Restrict_ also on clang.
5423         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
5424         (_Restrict_arr_): Use _Restrict_ also on clang.
5426 2020-08-11  Bruno Haible  <bruno@clisp.org>
5428         Use flexible array syntax also on clang.
5429         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
5430         define like for GCC 3.
5432 2020-08-11  Bruno Haible  <bruno@clisp.org>
5434         fcntl: On native Windows, use _setmode, not setmode.
5435         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
5436         * lib/binary-io.h: Update comment.
5437         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
5438         * tests/test-dup2.c: Likewise.
5439         * tests/test-dup-safer.c: Likewise.
5440         * tests/test-fcntl.c: Likewise.
5442 2020-08-11  Bruno Haible  <bruno@clisp.org>
5444         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
5445         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
5446         * lib/spawn-pipe.c (create_pipe): Likewise.
5447         * tests/test-nonblocking-pipe-main.c (main): Likewise.
5448         * tests/test-nonblocking-socket-main.c (main): Likewise.
5449         * lib/wait-process.c: Update comment.
5450         * doc/posix-functions/fork.texi: Update.
5452 2020-08-11  Bruno Haible  <bruno@clisp.org>
5454         asyncsafe-spin: Use GCC built-ins also on clang.
5455         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
5456         the newer GCC built-ins also on clang.
5458 2020-08-11  Bruno Haible  <bruno@clisp.org>
5460         Use expression statements also on clang.
5461         * lib/cdefs.h (__extension__): Don't define to empty on clang.
5462         * lib/obstack.h (__extension__): Likewise.
5463         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
5464         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
5465         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
5466         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
5467         obstack_finish, obstack_free): Enable as optimized macros also on clang.
5468         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
5470 2020-08-10  Bruno Haible  <bruno@clisp.org>
5472         Use many __attribute__s with clang.
5473         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
5474         on clang.
5475         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
5476         New macros.
5477         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
5478         on clang.
5479         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
5480         also on older clang versions.
5481         (__attribute__): Don't define to empty on clang.
5482         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
5483         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
5484         (__attribute_const__): Use __attribute__ __const__ also on clang.
5485         (__attribute_used__): Use __attribute__ __used__ also on clang.
5486         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
5487         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
5488         clang.
5489         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
5490         clang.
5491         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
5492         also on clang.
5493         (__nonnull): Use __attribute__ __nonnull__ also on clang.
5494         (__attribute_warn_unused_result__): Use __attribute__
5495         __warn_unused_result__ also on clang.
5496         (__always_inline): Use __attribute__ __always_inline__ also on clang.
5497         (__attribute_artificial__): Use __attribute__ __artificial__ also on
5498         clang >= 7.
5499         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
5500         clang versions.
5501         (_Noreturn): Don't redefine on clang >= 3.5.
5502         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
5503         also on clang.
5504         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
5505         on clang.
5506         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5507         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5508         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5509         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
5510         also on clang.
5511         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5512         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
5513         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
5514         also on clang.
5515         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
5516         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
5517         __attribute__ __noreturn__ also on clang.
5518         * lib/obstack.h (__attribute_noreturn__): Likewise.
5519         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
5520         clang.
5521         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
5522         always_inline also on clang.
5523         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
5524         clang.
5526 2020-08-10  Bruno Haible  <bruno@clisp.org>
5528         c-ldtoastr tests: Fix test failure.
5529         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
5530         is longer than 'double'.
5532 2020-08-10  Bruno Haible  <bruno@clisp.org>
5534         Revert autoupdate's revert.
5535         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
5537 2020-08-09  Bruno Haible  <bruno@clisp.org>
5539         string: Fix build error in C++ mode with clang (regression from today).
5540         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
5541         parameters, one for GCC, one for clang.
5542         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
5543         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
5544         as return type.
5546 2020-08-09  Bruno Haible  <bruno@clisp.org>
5548         ftruncate: Use _chsize, not chsize.
5549         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
5550         * lib/ftruncate.c: Test HAVE__CHSIZE.
5551         (chsize_nothrow): Use _chsize, not chsize.
5553 2020-08-09  Bruno Haible  <bruno@clisp.org>
5555         Silence warnings from clang 10 with -Wimplicit-fallthrough.
5556         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
5557         clang >= 10.
5558         * lib/fnmatch.c (FALLTHROUGH): Likewise.
5559         * lib/fts.c (FALLTHROUGH): Likewise.
5560         * tests/macros.h (FALLTHROUGH): Likewise.
5561         * lib/regex_internal.h (FALLTHROUGH): Likewise.
5562         * config/srclist.txt: Mark it as needing sync with glibc.
5564 2020-08-09  Bruno Haible  <bruno@clisp.org>
5566         stdbool tests: Enable the stricter tests also on clang.
5567         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
5568         (e): Enable the address-to-bool conversion test also on clang.
5570 2020-08-09  Bruno Haible  <bruno@clisp.org>
5572         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
5573         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
5575 2020-08-09  Bruno Haible  <bruno@clisp.org>
5577         Use attribute __aligned__ with clang.
5578         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
5579         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
5581 2020-08-09  Bruno Haible  <bruno@clisp.org>
5583         Use __alignof__ with clang.
5584         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
5585         on clang.
5586         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
5587         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
5588         clang.
5589         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
5590         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
5591         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
5592         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
5594 2020-08-09  Bruno Haible  <bruno@clisp.org>
5596         ignore-value: Simplify on clang.
5597         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
5598         workaround.
5600 2020-08-09  Bruno Haible  <bruno@clisp.org>
5602         Use __typeof__ with clang.
5603         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
5604         "clang -std=gnu99".
5605         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
5606         * tests/test-stdint.c (verify_same_types): Enable the check also on
5607         clang.
5609 2020-08-09  Bruno Haible  <bruno@clisp.org>
5611         Add ability to emit user-defined warnings and errors with clang.
5612         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
5613         _GL_ATTRIBUTE_WARNING using an attribute for clang.
5614         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
5615         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
5616         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
5617         attribute for clang.
5619 2020-08-09  Bruno Haible  <bruno@clisp.org>
5621         intprops: Fix typo in comment.
5622         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
5624 2020-08-09  Bruno Haible  <bruno@clisp.org>
5626         Use __builtin_signbit* with clang.
5627         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
5628         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
5629         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5631         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5632         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
5633         not REPLACE_SIGNBIT_USING_GCC.
5635 2020-08-09  Bruno Haible  <bruno@clisp.org>
5637         Use __builtin_isnan with clang.
5638         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5639         not __builtin_isnanf. Also on clang.
5640         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
5641         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
5642         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
5643         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
5644         built-in.
5645         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5646         not __builtin_isnanl. Also on clang.
5647         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
5648         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
5649         * lib/math.in.h (__has_builtin): Remove macro.
5650         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
5651         __builtin_isnanf. Also on clang.
5652         (isnand, gl_isnan_d): With clang, use the GCC built-in.
5653         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
5654         __builtin_isnanl. Also on clang.
5655         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
5656         on clang.
5658 2020-08-09  Bruno Haible  <bruno@clisp.org>
5660         thread-optim: Fix logic error.
5661         Reported by Paul Eggert.
5662         * lib/thread-optim.h (IF_MT): Fix logic error.
5664 2020-08-08  Bruno Haible  <bruno@clisp.org>
5666         localename: Use module 'thread-optim'.
5667         * lib/localename.c: Include thread-optim.h.
5668         (struniq): Use IF_MT macro.
5669         * modules/localename (Depends-on): Add thread-optim.
5671         clean-temp: Use module 'thread-optim'.
5672         * lib/clean-temp.c: Include thread-optim.h.
5673         (register_temporary_file, unregister_temporary_file, create_temp_dir,
5674         register_temp_file, unregister_temp_file, register_temp_subdir,
5675         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
5676         close_temp, fclose_variant_temp): Use IF_MT macro.
5677         * modules/clean-temp (Depends-on): Add thread-optim.
5679         fatal-signal: Use module 'thread-optim'.
5680         * lib/fatal-signal.c: Include thread-optim.h.
5681         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
5682         macro.
5683         * modules/fatal-signal (Depends-on): Add thread-optim.
5685 2020-08-08  Bruno Haible  <bruno@clisp.org>
5687         New module 'thread-optim'.
5688         * lib/thread-optim.h: New file.
5689         * modules/thread-optim: New file.
5690         * doc/multithread.texi (Multithreading Optimizations): New section.
5692 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
5694         doc: more updates for glibc 2.32
5695         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
5696         * doc/posix-functions/fchmodat.texi: Update.
5698 2020-08-07  Bruno Haible  <bruno@clisp.org>
5700         doc: Update for glibc 2.32.
5701         * doc/glibc-functions/__libc_single_threaded.texi: New file.
5702         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
5703         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
5704         * doc/glibc-functions/sigabbrev_np.texi: New file.
5705         * doc/glibc-functions/sigdescr_np.texi: New file.
5706         * doc/glibc-functions/strerrordesc_np.texi: New file.
5707         * doc/glibc-functions/strerrorname_np.texi: New file.
5708         * doc/gnulib.texi: Include them.
5709         (Glibc sys/single_threaded.h): New section.
5710         * doc/pastposix-functions/h_errno.texi: Update.
5711         * doc/posix-functions/*.texi: Likewise.
5712         * doc/glibc-functions/*.texi: Likewise.
5714 2020-08-07  Bruno Haible  <bruno@clisp.org>
5716         alloca: No need to compile alloca.c with clang.
5717         * lib/alloca.c: Skip all code with clang.
5719         Use __builtin_alloca with clang.
5720         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
5722 2020-08-06  Bruno Haible  <bruno@clisp.org>
5724         Use __builtin_assume with clang.
5725         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
5726         (assume): Use __builtin_assume when available.
5728 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5730         libgmp: add <gmp/gmp.h> support
5731         * m4/libgmp.m4 (gl_LIBGMP):
5732         * modules/libgmp (configure.ac, Makefile.am):
5733         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
5734         ‘#include <gmp.h>’.
5736 2020-08-06  Bruno Haible  <bruno@clisp.org>
5738         Consider that clang defines __OPTIMIZE__ like GCC does.
5739         * lib/streq.h: Define the inline functions also on clang.
5740         * lib/c-strcaseeq.h: Likewise.
5741         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
5742         the GCC workaround to clang.
5744 2020-08-06  Bruno Haible  <bruno@clisp.org>
5746         safe-alloc: Remove unused code.
5747         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
5749 2020-08-06  Bruno Haible  <bruno@clisp.org>
5751         Use __builtin_expect with clang everywhere.
5752         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
5753         also on clang.
5755 2020-08-05  Bruno Haible  <bruno@clisp.org>
5757         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
5758         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
5759         built-in also on clang.
5760         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
5761         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
5763 2020-08-05  Bruno Haible  <bruno@clisp.org>
5765         Use __builtin_clz{,l,ll} with clang, also on Windows.
5766         * lib/integer_length.c: With clang, use the GCC built-in, not
5767         <intrin.h>.
5768         * lib/integer_length_l.c: Likewise.
5769         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
5770         also on clang.
5771         * lib/vasnprintf.c (divide): Likewise.
5773 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5775         Update srclist.txt as per recent glibc changes
5776         * config/srclist.txt: Uncomment lines to reflect recent merges
5777         from Gnulib to glibc.
5779 2020-08-03  Bruno Haible  <bruno@clisp.org>
5781         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5782         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
5784 2020-08-03  Bruno Haible  <bruno@clisp.org>
5786         integer_length_ll: Optimize for MSVC in 64-bit mode.
5787         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5788         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5790 2020-08-03  Bruno Haible  <bruno@clisp.org>
5792         integer_length_ll: Optimize for MSVC in 32-bit mode.
5793         * lib/integer_length_l.c: Include <intrin.h>.
5794         (integer_length): Define as inline function, like in
5795         lib/integer_length.c.
5797 2020-08-03  Bruno Haible  <bruno@clisp.org>
5799         integer_length: Optimize for MSVC.
5800         * lib/integer_length.c: Include <intrin.h>.
5801         (integer_length): With MSVC, use the _BitScanReverse built-in.
5803 2020-08-03  Bruno Haible  <bruno@clisp.org>
5805         ffsll: Optimize for MSVC in 64-bit mode.
5806         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5807         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5808         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
5810 2020-08-03  Bruno Haible  <bruno@clisp.org>
5812         ffsll: Optimize for MSVC in 32-bit mode.
5813         * lib/ffsl.h: Include <intrin.h>.
5814         (ffs): Define as inline function, like in lib/ffs.c.
5816 2020-08-03  Bruno Haible  <bruno@clisp.org>
5818         ffs: Optimize for MSVC.
5819         * lib/ffs.c: Include <intrin.h>.
5820         (ffs): With MSVC, use the _BitScanForward built-in.
5822 2020-08-03  Bruno Haible  <bruno@clisp.org>
5824         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
5825         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
5826         variable.
5828 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
5830         fopen: Avoid undesired interactions with glibc headers.
5831         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
5832         __need_FILE, as the latter does not work with glibc.
5834 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5836         fcntl: document some F_SETLK errno variations
5837         * doc/posix-functions/fcntl.texi (fcntl): Document
5838         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
5840 2020-08-02  Bruno Haible  <bruno@clisp.org>
5842         oset: Add an 'iterator_atleast' operation.
5843         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
5844         extracted from gl_array_search_atleast.
5845         (gl_array_search_atleast): Use it.
5846         (gl_array_iterator_atleast): New function.
5847         (gl_array_oset_implementation): Use it.
5848         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
5849         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
5850         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
5851         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
5852         member.
5853         (gl_oset_iterator_atleast): New function.
5854         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
5855         (gl_OSet::iterator): Add another auxiliary constructor.
5856         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
5857         New functions.
5858         (main): Test also gl_oset_iterator_atleast.
5859         * tests/test-avltree_oset.c (is_at_least): New function.
5860         (main): Test also gl_oset_iterator_atleast.
5861         * tests/test-rbtree_oset.c (is_at_least): New function.
5862         (main): Test also gl_oset_iterator_atleast.
5863         * tests/test-oset-c++.cc (is_at_most): New function.
5864         (main): Test also gl_OSet::begin_atleast.
5866 2020-08-02  Bruno Haible  <bruno@clisp.org>
5868         oset-c++, omap-c++: Remove restriction for search_atleast method.
5869         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
5870         a different type than the element.
5871         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
5872         a different type than the key.
5874 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5876         gnumakefile: say ‘$(MAKE)’ not ‘make’
5877         * top/GNUmakefile (abort-due-to-no-makefile):
5878         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
5879         This change is backported from Autoconf.
5881 2020-08-01  Bruno Haible  <bruno@clisp.org>
5883         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5884         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
5885         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
5886         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
5887         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
5888         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
5890 2020-08-01  Bruno Haible  <bruno@clisp.org>
5892         libtextstyle-optional: Update tests.
5893         * modules/libtextstyle-optional-tests (configure.ac): Invoke
5894         gl_LIBTEXTSTYLE_OPTIONAL.
5896 2020-08-01  Bruno Haible  <bruno@clisp.org>
5898         parse-datetime: Fix wrong #line statements.
5899         * modules/parse-datetime (Makefile.am): Correct #line statements also in
5900         parse-datetime-gen.h.
5902 2020-08-01  Bruno Haible  <bruno@clisp.org>
5904         libtextstyle[-optional]: Allow requesting a minimum version.
5905         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
5906         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
5907         gl_LIBTEXTSTYLE_SEARCH): New macros.
5908         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
5909         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
5910         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
5911         * modules/libtextstyle-optional (configure.ac): Don't invoke
5912         gl_LIBTEXTSTYLE_OPTIONAL.
5913         * NEWS: Mention the changes.
5915 2020-07-31  Bruno Haible  <bruno@clisp.org>
5917         _GL_CMP: Improve documentation.
5918         Reported by Paul Eggert in
5919         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
5920         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
5921         passed.
5923 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5925         largefile: sync with Autoconf master
5926         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
5927         Avoid undefined behavior on platforms where off_t is 32 bits.
5928         See: https://bugs.debian.org/742780
5930         alloca: sync with Autoconf master
5931         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5932         Do not define if Autoconf 2.70 or later, since Autoconf master
5933         now matches us.
5935 2020-07-30  Bruno Haible  <bruno@clisp.org>
5937         unicodeio: Add comment.
5938         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
5939         different iconv behaviours.
5941 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5943         Work around some Oracle Studio attribute bugs
5944         These were discovered when building bleeding-edge Emacs with
5945         Oracle Studio.
5946         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
5947         Port to Oracle Studio 12.6, which mishandles __attribute__
5948         ((__cold__)) and __attribute__ ((__may_alias__)) even though
5949         __has_attribute says they work.
5951 2020-07-29  Bruno Haible  <bruno@clisp.org>
5953         unicodeio: Fix wrong result on musl libc.
5954         Reported by A. Wilcox <awilfox@adelielinux.org> in
5955         <https://www.openwall.com/lists/musl/2020/07/29/2>.
5956         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
5957         on musl libc.
5958         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
5959         * modules/unicodeio (Files): Add m4/musl.m4.
5961 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5963         fsusage, regex, stat-size: remove Cray support
5964         As near as I can make out this is actually support for UNICOS/mp,
5965         last released 2005, and Cray hasn’t supported that for years.
5966         * config/srclist.txt: Comment out regex.h for now.
5967         * lib/fsusage.c (get_fs_usage):
5968         * lib/regex.h (re_comp, re_exec):
5969         * lib/stat-size.h (ST_NBLOCKSIZE):
5970         Don’t worry about _CRAY.
5972 2020-07-29  Bruno Haible  <bruno@clisp.org>
5974         parse-datetime: Fix compilation error with bison 3.7.
5975         * modules/parse-datetime (Makefile.am): Create a generated header file
5976         parse-datetime-gen.h in the source directory. Correct #include and
5977         #line statements during preprocessing.
5979 2020-07-28  Bruno Haible  <bruno@clisp.org>
5981         fopen-gnu: Create files correctly (regression from 2020-05-24).
5982         * lib/fopen.c (rpl_open): Pass a third argument to open().
5984 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5986         xalloc-die: don’t depend on xalloc
5987         This removes a circular dependency, as xalloc depends on xalloc-die.
5988         * modules/xalloc-die (Files): Add lib/xalloc.h.
5989         (Depends-on): Remove xalloc.
5990         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
5992         dfa-tests: port to MSVC
5993         Problem reported by Gisle Vanem in:
5994         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
5995         Also, remove an unnecessary dependency on getprogname.
5996         * modules/dfa-tests (Depends-on): Remove getprogname.
5997         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
5998         (exit_status): New static var.
5999         (dfawarn): Set it instead of exiting.
6000         Do not declare as _Noreturn, to pacify MSVC.
6001         (main): Return exit_status.
6003 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6005         argz: pacify MSVC
6006         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
6007         Problem reported by Gisle Vanem.
6009         libgmp: remove dependency on havelib
6010         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
6011         use the more-traditional AC_SEARCH_LIBS approach.
6012         This should work better with GNU Emacs configuration,
6013         which uses pkg-config instead of a havelib-style approach.
6014         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
6015         * modules/libgmp (Depends-on): Remove havelib.
6017         libgmp: remove HAVE_GMP, LIB_GMP
6018         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
6019         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
6021 2020-07-26  Bruno Haible  <bruno@clisp.org>
6023         inttypes: Remove support for AIX 4.
6024         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
6025         * m4/inttypes-pri.m4: Remove file.
6026         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
6027         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
6028         * modules/inttypes-incomplete (Makefile.am): Don't substitute
6029         PRI_MACROS_BROKEN.
6030         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
6032 2020-07-26  Bruno Haible  <bruno@clisp.org>
6034         gettimeofday: Remove workaround for Mac OS X 10.0.
6035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
6036         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
6037         * lib/gettimeofday.c: Don't include localtime-buffer.h.
6038         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6039         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6040         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
6041         * modules/localtime-buffer: Remove file.
6042         * lib/localtime-buffer.h: Remove file.
6043         * lib/localtime-buffer.c: Remove file.
6044         * m4/localtime-buffer.m4: Remove file.
6045         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
6047 2020-07-26  Bruno Haible  <bruno@clisp.org>
6049         tzset: Remove workaround for Solaris 2.6.
6050         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
6051         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
6052         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
6053         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
6054         * lib/localtime-buffer.c: Likewise.
6055         * lib/localtime.c: Likewise.
6056         * lib/tzset.c: Don't include localtime-buffer.h.
6057         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
6058         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
6059         is 1.
6060         * modules/tzset (Depends-on): Remove localtime-buffer.
6062 2020-07-26  Bruno Haible  <bruno@clisp.org>
6064         expl: Simplify autoconf test.
6065         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
6066         with small values..." test into the "checking whether expl works..."
6067         test.
6069 2020-07-26  Bruno Haible  <bruno@clisp.org>
6071         alloca: Remove Cray-2 and Cray Y-MP support.
6072         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
6073         Enable also on Autoconf >= 2.69.
6074         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
6075         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
6076         i00afunc): Remove.
6078 2020-07-25  Bruno Haible  <bruno@clisp.org>
6080         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
6081         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
6083 2020-07-25  Bruno Haible  <bruno@clisp.org>
6085         sigprocmask: Small autoconf macro improvement.
6086         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
6087         user to override the value of gl_cv_func_sigprocmask.
6088         * m4/gnulib-common.m4 (gl_SILENT): New macro.
6090 2020-07-25  Bruno Haible  <bruno@clisp.org>
6092         Small autoconf macro improvements.
6093         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
6094         override the value of gl_cv_func_working_mktime.
6095         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
6096         compiler produces multi-arch binaries..." in the configure output.
6097         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
6098         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
6100 2020-07-25  Bruno Haible  <bruno@clisp.org>
6102         doc: Update for NetBSD 7.1, 8.0, 9.0.
6103         * doc/*/*.texi: Update.
6104         * m4/exp2l.m4: Update comments.
6105         * m4/expl.m4: Likewise.
6106         * m4/ilogb.m4: Likewise.
6107         * m4/ilogbf.m4: Likewise.
6108         * m4/log10l.m4: Likewise.
6109         * m4/logl.m4: Likewise.
6110         * m4/printf.m4: Likewise.
6111         * m4/rintl.m4: Likewise.
6112         * m4/wcwidth.m4: Likewise.
6114 2020-07-24  Bruno Haible  <bruno@clisp.org>
6116         doc: Update for Mac OS X 10.13.
6117         * doc/*/*.texi: Update.
6118         * m4/expm1l.m4: Update comments.
6119         * m4/getgroups.m4: Likewise.
6120         * m4/getlogin_r.m4: Likewise.
6121         * m4/linkat.m4: Likewise.
6122         * m4/printf.m4: Likewise.
6124 2020-07-24  Bruno Haible  <bruno@clisp.org>
6126         doc: Update for Cygwin 2.9.0.
6127         * doc/*/*.texi: Update.
6129 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6131         parse-datetime: modernize doc
6132         * doc/parse-datetime.texi: Use more-current examples.
6133         Don’t lead with 32-bit time_t, as it’s on its way out.
6134         Capitalize “Epoch” to be consistent with POSIX.
6136         timespec: remove dependence on ‘verify’
6137         * lib/timespec.h: Do not include verify.h; no longer needed.
6138         * modules/timespec (Depends-on): Remove ‘verify’.
6140         Optimize a few more three-valued comparisons
6141         * lib/timespec.h (timespec_cmp, timespec_sign):
6142         * lib/utimecmp.c (utimecmpat):
6143         Avoid conditional branches by using _GL_CMP.
6145         Fix _GL_CMP parenthesization typo
6146         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
6148 2020-07-24  Bruno Haible  <bruno@clisp.org>
6150         dfa: Revert breaking gawk.
6151         Reported by Arnold Robbins <arnold@skeeve.com>.
6152         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
6154 2020-07-23  Bruno Haible  <bruno@clisp.org>
6156         Optimize three-valued comparison between integers.
6157         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
6158         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
6159         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
6160         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
6161         * lib/dfa.c (compare): Likewise.
6162         * lib/fts.c (fts_compare_ino): Likewise.
6163         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
6164         * lib/mbscasecmp.c (mbscasecmp): Likewise.
6165         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
6166         * lib/memcasecmp.c (memcasecmp): Likewise.
6167         * lib/memcmp2.c (memcmp2): Likewise.
6168         * lib/savedir.c (direntry_cmp_inode): Likewise.
6169         * lib/strcasecmp.c (strcasecmp): Likewise.
6170         * lib/strncasecmp.c (strncasecmp): Likewise.
6171         * lib/unistr/u-cmp2.h (FUNC): Likewise.
6173 2020-07-23  Bruno Haible  <bruno@clisp.org>
6175         lchmod: Use /proc on Cygwin.
6176         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
6178 2020-07-23  Ken Brown  <kbrown@cornell.edu>
6180         fchmodat: Use /proc on Cygwin
6181         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
6183 2020-07-21  Bruno Haible  <bruno@clisp.org>
6185         aligned-malloc: Optionally use aligned_alloc.
6186         * lib/aligned-malloc.h: Verify the alignment.
6187         (aligned_malloc): Use aligned_alloc as an alternative.
6188         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
6189         * doc/posix-functions/aligned_alloc.texi: Mention the modules
6190         'aligned-malloc' and 'pagealign_alloc'.
6192 2020-07-21  Bruno Haible  <bruno@clisp.org>
6194         aligned-malloc: Add tests.
6195         * tests/test-aligned-malloc.c: New file.
6196         * modules/aligned-malloc-tests: New file.
6198         aligned-malloc: New module.
6199         * lib/aligned-malloc.h: New file.
6200         * m4/malloc-align.m4: New file.
6201         * modules/aligned-malloc: New file.
6202         * doc/posix-functions/posix_memalign.texi: Mention the new module.
6203         * doc/glibc-functions/memalign.texi: Likewise.
6205 2020-07-21  Bruno Haible  <bruno@clisp.org>
6207         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
6208         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
6209         sure PRIPTR_PREFIX is defined to "ll", not "l".
6211 2020-07-21  Bruno Haible  <bruno@clisp.org>
6213         printf-posix: Make an autoconf test more future-proof.
6214         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
6215         using uintptr_t.
6217 2020-07-20  Bruno Haible  <bruno@clisp.org>
6219         list, oset, omap: Relicense some of the container modules under LGPLv2+.
6220         * modules/list (License): Change to LGPLv2+.
6221         * modules/array-list (License): Likewise.
6222         * modules/carray-list (License): Likewise.
6223         * modules/linked-list (License): Likewise.
6224         * modules/avltree-list (License): Likewise.
6225         * modules/rbtree-list (License): Likewise.
6226         * modules/oset (License): Likewise.
6227         * modules/array-oset (License): Likewise.
6228         * modules/avltree-oset (License): Likewise.
6229         * modules/rbtree-oset (License): Likewise.
6230         * modules/omap (License): Likewise.
6231         * modules/array-omap (License): Likewise.
6232         * modules/avltree-omap (License): Likewise.
6233         * modules/rbtree-omap (License): Likewise.
6235 2020-07-20  Bruno Haible  <bruno@clisp.org>
6237         oset: Add an 'update' operation.
6238         * lib/gl_array_oset.c (gl_array_update): New function.
6239         (gl_array_oset_implementation): Use it.
6240         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6241         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6242         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
6243         extracted from gl_tree_nx_add_before.
6244         (gl_tree_nx_add_before): Invoke it.
6245         (gl_tree_add_node_after): New function, extracted from
6246         gl_tree_nx_add_after.
6247         (gl_tree_nx_add_after): Invoke it.
6248         (gl_tree_remove_node_no_free): New function, extracted from
6249         gl_tree_remove_node.
6250         (gl_tree_remove_node): Invoke it.
6251         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
6252         extracted from gl_tree_nx_add_before.
6253         (gl_tree_nx_add_before): Invoke it.
6254         (gl_tree_add_node_after): New function, extracted from
6255         gl_tree_nx_add_after.
6256         (gl_tree_nx_add_after): Invoke it.
6257         (gl_tree_remove_node_no_free): New function, extracted from
6258         gl_tree_remove_node.
6259         (gl_tree_remove_node): Invoke it.
6260         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
6261         from gl_tree_iterator_next.
6262         (gl_tree_iterator_next): Invoke it.
6263         (gl_tree_prev_node, gl_tree_update): New functions.
6264         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6265         (gl_avltree_oset_implementation): Use gl_tree_update.
6266         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6267         (gl_rbtree_oset_implementation): Use gl_tree_update.
6268         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
6269         (gl_oset_update): New function.
6270         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
6271         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
6272         * modules/rbtree-oset (configure.ac): Likewise.
6273         * tests/test-oset-update.h: New file.
6274         * tests/test-array_oset.c: Include test-oset-update.h.
6275         (main): Invoke test_update.
6276         * tests/test-avltree_oset.c: Likewise.
6277         * tests/test-rbtree_oset.c: Likewise.
6278         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
6279         * modules/avltree-oset-tests (Files): Likewise.
6280         * modules/rbtree-oset-tests (Files): Likewise.
6281         * tests/test-oset-c++.cc (action): New function.
6282         (main): Test the 'update' member function.
6284 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6286         md5, sha1, sha256, sha512: pacify Autoconf 2.70
6287         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
6288         shell if, so that the argument to AC_CHECK_HEADERS is
6289         a simple string that does not require shell evaluation.
6290         This fixes a warning generated by Autoconf 2.69b.
6292 2020-07-12  Bruno Haible  <bruno@clisp.org>
6294         libgmp: Avoid warning when --without-libgmp is used.
6295         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
6296         GCC >= 8, not for GCC >= 4.6.
6298 2020-07-12  Bruno Haible  <bruno@clisp.org>
6300         libgmp: Link to the correct shared library.
6301         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
6302         * modules/libgmp (Depends-on): Add havelib.
6303         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
6304         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
6306 2020-07-12  Bruno Haible  <bruno@clisp.org>
6308         libgmp tests: Add some safety checks.
6309         * modules/libgmp-tests (Depends-on): Add verify.
6310         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
6311         (main): Verify that gmp.h and libgmp versions match.
6313 2020-07-10  Bruno Haible  <bruno@clisp.org>
6315         unicodeio: Fix wrong result on NetBSD.
6316         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
6317         characters also on NetBSD.
6319 2020-07-09  Bruno Haible  <bruno@clisp.org>
6321         unicodeio: Fix wrong result on Solaris 11.
6322         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
6323         via Akim Demaille <akim.demaille@gmail.com> in
6324         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
6325         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
6326         characters on Solaris.
6327         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
6328         UTF-8 output or the specified fallback.
6330 2020-07-08  Bruno Haible  <bruno@clisp.org>
6332         unicodeio: Add tests.
6333         * tests/test-unicodeio.c: New file.
6334         * tests/test-unicodeio1.sh: New file.
6335         * tests/test-unicodeio2.sh: New file.
6336         * tests/test-unicodeio3.sh: New file.
6337         * modules/unicodeio-tests: New file.
6339 2020-07-08  Bruno Haible  <bruno@clisp.org>
6341         unicodeio: Document link requirements.
6342         * modules/unicodeio (Link): New section.
6344 2020-07-07  Bruno Haible  <bruno@clisp.org>
6346         doc: Remove support for some very old platforms.
6347         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
6348         * doc/posix-functions/memcpy.texi: Likewise.
6349         * doc/posix-functions/memmove.texi: Likewise.
6350         * doc/posix-functions/memset.texi: Likewise.
6351         * doc/posix-functions/getcwd.texi: Likewise.
6353         memchr: Remove support for some very old platforms.
6354         * m4/memchr-obsolete.m4: Remove file.
6355         * modules/memchr-obsolete: Remove file.
6356         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
6357         absent. Don't define HAVE_MEMCHR.
6358         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
6359         * modules/memchr (Depends-on): Remove memchr-obsolete.
6360         (configure.ac): Assume HAVE_MEMCHR is 1.
6361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6362         HAVE_MEMCHR.
6363         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
6364         * doc/posix-functions/memchr.texi: Don't mention module
6365         'memchr-obsolete'.
6366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
6367         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
6368         * modules/strnlen (Depends-on): Remove memchr-obsolete.
6370         dup2: Remove support for some very old platforms.
6371         * m4/dup2-obsolete.m4: Remove file.
6372         * modules/dup2-obsolete: Remove file.
6373         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
6374         Don't define HAVE_DUP2.
6375         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
6376         * lib/dup2.c: Likewise.
6377         * modules/dup2 (Depends-on, configure.ac): Likewise.
6378         (Depends-on): Remove dup2-obsolete.
6379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
6380         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
6381         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
6383 2020-07-07  Bruno Haible  <bruno@clisp.org>
6385         canonicalize: Trim module dependencies.
6386         * lib/hash-triple.h: Group declarations.
6387         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
6388         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
6389         (STREQ): Remove macro.
6390         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
6391         * modules/hash-triple-simple: New file, based on modules/hash-triple.
6392         * modules/hash-triple (Files): Remove lib/hash-triple.h.
6393         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
6394         * modules/canonicalize (Depends-on): Remove hash-triple. Add
6395         hash-triple-simple.
6396         * modules/file-set (Depends-on): Likewise.
6398 2020-07-07  Bruno Haible  <bruno@clisp.org>
6400         Clarify dependencies to double-slash-root.
6401         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
6402         (Depends-on): Add double-slash-root.
6403         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
6404         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
6406 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6408         libgmp: new module
6409         The idea is to let programs simply include <gmp.h>, and
6410         so long as they live within the mini-gmp subset they need
6411         not worry about whether the GMP libraries are installed.
6412         * MODULES.html.sh: Mention it.
6413         * config/srclist.txt: Mention files copied from GMP source.
6414         * config/srclistvars.sh (GMP): New var.
6415         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
6416         * modules/libgmp-tests, tests/test-libgmp.c: New files.
6417         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
6419 2020-07-05  Bruno Haible  <bruno@clisp.org>
6421         mkancesdirs: Trim module dependencies.
6422         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
6423         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
6425 2020-07-05  Bruno Haible  <bruno@clisp.org>
6427         getprogname: Trim module dependencies.
6428         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
6429         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
6430         basename-lgpl.
6432 2020-07-05  Bruno Haible  <bruno@clisp.org>
6434         filenamecat-lgpl: Trim module dependencies.
6435         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
6436         dirname.h.
6437         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
6438         basename-lgpl, filename.
6440 2020-07-05  Bruno Haible  <bruno@clisp.org>
6442         backupfile, backup-rename: Trim module dependencies.
6443         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
6444         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
6445         basename-lgpl.
6446         * modules/backup-rename (Depends-on): Likewise.
6448 2020-07-05  Bruno Haible  <bruno@clisp.org>
6450         argp: Trim module dependencies.
6451         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
6452         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
6454 2020-07-05  Bruno Haible  <bruno@clisp.org>
6456         basename-lgpl: New module.
6457         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
6458         lib/basename-lgpl.c.
6459         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
6460         <stdbool.h>, filename.h.
6461         (last_component): Rename a local variable.
6462         * lib/dirname.h: Include basename-lgpl.h.
6463         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
6464         (last_component, base_len): Remove declarations.
6465         * modules/basename-lgpl: New file.
6466         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
6467         (Depends-on): Add basename-lgpl. Remove double-slash-root.
6468         (Makefile.am): Don't compile basename-lgpl.c.
6469         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
6470         not 'dirname'.
6472 2020-07-05  Bruno Haible  <bruno@clisp.org>
6474         dirname, dirname-lgpl: Simplify.
6475         * m4/dirname.m4: Remove file.
6476         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
6477         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
6478         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
6480 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
6482         tests: avoid shadowing warning
6483         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
6485 2020-07-05  Bruno Haible  <bruno@clisp.org>
6487         supersede: Add tests.
6488         * tests/test-supersede.c: New file.
6489         * tests/test-supersede-open.h: New file.
6490         * tests/test-supersede-fopen.h: New file.
6491         * modules/supersede-tests: New file.
6493         supersede: New module.
6494         * lib/supersede.h: New file.
6495         * lib/supersede.c: New file.
6496         * m4/supersede.m4: New file.
6497         * modules/supersede: New file.
6499 2020-07-05  Bruno Haible  <bruno@clisp.org>
6501         Add some copyright headers.
6502         * lib/dev-ino.h: Add copyright header.
6503         * lib/di-set.h: Likewise.
6504         * lib/fchown-stub.c: Likewise.
6505         * lib/file-set.h: Likewise.
6506         * lib/hash-triple.h: Likewise.
6507         * lib/idcache.h: Likewise.
6508         * lib/ino-map.h: Likewise.
6509         * lib/mkancesdirs.h: Likewise.
6510         * lib/scratch_buffer.h: Likewise.
6511         * lib/se-context.in.h: Likewise.
6512         * lib/stdopen.h: Likewise.
6513         * lib/userspec.h: Likewise.
6515 2020-07-04  Bruno Haible  <bruno@clisp.org>
6517         getrandom: Relicense under LGPLv2+.
6518         Paul Eggert's approval is in
6519         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
6520         * modules/getrandom (License): Change to LGPLv2+.
6522 2020-07-04  Bruno Haible  <bruno@clisp.org>
6524         getumask: Add tests.
6525         * tests/test-getumask.c: New file.
6526         * modules/getumask-tests: New file.
6528         getumask: New module.
6529         * lib/sys_stat.in.h (getumask): New declaration.
6530         * lib/getumask.c: New file.
6531         * m4/getumask.m4: New file.
6532         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
6533         declared.
6534         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
6535         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
6536         HAVE_GETUMASK.
6537         * modules/getumask: New file.
6538         * tests/test-sys_stat-c++.cc (getumask): Check signature.
6539         * doc/glibc-functions/getumask.texi: New file.
6540         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
6542 2020-07-04  Bruno Haible  <bruno@clisp.org>
6544         clean-temp: Add support for temporary files with given mode.
6545         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
6546         * lib/clean-temp.c (struct try_create_file_params): New type.
6547         (try_create_file): New function.
6548         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
6549         gen_tempname.
6551 2020-07-04  Bruno Haible  <bruno@clisp.org>
6553         clean-temp: Document limitations.
6554         * lib/clean-temp.h: Document limitations.
6556 2020-07-04  Bruno Haible  <bruno@clisp.org>
6558         clean-temp: Add support for temporary files with unpredictable names.
6559         * lib/clean-temp.h (gen_register_open_temp): New declaration.
6560         * lib/clean-temp.c: Include tempname.h.
6561         (gen_register_open_temp): New function.
6562         * modules/tempname (configure.ac): Define a module indicator.
6564 2020-07-04  Bruno Haible  <bruno@clisp.org>
6566         clean-temp: Add support for temporary files anywhere in the file system.
6567         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
6568         cleanup_temporary_file): New declarations.
6569         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
6570         variables.
6571         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
6572         (dir_cleanup_list): Renamed from cleanup_list.
6573         (cleanup_action): Process the file_cleanup_list as well.
6574         (do_init_clean_temp): New function.
6575         (clean_temp_once): New variable.
6576         (init_clean_temp): New function.
6577         (create_temp_dir): Invoke it.
6578         (register_temporary_file, unregister_temporary_file,
6579         cleanup_temporary_file): New functions.
6580         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
6581         argument.
6583 2020-07-04  Bruno Haible  <bruno@clisp.org>
6585         clean-temp: Improve comments.
6586         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
6587         fwriteerror_temp, close_stream_temp): Clarify intended use.
6588         * lib/clean-temp.c: Likewise.
6590 2020-07-04  Bruno Haible  <bruno@clisp.org>
6592         clean-temp: Make multithread-safe, part 2.
6593         * lib/fatal-signal.h: Include <signal.h>.
6594         (get_fatal_signal_set): New declaration.
6595         * lib/fatal-signal.c (get_fatal_signal_set): New function.
6596         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
6597         (struct closeable_fd): New type.
6598         (fatal_signal_set): New variable.
6599         (init_fatal_signal_set): New function.
6600         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
6601         (cleanup_action): Invoke asyncsafe_close instead of close.
6602         (create_temp_dir): Invoke init_fatal_signal_set.
6603         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
6604         element.
6605         (unregister_fd): Remove function.
6606         (close_temp): Cleanup descriptors list on the fly. Invoke
6607         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
6608         (fclose_variant_temp): New function.
6609         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
6610         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
6612 2020-07-04  Bruno Haible  <bruno@clisp.org>
6614         clean-temp: Make multithread-safe, part 1.
6615         * lib/clean-temp.c: Include glthread/lock.h.
6616         (cleanup_list_lock): New variable.
6617         (register_temp_file, unregister_temp_file, register_temp_subdir,
6618         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
6619         (create_temp_dir): Likewise. Don't free the old array.
6620         (descriptors_lock): New variable.
6621         (register_fd, unregister_fd): Use it.
6622         * modules/clean-temp (Depends-on): Add lock.
6624 2020-07-04  Bruno Haible  <bruno@clisp.org>
6626         fatal-signal: Make multithread-safe.
6627         * lib/fatal-signal.c (init_fatal_signals): Add comment.
6628         (do_init_fatal_signal_set): New function, extracted from
6629         init_fatal_signal_set.
6630         (fatal_signal_set_once): New variable.
6631         (init_fatal_signal_set): Use gl_once.
6633 2020-07-03  Bruno Haible  <bruno@clisp.org>
6635         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
6636         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
6637         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
6638         <bcrypt.h>.
6640 2020-07-03  Bruno Haible  <bruno@clisp.org>
6642         dfa tests: Follow common file naming conventions.
6643         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
6644         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
6645         * tests/test-dfa-invalid-char-class.sh: Renamed from
6646         tests/dfa-invalid-char-class.sh. Update.
6647         * modules/dfa-tests (Files, Makefile.am): Update.
6649 2020-07-03  Bruno Haible  <bruno@clisp.org>
6651         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
6652         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
6653         the GCC extended asm syntax also for the Sun Studio 12 compilers.
6655 2020-07-03  Bruno Haible  <bruno@clisp.org>
6657         asyncsafe-spin: Reduce code duplication.
6658         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
6659         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
6660         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
6662 2020-07-03  Bruno Haible  <bruno@clisp.org>
6664         lchmod: Simplify after 2020-02-22 change.
6665         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
6667 2020-07-03  Bruno Haible  <bruno@clisp.org>
6669         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
6670         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
6672 2020-07-03  Bruno Haible  <bruno@clisp.org>
6674         dfa: Make sure the compiler does not barf on 'inline'.
6675         * modules/dfa (configure.ac): Require AC_C_INLINE.
6677 2020-07-03  Bruno Haible  <bruno@clisp.org>
6679         bitset: Make sure the compiler does not barf on 'inline'.
6680         * modules/bitset (configure.ac): New section.
6682 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6684         manywarnings: improve port to GCC 10.1
6685         * build-aux/gcc-warning.spec: Also list warnings that are default
6686         or are enabled by already-given flags.  This lets us speed up
6687         checking for attributes, and makes the generated compilation
6688         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
6689         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
6690         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
6691         to shell variables that may have long values.
6692         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
6693         consequences of other flags, to speed up checking and
6694         shorten commands.
6696         tests: pacify gcc -fanalyzer on zerosize_ptr
6697         * tests/test-memcasecmp.c (main):
6698         * tests/test-memchr.c (main):
6699         * tests/test-memchr2.c (main):
6700         * tests/test-memcmp.c (main):
6701         * tests/test-memmem.c (main):
6702         * tests/test-memrchr.c (main):
6703         * tests/unistr/test-chr.h (main):
6704         * tests/unistr/test-cmp.h (test_cmp):
6705         Check whether zerosize_ptr returns NULL before using it.
6706         This pacifies GCC 10.1’s new fanalyzer option, and matches
6707         other uses of zerosize_ptr.
6709 2020-07-01  Bruno Haible  <bruno@clisp.org>
6711         asyncsafe-spin: Add tests.
6712         * tests/test-asyncsafe-spin1.c: New file.
6713         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
6714         tests/test-pthread-spin.c.
6715         * modules/asyncsafe-spin-tests: New file.
6717 2020-07-01  Bruno Haible  <bruno@clisp.org>
6719         asyncsafe-spin: New module.
6720         * lib/asyncsafe-spin.h: New file.
6721         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
6722         * modules/asyncsafe-spin: New file.
6724 2020-07-01  Bruno Haible  <bruno@clisp.org>
6726         windows-spin: Fix race condition on multiprocessor systems.
6727         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
6729 2020-07-01  Bruno Haible  <bruno@clisp.org>
6731         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
6732         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6733         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
6734         an implementation based on other GCC built-ins.
6736 2020-07-01  Bruno Haible  <bruno@clisp.org>
6738         pthread-spin: Optimize fallback for GCC versions >= 4.7.
6739         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6740         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
6741         lock byte.
6743 2020-07-01  Bruno Haible  <bruno@clisp.org>
6745         pthread-spin: Add error checking.
6746         * lib/pthread-spin.c: Include <stdbool.h>.
6747         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
6748         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
6749         the unlocks.
6750         * modules/pthread-spin (Depends-on): Add stdbool.
6752 2020-07-01  Bruno Haible  <bruno@clisp.org>
6754         pthread-spin: Add tests.
6755         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
6756         * modules/pthread-spin-tests: New file.
6758 2020-07-01  Bruno Haible  <bruno@clisp.org>
6760         tests: Reduce code duplication.
6761         * tests/atomic-int-posix.h: New file, extracted from
6762         tests/test-pthread-mutex.c.
6763         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
6764         * tests/test-pthread-rwlock.c: Likewise.
6765         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
6766         * modules/pthread-rwlock-tests (Files): Likewise.
6768 2020-07-01  Bruno Haible  <bruno@clisp.org>
6770         tests: Refactor.
6771         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
6772         * tests/test-mtx.c: Include it. Remove the corresponding code.
6773         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
6775 2020-07-01  Bruno Haible  <bruno@clisp.org>
6777         tests: Refactor.
6778         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
6779         * tests/test-lock.c: Include it. Remove the corresponding code.
6780         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
6782 2020-06-29  Bruno Haible  <bruno@clisp.org>
6784         sys_socket: Don't define socklen_t if it is already defined on mingw.
6785         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
6786         <https://savannah.gnu.org/bugs/?57725>,
6787         by Rahul Das <bokul_4u@yahoo.com> in
6788         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
6789         and by Eli Zaretskii <eliz@gnu.org> in
6790         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
6791         * lib/sys_socket.in.h (socklen_t): Remove definition.
6793 2020-06-29  Bruno Haible  <bruno@clisp.org>
6795         alloca-opt: Fix warning on mingw.
6796         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
6797         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
6798         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
6799         whether alloca is defined.
6801 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
6803         getrandom: do not depend on ‘open’ on mingw
6804         Similarly for at-internal, getloadavg.  These modules do not call
6805         the ‘open’ function when they are compiled on mingw.  On mingw,
6806         this avoids having to compile open.c when building Emacs, which
6807         does its own thing with ‘open’.
6808         * modules/at-internal, modules/getloadavg, modules/getrandom:
6809         (Depends-on): Don’t depend on ‘open’ on mingw.
6810         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
6811         * modules/getloadavg (Depends-on):
6812         Depend on intprops, open, stdbool, stdlib only if compiling
6813         getloadavg.c.
6815 2020-06-28  Bruno Haible  <bruno@clisp.org>
6817         doc: Add a note about sigprocmask vs. pthread_sigmask.
6818         * doc/posix-functions/sigprocmask.texi: Add note.
6820 2020-06-28  Bruno Haible  <bruno@clisp.org>
6822         getrandom: Fix compilation errors on older versions of mingw.
6823         Reported by Eli Zaretskii <eliz@gnu.org> in
6824         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
6825         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
6826         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
6827         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
6828         BCryptGenRandom ourselves.
6830 2020-06-28  Bruno Haible  <bruno@clisp.org>
6832         clean-temp: Fix wrong errno in error message.
6833         * lib/clean-temp.c (create_temp_dir): Save errno around
6834         unblock_fatal_signals call.
6836 2020-06-27  Bruno Haible  <bruno@clisp.org>
6838         fatal-signal: Make multithread-safe.
6839         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
6841 2020-06-27  Bruno Haible  <bruno@clisp.org>
6843         clean-temp: Don't force deletion of temporary files on native Windows.
6844         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
6845         argument.
6846         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
6847         * NEWS: Mention the change.
6848         * lib/javacomp.c (write_temp_file): Update.
6850 2020-06-27  Bruno Haible  <bruno@clisp.org>
6852         fatal-signal: Make multithread-safe.
6853         * lib/fatal-signal.c: Include glthread/lock.h.
6854         (at_fatal_signal_lock): New variable.
6855         (at_fatal_signal): Use it.
6856         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
6857         (block_fatal_signals, unblock_fatal_signals): Use them.
6858         * modules/fatal-signal (Depends-on): Add lock.
6860 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
6862         getloadavg: don’t depend on fopen-gnu
6863         This is for Emacs, which does not need fopen-gnu for anything else,
6864         and which would need it only on a NetBSD platform where getloadavg
6865         does not work (does that even happen?).
6866         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
6867         * modules/getloadavg (Depends-on): Remove fopen-gnu.
6869         * tests/test-getloadavg.c (main): Fix typo.
6871 2020-06-27  Bruno Haible  <bruno@clisp.org>
6873         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
6874         * modules/tempname (Link): New section.
6875         * modules/mkdtemp (Link): Likewise.
6876         * modules/clean-temp (Link): Likewise.
6877         * modules/mkstemp (Link): Likewise.
6878         * modules/stdlib-safer (Link): Likewise.
6879         * modules/mkstemps (Link): Likewise.
6880         * modules/mkostemp (Link): Likewise.
6881         * modules/mkostemps (Link): Likewise.
6882         * modules/tmpfile (Link): Likewise.
6883         * modules/tmpfile-safer (Link): Likewise.
6884         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
6885         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
6886         $(LIB_GETRANDOM).
6887         * NEWS: Mention the changes.
6889 2020-06-27  Bruno Haible  <bruno@clisp.org>
6891         fopen-gnu: Simplify code.
6892         * lib/fopen.c: Include <stdbool.h>.
6893         (rpl_fopen): Use a single variable open_flags instead of
6894         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
6895         * modules/fopen (Depends-on): Add stdbool.
6897 2020-06-26  Bruno Haible  <bruno@clisp.org>
6899         canonicalize: Improve documentation.
6900         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
6901         return convention.
6903 2020-06-26  Bruno Haible  <bruno@clisp.org>
6905         xgetcwd: Improve documentation.
6906         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
6908 2020-06-26  Bruno Haible  <bruno@clisp.org>
6910         getcwd: Improve documentation.
6911         * lib/getcwd.c (__getcwd): Document the failure return convention.
6913 2020-06-26  Bruno Haible  <bruno@clisp.org>
6915         fchdir: Improve documentation.
6916         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
6917         convention.
6919 2020-06-26  Bruno Haible  <bruno@clisp.org>
6921         filenamecat-lgpl: Set errno upon failure.
6922         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
6923         return convention.
6924         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
6926 2020-06-26  Bruno Haible  <bruno@clisp.org>
6928         areadlink-with-size: Set errno upon failure.
6929         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
6930         fails.
6931         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
6933 2020-06-26  Bruno Haible  <bruno@clisp.org>
6935         copy-file: Shrink dependencies.
6936         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
6937         qcopy-acl.
6939 2020-06-26  Bruno Haible  <bruno@clisp.org>
6941         doc: Mention declaration fixes implemented by some modules.
6942         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
6943         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
6944         declaration appear in <unistd.h>.
6945         * doc/posix-functions/dup.texi: Likewise.
6946         * doc/posix-functions/dup2.texi: Likewise.
6947         * doc/posix-functions/gethostname.texi: Likewise.
6948         * doc/posix-functions/isatty.texi: Likewise.
6949         * doc/posix-functions/lseek.texi: Likewise.
6950         * doc/posix-functions/unlink.texi: Likewise.
6951         * doc/posix-functions/read.texi: Mention the module 'read'.
6952         * doc/posix-functions/write.texi: Mention the effects of the module
6953         'write'.
6955 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
6957         c-dtoastr, c-ldtoastr: new modules
6958         These modules provide the same functionality as the modules
6959         dtoastr and ldtoastr except for the formatting taking place in the
6960         C locale.
6961         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
6962         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
6963         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
6964         defined.  Use c_snprintf and c_strtod/c_strtold instead of
6965         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
6966         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
6967         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
6968         modules/c-ldtoastr-tests: New files.
6969         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
6970         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
6972 2020-06-21  Bruno Haible  <bruno@clisp.org>
6974         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
6975         * lib/tzset.c: Include <stdlib.h>, <string.h>.
6977 2020-06-16  Bruno Haible  <bruno@clisp.org>
6979         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
6980         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
6982 2020-06-16  Bruno Haible  <bruno@clisp.org>
6984         thread, thrd: Avoid a compiler warning.
6985         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
6987 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
6989         windows-thread: Avoid a compiler warning.
6990         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
6991         void.
6992         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
6994 2020-06-15  Bruno Haible  <bruno@clisp.org>
6996         unictype/joininggroup-name: Fix warning on 64-bit mingw.
6997         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
6998         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
6999         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
7000         first.
7002 2020-06-06  Bruno Haible  <bruno@clisp.org>
7004         calloc-gnu tests: Avoid a test failure with clang.
7005         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
7006         'volatile', to defeat compiler optimizations.
7008 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7010         getloadavg: fix double-increment bug
7011         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
7012         Linux without glibc, Android, Cygwin.  This fixes a bug I
7013         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
7014         Problem and fix reported by Semen Verchenko in:
7015         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
7017         tempname: use getrandom, not getentropy
7018         This removes a dependency, as getentropy depends on getrandom.
7019         * lib/tempname.c: Include sys/random.h instead of unistd.h.
7020         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
7021         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
7023 2020-06-01  Bruno Haible  <bruno@clisp.org>
7025         doc: New chapter 'Multithreading'.
7026         * doc/multithread.texi: New file.
7027         * doc/gnulib.texi: Include it.
7029 2020-06-01  Bruno Haible  <bruno@clisp.org>
7031         doc: Move 'Running self-tests under valgrind' section.
7032         * doc/gnulib.texi (Build Infrastructure Modules): Include
7033         valgrind-tests.texi here...
7034         (Miscellaneous Notes): ... not here.
7036 2020-06-01  Bruno Haible  <bruno@clisp.org>
7038         doc: Move 'Visual Studio Compatibility' section.
7039         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
7040         here...
7041         (Build Infrastructure Modules): ... not here.
7043 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7045         doc: improve randomness discussion
7046         Inspired by comments from Jeffrey Walton in:
7047         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
7048         * doc/glibc-functions/getentropy.texi (getentropy):
7049         * doc/glibc-functions/getrandom.texi (getrandom):
7050         Improve discussion of problems with "random" data,
7051         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
7053 2020-06-01  Bruno Haible  <bruno@clisp.org>
7055         doc: Fix Texinfo syntax error.
7056         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
7058 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
7060         doc: Change '.' to '@.' where appropriate.
7061         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
7062         * doc/glibc-functions/fstatfs.texi: Likewise.
7063         * doc/glibc-functions/fts_children.texi: Likewise.
7064         * doc/glibc-functions/fts_read.texi: Likewise.
7065         * doc/glibc-functions/getdirentries.texi: Likewise.
7066         * doc/glibc-functions/mkostemp.texi: Likewise.
7067         * doc/glibc-functions/mkostemps.texi: Likewise.
7068         * doc/glibc-functions/mkstemps.texi: Likewise.
7069         * doc/glibc-functions/preadv.texi: Likewise.
7070         * doc/glibc-functions/pwritev.texi: Likewise.
7071         * doc/glibc-functions/sendfile.texi: Likewise.
7072         * doc/glibc-functions/statfs.texi: Likewise.
7073         * doc/gnulib-intro.texi: Likewise.
7074         * doc/gnulib-tool.texi: Likewise.
7075         * doc/intprops.texi: Likewise.
7076         * doc/lib-symbol-visibility.texi: Likewise.
7077         * doc/licenses-texi.texi: Likewise.
7078         * doc/pastposix-functions/bcmp.texi: Likewise.
7079         * doc/pastposix-functions/bcopy.texi: Likewise.
7080         * doc/pastposix-functions/bzero.texi: Likewise.
7081         * doc/pastposix-functions/ecvt.texi: Likewise.
7082         * doc/pastposix-functions/fcvt.texi: Likewise.
7083         * doc/pastposix-functions/ftime.texi: Likewise.
7084         * doc/pastposix-functions/gcvt.texi: Likewise.
7085         * doc/pastposix-functions/getwd.texi: Likewise.
7086         * doc/pastposix-functions/index.texi: Likewise.
7087         * doc/pastposix-functions/mktemp.texi: Likewise.
7088         * doc/pastposix-functions/rindex.texi: Likewise.
7089         * doc/pastposix-functions/wcswcs.texi: Likewise.
7090         * doc/posix-functions/aio_cancel.texi: Likewise.
7091         * doc/posix-functions/aio_error.texi: Likewise.
7092         * doc/posix-functions/aio_fsync.texi: Likewise.
7093         * doc/posix-functions/aio_read.texi: Likewise.
7094         * doc/posix-functions/aio_return.texi: Likewise.
7095         * doc/posix-functions/aio_suspend.texi: Likewise.
7096         * doc/posix-functions/aio_write.texi: Likewise.
7097         * doc/posix-functions/creat.texi: Likewise.
7098         * doc/posix-functions/ctime.texi: Likewise.
7099         * doc/posix-functions/daylight.texi: Likewise.
7100         * doc/posix-functions/fgetpos.texi: Likewise.
7101         * doc/posix-functions/fopen.texi: Likewise.
7102         * doc/posix-functions/freopen.texi: Likewise.
7103         * doc/posix-functions/fseeko.texi: Likewise.
7104         * doc/posix-functions/fsetpos.texi: Likewise.
7105         * doc/posix-functions/fstatat.texi: Likewise.
7106         * doc/posix-functions/fstatvfs.texi: Likewise.
7107         * doc/posix-functions/ftello.texi: Likewise.
7108         * doc/posix-functions/ftruncate.texi: Likewise.
7109         * doc/posix-functions/getrlimit.texi: Likewise.
7110         * doc/posix-functions/lio_listio.texi: Likewise.
7111         * doc/posix-functions/localtime.texi: Likewise.
7112         * doc/posix-functions/lseek.texi: Likewise.
7113         * doc/posix-functions/mkstemp.texi: Likewise.
7114         * doc/posix-functions/mktime.texi: Likewise.
7115         * doc/posix-functions/open.texi: Likewise.
7116         * doc/posix-functions/openat.texi: Likewise.
7117         * doc/posix-functions/opendir.texi: Likewise.
7118         * doc/posix-functions/pread.texi: Likewise.
7119         * doc/posix-functions/pwrite.texi: Likewise.
7120         * doc/posix-functions/readdir.texi: Likewise.
7121         * doc/posix-functions/readdir_r.texi: Likewise.
7122         * doc/posix-functions/scandir.texi: Likewise.
7123         * doc/posix-functions/seekdir.texi: Likewise.
7124         * doc/posix-functions/setrlimit.texi: Likewise.
7125         * doc/posix-functions/statvfs.texi: Likewise.
7126         * doc/posix-functions/strftime.texi: Likewise.
7127         * doc/posix-functions/telldir.texi: Likewise.
7128         * doc/posix-functions/timezone.texi: Likewise.
7129         * doc/posix-functions/tmpfile.texi: Likewise.
7130         * doc/posix-functions/truncate.texi: Likewise.
7131         * doc/posix-functions/tzname.texi: Likewise.
7132         * doc/posix-functions/wcsftime.texi: Likewise.
7133         * doc/windows-sockets.texi: Likewise.
7135 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7137         getrandom-tests: do not assume GRND_RANDOM yields short read
7138         * tests/test-getrandom.c (main): Omit assertion that
7139         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
7140         when b’s size is 100000.  This assertion fails with Linux kernel
7141         5.6.13, as that kernel ignores the GRND_RANDOM flag.
7142         The separate blocking pool is going away in the Linux kernel, and
7143         they’ve added a flag GRND_INSECURE instead; see:
7144         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
7145         The assertion was iffy anyway; what’s to prevent a kernel from
7146         lazily filling a large buffer with random bytes?
7148         read-file-test: pacify --enable-gcc-warnings
7149         * tests/test-read-file.c (test_read_file): Now static.
7151         tempname: merge from glibc and coreutils
7152         Also, merge in Gnulib’s more-recent methods of making it easier
7153         to share between Gnulib and glibc, and fix a few randomness
7154         glitches.
7155         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
7156         (__set_errno): Remove; libc-config.h does that for us.
7157         Do not include <sys/time.h>.
7158         (__secure_getenv) [_LIBC]: New macro.
7159         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
7160         (RANDOM_BITS): Rewrite.
7161         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
7162         (random_value): New typedef.
7163         (try_file, try_dir, try_nocreate): Move up.
7164         (gen_tempname_len, try_tempname_len): New functions.
7165         (gen_tempname_len): Use a constant array rather than a switch.
7166         (try_tempname_len): Don’t assume string length fits in int.
7167         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
7168         has enough entropy (it’s a bit short).
7169         (__gen_tempname): Rewrite in terms of gen_tempname_len.
7170         (__try_tempname): Rewrite in terms of try_tempname_len.
7171         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
7172         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
7173         Add getentropy, libc-config.
7175 2020-05-31  Bruno Haible  <bruno@clisp.org>
7177         getrandom, getentropy: Mention the crypto/gc-random module.
7178         Suggested by Simon Josefsson in
7179         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
7180         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
7181         crypto/gc-random module.
7182         * doc/glibc-functions/getentropy.texi: Likewise.
7184 2020-05-31  Bruno Haible  <bruno@clisp.org>
7186         getentropy: Enhance tests.
7187         * tests/test-getentropy.c (main): Add one more test.
7188         * tests/test-unistd-c++.cc: Check the signature of getentropy.
7190 2020-05-31  Bruno Haible  <bruno@clisp.org>
7192         getentropy: Work around a macOS and Solaris problem.
7193         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
7194         'getentropy' module.
7195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7196         UNISTD_H_HAVE_SYS_RANDOM_H.
7197         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
7198         UNISTD_H_HAVE_SYS_RANDOM_H.
7199         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
7200         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
7201         problem. List more platforms.
7203 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7205         fnmatch: merge from glibc
7206         Also, merge in Gnulib’s more-recent methods of making it easier
7207         to share between Gnulib and glibc.
7208         * lib/fnmatch.c: Reorder includes to match glibc better.
7209         Include libc-config.h instead of config.h.
7210         Include alloca.h only if _LIBC || HAVE_ALLOCA.
7211         Do not include "../locale/elem-hash.h" if _LIBC.
7212         Define macros for btowc, etc. if _LIBC.  All uses simplified.
7213         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
7214         Include intprops.h, since glibc has it now.
7215         (SIZE_MAX): Remove; use (size_t) -1 instead.
7216         Omit the "Comment out all this code" ifdef, since Gnulib
7217         has never really needed it.
7218         (STREQ): Remove; no longer used.
7219         (__libc_use_alloca, alloca, alloca_account): Define as
7220         needed if !_LIBC.
7221         (ISWCTYPE): Remove; all uses replaced by iswctype.
7222         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
7223         (internal_function): Remove.  All uses removed.
7224         (STRUCT): New macro.
7225         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
7226         (WMEMCMP): New macro.
7227         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
7228         and <locale/weightwc.h>.
7229         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
7230         __builtin_expect.  Check for integer overflow more
7231         systematically.  Account for alloca storage better when
7232         recursive.  Use strnlen instead of strlen for efficiency.
7233         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
7234         (struct STRUCT): New type.
7235         (FCT, EXT): New ENDS and ALLOCA_USED args.
7236         All callers changed.
7237         (FCT): Prefer __glibc_unlikely to __builtin_expect.
7238         Simplify by assuming WIDE_CHAR_SUPPORT.
7239         Copy _LIBC code from glibc without worrying Gnulib compatibility.
7240         Cast cold to UCHAR to avoid signedness warning.
7241         (END): Check for invalid pattern.
7242         (EXT): Improve alloca/malloc checking (taken from glibc),
7243         and improve it some more by using intprops.h and checking
7244         for integer overflow and using bool for booleans.
7245         * lib/libc-config.h (compat_symbol): New macro.
7246         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
7247         acceptable to non-GCC when a trailing semicolon is added.
7248         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
7249         libc-config, strnlen.  Remove alloca.
7251 2020-05-31  Bruno Haible  <bruno@clisp.org>
7253         getrandom: Doc and test tweaks.
7254         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
7255         it sets errno when failing.
7256         * tests/test-getrandom.c (main): Disable the high-quality check on those
7257         platforms on which it fails.
7258         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
7259         Cygwin to the list of platforms that don't have the function. Add a note
7260         about the quality of the result.
7261         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
7262         declaration; this is fixed by module 'getrandom'.
7264 2020-05-31  Bruno Haible  <bruno@clisp.org>
7266         getrandom: Add support for native Windows.
7267         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
7268         <wincrypt.h>.
7269         (CRYPT_VERIFY_CONTEXT): New macro.
7270         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
7271         'A'.
7272         (GetProcAddress): New macro.
7273         (BCryptGenRandomFuncType): New type.
7274         (BCryptGenRandomFunc, initialized): New variables.
7275         (initialize): New function.
7276         (getrandom): On native Windows, use <bcrypt.h> API when available, and
7277         <wincrypt.h> API as fallback.
7278         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
7279         * modules/getrandom (Link): New section.
7280         * modules/getentropy (Link): Likewise.
7281         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
7282         $(LIB_GETRANDOM).
7283         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
7284         $(LIB_GETRANDOM).
7285         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
7286         against $(LIB_GETRANDOM).
7287         * doc/glibc-functions/getrandom.texi: Mention the native Windows
7288         support.
7290 2020-05-31  Bruno Haible  <bruno@clisp.org>
7292         getrandom: Simplify the determination of the random number devices.
7293         Suggested by Paul Eggert in
7294         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
7295         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
7296         macros.
7297         * modules/getrandom (Depends-on): Remove crypto/gc-random.
7299 2020-05-31  Bruno Haible  <bruno@clisp.org>
7301         crypto/gc-random: Fix list of crypto devices for Solaris.
7302         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
7304 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
7306         list: fix GCC warnings
7307         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
7308         (gl_tree_next_node, gl_tree_node_nx_set_value)
7309         (gl_tree_previous_node, gl_tree_next_node):
7310         Mark unused arguments.
7311         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
7312         * lib/gl_anylinked_list2.h (gl_linked_node_value)
7313         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
7315         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
7316         the same variable name in nested scopes.
7318 2020-05-31  Bruno Haible  <bruno@clisp.org>
7320         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
7321         Reported by Akim Demaille in
7322         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
7323         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
7324         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
7325         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
7326         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
7327         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
7329 2020-05-30  Bruno Haible  <bruno@clisp.org>
7331         wmemchr: Relicense under LGPLv2+.
7332         * modules/wmemchr (License): Set to LGPLv2+.
7334 2020-05-30  Bruno Haible  <bruno@clisp.org>
7336         wmempcpy: New module.
7337         Reported by Paul Eggert in
7338         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
7339         * lib/wchar.in.h (wmempcpy): New declaration.
7340         * lib/wmempcpy.c: New file.
7341         * m4/wmempcpy.m4: New file.
7342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
7343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
7344         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
7345         HAVE_WMEMPCPY.
7346         * modules/wmempcpy: New file.
7347         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
7348         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
7349         * modules/mempcpy (Description): Fix typo.
7351 2020-05-30  Bruno Haible  <bruno@clisp.org>
7353         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
7354         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
7356 2020-05-30  Bruno Haible  <bruno@clisp.org>
7358         sys_random: Work around macOS bug.
7359         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
7360         <stdlib.h> before <sys/random.h>.
7361         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
7362         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
7363         first.
7364         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
7366 2020-05-30  Bruno Haible  <bruno@clisp.org>
7368         getrandom: Override incompatible system function on Solaris 11.
7369         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
7370         * lib/getrandom.c (getrandom): When the system has getrandom, just
7371         invoke it.
7372         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
7373         system's getrandom function's prototype is not the expected one.
7374         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
7375         REPLACE_GETRANDOM.
7376         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
7377         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
7378         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
7379         EAGAIN.
7380         * doc/glibc-functions/getrandom.texi: Mention the new module and the
7381         Solaris problem.
7383 2020-05-30  Bruno Haible  <bruno@clisp.org>
7385         sys_random: Add C++ tests.
7386         * tests/test-sys_random-c++.cc: New file.
7387         * modules/sys_random-c++-tests: New file.
7388         * modules/sys_random-tests (Depends-on): Depend on it.
7390         sys_random: Add tests.
7391         * tests/test-sys_random.c: New file.
7392         * modules/sys_random-tests: New file.
7394         sys_random: New module.
7395         * lib/sys_random.in.h: Use the common idioms for overridable header
7396         files.
7397         * m4/sys_random_h.m4: New file.
7398         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
7399         * modules/sys_random: New file.
7400         * modules/getrandom (Files): Remove lib/sys_random.in.h.
7401         (Depends-on): Add sys_random.
7402         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
7403         gl_UNISTD_MODULE_INDICATOR.
7404         (Makefile.am): Don't generate sys/random.h here.
7405         * doc/glibc-headers/sys_random.texi: New file.
7406         * doc/gnulib.texi: Include it.
7408 2020-05-30  Bruno Haible  <bruno@clisp.org>
7410         unistd: Remove conflicting declaration of getrandom().
7411         * lib/unistd.in.h (getrandom): Remove declaration.
7412         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
7413         declared.
7414         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
7415         HAVE_GETRANDOM.
7416         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
7417         HAVE_GETRANDOM.
7419 2020-05-30  Bruno Haible  <bruno@clisp.org>
7421         getrandom: Add tests.
7422         * tests/test-getrandom.c: New file.
7423         * modules/getrandom-tests: New file.
7425 2020-05-30  Bruno Haible  <bruno@clisp.org>
7427         crypto/gc-random: Fix link error on MSVC.
7428         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
7429         * modules/crypto/gc-random (Link): New section.
7430         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
7431         $(LIB_GC_RANDOM).
7433 2020-05-30  Bruno Haible  <bruno@clisp.org>
7435         Don't assume that UNICODE is not defined.
7436         Many Windows API functions are defined differently (redirecting to a
7437         function with suffix 'W') if the application defines the macro UNICODE
7438         than by default (redirecting to a function with suffix 'A').
7439         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
7440         variant with suffix 'A'.
7441         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
7442         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
7443         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
7444         * lib/getlogin.c (GetUserName): Likewise.
7445         * lib/getlogin_r.c (GetUserName): Likewise.
7446         * lib/gettimeofday.c (LoadLibrary): Likewise.
7447         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
7448         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
7449         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
7450         * lib/mountlist.c (GetDriveType): Likewise.
7451         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
7452         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
7453         Likewise.
7454         * lib/physmem.c (GetModuleHandle): Likewise.
7455         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
7456         PeekMessage, DispatchMessage): Likewise.
7457         * lib/progreloc.c (GetModuleFileName): Likewise.
7458         * lib/putenv.c (SetEnvironmentVariable): Likewise.
7459         * lib/read.c (GetNamedPipeHandleState): Likewise.
7460         * lib/readdir.c (FindNextFile): Likewise.
7461         * lib/relocatable.c (GetModuleFileName): Likewise.
7462         * lib/rename.c (MoveFileEx): Likewise.
7463         * lib/rewinddir.c (FindFirstFile): Likewise.
7464         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
7465         PeekMessage, DispatchMessage): Likewise.
7466         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
7467         * lib/socket.c (WSASocket): Likewise.
7468         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
7469         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
7470         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
7471         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
7472         * lib/tmpdir.c (GetTempPath): Likewise.
7473         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
7474         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
7475         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
7476         * lib/windows-cond.c (CreateEvent): Likewise.
7477         * lib/windows-rwlock.c (CreateEvent): Likewise.
7478         * lib/windows-timedmutex.c (CreateEvent): Likewise.
7479         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
7480         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
7481         * lib/write.c (GetNamedPipeHandleState): Likewise.
7483 2020-05-30  Bruno Haible  <bruno@clisp.org>
7485         physmem: Fix compilation errors on MSVC.
7486         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
7487         * modules/physmem (Depends-on): Add unistd.
7489 2020-05-29  Bruno Haible  <bruno@clisp.org>
7491         gnulib-tool: Fix link errors with a particular set of modules on mingw.
7492         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
7493         LDADD a second time, after the second occurrence of libtests.a.
7494         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
7496 2020-05-29  Bruno Haible  <bruno@clisp.org>
7498         fnmatch: Rely on more gnulib modules.
7499         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
7500         wmempcpy, mempcpy.
7501         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
7502         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
7503         HAVE_MEMPCPY are all 1.
7504         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
7505         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
7507 2020-05-29  Bruno Haible  <bruno@clisp.org>
7509         Avoid dynamic lookup of Windows API functions when possible.
7510         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
7511         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
7512         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
7513         (use_win32_p): Define differently.
7514         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
7515         CreateHardLinkFunc, initialized, initialize): Don't define in a build
7516         for Windows XP or higher.
7518 2020-05-29  Daiki Ueno  <ueno@gnu.org>
7520         read-file: disable buffering if RF_SENSITIVE is set
7521         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
7522         Suggested by Glenn Strauss.
7523         (fread_file): Suggest calling setvbuf before calling this
7524         function.  Suggested by Bruno Haible.
7526 2020-05-29  Bruno Haible  <bruno@clisp.org>
7528         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
7529         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
7530         program.
7531         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
7532         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
7533         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
7534         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
7536 2020-05-29  Bruno Haible  <bruno@clisp.org>
7538         Fix compilation error on native Windows (regression from 2020-05-28).
7539         Reported by Daiki Ueno.
7540         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
7541         macro when not using dynamic loading.
7542         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
7543         QueryFullProcessImageNameFunc): Likewise.
7544         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
7545         GetFinalPathNameByHandleFunc): Likewise.
7547 2020-05-29  Daiki Ueno  <ueno@gnu.org>
7549         fopen-gnu-tests: fix "\x" escape usage
7550         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
7552 2020-05-28  Bruno Haible  <bruno@clisp.org>
7554         Avoid dynamic loading of Windows API functions when possible.
7555         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7556         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
7557         * lib/gettimeofday.c (GetProcAddress,
7558         GetSystemTimePreciseAsFileTimeFuncType,
7559         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
7560         define in a build for Windows 8 or higher.
7561         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
7562         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
7563         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
7564         in a build for Windows Vista or higher.
7565         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
7566         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
7567         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
7569 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
7571         explicit_bzero-tests: improve -Wmissing-declarations pacification
7572         * tests/test-explicit_bzero.c: Now noinline.
7573         Suggested by Bruno Haible in:
7574         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
7576 2020-05-28  Bruno Haible  <bruno@clisp.org>
7578         Fix build errors due to read-file changes (regression from 2020-05-27).
7579         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
7580         invocation.
7581         * tests/test-sameacls.c (main): Likewise.
7582         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
7583         read_binary_file.
7584         * tests/test-pipe-filter-ii1.c (main): Likewise.
7586 2020-05-28  Bruno Haible  <bruno@clisp.org>
7588         fts: Make more robust in multithreaded applications.
7589         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
7590         * modules/fts (Depends-on): Add 'open'.
7592 2020-05-28  Bruno Haible  <bruno@clisp.org>
7594         relocatable-prog: Make more robust in multithreaded applications.
7595         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
7596         relocatable-prog-wrapper.
7597         (find_executable): Pass an O_CLOEXEC flag to open().
7598         * modules/relocatable-prog (Depends-on): Add 'open'.
7600 2020-05-28  Bruno Haible  <bruno@clisp.org>
7602         getloadavg: Make more robust in multithreaded applications.
7603         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
7604         Simplify use of O_CLOEXEC.
7605         * modules/getloadavg (Depends-on): Add 'open'.
7607 2020-05-28  Bruno Haible  <bruno@clisp.org>
7609         vma-iter: Make more robust in multithreaded applications.
7610         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
7611         open().
7612         * modules/vma-iter (Depends-on): Add 'open'.
7614 2020-05-28  Bruno Haible  <bruno@clisp.org>
7616         truncate: Make more robust in multithreaded applications.
7617         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
7619 2020-05-28  Bruno Haible  <bruno@clisp.org>
7621         pagealign_alloc: Make more robust in multithreaded applications.
7622         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
7623         open().
7624         * modules/pagealign_alloc (Depends-on): Add 'open'.
7626 2020-05-28  Bruno Haible  <bruno@clisp.org>
7628         openat: Make more robust in multithreaded applications.
7629         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
7631 2020-05-28  Bruno Haible  <bruno@clisp.org>
7633         at-internal: Make more robust in multithreaded applications.
7634         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
7635         open().
7637 2020-05-28  Bruno Haible  <bruno@clisp.org>
7639         mountlist: Make more robust in multithreaded applications.
7640         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
7641         open().
7642         * modules/mountlist (Depends-on): Add 'open'.
7644 2020-05-28  Bruno Haible  <bruno@clisp.org>
7646         login_tty: Make more robust in multithreaded applications.
7647         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
7648         * modules/login_tty (Depends-on): Add 'open'.
7650 2020-05-28  Bruno Haible  <bruno@clisp.org>
7652         javacomp: Make more robust in multithreaded applications.
7653         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
7654         open().
7655         * modules/javacomp (Depends-on): Add 'open'.
7657 2020-05-28  Bruno Haible  <bruno@clisp.org>
7659         getprogname: Make more robust in multithreaded applications.
7660         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
7661         * modules/getprogname (Depends-on): Add 'open'.
7663 2020-05-28  Bruno Haible  <bruno@clisp.org>
7665         get_progname_of: Make more robust in multithreaded applications.
7666         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
7667         open().
7668         * modules/get_progname_of (Depends-on): Add 'open'.
7670 2020-05-28  Bruno Haible  <bruno@clisp.org>
7672         get_ppid_of: Make more robust in multithreaded applications.
7673         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
7674         * modules/get_ppid_of (Depends-on): Add 'open'.
7676 2020-05-28  Bruno Haible  <bruno@clisp.org>
7678         get-rusage-as: Make more robust in multithreaded applications.
7679         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
7680         flag to open().
7681         * modules/get-rusage-as (Depends-on): Add 'open'.
7683 2020-05-28  Bruno Haible  <bruno@clisp.org>
7685         crypto/gc: Make more robust in multithreaded applications.
7686         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
7687         * modules/crypto/gc (Depends-on): Add 'open'.
7689 2020-05-28  Bruno Haible  <bruno@clisp.org>
7691         copy-file: Make more robust in multithreaded applications.
7692         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
7693         open().
7695 2020-05-28  Bruno Haible  <bruno@clisp.org>
7697         chown: Make more robust in multithreaded applications.
7698         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
7700 2020-05-28  Bruno Haible  <bruno@clisp.org>
7702         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
7703         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
7705 2020-05-28  Daiki Ueno  <ueno@gnu.org>
7707         fopen-gnu: make 'b' flag can be used with 'e' on Windows
7708         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
7709         specified on Windows.
7710         * tests/test-fopen-gnu.c (DATA): New define.
7711         (main): Add test for reading binary files with an 'e' flag.
7713 2020-05-27  Bruno Haible  <bruno@clisp.org>
7715         Don't assume that UNICODE is not defined.
7716         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
7717         differently if the application defines the macro UNICODE.
7718         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7719         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
7720         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
7721         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
7722         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
7724 2020-05-27  Bruno Haible  <bruno@clisp.org>
7726         Improve pattern for defining _WIN32_WINNT.
7727         Newer versions of the Windows API may not only add, but also remove API
7728         functions. Therefore, when the user is e.g. building for Windows 10, we
7729         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
7730         use of APIs that were present in Windows 8 but removed in Windows 10.
7731         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
7732         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
7733         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
7734         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7735         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
7737 2020-05-27  Bruno Haible  <bruno@clisp.org>
7739         javacomp: Make more robust in multithreaded applications.
7740         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
7741         * modules/javacomp (Depends-on): Add fopen-gnu.
7743 2020-05-27  Bruno Haible  <bruno@clisp.org>
7745         mountlist: Make more robust in multithreaded applications.
7746         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
7747         to fopen.
7748         * modules/mountlist (Depends-on): Add fopen-gnu.
7750 2020-05-27  Bruno Haible  <bruno@clisp.org>
7752         sethostname: Make more robust in multithreaded applications.
7753         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
7754         * modules/sethostname (Depends-on): Add fopen-gnu.
7756 2020-05-27  Bruno Haible  <bruno@clisp.org>
7758         readutmp: Make more robust in multithreaded applications.
7759         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
7760         * modules/readutmp (Depends-on): Add fopen-gnu.
7762 2020-05-27  Bruno Haible  <bruno@clisp.org>
7764         getpass: Make more robust in multithreaded applications.
7765         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
7766         * modules/getpass (Depends-on): Add fopen-gnu.
7768 2020-05-27  Bruno Haible  <bruno@clisp.org>
7770         getloadavg: Make more robust in multithreaded applications.
7771         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
7772         * modules/getloadavg (Depends-on): Add fopen-gnu.
7774 2020-05-27  Bruno Haible  <bruno@clisp.org>
7776         exclude: Make more robust in multithreaded applications.
7777         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
7778         * modules/exclude (Depends-on): Add fopen-gnu.
7780 2020-05-27  Bruno Haible  <bruno@clisp.org>
7782         bitset: Make more robust in multithreaded applications.
7783         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
7784         'e' flag to fopen.
7785         * modules/bitset (Depends-on): Add fopen-gnu.
7787 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7789         read-file: add RF_SENSITIVE flag
7790         * lib/read-file.h (RF_SENSITIVE): New define.
7791         * lib/read-file.c (fread_file, read_file): Take into account of
7792         RF_SENSITIVE flag.
7793         * modules/read-file (Depends-on): Add explicit_bzero.
7794         This adds an alternative behavior of those functions to explicitly
7795         clear the internal memory block when it becomes unused.  This is
7796         useful for reading sensitive information from a file.
7798 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7800         read-file: add flags to modify reading behavior
7801         * lib/read-file.h (RF_BINARY): New define.
7802         (fread_file, read_file): Take FLAGS argument.
7803         (read_binary_file): Remove.
7804         * lib/read-file.c (internal_read_file): Merge into ...
7805         (read_file): ... here.
7806         * modules/read-file-tests (Files): Add "tests/macros.h".
7807         * tests/test-read-file.c (main): Refactor using ASSERT macro.
7808         * NEWS: Mention this change.
7810 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
7812         doc/gnulib-intro.texi: add missing "to" in sentence
7813         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7814         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
7815         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
7817 2020-05-26  Bruno Haible  <bruno@clisp.org>
7819         count-one-bits: Fix MSVC specific code.
7820         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7821         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
7822         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
7823         using GCC.
7824         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
7825         (__popcnt64): In 32-bit mode, define as an inline function.
7826         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
7828 2020-05-26  Bruno Haible  <bruno@clisp.org>
7830         argz: Avoid name clashes through argz.h.
7831         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7832         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
7833         * lib/argz.h: Don't use __ prefixed identifiers.
7834         (const): Remove definition.
7835         (argz_next): Remove inline definitions.
7837 2020-05-26  Daiki Ueno  <ueno@gnu.org>
7839         read-file: make use of fopen-gnu
7840         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
7841         (read_binary_file): Likewise.
7842         * modules/read-file (Depends-on): Add fopen-gnu.
7844 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7846         getentropy, getrandom: new modules
7847         * MODULES.html.sh (func_all_modules):
7848         * lib/unistd.in.h (getentropy, getrandom):
7849         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
7850         * modules/unistd (unistd.h):
7851         Add support for getentropy, getrandom.
7852         * doc/glibc-functions/getentropy.texi (getentropy):
7853         * doc/glibc-functions/getrandom.texi (getrandom):
7854         These are now fixed on some platforms.
7855         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
7856         * m4/getentropy.m4, m4/getrandom.m4:
7857         * modules/getentropy, modules/getentropy-tests:
7858         * modules/getrandom, modules/getrandom-tests:
7859         * tests/test-getentropy.c, tests/test-getrandom.c:
7860         New files.
7862 2020-05-25  Bruno Haible  <bruno@clisp.org>
7864         Add missing C99 dependencies.
7865         Reported by Paul Smith <psmith@gnu.org> in
7866         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
7867         * modules/assert (Depends-on): Add c99.
7868         * modules/filenamecat-lgpl (Depends-on): Likewise.
7869         * modules/libc-config (Depends-on): Likewise.
7870         * modules/mktime (Depends-on): Likewise.
7871         * modules/random_r (Depends-on): Likewise.
7872         * modules/regex (Depends-on): Likewise.
7873         * modules/scratch_buffer (Depends-on): Likewise.
7874         * modules/timespec-add (Depends-on): Likewise.
7875         * modules/timespec-sub (Depends-on): Likewise.
7876         * modules/verify (Depends-on): Likewise.
7878 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7880         explicit_bzero-tests: pacify -Wmissing-declarations
7881         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
7882         Now static.
7884 2020-05-24  Bruno Haible  <bruno@clisp.org>
7886         fopen-gnu: Add tests.
7887         * tests/test-fopen-gnu.c: New file.
7888         * modules/fopen-gnu-tests: New file.
7890         fopen-gnu: New module.
7891         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
7892         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
7893         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
7894         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
7895         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
7896         * modules/fopen-gnu: New file.
7897         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
7899 2020-05-24  Bruno Haible  <bruno@clisp.org>
7901         open, openat: Really support O_CLOEXEC.
7902         * lib/open.c (open): When have_cloexec is still undecided, do pass a
7903         O_CLOEXEC flag to orig_open.
7904         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
7905         pass a O_CLOEXEC flag to orig_openat.
7906         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
7907         * modules/open-tests (Depends-on): Add fcntl.
7908         * modules/openat-tests (Depends-on): Likewise.
7909         * modules/fcntl-safer-tests (Depends-on): Likewise.
7911 2020-05-24  Bruno Haible  <bruno@clisp.org>
7913         fopen: Fix the trailing slash workaround.
7914         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
7915         write access. Pass the right flags to open().
7916         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
7918 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7920         assure: new macro ‘affirm’
7921         * lib/assure.h: Include verify.h.
7922         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
7923         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
7924         and commentary by Bruno Haible in:
7925         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
7926         * modules/assure (Depends-on:): Add verify.
7928 2020-05-23  Bruno Haible  <bruno@clisp.org>
7930         calloc-gnu: Make test work in non-flat address spaces.
7931         Uses code by Paul Eggert.
7932         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
7933         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
7935 2020-05-23  Bruno Haible  <bruno@clisp.org>
7937         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
7938         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
7939         AC_RUN_IFELSE invocations.
7941 2020-05-23  Bruno Haible  <bruno@clisp.org>
7943         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
7944         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
7945         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
7946         don't have it.
7947         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7948         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
7949         don't have it.
7950         * lib/isnanf-nolibm.h (__has_builtin): New macro.
7951         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7952         it.
7953         * lib/isnanl-nolibm.h (__has_builtin): New macro.
7954         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7955         it.
7956         * lib/math.in.h (__has_builtin): New macro.
7957         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7958         it.
7959         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7960         it.
7961         (isnan): Don't use the builtins on clang versions that don't have
7962         __builtin_isnanf and __builtin_isnanl.
7964 2020-05-23  Bruno Haible  <bruno@clisp.org>
7966         calloc-gnu: Avoid wrong configure results with clang.
7967         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
7968         'volatile', to defeat compiler optimizations.
7970 2020-05-23  Bruno Haible  <bruno@clisp.org>
7972         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
7973         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
7974         'long double' values by reference, with values taken from a statically
7975         allocated array.
7977 2020-05-23  Bruno Haible  <bruno@clisp.org>
7979         findprog-in: Ignore directories.
7980         Reported by Frederick Eaton via Dmitry Goncharov in
7981         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7982         * lib/findprog-in.c (find_in_given_path): When the file found is a
7983         directory, set errno to EACCES and, during a PATH search, continue
7984         searching.
7985         * modules/findprog-in (Depends-on): Add sys_stat, stat.
7987 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7989         verify: document ‘assume’ better
7990         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
7992 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
7994         gendocs: Clarify licenses for templates.
7995         * doc/gendocs_template: Add a GNU All-Permissive license notice
7996         and bump Parent-Version.
7997         * doc/gendocs_template_min: Add a GNU All-Permissive license
7998         notice and copy the explanatory comment about the license notice
7999         at the bottom from gendocs_template.
8001 2020-05-21  Bruno Haible  <bruno@clisp.org>
8003         group-member: Relicense under LGPLv2+.
8004         Jim Meyering's approval is in
8005         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
8006         Paul Eggert's approval is in
8007         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
8008         Eric Blake's approval is in
8009         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
8010         * modules/group-member (License): Change to LGPLv2+.
8012 2020-05-21  Bruno Haible  <bruno@clisp.org>
8014         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
8015         Reported by Tim Rühsen in
8016         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
8017         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
8019 2020-05-21  Bruno Haible  <bruno@clisp.org>
8021         regex: Avoid wrong configure results with "clang -fsanitize=leak".
8022         Reported by Tim Rühsen in
8023         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
8024         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
8025         before returning with status 0.
8027 2020-05-21  Bruno Haible  <bruno@clisp.org>
8029         glob: Avoid wrong configure results with "clang -fsanitize=leak".
8030         Reported by Tim Rühsen in
8031         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
8032         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
8034 2020-05-21  Bruno Haible  <bruno@clisp.org>
8036         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
8037         Reported by Tim Rühsen in
8038         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
8039         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
8040         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
8041         respectively.
8043 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
8045         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
8046         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
8048 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8050         ftoastr: fix ifndef typo
8051         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
8053 2020-05-19  Bruno Haible  <bruno@clisp.org>
8055         havelib: Tweak documentation.
8056         * doc/havelib.texi (Searching for Libraries): Fix typo.
8058 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8060         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
8061         This was needed earlier because modules had to import the main script,
8062         but that is no longer true.  Rename the script so that it is
8063         consistent with all other scripts in gnulib and uses hyphens.
8064         * build-aux/vcs_to_changelog.py: Rename to...
8065         * build-aux/vcs-to-changelog.py: ... this.
8066         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
8067         * modules/vcs-to-changelog: Likewise.
8069 2020-05-17  Bruno Haible  <bruno@clisp.org>
8071         Clarify intended usage of the license file modules.
8072         Reported by Asher Gordon <AsDaGo@posteo.net> in
8073         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
8074         * doc/licenses-texi.texi (License Texinfo sources): Mention the
8075         GNU AGPL. Explain the intended usage of the modules.
8076         * modules/fdl (Notice): Discourage use as a module.
8077         * modules/fdl-1.3 (Notice): Likewise.
8079 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
8081         hash: add hash_xinsert
8082         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
8084 2020-05-16  Bruno Haible  <bruno@clisp.org>
8086         findprog-lgpl: Fix link error (existing since 2008-09-02).
8087         * modules/findprog-lgpl (Makefile.am): Arrange to compile
8088         findprog-lgpl.c, not findprog.c.
8089         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
8090         XNMALLOC.
8092 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
8094         c-stack: pacify -Wunused-result when DEBUG
8095         Problem reported by Marc Nieper-Wißkirchen in:
8096         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
8097         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
8098         Explicitly ignore write failures.
8100 2020-05-13  Jim Meyering  <meyering@fb.com>
8102         announce-gen: improve a comment
8103         * build-aux/announce-gen: Improve comment.
8105 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
8107         xalloc: pacify -Wanalyzer-possible-null-argument
8108         Problem reported for GCC 10.1.0 by Bruno Haible in:
8109         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
8110         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
8111         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
8112         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
8114 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8116         careadlinkat: fix GCC 10 workaround
8117         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
8118         Massage the code so that it’s closer to what it was before
8119         the GCC 10.1.0 workaround was introduced.  This fixes
8120         a loop when !buffer and the bug workaround is in effect.
8121         Remove unnecessary casts.  Defend in a different way
8122         against (buffer && !buffer_size), by adding at least 1
8123         to buf_size each time through the loop.
8125 2020-05-10  Bruno Haible  <bruno@clisp.org>
8127         doc: Mark HP-UX as unsupported.
8128         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
8130 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8132         careadlinkat: limit GCC workaround
8133         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
8134         10.1.0 and later, since the workaround is pretty bad and the GCC
8135         bug should get fixed.
8137 2020-05-10  Bruno Haible  <bruno@clisp.org>
8139         havelib: Enhance documentation.
8140         * doc/havelib.texi (Searching for Libraries): Mention the bad
8141         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
8143 2020-05-10  Bruno Haible  <bruno@clisp.org>
8145         attribute: Clarify list of attributes.
8146         * lib/attribute.h: Reorder the list of attributes, and group them by
8147         purpose.
8149 2020-05-10  Bruno Haible  <bruno@clisp.org>
8151         string: Fix compilation error in C++ mode.
8152         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
8153         _GL_WARN_ON_USE.
8154         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
8155         instead of _GL_WARN_ON_USE.
8157 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
8159         announce-gen: add support for dist-lzip
8160         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
8162 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
8164         manywarnings: port to GCC 10.1
8165         * build-aux/gcc-warning.spec:
8166         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
8167         Add GCC 10.1.0 warnings.
8169         careadlinkat: pacify -Wreturn-local-addr
8170         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
8171         Pacify gcc 10’s -Wreturn-local-addr option.
8172         Simplify some of the later code.
8174 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
8176         attribute: remove ATTRIBUTE_DEPRECATED
8177         * lib/attribute.h: Improve recently-added comments, mostly
8178         by shortening them (use active voice, etc.).
8179         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
8180         Problem reported by Bruno Haible in:
8181         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
8183 2020-05-09  Bruno Haible  <bruno@clisp.org>
8185         attribute: Add comments.
8186         * lib/attribute.h: Document each macro.
8188 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
8190         bitset: use the attribute module
8191         * modules/bitset: Depend on 'attribute'.
8192         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
8193         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
8194         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
8195         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
8197 2020-05-09  Bruno Haible  <bruno@clisp.org>
8199         c-stack: Fix warning when DEBUG is enabled.
8200         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
8201         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
8202         * lib/c-stack.c: Include <stdio.h>.
8204 2020-05-09  Bruno Haible  <bruno@clisp.org>
8206         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
8207         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
8208         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8209         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8210         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8211         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8212         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8213         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8214         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8215         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
8216         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8217         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8218         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8220 2020-05-09  Bruno Haible  <bruno@clisp.org>
8222         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
8223         Reported by Akim Demaille in
8224         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
8225         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
8226         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
8227         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
8229 2020-05-09  Bruno Haible  <bruno@clisp.org>
8231         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
8232         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
8233         that usually comes from m4/gnulib-common.m4.
8234         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8236 2020-05-09  Bruno Haible  <bruno@clisp.org>
8238         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
8239         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
8240         that usually comes from m4/gnulib-common.m4.
8241         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
8242         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
8243         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
8245 2020-05-09  Bruno Haible  <bruno@clisp.org>
8247         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
8248         * lib/uchar.in.h (char16_t): Define as macro if
8249         GNULIB_OVERRIDES_CHAR16_T.
8250         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
8251         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
8252         (gl_UCHAR_H): Invoke them.
8253         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
8254         GNULIB_OVERRIDES_CHAR32_T.
8255         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
8256         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
8257         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
8258         GNULIB_OVERRIDES_CHAR32_T.
8260 2020-05-09  Bruno Haible  <bruno@clisp.org>
8262         Macro tweaks.
8263         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
8264         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
8266 2020-05-08  Bruno Haible  <bruno@clisp.org>
8268         c32rtomb: Avoid compilation failure on Haiku.
8269         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
8270         inline definitions.
8271         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
8273 2020-05-08  Bruno Haible  <bruno@clisp.org>
8275         mbrtoc32: Avoid compilation failure on Haiku.
8276         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
8277         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
8278         AC_CHECK_FUNCS_ONCE.
8279         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
8281 2020-05-08  Bruno Haible  <bruno@clisp.org>
8283         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
8284         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
8286 2020-05-08  Bruno Haible  <bruno@clisp.org>
8288         list: Update documentation.
8289         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
8290         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
8291         * doc/containers.texi (Container data types): Document the new list
8292         operations and their complexity.
8294 2020-05-08  Bruno Haible  <bruno@clisp.org>
8296         ignore-value tests: Use module 'attribute'.
8297         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
8298         * tests/test-ignore-value.c: Include attribute.h.
8299         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
8300         * modules/ignore-value-tests (Depends-on): Add attribute.
8302 2020-05-08  Bruno Haible  <bruno@clisp.org>
8304         uniname/uniname: Use module 'attribute'.
8305         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
8306         * lib/uniname/uninames.h: Regenerated.
8307         * lib/uniname/uniname.c: Include attribute.h.
8308         * modules/uniname/uniname (Depends-on): Add attribute.
8310 2020-05-08  Bruno Haible  <bruno@clisp.org>
8312         c32rtomb: Use module 'attribute'.
8313         * lib/c32rtomb.c: Include attribute.h.
8314         (FALLTHROUGH): Remove macro.
8315         * modules/c32rtomb (Depends-on): Add attribute.
8317 2020-05-08  Bruno Haible  <bruno@clisp.org>
8319         xsize: Use module 'attribute'.
8320         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
8321         * modules/xsize (Depends-on): Add attribute.
8323 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
8325         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
8327         * lib/attribute.h: Minor style fixes.
8329         Fix version-etc glitch on OpenIndiana
8330         Problem reported by Mats Erik Andersson in:
8331         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
8332         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
8333         that now clashes with gnulib-common.h.  All uses changed.
8335 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8337         attribute: new module
8338         This simplifies use of GCC and C2X attributes like ‘deprecated’.
8339         * MODULES.html.sh: Add attribute.
8340         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
8341         * doc/gnulib.texi (Particular Modules): Add Attributes.
8342         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
8343         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
8344         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
8345         * lib/vasnprintf.c:
8346         Include attribute.h, and let it define FALLTHROUGH.
8347         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
8348         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
8349         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
8350         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
8351         This is a copy since Gawk doesn’t use Gnulib.
8352         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
8353         is incompatible with gl_COMMON_BODY’s.  All uses changed.
8354         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
8355         Keep the existing FALLTHROUGH definition since Glibc might use it,
8356         and it does no harm to Gnulib’s FALLTHROUGH.
8357         * lib/fts_.h, lib/inttostr.h:
8358         (__GNUC_PREREQ): Remove; no longer needed.
8359         (__attribute_warn_unused_result__): Remove.  All uses
8360         replaced by _GL_ATTRIBUTE_NODISCARD.
8361         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
8362         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
8363         __attribute__ ((__warn_unused_result__)), for forward
8364         compatibility to C2X.
8365         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
8366         _GL_ATTRIBUTE_NODISCARD.
8367         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
8368         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
8369         replaced by gl_COMMON_BODY’s implementation, which has a
8370         slightly different signature.
8371         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
8372         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
8373         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
8374         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
8375         No doubt all uses should be replaced, at some point.
8376         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
8377         (_Noreturn): Use it.
8378         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
8379         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
8380         (_GL_ATTRIBUTE_COLD)
8381         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
8382         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
8383         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
8384         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
8385         (_GL_ATTRIBUTE_MAYBE_UNUSED)
8386         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
8387         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
8388         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
8389         (_GL_ATTRIBUTE_RETURNS_NONNULL)
8390         (_GL_ATTRIBUTE_SENTINEL): New macros.
8391         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
8392         * modules/fnmatch, modules/freopen-safer, modules/fts:
8393         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
8394         * modules/quotearg, modules/savewd:
8395         * modules/unistdio/u16-u16-vasnprintf:
8396         * modules/unistdio/u16-vasnprintf:
8397         * modules/unistdio/u32-u32-vasnprintf:
8398         * modules/unistdio/u32-vasnprintf:
8399         * modules/unistdio/u8-u8-vasnprintf:
8400         * modules/unistdio/u8-vasnprintf:
8401         * modules/unistdio/ulc-vasnprintf:
8402         * modules/unistr/u8-uctomb, modules/vasnprintf:
8403         (Depends-on:): Add attribute module.
8405 2020-05-03  Bruno Haible  <bruno@clisp.org>
8407         bison: Fix today's commit.
8408         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
8410 2020-05-03  Bruno Haible  <bruno@clisp.org>
8412         list-c++: Add get_first, get_last, set_first, set_last operations.
8413         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
8414         set_first, set_last.
8415         * lib/gl_list.h: Tweak comments.
8417 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
8419         bison: rely on bison's %require to check a version requirement
8420         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
8421         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
8422         enough of not.
8423         So far it is the only know Yacc tool that supports '%require'.
8424         Other yaccs will actually even choke on seeing the -o option after the
8425         input file name.
8426         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
8428 2020-05-02  Bruno Haible  <bruno@clisp.org>
8430         list: Add get_first, get_last, set_first, set_last operations.
8431         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
8432         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
8433         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
8435 2020-05-02  Bruno Haible  <bruno@clisp.org>
8437         list: Remove redundant code for remove_first and remove_last operations.
8438         * lib/gl_list.h (struct gl_list_implementation): Remove fields
8439         remove_first, remove_last.
8440         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
8441         * lib/gl_array_list.c: Revert last change.
8442         * lib/gl_carray_list.c: Likewise.
8443         * lib/gl_anylinked_list2.h: Likewise.
8444         * lib/gl_linked_list.c: Likewise.
8445         * lib/gl_linkedhash_list.c: Likewise.
8446         * lib/gl_anytree_list2.h: Likewise.
8447         * lib/gl_avltree_list.c: Likewise.
8448         * lib/gl_avltreehash_list.c: Likewise.
8449         * lib/gl_rbtree_list.c: Likewise.
8450         * lib/gl_rbtreehash_list.c: Likewise.
8451         * lib/gl_sublist.c: Likewise.
8453 2020-05-02  Bruno Haible  <bruno@clisp.org>
8455         bison-i18n: Add support for cross-compilation.
8456         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
8457         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
8458         via Akim Demaille <akim@lrde.epita.fr>.
8459         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
8460         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
8461         Don't use bison's --print-localedir option when cross-compiling.
8462         Also, fix an error message and a comment.
8464 2020-05-01  Bruno Haible  <bruno@clisp.org>
8466         list: Add remove_first and remove_last operations.
8467         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
8468         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
8469         * lib/gl_list.h (struct gl_list_implementation): Add fields
8470         remove_first, remove_last.
8471         (gl_list_remove_first, gl_list_remove_last): New functions.
8472         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
8473         functions, based on gl_array_remove_at.
8474         (gl_array_list_implementation): Implement the new operations.
8475         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
8476         New functions, based on gl_carray_remove_at.
8477         (gl_carray_list_implementation): Implement the new operations.
8478         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
8479         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
8480         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
8481         new operations.
8482         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
8483         Likewise.
8484         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
8485         New functions, based on gl_tree_remove_at.
8486         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
8487         new operations.
8488         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
8489         Likewise.
8490         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
8491         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
8492         Likewise.
8493         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
8494         New functions, based on gl_sublist_remove_at.
8495         (gl_sublist_list_implementation): Implement the new operations.
8496         * lib/gl_list.hh (class gl_List): Add methods remove_first,
8497         remove_last.
8498         * tests/test-array_list.c (main): Test also gl_list_remove_first and
8499         gl_list_remove_last.
8500         * tests/test-avltree_list.c (main): Likewise.
8501         * tests/test-avltreehash_list.c (main): Likewise.
8502         * tests/test-carray_list.c (main): Likewise.
8503         * tests/test-linked_list.c (main): Likewise.
8504         * tests/test-linkedhash_list.c (main): Likewise.
8505         * tests/test-rbtree_list.c (main): Likewise.
8506         * tests/test-rbtreehash_list.c (main): Likewise.
8508 2020-05-01  Bruno Haible  <bruno@clisp.org>
8510         parse-datetime: Fix a build failure with an older bison version.
8511         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
8512         parse-datetime.tab.c if a suitable version of bison was not found.
8514 2020-05-01  Bruno Haible  <bruno@clisp.org>
8516         bison: New module.
8517         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
8518         m4/parse-datetime.m4.
8519         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
8520         * modules/bison: New file.
8521         * modules/parse-datetime (Files): Remove m4/bison.m4.
8522         (Depends-on): Add bison.
8524 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
8526         Update users.txt.
8527         * users.txt: Add poke.
8529 2020-04-28  Bruno Haible  <bruno@clisp.org>
8531         posix_spawn_file_actions_addfchdir tests: Enhance test.
8532         * tests/test-posix_spawn5.c: Include findprog.h.
8533         (test): New function, extracted from main.
8534         (main): Invoke it. Also, invoke it with a program name such as
8535         "bin/pwd".
8536         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
8537         findprog.
8539 2020-04-28  Bruno Haible  <bruno@clisp.org>
8541         posix_spawn_file_actions_addchdir tests: Enhance test.
8542         * tests/test-posix_spawn4.c: Include findprog.h.
8543         (test): New function, extracted from main.
8544         (main): Invoke it. Also, invoke it with a program name such as
8545         "bin/pwd".
8546         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
8547         findprog.
8549 2020-04-28  Bruno Haible  <bruno@clisp.org>
8551         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
8552         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
8553         access elements of the wrong union member.
8555 2020-04-27  Bruno Haible  <bruno@clisp.org>
8557         getdate: Remove deprecated module.
8558         * modules/getdate: Remove file.
8559         * doc/getdate.texi: Remove file.
8560         * lib/getdate.h: Remove file.
8561         * NEWS: Mention the removal.
8563 2020-04-27  Bruno Haible  <bruno@clisp.org>
8565         realloc: Remove deprecated module.
8566         * modules/realloc: Remove file.
8567         * NEWS: Mention the removal.
8569 2020-04-27  Bruno Haible  <bruno@clisp.org>
8571         calloc: Remove deprecated module.
8572         * modules/calloc: Remove file.
8573         * NEWS: Mention the removal.
8575 2020-04-27  Bruno Haible  <bruno@clisp.org>
8577         malloc: Remove deprecated module.
8578         * modules/malloc: Remove file.
8579         * NEWS: Mention the removal.
8581 2020-04-27  Bruno Haible  <bruno@clisp.org>
8583         fnmatch-posix: Remove deprecated module.
8584         * modules/fnmatch-posix: Remove file.
8585         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
8586         * NEWS: Mention the removal.
8588 2020-04-27  Bruno Haible  <bruno@clisp.org>
8590         pipe: Remove deprecated module.
8591         * modules/pipe: Remove file.
8592         * lib/pipe.h: Remove file.
8593         * NEWS: Mention the removal.
8595 2020-04-27  Bruno Haible  <bruno@clisp.org>
8597         getopt: Remove deprecated module.
8598         * modules/getopt: Remove file.
8599         * NEWS: Mention the removal.
8601 2020-04-27  Bruno Haible  <bruno@clisp.org>
8603         remove-dest-slash: Remove deprecated module.
8604         * modules/rename-dest-slash: Remove file.
8605         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
8606         Update.
8607         * NEWS: Mention the removal.
8609 2020-04-27  Bruno Haible  <bruno@clisp.org>
8611         unictype/bidicategory-*: Remove deprecated modules.
8612         * modules/unictype/bidicategory-all: Remove file.
8613         * modules/unictype/bidicategory-byname: Remove file.
8614         * modules/unictype/bidicategory-name: Remove file.
8615         * modules/unictype/bidicategory-of: Remove file.
8616         * modules/unictype/bidicategory-test: Remove file.
8617         * MODULES.html.sh (Unicode string functions): Update.
8618         * NEWS: Mention the removals.
8620 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8622         Tune fts for FTS_LOGICAL+FTS_NOSTAT
8623         From a suggestion by Askar Safin in:
8624         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
8625         * lib/fts.c (fts_build): If file types are known, optimize
8626         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
8627         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
8628         non-directories.
8630 2020-04-19  Bruno Haible  <bruno@clisp.org>
8632         vasnprintf: Add support for printing wide characters using escapes.
8633         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
8634         (wctomb_fallback): New function.
8635         (local_wctomb): New function.
8636         (local_wcrtomb): New function or macro.
8637         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
8638         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
8639         %lc.
8641 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8643         fts: remove NOSTAT_LEAF_OPTIMIZATION
8644         It caused ‘find’ and ‘du’ to dump core, and it was useful
8645         only for obsolescent Linux filesystems anyway.  Problem reported in:
8646         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
8647         Quite possibly there is still a serious underlying fts bug with
8648         tight-loop-check and mutating file systems, but if so this patch
8649         should cause the bug to be triggered less often.
8650         * lib/fts.c (enum leaf_optimization): Remove
8651         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
8652         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
8653         (leaf_optimization): Remove special cases for ReiserFS and XFS.
8654         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
8655         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
8656         Remove.  All uses removed.
8658 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8660         explicit_bzero: Improve code style.
8661         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
8663 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8665         explicit_bzero: On native Windows, use SecureZeroMemory().
8666         * lib/explicit_bzero.c: Include <windows.h>.
8667         (explicit_bzero): On native Windows, use SecureZeroMemory.
8669 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8671         explicit_bzero: Use memset_s() when available.
8672         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
8673         (explicit_bzero): Use memset_s when available.
8674         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
8676 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8678         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
8679         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
8680         free() that overwrite the memory with canaries.
8682 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
8684         bootstrap: recommend git submodule update --init
8685         Reported by Bruno Haible.
8686         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
8687         * build-aux/bootstrap: recommand "git submodule update --init"
8688         rather than "git submodule init".
8690 2020-04-12  Bruno Haible  <bruno@clisp.org>
8692         explicit_bzero: Add tests.
8693         * tests/test-explicit_bzero.c: New file.
8694         * modules/explicit_bzero-tests: New file.
8696 2020-04-11  Bruno Haible  <bruno@clisp.org>
8698         explicit_bzero: Relicense under LGPLv2+.
8699         Approved by Paul Eggert.
8700         * modules/explicit_bzero (License): Change to LGPLv2+.
8702 2020-04-10  Bruno Haible  <bruno@clisp.org>
8704         findprog, relocatable-prog: Ignore directories during PATH search.
8705         Reported by Frederick Eaton via Dmitry Goncharov in
8706         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
8708         * lib/findprog.c (find_in_path): When the file found in a PATH element
8709         is a directory, continue searching.
8710         * modules/findprog (Depends-on): Add sys_stat, stat.
8711         * modules/findprog-lgpl (Depends-on): Likewise.
8713         * lib/progreloc.c (maybe_executable): When the file found in a PATH
8714         element is a directory, continue searching.
8715         * lib/relocwrapper.c: Update comments.
8716         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
8717         (configure.ac-early): New section.
8719 2020-04-10  Bruno Haible  <bruno@clisp.org>
8721         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
8722         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8723         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
8724         * MODULES.html.sh: In a git-less tarball, use the date of the first
8725         ChangeLog entry.
8727 2020-04-04  Bruno Haible  <bruno@clisp.org>
8729         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
8730         * m4/gettext.m4: Fix comments regarding the gettext library.
8731         * m4/intl-thread-locale.m4: Likewise.
8732         * m4/intlmacosx.m4: Likewise.
8733         * m4/lcmessage.m4: Likewise.
8734         * m4/nls.m4: Likewise.
8735         * m4/po.m4: Likewise.
8736         * m4/progtest.m4: Likewise.
8738 2020-04-04  Jim Meyering  <meyering@fb.com>
8740         maint: remove a stray inter-word space in a 6x-repeated comment
8741         Induce the changes by running this:
8742           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
8743         * build-aux/announce-gen: Change "by  perl" to "by perl".
8744         * build-aux/gitlog-to-changelog: Likewise.
8745         * build-aux/prefix-gnulib-mk: Likewise.
8746         * build-aux/update-copyright: Likewise.
8747         * build-aux/useless-if-before-free: Likewise.
8748         * tests/test-update-copyright.sh: Likewise.
8750 2020-03-28  Bruno Haible  <bruno@clisp.org>
8752         Use module 'filename' instead of module 'dosname'.
8754         * lib/at-func.c: Include filename.h instead of dosname.h.
8755         * lib/unlinkat.c: Likewise.
8756         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
8757         * modules/areadlinkat-with-size (Depends-on): Likewise.
8758         * modules/faccessat (Depends-on): Likewise.
8759         * modules/fchmodat (Depends-on): Likewise.
8760         * modules/fchownat (Depends-on): Likewise.
8761         * modules/fstatat (Depends-on): Likewise.
8762         * modules/mkdirat (Depends-on): Likewise.
8763         * modules/mkfifoat (Depends-on): Likewise.
8764         * modules/readlinkat (Depends-on): Likewise.
8765         * modules/selinux-at (Depends-on): Likewise.
8766         * modules/symlinkat (Depends-on): Likewise.
8767         * modules/unlinkat (Depends-on): Likewise.
8768         * modules/utimensat (Depends-on): Likewise.
8770         * lib/at-func2.c: Include filename.h instead of dosname.h.
8771         * modules/linkat (Depends-on): Add filename. Remove dosname.
8772         * modules/renameatu (Depends-on): Likewise.
8774         * lib/canonicalize.c: Include filename.h instead of dosname.h.
8775         * lib/canonicalize-lgpl.c: Likewise.
8776         * modules/canonicalize (Depends-on): Add filename.
8777         * modules/canonicalize-lgpl (Depends-on): Likewise.
8779         * lib/dirname.h: Include filename.h instead of dosname.h.
8780         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
8782         * lib/fchdir.c: Include filename.h instead of dosname.h.
8783         * modules/fchdir (Depends-on): Add filename. Remove dosname.
8785         * lib/openat.c: Include filename.h instead of dosname.h.
8786         * modules/openat (Depends-on): Add filename. Remove dosname.
8788         * lib/rmdir.c: Include filename.h instead of dosname.h.
8789         * modules/rmdir (Depends-on): Add filename. Remove dosname.
8791         * lib/savewd.c: Include filename.h instead of dosname.h.
8792         * modules/savewd (Depends-on): Add filename. Remove dosname.
8794         * lib/unlink.c: Include filename.h instead of dosname.h.
8795         * modules/unlink (Depends-on): Add filename. Remove dosname.
8797         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
8798         * lib/relocwrapper.c: Update comments.
8800         * modules/lstat (Depends-on): Remove dosname.
8802 2020-03-28  Bruno Haible  <bruno@clisp.org>
8804         dosname: Redirect to 'filename'.
8805         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8806         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
8807         * lib/dosname.h: Remove all definitions. Just include filename.h.
8808         * modules/dosname (Status, Notice): Mark as deprecated.
8809         (Depends-on): Add 'filename'.
8811 2020-03-28  Bruno Haible  <bruno@clisp.org>
8813         dosname: Change IS_RELATIVE_FILE_NAME.
8814         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
8815         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
8816         * NEWS: Mention the change.
8818 2020-03-28  Bruno Haible  <bruno@clisp.org>
8820         filename: Copy some definitions from module 'dosname'.
8821         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
8822         (HAS_DEVICE): Document macro.
8823         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
8824         (IS_ABSOLUTE_FILE_NAME): Consider
8825         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
8826         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
8827         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
8828         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
8829         IS_PATH_WITH_DIR.
8830         (DllMain): Update.
8831         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
8832         IS_PATH_WITH_DIR.
8833         (find_executable): Update.
8834         * NEWS: Document the deprecations.
8836 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8838         getopt-posix: port __GETOPT_PREFIX to macOS
8839         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
8840         Define to work around a problem with asm on macOS (Bug#40205).
8842 2020-03-22  Bruno Haible  <bruno@clisp.org>
8844         MODULES.html.sh: Add support for reproducible builds.
8845         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8846         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
8847         * MODULES.html.sh: Print the date of the last gnulib commit, not the
8848         current date.
8850 2020-03-22  Bruno Haible  <bruno@clisp.org>
8852         Several modules: Depend on stat.
8853         * modules/acl-permissions (Depends-on): Add stat.
8854         * modules/canonicalize (Depends-on): Likewise.
8855         * modules/file-has-acl (Depends-on): Likewise.
8856         * modules/fstat (Depends-on): Likewise.
8857         * modules/fstatat (Depends-on): Likewise.
8858         * modules/glob (Depends-on): Likewise.
8859         * modules/javacomp (Depends-on): Likewise.
8860         * modules/linkat (Depends-on): Likewise.
8861         * modules/mkdir (Depends-on): Likewise.
8862         * modules/pt_chown (Depends-on): Likewise.
8863         * modules/ptsname_r (Depends-on): Likewise.
8864         * modules/readlinkat (Depends-on): Likewise.
8865         * modules/rename (Depends-on): Likewise.
8866         * modules/renameatu (Depends-on): Likewise.
8867         * modules/tmpdir (Depends-on): Likewise.
8868         * modules/utimens (Depends-on): Likewise.
8869         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
8870         * modules/same (Depends-on): Remove stat.
8872 2020-03-22  Bruno Haible  <bruno@clisp.org>
8874         acl-permissions: Improve autoconf macro.
8875         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
8876         more reliably.
8878 2020-03-22  Bruno Haible  <bruno@clisp.org>
8880         file-has-acl: Fix module description.
8881         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
8882         (Depends-on): Depend on acl-permissions unconditionally.
8884 2020-03-21  Bruno Haible  <bruno@clisp.org>
8886         unlink: Ensure errno also on native Windows.
8887         * modules/unlink (Depends-on): Add malloc-posix.
8889 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8891         unlink: fix malloc errno typo
8892         Problem reported by Tim Rühsen in:
8893         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
8894         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
8896 2020-03-16  Bruno Haible  <bruno@clisp.org>
8898         *printf-posix: Fix m4 error (regression from 2020-03-08).
8899         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
8900         brackets in AC_COMPILE_IFELSE invocation.
8902 2020-03-08  Bruno Haible  <bruno@clisp.org>
8904         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
8905         * modules/crypto/af_alg (Depends-on): Add fstat.
8906         * modules/renameatu (Depends-on): Likewise.
8907         * modules/same (Depends-on): Likewise.
8908         * modules/term-style-control (Depends-on): Likewise.
8910 2020-03-08  Bruno Haible  <bruno@clisp.org>
8912         *printf-posix: Document why it's overridden on some glibc systems.
8913         Reported by Adrian Bunk <bunk@stusta.de> in
8914         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
8915         * doc/posix-functions/*printf.texi: Document the problem with the %n
8916         directive on some glibc systems.
8917         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
8918         the cross-compilation guesses accordingly.
8920 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8922         open, openat: port to (O_RDWR | O_RDONLY) != 0
8923         Potential portability problem reported by Dan Gohman in:
8924         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
8925         * lib/open.c (open):
8926         * lib/openat.c (rpl_openat):
8927         Don’t assume O_RDONLY is disjoint from O_RDWR.
8929 2020-03-07  Bruno Haible  <bruno@clisp.org>
8931         openat: Fix theoretically possible issue on GNU/Hurd.
8932         Reported by Dan Gohman <sunfish@mozilla.com> in
8933         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
8934         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
8935         ignore the bits that are also set in O_RDONLY.
8937 2020-02-24  Bruno Haible  <bruno@clisp.org>
8939         getloadavg: Don't use /usr/local when cross-compiling on AIX.
8940         Reported by Jens Rehsack <sno@netbsd.org> in
8941         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
8942         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
8943         cross-compiling.
8945 2020-02-24  Bruno Haible  <bruno@clisp.org>
8947         fcntl: Add witness of gnulib override.
8948         Reported by Jens Rehsack <sno@netbsd.org> in
8949         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
8950         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
8951         macros.
8953 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
8955         Update users.txt.
8956         * users.txt: Add datamash, time.
8958 2020-02-23  Bruno Haible  <bruno@clisp.org>
8960         uni*/base: Use 'restrict'.
8961         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
8962         from lib/regex.h.
8963         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
8964         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
8965         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
8966         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
8967         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
8968         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
8969         '_UC_RESTRICT'.
8970         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
8971         u32_conv_to_encoding): Use '_UC_RESTRICT'.
8972         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
8973         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
8974         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8975         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8976         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
8977         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
8978         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
8979         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
8980         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
8981         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
8982         '_UC_RESTRICT'.
8983         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
8984         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
8985         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
8986         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
8987         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
8988         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
8989         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
8990         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
8992 2020-02-23  Bruno Haible  <bruno@clisp.org>
8994         glob, spawn: Use improved '_Restrict_' definition.
8995         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
8996         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
8998 2020-02-23  Bruno Haible  <bruno@clisp.org>
9000         crypto/gc: Use 'restrict'.
9001         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
9002         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
9004         crypto/hmac-*: Use 'restrict'.
9005         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
9006         'restrict'.
9007         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
9008         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
9009         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
9010         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
9012         crypto/sm3: Use 'restrict'.
9013         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
9014         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
9016         crypto/*-buffer: Use 'restrict'.
9017         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
9018         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
9020         crypto/sha512-buffer: Use 'restrict'.
9021         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
9022         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
9023         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
9025         crypto/sha256-buffer: Use 'restrict'.
9026         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
9027         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
9028         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
9030         crypto/sha1-buffer: Use 'restrict'.
9031         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
9032         'restrict'.
9033         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
9035         crypto/md5-buffer: Use 'restrict'.
9036         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
9037         'restrict'.
9038         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
9040         crypto/md4: Use 'restrict'.
9041         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
9042         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
9044         crypto/md2: Use 'restrict'.
9045         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
9046         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
9048         crypto/rijndael: Use 'restrict'.
9049         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
9050         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
9051         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
9053         crypto/arctwo: Use 'restrict'.
9054         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
9055         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
9057         crypto/arcfour: Use 'restrict'.
9058         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
9059         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
9061         careadlinkat: Use 'restrict'.
9062         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
9063         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
9064         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
9066         regex-quote: Use 'restrict'.
9067         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
9068         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
9070         system-quote: Use 'restrict'.
9071         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
9072         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
9074         sh-quote: Use 'restrict'.
9075         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
9076         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
9078         quotearg: Use 'restrict'.
9079         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
9080         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
9082         parse-datetime: Use 'restrict'.
9083         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
9084         'restrict'.
9085         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
9087         nstrftime: Use 'restrict'.
9088         * lib/strftime.h (nstrftime): Use 'restrict'.
9089         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
9091         mbstok_r: Use 'restrict'.
9092         * lib/string.in.h (mbstok_r): Use 'restrict'.
9094         xmemcoll: Use 'restrict'.
9095         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
9096         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
9098         memcoll: Use 'restrict'.
9099         * lib/memcoll.h (memcoll): Use 'restrict'.
9100         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
9102         vasnprintf: Use 'restrict'.
9103         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
9104         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
9106         c-vasnprintf: Use 'restrict'.
9107         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
9108         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
9110         c-vsnprintf: Use 'restrict'.
9111         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
9112         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
9114         c-snprintf: Use 'restrict'.
9115         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
9116         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
9118         astrxfrm: Use 'restrict'.
9119         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
9120         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
9122         amemxfrm: Use 'restrict'.
9123         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
9124         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
9126 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9128         fchmodat, lchmod: simplify
9129         It appears that we may have overengineered lchmod and fchmodat,
9130         in that the code was prepared for some hypothetical platforms but
9131         was so complicated that it was hard to understand.  I attempted to
9132         improve the situation by simplifying the code when this
9133         simplification should not hurt on real platforms; we can re-add
9134         complexity later to port to platforms I didn’t know about.
9135         * lib/fchmodat.c (fchmodat):
9136         * lib/lchmod.c (lchmod):
9137         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
9138         around the /proc code that needs it.
9139         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
9140         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
9141         Do not include <config.h> twice.
9142         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
9143         lchmod on any known hosts.
9144         (lchmod): Do not defer to fchmodat, so that the lchmod module
9145         need not depend on the fchmodat module (which is a circular
9146         dependency).  Do not use openat, since ‘open’ suffices.
9147         Coalesce calls to lchmod/chmod.
9148         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
9149         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
9150         * modules/lchmod (Depends-on, configure.ac):
9151         * modules/sys_stat (Depends-on):
9152         Do not worry about replacing lchmod, since that shouldn’t happen.
9153         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
9154         Do not worry about whether lchmod works on non-symlinks,
9155         since every known lchmod works on non-symlinks.
9156         * modules/lchmod (Depends-on):
9157         Remove circular dependency on fchmodat.
9159 2020-02-22  Bruno Haible  <bruno@clisp.org>
9161         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
9162         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
9163         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
9165 2020-02-22  Bruno Haible  <bruno@clisp.org>
9167         Use 'restrict' in all POSIX function declarations.
9168         * lib/iconv.in.h (iconv): Use 'restrict'.
9169         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
9170         * lib/monetary.in.h (strfmon_l): Likewise.
9171         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
9172         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
9173         pthread_mutex_timedlock, pthread_rwlock_init,
9174         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
9175         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
9176         * lib/search.in.h (tdelete): Likewise.
9177         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
9178         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
9179         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
9180         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
9181         Likewise.
9182         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
9183         strtoull): Likewise.
9184         * lib/string.in.h (strncat): Likewise.
9185         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
9186         recvfrom): Likewise.
9187         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
9188         * lib/time.in.h (strftime): Likewise.
9189         * lib/unistd.in.h (readlink, readlinkat): Likewise.
9190         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
9191         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
9192         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
9193         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
9194         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
9195         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
9196         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9197         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9198         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9199         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9201         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9202         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9203         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9204         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
9205         other *_h.m4 files.
9206         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
9208 2020-02-22  Bruno Haible  <bruno@clisp.org>
9210         Update NEWS.
9211         * NEWS: Mention the last change.
9213 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9215         chmodat, chownat: new modules
9216         These are split from fchmodat, fchownat.  GNU Emacs needs the
9217         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
9218         lchmodat.  Split the latter two into a new module chmodat.
9219         Similarly for fchownat.  This the same basic idea for why statat
9220         was split from fstatat on 2013-01-23.
9221         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
9222         Rename from FCHMODAT_INLINE.  All uses changed.
9223         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
9224         Rename from FCHOWNAT_INLINE.  All uses changed.
9225         * lib/openat.h:
9226         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
9227         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
9228         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
9229         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
9230         (configure.ac): Remove fchmodat module indicator.
9231         (Makefile.am): Omit chmodat.c.
9232         (Maintainer): Add self.
9233         * modules/fchownat: Similarly, but for chown.
9234         * tests/test-fchownat.c (BASE): Don't define if already defined.
9235         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
9237 2020-02-22  Bruno Haible  <bruno@clisp.org>
9239         users.txt: Add groff.
9240         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
9241         * users.txt: Add groff.
9243 2020-02-22  Bruno Haible  <bruno@clisp.org>
9245         gnulib-tool: Ensure copied files are writable.
9246         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
9247         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
9248         * gnulib-tool (func_ensure_writable): New function.
9249         (func_ln_s, func_hardlink, func_lookup_file, func_import,
9250         func_create_testdir, copy-file): Invoke it after copying a file.
9252 2020-02-22  Bruno Haible  <bruno@clisp.org>
9254         users.txt: Update.
9255         * users.txt: Update URLs to projects that have moved or switched to git.
9256         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
9257         over the summary view. Add gawk.
9259 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9261         largefile: remove _DARWIN_USE_64_BIT_INODE
9262         It’s not needed in currently-supported macOS versions, and was
9263         problematic anyway in MacOS X 10.5 which was the only version that
9264         could use it.  Problem reported by Peter Eisentraut in:
9265         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
9266         * m4/largefile.m4 (AC_SYS_LARGEFILE):
9267         Don’t define _DARWIN_USE_64_BIT_INODE.
9268         This syncs with Autoconf master.
9270         Add ‘extern "C"’ to count-one-bits.h etc.
9271         This ports these .h files to C++.
9272         Problem reported by Simon Marchi in:
9273         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
9274         * lib/count-leading-zeros.h, lib/count-one-bits.h:
9275         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
9277 2020-02-19  Bruno Haible  <bruno@clisp.org>
9279         uninorm/decompose-internal: Avoid "no previous prototype" warning.
9280         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9281         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
9282         * lib/array-mergesort.h: Accept an optional macro definition
9283         STATIC_FROMTO.
9284         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
9286 2020-02-16  Bruno Haible  <bruno@clisp.org>
9288         fchmodat: Make more future-proof.
9289         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
9290         NEED_FCHMODAT_NONSYMLINK_FIX.
9291         (gl_PREREQ_FCHMODAT): New macro.
9292         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
9293         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
9294         without lchmod function.
9295         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
9297 2020-02-16  Bruno Haible  <bruno@clisp.org>
9299         lchmod: Make more future-proof.
9300         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
9301         (gl_PREREQ_LCHMOD): New macro.
9302         * lib/lchmod.c (orig_lchmod): New function.
9303         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
9304         Return EOPNOTSUPP only on Linux and on platforms without lchmod
9305         function.
9306         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
9308         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
9309         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
9311 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9313         xnanosleep: prefer pause, and get remaining time
9314         Problem reported by Vladimir Panteleev in:
9315         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
9316         * lib/xnanosleep.c: Include intprops.h, unistd.h.
9317         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
9318         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
9319         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
9320         * modules/xnanosleep (Depends-on): Add intprops, unistd.
9322 2020-02-16  Bruno Haible  <bruno@clisp.org>
9324         lchmod: Improve cross-compilation guess.
9325         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
9326         cross-compiling, guess depending on the platform.
9328 2020-02-16  Bruno Haible  <bruno@clisp.org>
9330         fstrcmp: Add API to clean up resources.
9331         Reported by Akim Demaille <akim@lrde.epita.fr> in
9332         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
9333         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
9334         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
9336 2020-02-14  Bruno Haible  <bruno@clisp.org>
9338         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
9339         Reported by Christian Biesinger in
9340         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
9341         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
9342         corresponding module is not enabled.
9343         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
9344         prototype if the corresponding module is not enabled.
9346 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
9348         fchmodat, lchmod: port to buggy Linux filesystems
9349         Problem reported by Florian Weimer in:
9350         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
9351         * lib/fchmodat.c (fchmodat):
9352         * lib/lchmod.c (lchmod):
9353         Don’t assume that chmod on the O_PATH-opened fd will do
9354         the right thing on a symbolic link.
9355         * lib/fchmodat.c (fchmodat):
9356         Don’t attempt to special-case
9357         any flag value other than AT_SYMLINK_NOFOLLOW.
9359 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
9361         lchmod: pacify Coverity CID 1491216
9362         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
9363         not complain about unreachable code at the ‘struct stat st;’
9364         declaration.
9366 2020-02-10  Bruno Haible  <bruno@clisp.org>
9368         copysignf: Fix link error on HP-UX with cc.
9369         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
9370         HP-UX, set COPYSIGNF_LIBM to -lm.
9372 2020-02-10  Bruno Haible  <bruno@clisp.org>
9374         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
9375         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
9376         with $(LIB_SEMAPHORE).
9377         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
9378         with $(LIB_SEMAPHORE).
9380 2020-02-10  Bruno Haible  <bruno@clisp.org>
9382         ptsname_r-tests: Avoid unused function warning.
9383         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
9385 2020-02-08  Bruno Haible  <bruno@clisp.org>
9387         lchmod: Add tests.
9388         * tests/test-lchmod.c: New file.
9389         * modules/lchmod-tests: New file.
9391 2020-02-08  Bruno Haible  <bruno@clisp.org>
9393         lchmod: Ensure declaration on HP-UX.
9394         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
9395         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
9397 2020-02-08  Bruno Haible  <bruno@clisp.org>
9399         fchmodat: Strengthen tests.
9400         * tests/test-fchmodat.c (BASE): New macro.
9401         (main): Use it, to avoid conflicts with other unit tests. Verify that
9402         fchmodat changed the file permission bits.
9404 2020-02-08  Bruno Haible  <bruno@clisp.org>
9406         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
9407         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
9408         '#undef __need_system_sys_stat_h'.
9410 2020-02-08  Bruno Haible  <bruno@clisp.org>
9412         fchmodat: Improve cross-compilation guesses.
9413         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
9414         cross-compiling, guess depending on the platform.
9415         * doc/posix-functions/fchmodat.texi: Clarify.
9417 2020-02-08  Bruno Haible  <bruno@clisp.org>
9419         Fix compilation errors in a testdir created with --with-c++-tests.
9420         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
9421         since it does not work any more with g++ >= 4.4.
9423 2020-02-08  Bruno Haible  <bruno@clisp.org>
9425         doc: Update for glibc 2.31.
9426         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
9427         * doc/gnulib.texi: Include it.
9428         * doc/pastposix-functions/h_errno.texi: Update.
9429         * doc/posix-functions/*.texi: Likewise.
9431 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
9433         mountlist: consider smb3 file systems as remote
9434         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
9435         "smb3" as remote.
9437 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9439         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
9440         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
9441         they act like chmod on non-symlinks.
9442         * NEWS:
9443         * doc/glibc-functions/lchmod.texi (lchmod):
9444         * doc/posix-functions/fchmodat.texi (fchmodat):
9445         Mention this.
9446         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
9447         config.h, and undef it after including sys/stat.h the first time.
9448         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
9449         sys/stat.h a second time after defining orig_fchmodat.
9450         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
9451         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
9452         * lib/lchmod.c: New file.
9453         * lib/sys_stat.in.h (fchmodat, lchmod):
9454         Support replacing these functions.
9455         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
9456         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
9457         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
9458         Test that lchmod works on non-symlinks.
9459         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
9460         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
9461         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
9462         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
9463         * modules/lchmod (Files): Add lib/lchmod.c.
9464         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
9465         (configure.ac): Compile lchmod.c if needed.
9466         (lib_SOURCES): Add lchmod.c.
9467         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
9468         and REPLACE_LCHMOD.
9469         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
9470         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
9472 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
9474         mountlist: Consider AFS filesystems as remote
9475         df --local relies on the ME_REMOTE macro to determine if a given
9476         mount entry should be considered "local".  There is special logic
9477         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
9478         kernel's kafs module or AuriStorFS is treated as a local mount.
9479         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
9480         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
9482 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9484         Port _Noreturn to older Clang
9485         Problem reported by Jeffery Walton in:
9486         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
9487         * lib/_Noreturn.h (_Noreturn):
9488         * m4/gnulib-common.m4 (gl_COMMON_BODY):
9489         Assume _Noreturn works in Clang 3.5 and later.
9490         It is documented to work in Clang 3.5:
9491         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
9492         and is not documented in Clang 3.4:
9493         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
9494         Apple sets __clang_version__ to a different value, so use
9495         __apple_build_version__ there.  See:
9496         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
9498 2020-02-04  Pádraig Brady  <P@draigBrady.com>
9500         test-canonicalize: avoid unused function warning
9501         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
9502         with the same guard as that used to protect usage of the null_ptr
9503         function, so that one doesn't get a -Wunused warning.
9504         * tests/test-canonicalize-lgpl.c: Likewise.
9506 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
9508         libc-config: port to Apple’s Clang variant
9509         * lib/libc-config.h (__glibc_clang_prereq):
9510         Port to Apple’s Clang variant, which uses a different
9511         numbering scheme for __clang_major__.
9513 2020-02-02  Bruno Haible  <bruno@clisp.org>
9515         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
9516         * doc/containers.texi: Document these new modules.
9518 2020-02-02  Bruno Haible  <bruno@clisp.org>
9520         omap-c++: Add tests.
9521         * tests/test-omap-c++.cc: New file.
9522         * modules/omap-c++-tests: New file.
9524         omap-c++: New module.
9525         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
9526         * modules/omap-c++: New file.
9528 2020-02-02  Bruno Haible  <bruno@clisp.org>
9530         map-c++: Add tests.
9531         * tests/test-map-c++.cc: New file.
9532         * modules/map-c++-tests: New file.
9534         map-c++: New module.
9535         * lib/gl_map.hh: New file, based on lib/gl_map.h.
9536         * modules/map-c++: New file.
9538 2020-02-02  Bruno Haible  <bruno@clisp.org>
9540         oset-c++: Add tests.
9541         * tests/test-oset-c++.cc: New file.
9542         * modules/oset-c++-tests: New file.
9544         oset-c++: New module.
9545         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
9546         * modules/oset-c++: New file.
9548 2020-02-02  Bruno Haible  <bruno@clisp.org>
9550         set-c++: Add tests.
9551         * tests/test-set-c++.cc: New file.
9552         * modules/set-c++-tests: New file.
9554         set-c++: New module.
9555         * lib/gl_set.hh: New file, based on lib/gl_set.h.
9556         * modules/set-c++: New file.
9558 2020-02-02  Bruno Haible  <bruno@clisp.org>
9560         list-c++: Add tests.
9561         * tests/test-list-c++.cc: New file.
9562         * modules/list-c++-tests: New file.
9564         list-c++: New module.
9565         * lib/gl_list.hh: New file, based on lib/gl_list.h.
9566         * modules/list-c++: New file.
9568 2020-02-02  Bruno Haible  <bruno@clisp.org>
9570         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
9571         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
9572         '_Noreturn'.
9573         * lib/sigpipe-die.h (sigpipe_die): Likewise.
9575 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9577         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
9578         On x86_64 with glibc-2.30, gcc 9.2 is giving:
9579           error: argument 2 value '18446744073709551615'
9580           exceeds maximum object size 9223372036854775807
9581           [-Werror=alloc-size-larger-than=]
9582         The details of this restriction are discussed at:
9583         https://stackoverflow.com/q/42574890/4421
9584         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
9586 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9588         sysctl.h: avoid including on glibc
9589         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
9590         * lib/physmem.c: Likewise.
9592 2020-02-02  Bruno Haible  <bruno@clisp.org>
9594         list, set, oset, map, omap: Avoid imperative voice in documentation.
9595         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
9596         in the specification of functions.
9597         * lib/gl_set.h: Likewise.
9598         * lib/gl_oset.h: Likewise.
9599         * lib/gl_map.h: Likewise.
9600         * lib/gl_omap.h: Likewise.
9601         * lib/gl_*.h: Likewise.
9603 2020-02-01  Bruno Haible  <bruno@clisp.org>
9605         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
9606         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
9607         does.
9609 2020-01-29  Bruno Haible  <bruno@clisp.org>
9611         array-map, hash-map, linkedhash-map: Fix module description.
9612         * modules/array-map (Description): Fix description.
9613         * modules/hash-map (Description): Likewise.
9614         * modules/linkedhash-map (Description): Likewise.
9616 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9618         dfa: do not depend on isblank
9619         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
9620         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
9621         * modules/dfa (Depends-on): Remove isblank.
9622         * modules/isblank: Add a module indicator, for lib/dfa.c.
9624         dfa: do not assume 64-bit int
9625         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
9626         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
9627         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
9628         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
9629         Fall back to 32-bit words.
9630         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
9631         of 4 64-bit args.  All uses changed.
9633 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9635         regex: remove limits-h dependency
9636         * modules/regex (Depends-on): Remove limits-h, since the
9637         code no longer depends on ULONG_WIDTH already being defined.
9639         regex: port to non-GCC pre-IEC-60559
9640         Problem reported by Arnold Robbins in:
9641         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
9642         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
9644 2020-01-25  Bruno Haible  <bruno@clisp.org>
9646         c32isxdigit: Add tests.
9647         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
9648         * tests/test-c32isxdigit.sh: New file.
9649         * modules/c32isxdigit-tests: New file.
9651         c32isxdigit: New module.
9652         * lib/c32isxdigit.c: New file.
9653         * modules/c32isxdigit: New file.
9654         * doc/posix-functions/iswxdigit.texi: Mention the new module.
9656 2020-01-25  Bruno Haible  <bruno@clisp.org>
9658         c32isupper: Add tests.
9659         * tests/test-c32isupper.c: New file.
9660         * tests/test-c32isupper.sh: New file.
9661         * modules/c32isupper-tests: New file.
9663         c32isupper: New module.
9664         * lib/c32isupper.c: New file.
9665         * modules/c32isupper: New file.
9666         * doc/posix-functions/iswupper.texi: Mention the new module.
9668 2020-01-25  Bruno Haible  <bruno@clisp.org>
9670         c32isspace: Add tests.
9671         * tests/test-c32isspace.c: New file.
9672         * tests/test-c32isspace.sh: New file.
9673         * modules/c32isspace-tests: New file.
9675         c32isspace: New module.
9676         * lib/c32isspace.c: New file.
9677         * modules/c32isspace: New file.
9678         * doc/posix-functions/iswspace.texi: Mention the new module.
9680 2020-01-25  Bruno Haible  <bruno@clisp.org>
9682         c32ispunct: Add tests.
9683         * tests/test-c32ispunct.c: New file.
9684         * tests/test-c32ispunct.sh: New file.
9685         * modules/c32ispunct-tests: New file.
9687         c32ispunct: New module.
9688         * lib/c32ispunct.c: New file.
9689         * modules/c32ispunct: New file.
9690         * doc/posix-functions/iswpunct.texi: Mention the new module.
9692 2020-01-25  Bruno Haible  <bruno@clisp.org>
9694         c32isprint: Add tests.
9695         * tests/test-c32isprint.c: New file.
9696         * tests/test-c32isprint.sh: New file.
9697         * modules/c32isprint-tests: New file.
9699         c32isprint: New module.
9700         * lib/c32isprint.c: New file.
9701         * modules/c32isprint: New file.
9702         * doc/posix-functions/iswprint.texi: Mention the new module.
9704 2020-01-25  Bruno Haible  <bruno@clisp.org>
9706         c32islower: Add tests.
9707         * tests/test-c32islower.c: New file.
9708         * tests/test-c32islower.sh: New file.
9709         * modules/c32islower-tests: New file.
9711         c32islower: New module.
9712         * lib/c32islower.c: New file.
9713         * modules/c32islower: New file.
9714         * doc/posix-functions/iswlower.texi: Mention the new module.
9716 2020-01-25  Bruno Haible  <bruno@clisp.org>
9718         c32isgraph: Add tests.
9719         * tests/test-c32isgraph.c: New file.
9720         * tests/test-c32isgraph.sh: New file.
9721         * modules/c32isgraph-tests: New file.
9723         c32isgraph: New module.
9724         * lib/c32isgraph.c: New file.
9725         * modules/c32isgraph: New file.
9726         * doc/posix-functions/iswgraph.texi: Mention the new module.
9728 2020-01-25  Bruno Haible  <bruno@clisp.org>
9730         c32isdigit: Add tests.
9731         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
9732         * tests/test-c32isdigit.sh: New file.
9733         * modules/c32isdigit-tests: New file.
9735         c32isdigit: New module.
9736         * lib/c32isdigit.c: New file.
9737         * modules/c32isdigit: New file.
9738         * doc/posix-functions/iswdigit.texi: Mention the new module.
9740 2020-01-25  Bruno Haible  <bruno@clisp.org>
9742         c32iscntrl: Add tests.
9743         * tests/test-c32iscntrl.c: New file.
9744         * tests/test-c32iscntrl.sh: New file.
9745         * modules/c32iscntrl-tests: New file.
9747         c32iscntrl: New module.
9748         * lib/c32iscntrl.c: New file.
9749         * modules/c32iscntrl: New file.
9750         * doc/posix-functions/iswcntrl.texi: Mention the new module.
9752 2020-01-25  Bruno Haible  <bruno@clisp.org>
9754         c32isblank: Add tests.
9755         * tests/test-c32isblank.c: New file.
9756         * tests/test-c32isblank.sh: New file.
9757         * modules/c32isblank-tests: New file.
9759         c32isblank: New module.
9760         * lib/c32isblank.c: New file.
9761         * modules/c32isblank: New file.
9762         * doc/posix-functions/iswblank.texi: Mention the new module.
9764 2020-01-25  Bruno Haible  <bruno@clisp.org>
9766         c32isalpha: Add tests.
9767         * tests/test-c32isalpha.c: New file.
9768         * tests/test-c32isalpha.sh: New file.
9769         * modules/c32isalpha-tests: New file.
9771         c32isalpha: New module.
9772         * lib/c32isalpha.c: New file.
9773         * modules/c32isalpha: New file.
9774         * doc/posix-functions/iswalpha.texi: Mention the new module.
9776 2020-01-25  Bruno Haible  <bruno@clisp.org>
9778         c32isalnum: Add tests.
9779         * tests/test-c32isalnum.c: New file.
9780         * tests/test-c32isalnum.sh: New file.
9781         * modules/c32isalnum-tests: New file.
9783         c32isalnum: New module.
9784         * lib/c32isalnum.c: New file.
9785         * lib/c32is-impl.h: New file.
9786         * modules/c32isalnum: New file.
9787         * doc/posix-functions/iswalnum.texi: Mention the new module.
9789 2020-01-25  Bruno Haible  <bruno@clisp.org>
9791         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
9792         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
9793         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
9794         c32isupper, c32isxdigit): New declarations.
9795         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
9796         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9797         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9798         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9799         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9800         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
9801         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9802         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9803         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9804         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9805         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
9806         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
9807         c32ispunct, c32isspace, c32isupper, c32isxdigit.
9809 2020-01-25  Bruno Haible  <bruno@clisp.org>
9811         mbchar, wctype: Use the corrected iswxdigit function.
9812         * modules/mbchar (Depends-on): Add iswxdigit.
9813         * modules/wctype (Depends-on): Likewise.
9815         iswxdigit: Add tests.
9816         * tests/test-iswxdigit.c: New file.
9817         * tests/test-iswxdigit.sh: New file.
9818         * modules/iswxdigit-tests: New file.
9820         iswxdigit: New module.
9821         * m4/iswxdigit.m4: New file.
9822         * lib/wctype.in.h (iswxdigit): Potentially override.
9823         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
9824         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
9825         * lib/iswxdigit.c: New file.
9826         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
9827         REPLACE_ISWXDIGIT.
9828         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
9829         REPLACE_ISWXDIGIT.
9830         * modules/iswxdigit: New file.
9831         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
9833 2020-01-25  Bruno Haible  <bruno@clisp.org>
9835         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
9836         Reported by John Donoghue <john.david.donoghue@gmail.com> in
9837         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
9838         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
9839         off_t on mingw, invoke _lseeki64 instead of lseek.
9841 2020-01-25  Bruno Haible  <bruno@clisp.org>
9843         iswdigit tests: Avoid test failure on Cygwin.
9844         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
9845         byte sequence, return 0.
9847         iswdigit: Fix test failure on native Windows.
9848         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
9850         mbchar, wctype: Use the corrected iswdigit function.
9851         * modules/mbchar (Depends-on): Add iswdigit.
9852         * modules/wctype (Depends-on): Likewise.
9854         iswdigit: Add tests.
9855         * tests/test-iswdigit.c: New file.
9856         * tests/test-iswdigit.sh: New file.
9857         * modules/iswdigit-tests: New file.
9859         iswdigit: New module.
9860         * m4/iswdigit.m4: New file.
9861         * lib/wctype.in.h (iswdigit): Potentially override.
9862         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
9863         * lib/iswdigit.c: New file.
9864         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
9865         REPLACE_ISWDIGIT.
9866         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
9867         REPLACE_ISWDIGIT.
9868         * modules/iswdigit: New file.
9869         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
9871 2020-01-25  Bruno Haible  <bruno@clisp.org>
9873         hard-locale tests: Make it easy to reuse the musl test.
9874         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
9875         * modules/hard-locale-tests (Files): Add it.
9876         (configure.ac): Invoke gl_MUSL_LIBC.
9878 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9880         regex: port to Gawk on nonstandard platforms
9881         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
9882         This is useful for Gawk, which does not use the Gnulib stdlib-h
9883         module.  Problem reported by Arnold Robbins in:
9884         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
9886 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9888         regex: fix bug with >=16 subexpressions
9889         * lib/regex_internal.h (struct re_backref_cache_entry):
9890         Use bitset_word_t as the type of eps_reachable_subexps_map,
9891         instead of unsigned short int.  This fixes a bug I introduced
9892         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
9893         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
9894         Remove unused member 'unused'.
9896         regex: simplify definition of BITSET_WORD_BITS
9897         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
9898         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
9899         * lib/regex_internal.h (BITSET_WORD_BITS):
9900         * modules/regex (Depends-on): Add limits-h.
9901         Simplify now that we can use ULONG_WIDTH.
9903 2020-01-20  Bruno Haible  <bruno@clisp.org>
9905         mbrtoc32: Add note about FreeBSD 12.
9906         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
9907         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
9908         affected.
9910 2020-01-20  Bruno Haible  <bruno@clisp.org>
9912         unistr/u8-uctomb: Fix warning.
9913         Reported by Andreas Schwab <schwab@suse.de> in
9914         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
9915         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
9916         (u8_uctomb): Add FALLTHROUGH markers.
9918 2020-01-20  Bruno Haible  <bruno@clisp.org>
9920         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
9921         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
9922         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
9923         (glthread_once): Use it.
9925 2020-01-19  Bruno Haible  <bruno@clisp.org>
9927         threadlib: Disable use of weak symbols on FreeBSD 11.
9928         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9929         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
9930         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
9931         against a bug in FreeBSD 11.
9933 2020-01-19  Bruno Haible  <bruno@clisp.org>
9935         iconv_open: Improve z/OS support.
9936         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
9937         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
9938         Remove mapping for EUC-TW.
9940 2020-01-18  Bruno Haible  <bruno@clisp.org>
9942         Rename ~~gnulib.m4 to zzgnulib.m4.
9943         Suggested by Paul Eggert.
9944         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
9945         * gnulib-tool (func_get_filelist): Update.
9946         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9948 2020-01-18  Bruno Haible  <bruno@clisp.org>
9950         doc: Update license notices.
9951         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
9952         reference to a section or to a "file as part of this distribution".
9954 2020-01-18  Bruno Haible  <bruno@clisp.org>
9956         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
9957         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9958         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
9959         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
9960         AC_EGREP_CPP.
9962 2020-01-18  Bruno Haible  <bruno@clisp.org>
9964         Ensure Automake does not drop ~~gnulib.m4.
9965         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
9966         * m4/gnulib-common.m4 (gl_COMMON): Require it.
9968 2020-01-18  Bruno Haible  <bruno@clisp.org>
9970         Fix major regression from 2020-01-10.
9971         Reported by Paul Eggert in
9972         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
9973         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9974         Don't AC_REQUIRE anything.
9975         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
9976         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
9977         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
9978         use ac_compile instead.
9979         (AC_CHECK_DECL): Remove override.
9980         * m4/~~gnulib.m4: New file.
9981         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
9982         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9984 2020-01-17  Bruno Haible  <bruno@clisp.org>
9985             Paul Eggert  <eggert@cs.ucla.edu>
9987         glob: Fix use-after-free bug.
9988         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
9990         * lib/glob.c (__glob): Delay freeing dirname until after the use of
9991         end_name.
9993 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9995         vcs-to-changelog: Fix parsing of fndecl without args.
9996         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
9997         for empty arguments.
9999 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10001         vcs-to-changelog: Add documentation.
10002         * doc/vcs-to-changelog.texi: New file.
10003         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
10004         section.
10006 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10008         vcs-to-changelog: Allow loading of custom quirks file.
10009         * build-aux/vcs_to_changelog.py: New commandline option -q.
10011 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10013         vcs-to-changelog: Fix formatting of ChangeLog output.
10014         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
10015         output.
10017 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10019         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
10020         Reported in
10021         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
10022         * build-aux/vcstocl/frontend_c.py: Remove shebang.
10024 2020-01-15  Simon Josefsson  <simon@josefsson.org>
10026         crypto/gc-pbkdf2: New module.
10027         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
10028         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
10029         * lib/gc-pbkdf2.c: New file.
10030         * lib/gc-pbkdf2-sha1.c: Use new interface.
10031         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
10032         * modules/crypto/gc-pbkdf2: New file.
10033         * modules/crypto/gc-pbkdf2-tests: New file.
10034         * tests/test-gc-pbkdf2.c: New file.
10036 2020-01-12  Bruno Haible  <bruno@clisp.org>
10038         c32stombs: Add tests.
10039         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
10040         * tests/test-c32stombs-1.sh: New file, based on
10041         tests/test-c32srtombs-1.sh.
10042         * tests/test-c32stombs-2.sh: New file, based on
10043         tests/test-c32srtombs-2.sh.
10044         * tests/test-c32stombs-3.sh: New file, based on
10045         tests/test-c32srtombs-3.sh.
10046         * tests/test-c32stombs-4.sh: New file, based on
10047         tests/test-c32srtombs-4.sh.
10048         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
10050         c32stombs: New module.
10051         * lib/uchar.in.h (c32stombs): New declaration.
10052         * lib/c32stombs.c: New file.
10053         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
10054         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
10055         * modules/c32stombs: New file.
10056         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
10057         * doc/posix-functions/wcstombs.texi: Mention the new module.
10059 2020-01-11  Jim Meyering  <meyering@fb.com>
10061         perl: require the "warnings" module
10062         * m4/perl.m4: Also "use warnings", so we reject the perl found
10063         on at least one IRIX 6.5 system. Reported by Bruno Haible in
10064         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
10066 2020-01-10  Bruno Haible  <bruno@clisp.org>
10068         Fix major regression from 2020-01-04.
10069         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
10070         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
10071         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
10072         AC_DEFUN_ONCE.
10073         (AC_CHECK_DECL): Invoke, not require, it.
10075 2020-01-10  Bruno Haible  <bruno@clisp.org>
10077         c32snrtombs: Add tests.
10078         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
10079         * tests/test-c32snrtombs-1.sh: New file, based on
10080         tests/test-wcsnrtombs1.sh.
10081         * tests/test-c32snrtombs-2.sh: New file, based on
10082         tests/test-wcsnrtombs2.sh.
10083         * tests/test-c32snrtombs-3.sh: New file, based on
10084         tests/test-wcsnrtombs3.sh.
10085         * tests/test-c32snrtombs-4.sh: New file, based on
10086         tests/test-wcsnrtombs4.sh.
10087         * modules/c32snrtombs-tests: New file, based on
10088         modules/wcsnrtombs-tests.
10090         c32snrtombs: New module.
10091         * lib/uchar.in.h (c32snrtombs): New declaration.
10092         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
10093         INTERNAL_STATE, WCRTOMB.
10094         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
10095         * lib/c32snrtombs.c: New file.
10096         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
10097         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
10098         * modules/c32snrtombs: New file.
10099         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
10100         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
10102 2020-01-09  Bruno Haible  <bruno@clisp.org>
10104         c32srtombs: Add tests.
10105         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
10106         * tests/test-c32srtombs-1.sh: New file, based on
10107         tests/test-wcsrtombs1.sh.
10108         * tests/test-c32srtombs-2.sh: New file, based on
10109         tests/test-wcsrtombs2.sh.
10110         * tests/test-c32srtombs-3.sh: New file, based on
10111         tests/test-wcsrtombs3.sh.
10112         * tests/test-c32srtombs-4.sh: New file, based on
10113         tests/test-wcsrtombs4.sh.
10114         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
10116         c32srtombs: New module.
10117         * lib/uchar.in.h (c32srtombs): New declaration.
10118         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
10119         INTERNAL_STATE, WCRTOMB.
10120         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
10121         * lib/c32srtombs.c: New file.
10122         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
10123         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
10124         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
10125         * modules/c32srtombs: New file.
10126         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
10127         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
10129 2020-01-08  Bruno Haible  <bruno@clisp.org>
10131         c32tob: Make consistent with mbrtoc32.
10132         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
10133         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
10134         use c32rtomb, not wctob.
10135         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
10136         (Depends-on): Add c32rtomb.
10137         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
10139 2020-01-08  Bruno Haible  <bruno@clisp.org>
10141         c32rtomb: Add tests.
10142         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
10143         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
10144         * tests/test-c32rtomb-w32.c: New file, based on
10145         tests/test-wcrtomb-w32.c.
10146         * tests/test-c32rtomb-w32-1.sh: New file, based on
10147         tests/test-wcrtomb-w32-1.sh.
10148         * tests/test-c32rtomb-w32-2.sh: New file, based on
10149         tests/test-wcrtomb-w32-2.sh.
10150         * tests/test-c32rtomb-w32-3.sh: New file, based on
10151         tests/test-wcrtomb-w32-3.sh.
10152         * tests/test-c32rtomb-w32-4.sh: New file, based on
10153         tests/test-wcrtomb-w32-4.sh.
10154         * tests/test-c32rtomb-w32-5.sh: New file, based on
10155         tests/test-wcrtomb-w32-5.sh.
10156         * tests/test-c32rtomb-w32-6.sh: New file, based on
10157         tests/test-wcrtomb-w32-6.sh.
10158         * tests/test-c32rtomb-w32-7.sh: New file, based on
10159         tests/test-wcrtomb-w32-7.sh.
10160         * modules/c32rtomb-tests: New file.
10162         c32rtomb: New module.
10163         * lib/uchar.in.h (c32rtomb): New declaration.
10164         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
10165         * m4/c32rtomb.m4: New file.
10166         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
10167         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
10168         REPLACE_C32RTOMB.
10169         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
10170         HAVE_C32RTOMB, REPLACE_C32RTOMB.
10171         * modules/c32rtomb: New file.
10172         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
10173         * doc/posix-functions/c32rtomb.texi: Document the new module.
10174         * doc/posix-functions/wcrtomb.texi: Mention the new module.
10176 2020-01-08  Bruno Haible  <bruno@clisp.org>
10178         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
10179         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
10180         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
10181         but is not working.
10182         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
10183         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
10184         differ, use the system's mbrtoc32, adding workarounds.
10185         * modules/mbrtoc32 (Depends-on): Add hard-locale.
10186         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
10187         Windows problem.
10188         * lib/btoc32.c: Include <stdio.h>, <string.h>.
10189         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
10190         use mbrtoc32, not btowc.
10191         * modules/btoc32 (Depends-on): Add mbrtoc32.
10192         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
10193         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
10194         * modules/mbsrtoc32s (Depends-on): Update conditions.
10195         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
10196         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
10197         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
10198         * modules/mbsnrtoc32s (Depends-on): Update conditions.
10199         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
10201 2020-01-07  Bruno Haible  <bruno@clisp.org>
10203         wcrtomb: Make multithread-safe, except possibly on IRIX.
10204         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
10205         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
10206         WCRTOMB_RETVAL_BUG.
10207         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
10208         wctomb only on IRIX.
10210 2020-01-05  Jim Meyering  <meyering@fb.com>
10212         tests: skip thread-using tests when threading is disabled
10213         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
10214         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
10215         of those, so they are skipped in this case.
10216         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
10217         * tests/test-setlocale_null-mt-all.c (main): Likewise.
10218         * tests/test-setlocale_null-mt-one.c (main): Likewise.
10220 2020-01-05  Bruno Haible  <bruno@clisp.org>
10222         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
10223         Reported by Jim Meyering in
10224         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
10225         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
10226         (GNULIB_defined_ptsname_r): New macro.
10227         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
10228         (main): Disable the NULL argument test if canonicalize_file_name does
10229         not come from gnulib.
10230         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
10231         (main): Disable the NULL argument test if canonicalize_file_name does
10232         not come from gnulib.
10233         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
10234         (test_errors): Disable the NULL argument test if ptsname_r does not come
10235         from gnulib.
10237 2020-01-04  Jim Meyering  <meyering@fb.com>
10239         update-copyright: reenable its always-skipped test
10240         * tests/test-update-copyright.sh: Restore the "-pi" options removed
10241         on 2019-06-15. Without those, an internal preliminary test would
10242         fail, causing this test always to be skipped.
10243         Verify that the test is now run and passes via this:
10244           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
10246 2020-01-05  Bruno Haible  <bruno@clisp.org>
10248         mbstoc32s: Add tests.
10249         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
10250         * tests/test-mbstoc32s-1.sh: New file, based on
10251         tests/test-mbsrtoc32s-1.sh.
10252         * tests/test-mbstoc32s-2.sh: New file, based on
10253         tests/test-mbsrtoc32s-2.sh.
10254         * tests/test-mbstoc32s-3.sh: New file, based on
10255         tests/test-mbsrtoc32s-3.sh.
10256         * tests/test-mbstoc32s-4.sh: New file, based on
10257         tests/test-mbsrtoc32s-4.sh.
10258         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
10260         mbstoc32s: New module.
10261         * lib/uchar.in.h (mbstoc32s): New declaration.
10262         * lib/mbstoc32s.c: New file.
10263         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
10264         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
10265         * modules/mbstoc32s: New file.
10266         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
10267         * doc/posix-functions/mbstowcs.texi: Mention the new module.
10269 2020-01-05  Bruno Haible  <bruno@clisp.org>
10271         Tweak recently added tests.
10272         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
10273         * tests/test-mbsrtoc32s.c: Likewise.
10274         * tests/test-mbsnrtoc32s.c: Likewise.
10276 2020-01-04  Bruno Haible  <bruno@clisp.org>
10278         mbsnrtoc32s: Add tests.
10279         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
10280         * tests/test-mbsnrtoc32s-1.sh: New file, based on
10281         tests/test-mbsnrtowcs1.sh.
10282         * tests/test-mbsnrtoc32s-2.sh: New file, based on
10283         tests/test-mbsnrtowcs2.sh.
10284         * tests/test-mbsnrtoc32s-3.sh: New file, based on
10285         tests/test-mbsnrtowcs3.sh.
10286         * tests/test-mbsnrtoc32s-4.sh: New file, based on
10287         tests/test-mbsnrtowcs4.sh.
10288         * modules/mbsnrtoc32s-tests: New file, based on
10289         modules/mbsnrtowcs-tests.
10291         mbsnrtoc32s: New module.
10292         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
10293         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
10294         INTERNAL_STATE, MBRTOWC.
10295         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
10296         * lib/mbsnrtoc32s.c: New file.
10297         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
10298         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
10299         * modules/mbsnrtoc32s: New file.
10300         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
10301         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
10303 2020-01-04  Bruno Haible  <bruno@clisp.org>
10305         mbsrtoc32s tests: Enhance test.
10306         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
10307         test strings for UTF-8 and GB18030.
10309 2020-01-04  Bruno Haible  <bruno@clisp.org>
10311         mbsrtoc32s: Fix bug.
10312         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
10313         that SMALL_WCHAR_T is defined.
10315 2020-01-04  Bruno Haible  <bruno@clisp.org>
10317         mbsrtoc32s: Add tests.
10318         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
10319         * tests/test-mbsrtoc32s-1.sh: New file, based on
10320         tests/test-mbsrtowcs1.sh.
10321         * tests/test-mbsrtoc32s-2.sh: New file, based on
10322         tests/test-mbsrtowcs2.sh.
10323         * tests/test-mbsrtoc32s-3.sh: New file, based on
10324         tests/test-mbsrtowcs3.sh.
10325         * tests/test-mbsrtoc32s-4.sh: New file, based on
10326         tests/test-mbsrtowcs4.sh.
10327         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
10329         mbsrtoc32s: New module.
10330         * lib/uchar.in.h (mbsrtoc32s): New declaration.
10331         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
10332         INTERNAL_STATE, MBRTOWC.
10333         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
10334         * lib/mbsrtoc32s.c: New file.
10335         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
10336         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
10337         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
10338         * modules/mbsrtoc32s: New file.
10339         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
10340         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
10342 2020-01-04  Bruno Haible  <bruno@clisp.org>
10344         mbrtowc, mbrtoc32: Tighten dependendies.
10345         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
10346         REPLACE_MBSTATE_T is 1.
10347         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
10348         REPLACE_MBSTATE_T is 0.
10349         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
10350         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
10351         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
10352         REPLACE_MBSTATE_T is 0.
10354 2020-01-04  Bruno Haible  <bruno@clisp.org>
10356         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
10357         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
10358         * modules/uchar (Files): Add stdint.m4.
10359         (Makefile.am): Substitute SMALL_WCHAR_T.
10360         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
10362 2020-01-04  Bruno Haible  <bruno@clisp.org>
10364         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
10365         Reported by Martin Storsjö <martin@martin.st> in
10366         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
10367         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
10368         New macros.
10369         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
10371 2020-01-04  Bruno Haible  <bruno@clisp.org>
10373         btoc32: Add tests.
10374         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
10375         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
10376         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
10377         * modules/btoc32-tests: New file, based on modules/btowc-tests.
10379         btoc32: New module.
10380         * lib/uchar.in.h (btoc32): New declaration.
10381         * lib/btoc32.c: New file.
10382         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
10383         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
10384         * modules/btoc32: New file.
10385         * tests/test-uchar-c++.cc: Test the signature of btoc32.
10386         * doc/posix-functions/btowc.texi: Mention the new module.
10388 2020-01-03  Bruno Haible  <bruno@clisp.org>
10390         uchar tests: Avoid compilation error with HP cc.
10391         * tests/test-uchar.c: Disable a test when HP cc is in use.
10393 2020-01-03  Bruno Haible  <bruno@clisp.org>
10395         mbrtoc32: Add tests.
10396         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
10397         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
10398         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
10399         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
10400         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
10401         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
10402         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
10403         * tests/test-mbrtoc32-w32-1.sh: New file, based on
10404         tests/test-mbrtowc-w32-1.sh.
10405         * tests/test-mbrtoc32-w32-2.sh: New file, based on
10406         tests/test-mbrtowc-w32-2.sh.
10407         * tests/test-mbrtoc32-w32-3.sh: New file, based on
10408         tests/test-mbrtowc-w32-3.sh.
10409         * tests/test-mbrtoc32-w32-4.sh: New file, based on
10410         tests/test-mbrtowc-w32-4.sh.
10411         * tests/test-mbrtoc32-w32-5.sh: New file, based on
10412         tests/test-mbrtowc-w32-5.sh.
10413         * tests/test-mbrtoc32-w32-6.sh: New file, based on
10414         tests/test-mbrtowc-w32-6.sh.
10415         * tests/test-mbrtoc32-w32-7.sh: New file, based on
10416         tests/test-mbrtowc-w32-7.sh.
10417         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
10419         mbrtoc32: New module.
10420         * lib/uchar.in.h (mbrtoc32): New declaration.
10421         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
10422         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
10423         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
10424         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
10425         REPLACE_MBRTOC32.
10426         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
10427         HAVE_MBRTOC32, REPLACE_MBRTOC32.
10428         * modules/mbrtoc32: New file, based on modules/mbrtowc.
10429         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
10430         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
10431         $(LIB_MBRTOWC).
10432         * doc/posix-functions/mbrtoc32.texi: Document the new module.
10433         * doc/posix-functions/mbrtowc.texi: Mention the new module.
10435 2020-01-03  Bruno Haible  <bruno@clisp.org>
10437         mbrtowc: Refactor to share code with mbrtoc32.
10438         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
10439         * lib/mbrtowc-impl-utf8.h: Likewise.
10440         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
10441         mbrtowc-impl.h.
10442         * modules/mbrtowc (Files): Add the new files.
10444 2020-01-03  Jim Meyering  <meyering@fb.com>
10446         doc: fix time.texi wording
10447         * doc/posix-headers/time.texi (time.h): Typo.
10449 2020-01-03  Bruno Haible  <bruno@clisp.org>
10451         mbrtowc: Refactor locale charset dispatching.
10452         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
10453         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
10454         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
10455         localcharset.h, streq.h.
10456         (enc_t): Remove type.
10457         (locale_enc): Remove function.
10458         (cached_locale_enc): Remove variable.
10459         (locale_enc_cached): Remove function.
10460         (mbrtowc): Invoke locale_encoding_classification.
10461         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
10462         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
10463         lc-charset-dispatch.c.
10464         (configure.ac): Arrange to compile lc-charset-dispatch.c.
10466 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10468         doc: mention 32-bit time_t issue
10469         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10470         * doc/posix-headers/time.texi (time.h): Mention 2038.
10472 2020-01-03  Bruno Haible  <bruno@clisp.org>
10474         mbrtowc: Ensure the mbtowc_lock is unique.
10475         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
10476         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
10477         lib/setlocale_null.c.
10478         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
10479         glthread/lock.h. Include mbtowc-lock.h.
10480         (mbtowc_lock): Remove declaration.
10481         (mbrtowc): Use mbtowc_with_lock.
10482         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
10483         threads.h. Set LIB_MBRTOWC.
10484         (gl_PREREQ_MBTOWC_LOCK): New macro.
10485         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
10486         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
10487         (Depends-on): Remove lock.
10488         (configure.ac): Arrange to compile mbtowc-lock.c.
10489         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
10490         * modules/acl (Link): Likewise.
10491         * modules/argmatch (Link): Likewise.
10492         * modules/backup-rename (Link): Likewise.
10493         * modules/backupfile (Link): Likewise.
10494         * modules/closein (Link): Likewise.
10495         * modules/closeout (Link): Likewise.
10496         * modules/copy-file (Link): Likewise.
10497         * modules/csharpcomp (Link): Likewise.
10498         * modules/csharpexec (Link): Likewise.
10499         * modules/dfa (Link): Likewise.
10500         * modules/exclude (Link): Likewise.
10501         * modules/fnmatch (Link): Likewise.
10502         * modules/fnmatch-gnu (Link): Likewise.
10503         * modules/fnmatch-posix (Link): Likewise.
10504         * modules/glob (Link): Likewise.
10505         * modules/human (Link): Likewise.
10506         * modules/javacomp (Link): Likewise.
10507         * modules/javaexec (Link): Likewise.
10508         * modules/javaversion (Link): Likewise.
10509         * modules/mbfile (Link): Likewise.
10510         * modules/mbiter (Link): Likewise.
10511         * modules/mbmemcasecmp (Link): Likewise.
10512         * modules/mbmemcasecoll (Link): Likewise.
10513         * modules/mbrlen (Link): Likewise.
10514         * modules/mbscasecmp (Link): Likewise.
10515         * modules/mbscasestr (Link): Likewise.
10516         * modules/mbschr (Link): Likewise.
10517         * modules/mbscspn (Link): Likewise.
10518         * modules/mbsinit (Link): Likewise.
10519         * modules/mbslen (Link): Likewise.
10520         * modules/mbsncasecmp (Link): Likewise.
10521         * modules/mbsnlen (Link): Likewise.
10522         * modules/mbsnrtowcs (Link): Likewise.
10523         * modules/mbspbrk (Link): Likewise.
10524         * modules/mbspcasecmp (Link): Likewise.
10525         * modules/mbsrchr (Link): Likewise.
10526         * modules/mbsrtowcs (Link): Likewise.
10527         * modules/mbssep (Link): Likewise.
10528         * modules/mbsspn (Link): Likewise.
10529         * modules/mbsstr (Link): Likewise.
10530         * modules/mbstok_r (Link): Likewise.
10531         * modules/mbswidth (Link): Likewise.
10532         * modules/mbuiter (Link): Likewise.
10533         * modules/mkdir-p (Link): Likewise.
10534         * modules/propername (Link): Likewise.
10535         * modules/quote (Link): Likewise.
10536         * modules/quotearg (Link): Likewise.
10537         * modules/quotearg-simple (Link): Likewise.
10538         * modules/regex-quote (Link): Likewise.
10539         * modules/rpmatch (Link): Likewise.
10540         * modules/sh-quote (Link): Likewise.
10541         * modules/system-quote (Link): Likewise.
10542         * modules/trim (Link): Likewise.
10543         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10544         * modules/unistdio/ulc-fprintf (Link): Likewise.
10545         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10546         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10547         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10548         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10549         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10550         * modules/xfreopen (Link): Likewise.
10551         * modules/xmemcoll (Link): Likewise.
10552         * modules/yesno (Link): Likewise.
10553         * modules/regex (Link): Add $(LIB_MBRTOWC).
10554         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
10555         instead of $(LIBTHREAD).
10556         * modules/argmatch-tests (Makefile.am): Likewise.
10557         * modules/closein-tests (Makefile.am): Likewise.
10558         * modules/copy-file-tests (Makefile.am): Likewise.
10559         * modules/dfa-tests (Makefile.am): Likewise.
10560         * modules/fnmatch-tests (Makefile.am): Likewise.
10561         * modules/glob-tests (Makefile.am): Likewise.
10562         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10563         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10564         * modules/mbrtowc-tests (Makefile.am): Likewise.
10565         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10566         * modules/mbscasestr-tests (Makefile.am): Likewise.
10567         * modules/mbschr-tests (Makefile.am): Likewise.
10568         * modules/mbscspn-tests (Makefile.am): Likewise.
10569         * modules/mbsinit-tests (Makefile.am): Likewise.
10570         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10571         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10572         * modules/mbspbrk-tests (Makefile.am): Likewise.
10573         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10574         * modules/mbsrchr-tests (Makefile.am): Likewise.
10575         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10576         * modules/mbsspn-tests (Makefile.am): Likewise.
10577         * modules/mbsstr-tests (Makefile.am): Likewise.
10578         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10579         * modules/quotearg-tests (Makefile.am): Likewise.
10580         * modules/readtokens-tests (Makefile.am): Likewise.
10581         * modules/sh-quote-tests (Makefile.am): Likewise.
10582         * modules/system-quote-tests (Makefile.am): Likewise.
10583         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10584         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10585         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10586         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10587         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10588         * modules/yesno-tests (Makefile.am): Likewise.
10589         * modules/exclude-tests (Makefile.am): Link the programs with
10590         $(LIB_MBRTOWC).
10591         * modules/regex-tests (Makefile.am): Likewise.
10592         * modules/regex-quote-tests (Makefile.am): Likewise.
10594 2020-01-03  Bruno Haible  <bruno@clisp.org>
10596         getopt-posix: Fix compilation failure in testdirs.
10597         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
10598         when the gnulib module 'getopt-posix' is enabled.
10599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
10600         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
10601         module indicator.
10602         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
10604 2020-01-03  Bruno Haible  <bruno@clisp.org>
10606         doc: Mention the 64-bit inode number problem.
10607         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
10608         64-bit inode number problem.
10609         * doc/posix-functions/stat.texi: Mention that this module fixes the
10610         64-bit inode number problem.
10611         * doc/posix-functions/lstat.texi: Likewise.
10612         * doc/posix-functions/fstat.texi: Likewise.
10613         * doc/posix-functions/readdir.texi: Add more details.
10614         * doc/posix-functions/readdir_r.texi: Likewise.
10616 2020-01-02  Bruno Haible  <bruno@clisp.org>
10618         wcrtomb: Add more tests.
10619         * tests/test-wcrtomb-w32.c: Include localcharset.h.
10620         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10621         locale_charset() returns the expected value; otherwise, skip the test.
10622         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
10623         * tests/test-wcrtomb-w32-7.sh: Likewise.
10624         * modules/wcrtomb-tests (Files): Add these files.
10625         (Depends-on): Add localcharset.
10626         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
10628 2020-01-02  Bruno Haible  <bruno@clisp.org>
10630         mbrtowc: Add more tests.
10631         * tests/test-mbrtowc-w32.c: Include localcharset.h.
10632         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10633         locale_charset() returns the expected value; otherwise, skip the test.
10634         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
10635         * tests/test-mbrtowc-w32-7.sh: Likewise.
10636         * modules/mbrtowc-tests (Files): Add these files.
10637         (Depends-on): Add localcharset.
10638         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
10640 2020-01-02  Bruno Haible  <bruno@clisp.org>
10642         mbrtowc: Fix test failures on MSVC (regression by previous commit).
10643         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
10644         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
10645         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
10646         MBRTOWC_STORES_INCOMPLETE_BUG.
10647         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
10649 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10651         doc: mention glibc bug 24269
10652         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
10653         Reformat slightly so that it looks nicer in the Grep manual.
10655 2020-01-02  Bruno Haible  <bruno@clisp.org>
10657         mbrtowc: Don't replace mbstate_t on MSVC.
10658         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
10659         a missing mbsinit function on native Windows.
10660         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
10661         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
10662         MSVC bug.
10663         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
10665 2020-01-02  Bruno Haible  <bruno@clisp.org>
10667         setlocale-null: Avoid crashing the MSVC linker.
10668         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
10669         MSVC.
10671 2020-01-02  Bruno Haible  <bruno@clisp.org>
10673         wchar: Make the HP-UX workaround work on HP-UX 11.31.
10674         * modules/wchar (Depends-on): Add inttypes-incomplete.
10675         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
10676         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
10677         of strtoimax.
10679 2020-01-02  Bruno Haible  <bruno@clisp.org>
10681         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
10682         * lib/mbrtowc.c: Include <stdint.h>.
10683         * modules/mbrtowc (Depends-on): Add stdint.
10685 2020-01-01  Pádraig Brady  <P@draigBrady.com>
10687         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
10688         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
10689         which will auto enable use of openssl, only for >= version 3,
10690         which is newly licensed under the Apache Software License.
10692 2020-01-01  Bruno Haible  <bruno@clisp.org>
10694         mbrtowc: Include function name in macro names.
10695         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
10696         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
10697         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
10698         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
10699         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
10700         C_LOCALE_MAYBE_EILSEQ.
10702 2020-01-01  Bruno Haible  <bruno@clisp.org>
10704         c32tob: New module.
10705         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
10706         (c32tob): New declaration.
10707         * lib/c32tob.c: New file.
10708         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
10709         macros.
10710         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
10711         * modules/uchar (Depends-on): Add snippet/c++defs.
10712         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
10713         uchar.h.
10714         * modules/c32tob: New file.
10715         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
10716         defined.
10717         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
10718         c32tob.
10719         * modules/uchar-c++-tests (Files): Add tests/signature.h.
10720         * doc/posix-functions/wctob.texi: Mention the new module.
10722 2020-01-01  Bruno Haible  <bruno@clisp.org>
10724         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
10725         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
10726         $(LIB_SETLOCALE).
10728 2020-01-01  Bruno Haible  <bruno@clisp.org>
10730         hard-locale tests: Fix a conflict with the C++ tests.
10731         * modules/hard-locale-tests (Makefile.am): Build a program named
10732         'current-locale', not 'locale'.
10734 2020-01-01  Bruno Haible  <bruno@clisp.org>
10736         doc: Update documentation about wchar_t.
10737         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
10738         wchar_t type.
10740 2020-01-01  Bruno Haible  <bruno@clisp.org>
10742         mbrtowc tests: Fix typos.
10743         * tests/test-mbrtowc.c (main): Fix typo.
10744         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
10746 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10748         maint: update copyright notices
10749         Before doing the following changes done by hand, I also ran ‘make
10750         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
10751         to do most of the copyright years automatically.  A few upstream
10752         sources are still in 2019 but these should eventually be changed
10753         automatically too.
10754         * build-aux/declared.sh (func_version):
10755         * build-aux/libtool-next-version (func_version):
10756         * build-aux/run-test (func_version):
10757         Update these notices by hand.  Put just the last year
10758         in output of programs, as per GNU coding standards.
10760 2019-12-31  Bruno Haible  <bruno@clisp.org>
10762         uchar: Add C++ tests.
10763         * tests/test-uchar-c++.cc: New file.
10764         * tests/test-uchar-c++2.cc: New file.
10765         * modules/uchar-c++-tests: New file.
10767         uchar: Add tests.
10768         * tests/test-uchar.c: New file.
10769         * modules/uchar-tests: New file.
10771         uchar: New module.
10772         * lib/uchar.in.h: New file.
10773         * m4/uchar.m4: New file.
10774         * modules/uchar: New file.
10775         * doc/posix-headers/uchar.texi: Mention the new module.
10777 2019-12-30  Jim Meyering  <meyering@fb.com>
10779         localeinfo: ->simple would be wrong for LC_ALL=C
10780         That would lead to using unnecessary and expensive code paths in dfa.c.
10781         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
10782         error that would have made grep many times slower in the C locale.
10783         With this change, and a file created like this:
10784           yes 00 | head -10000000 > in
10785         Running grep as follows becomes more than 40 times faster:
10786           LC_ALL=C grep -Fw 0 in
10788 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10790         doc: document trouble with back-references
10791         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
10793 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10795         doc: use “back-reference” for \1 etc.
10796         * doc/regex.texi: Consistently spell “back-reference” with
10797         a hyphen, since that’s how POSIX does it.
10799 2019-12-26  Jim Meyering  <meyering@fb.com>
10801         test-framework-sh: tighten an internal grep regexp
10802         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
10803         that helps test for a working printf.
10805 2019-12-26  Bruno Haible  <bruno@clisp.org>
10807         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
10808         Reported by Paul Eggert in
10809         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
10810         Simplification by Jim Meyering.
10811         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
10812         octal escape sequence in a UTF-8 locale.
10814 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
10816         mbrtowc: port better to narrow-wchar_t platforms
10817         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
10818         wchar_t is too narrow to represent all the Unicode characters,
10819         consider a byte sequence for an out-of-wchar_t-range character to
10820         be an encoding error.  This fixes grep’s surrogate-pair test
10821         failure on AIX 7.2.
10823 2019-12-24  Bruno Haible  <bruno@clisp.org>
10825         localcharset: Avoid referencing rpl_setlocale on native Windows.
10826         * lib/localcharset.c (setlocale): Undefine.
10828 2019-12-24  Bruno Haible  <bruno@clisp.org>
10830         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
10831         * m4/semaphore.m4: New file.
10832         * modules/lock-tests (Files): Add it.
10833         (configure.ac): Require gl_SEMAPHORE.
10834         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
10836 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
10838         strptime: fix typo in previous patch
10839         Problem and fix reported by Bruno Haible in:
10840         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
10841         * lib/strptime.c (day_of_the_week): Fix paren bug.
10843 2019-12-24  Bruno Haible  <bruno@clisp.org>
10845         setlocale-null: Make it easy to rely on the lock in another library.
10846         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
10847         defined.
10849 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10851         gethrxtime, mktime, nstrftime, strptime: tweak division performance
10852         Performanced analyzed by Bruno Haible in:
10853         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
10854         * config/srclist.txt: Do not sync mktime.c for now.
10855         * lib/mktime.c (shr, ydhms_diff):
10856         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
10857         * lib/strptime.c (day_of_the_week):
10858         * lib/xtime.h (xtime_sec):
10859         Redo with neither ‘%’ nor conditional branches.
10861 2019-12-23  Bruno Haible  <bruno@clisp.org>
10863         setlocale-null: Export the lock function also on non-Windows platforms.
10864         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
10865         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
10866         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
10867         * modules/setlocale-null (configure.ac): Invoke it.
10868         (Files): Add m4/visibility.m4.
10870 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10872         gethrxtime: fix rounding bug with negative args
10873         Problem reported by Bruno Haible in:
10874         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
10875         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
10876         with negative rounding.  Common platforms can compute / and % with
10877         a single instruction, so the simplified code should be shorter and
10878         faster on these platforms anyway.
10880 2019-12-22  Bruno Haible  <bruno@clisp.org>
10882         gethrxtime: remove incorrect overflow detection
10883         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
10884         integer overflow, as it didn’t suffice.  This reverts the xtime.h
10885         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
10886         cannot now see the need for anyway (even in cases where it works),
10887         as the patch is helpful only when the signs of S and NS disagree,
10888         and all callers pass nonnegative values for S and NS.
10890 2019-12-22  Bruno Haible  <bruno@clisp.org>
10892         setlocale-null: Add standalone include file.
10893         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
10894         * lib/locale.in.h: Include setlocale_null.h.
10895         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
10896         setlocale_null): Remove declarations.
10897         * lib/setlocale_null.c: Include setlocale_null.h.
10898         * lib/localename.c: Likewise.
10899         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
10900         (Depends-on): Add snippet/arg-nonnull.
10901         (Include): Allow either "setlocale_null.h" or <locale.h>.
10903 2019-12-22  Bruno Haible  <bruno@clisp.org>
10905         strfmon_l: Fix test failures on FreeBSD and Cygwin.
10906         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
10907         AC_RUN_IFELSE test.
10908         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
10909         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
10910         problem.
10912 2019-12-22  Bruno Haible  <bruno@clisp.org>
10914         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
10915         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
10916         unconditional AC_LIBOBJ.
10917         * modules/selinux-at: Likewise.
10918         * modules/xmemdup0: Likewise.
10919         * modules/xstrtoll: Likewise.
10921 2019-12-22  Bruno Haible  <bruno@clisp.org>
10923         longlong: Mark module obsolete.
10924         * modules/longlong (Status, Notice): New sections.
10926         stdint: Assume that the compiler supports 'long long'.
10927         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
10928         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
10929         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10930         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
10931         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10932         * modules/stdint (Files): Remove longlong.m4.
10933         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
10934         HAVE_UNSIGNED_LONG_LONG_INT.
10936         inttypes-incomplete: Assume that the compiler supports 'long long'.
10937         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
10938         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
10939         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10940         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
10941         HAVE_LONG_LONG_INT to be 1.
10942         * modules/inttypes-incomplete (Makefile.am): Don't substitute
10943         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
10945         malloca: Assume that the compiler supports 'long long'.
10946         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
10947         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
10948         * modules/malloca (Files): Remove longlong.m4.
10949         * modules/relocatable-prog-wrapper (Files): Likewise.
10951         atoll: Assume that the compiler supports 'long long'.
10952         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
10953         * modules/atoll (Files): Remove longlong.m4.
10955         strtoll: Assume that the compiler supports 'long long'.
10956         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
10957         * modules/strtoll (Files): Remove longlong.m4.
10959         strtoull: Assume that the compiler supports 'long long'.
10960         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
10961         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10962         * modules/strtoull (Files): Remove longlong.m4.
10964         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
10965         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
10966         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10967         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
10968         AC_TYPE_LONG_LONG_INT.
10969         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
10970         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10971         * modules/strtoimax (Files): Remove longlong.m4.
10972         * modules/strtoumax (Files): Likewise.
10974         xstrtoll: Assume that the compiler supports 'long long'.
10975         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
10976         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
10978         vasnprintf: Assume that the compiler supports 'long long'.
10979         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
10980         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
10981         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10982         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
10983         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
10984         require AC_TYPE_LONG_LONG_INT.
10985         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10986         gl_PREREQ_VASNPRINTF): Likewise.
10987         * modules/vasnprintf (Files): Remove longlong.m4.
10988         * modules/c-vasnprintf (Files): Likewise.
10989         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10990         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10991         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10992         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10993         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10994         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10995         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10997         gethrxtime: Assume that the compiler supports 'long long'.
10998         * lib/xtime.h (xtime_t): Define to 'long long int' always.
10999         (XTIME_PRECISION): Define to 1000000000 always.
11000         (xtime_make, xtime_sec): Optimize accordingly.
11001         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
11002         * modules/gethrxtime (Files): Remove longlong.m4.
11004         integer_length*: Assume that the compiler supports 'long long'.
11005         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
11006         * modules/integer_length (Files): Remove longlong.m4.
11007         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
11008         * modules/integer_length_l (Files): Remove longlong.m4.
11009         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
11010         * modules/integer_length_ll (Files): Remove longlong.m4.
11011         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
11013         count-one-bits: Assume that the compiler supports 'long long'.
11014         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
11015         * m4/count-one-bits.m4: Remove file.
11016         * modules/count-one-bits (Files): Remove it.
11017         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
11018         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
11019         unconditionally.
11021         count-trailing-zeros: Assume that the compiler supports 'long long'.
11022         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
11023         unconditionally.
11024         * m4/count-trailing-zeros.m4: Remove file.
11025         * modules/count-trailing-zeros (Files): Remove it.
11026         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
11027         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
11028         unconditionally.
11030         count-leading-zeros: Assume that the compiler supports 'long long'.
11031         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
11032         unconditionally.
11033         * m4/count-leading-zeros.m4: Remove file.
11034         * modules/count-leading-zeros (Files): Remove it.
11035         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
11036         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
11037         unconditionally.
11039 2019-12-22  Bruno Haible  <bruno@clisp.org>
11041         localcharset: Update support for OpenBSD.
11042         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
11044 2019-12-21  Bruno Haible  <bruno@clisp.org>
11046         pthread_sigmask: Avoid test failure on NetBSD 8.0.
11047         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
11048         NetBSD.
11049         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
11051 2019-12-21  Bruno Haible  <bruno@clisp.org>
11053         threadlib: Improve code structure.
11054         * m4/threadlib.m4: Reorder macros. Add comments.
11056 2019-12-21  Bruno Haible  <bruno@clisp.org>
11058         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
11059         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
11060         here from m4/threads.m4).
11061         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
11062         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
11063         (gl_STDTHREADLIB): New macro.
11064         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
11065         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
11067 2019-12-21  Bruno Haible  <bruno@clisp.org>
11069         sched_yield: Don't depend on threadlib and yield.
11070         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
11071         LIB_SCHED_YIELD.
11072         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
11073         m4/yield.m4).
11074         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
11075         gl_THREADLIB and gl_YIELD.
11076         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
11077         based on $(LIB_SCHED_YIELD).
11078         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
11079         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
11080         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
11081         (Depends-on): Remove threadlib.
11082         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
11083         * modules/threads-h (Files): Remove m4/yield.m4.
11084         * modules/pthread-cond-tests (Makefile.am): Link the programs against
11085         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
11086         * modules/pthread-mutex-tests (Makefile.am): Likewise.
11087         * modules/pthread-once-tests (Makefile.am): Likewise.
11088         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
11089         * modules/pthread-tss-tests (Makefile.am): Likewise.
11091 2019-12-21  Bruno Haible  <bruno@clisp.org>
11093         threads-h: Don't depend on threadlib.
11094         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
11095         not gl_THREADLIB_EARLY.
11097 2019-12-21  Bruno Haible  <bruno@clisp.org>
11099         nl_langinfo tests: Fix link error (regression from 2019-12-18).
11100         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
11101         with $(LIB_SETLOCALE).
11103 2019-12-21  Bruno Haible  <bruno@clisp.org>
11105         threadlib: Remove unused dependency (left over from 2019-07-06).
11106         * modules/threadlib (Depends-on): Remove havelib.
11108 2019-12-21  Bruno Haible  <bruno@clisp.org>
11110         New convention for multithread-safety tests.
11111         * tests/test-setlocale_null-mt-one.c: Renamed from
11112         tests/test-setlocale_null-one.c.
11113         * tests/test-setlocale_null-mt-all.c: Renamed from
11114         tests/test-setlocale_null-all.c.
11115         * modules/setlocale-null-tests (Files, Makefile.am): Update.
11117 2019-12-21  Bruno Haible  <bruno@clisp.org>
11119         quotearg tests: Fix conflict with hard-locale tests.
11120         * tests/testlocale: Renamed from tests/locale.
11121         * modules/quotearg-tests (Files): Update.
11122         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
11124 2019-12-21  Bruno Haible  <bruno@clisp.org>
11126         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
11127         Reported by Daniel Richard G. in
11128         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
11129         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
11130         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
11131         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
11132         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
11133         alternative to PTHREAD_RWLOCK_INITIALIZER.
11134         * lib/glthread/lock.c: Likewise.
11136 2019-12-21  Bruno Haible  <bruno@clisp.org>
11138         memcmp tests: Work around the clang bug.
11139         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
11140         the clang optimization.
11142 2019-12-20  Bruno Haible  <bruno@clisp.org>
11144         localcharset: Add support for z/OS encoding names.
11145         * lib/localcharset.h: Mention which encodings are used as locale
11146         encodings on z/OS.
11148 2019-12-20  Bruno Haible  <bruno@clisp.org>
11150         iconv_open: Add support for z/OS encoding names.
11151         Reported by Daniel Richard G. in
11152         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
11153         * lib/iconv_open-zos.gperf: New file.
11154         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
11155         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
11156         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
11157         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
11158         * doc/posix-functions/iconv_open.texi: Mention z/OS.
11160 2019-12-20  Bruno Haible  <bruno@clisp.org>
11162         doc: Document the problem of the per-thread locale functions on z/OS.
11163         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
11164         * doc/posix-functions/newlocale.texi: Likewise.
11165         * doc/posix-functions/duplocale.texi: Likewise.
11166         * doc/posix-functions/freelocale.texi: Likewise.
11168 2019-12-20  Bruno Haible  <bruno@clisp.org>
11170         localename, gettext: Fix host_os value for z/OS.
11171         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
11172         cross-configuration code.
11174 2019-12-19  Jim Meyering  <meyering@fb.com>
11176         nstrftime: avoid a shadowing warning
11177         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
11178         to avoid shadowing an "i" declared hundreds of lines above.
11180 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11182         dfa: struct dfamust now uses flexible array
11183         * lib/dfa.c: Include flexmember.h.
11184         (dfamust, dfamustfree): Adjust to struct dfamust change.
11185         This saves a call to malloc+free.
11186         * lib/dfa.h (struct dfamust): Make the final member a
11187         flexible array member.
11188         * modules/dfa (Depends-on): Add flexmember.
11190         dfa: fast->small for array elements
11191         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
11192         since this type is used in arrays.  This change is more for
11193         documentation than for any practical effect, since the two types
11194         are the same on all known platforms.
11196 2019-12-19  Bruno Haible  <bruno@clisp.org>
11198         iconv tests: Test canonicalized, not system-dependent, encoding names.
11199         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
11200         * modules/iconv-tests (Depends-on): Add iconv_open.
11202 2019-12-18  Bruno Haible  <bruno@clisp.org>
11204         localename: Fix test failure on AIX 7.2.
11205         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
11206         locales on AIX.
11207         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
11208         locales on AIX.
11210 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11212         Improve port of AC_C_RESTRICT to Oracle C++
11213         Problem reported by Christian Biesinger in:
11214         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
11215         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
11216         Oracle Developer Studio C++ 12.5 or later.
11218 2019-12-18  Bruno Haible  <bruno@clisp.org>
11220         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
11221         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
11223 2019-12-18  Bruno Haible  <bruno@clisp.org>
11225         localename: Ensure multithread-safety in future changes.
11226         * lib/localename.c (setlocale): Reference the system's setlocale().
11227         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
11228         (gl_locale_name_posix): Likewise.
11229         * modules/localename (Depends-on): Add setlocale-null.
11231 2019-12-18  Bruno Haible  <bruno@clisp.org>
11233         setlocale-null: Make API more useful.
11234         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
11235         callers changed.
11236         (setlocale_null): New declaration.
11237         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
11238         extracted from setlocale_null_unlocked.
11239         (setlocale_null_unlocked): Invoke it.
11240         (setlocale_null_r): Renamed from setlocale_null.
11241         (setlocale_null): New function, extracted from setlocale_mtsafe in
11242         setlocale.c.
11243         * lib/setlocale.c: Don't include <errno.h>.
11244         (setlocale_mtsafe): Invoke setlocale_null.
11245         * lib/setlocale-lock.c: Update comments.
11246         * doc/posix-functions/setlocale.texi: Mention both functions.
11248 2019-12-18  Bruno Haible  <bruno@clisp.org>
11250         localename: Optimize code for native Windows.
11251         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
11252         category (not allowed here).
11254 2019-12-18  Bruno Haible  <bruno@clisp.org>
11256         setlocale: Make calls with NULL argument multithread-safe.
11257         * lib/setlocale.c: Include <errno.h>.
11258         (setlocale_mtsafe): New function.
11259         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
11260         (setlocale_improved): Renamed from rpl_setlocale.
11261         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
11262         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
11263         LIB_SETLOCALE.
11264         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
11265         (Link): New section.
11266         * tests/locale.c: Undefine setlocale.
11267         * tests/test-setlocale_null-one.c: Likewise.
11268         * tests/test-setlocale_null-all.c: Likewise.
11269         * modules/setlocale-tests (Makefile.am): Link the test programs with
11270         $(LIB_SETLOCALE).
11271         * modules/astrxfrm-tests (Makefile.am): Likewise.
11272         * modules/btowc-tests (Makefile.am): Likewise.
11273         * modules/c-ctype-tests (Makefile.am): Likewise.
11274         * modules/c-snprintf-tests (Makefile.am): Likewise.
11275         * modules/c-strcase-tests (Makefile.am): Likewise.
11276         * modules/c-vasprintf-tests (Makefile.am): Likewise.
11277         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
11278         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
11279         * modules/dfa-tests (Makefile.am): Likewise.
11280         * modules/duplocale-tests (Makefile.am): Likewise.
11281         * modules/hard-locale-tests (Makefile.am): Likewise.
11282         * modules/localcharset-tests (Makefile.am): Likewise.
11283         * modules/localename-tests (Makefile.am): Likewise.
11284         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11285         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11286         * modules/mbrtowc-tests (Makefile.am): Likewise.
11287         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11288         * modules/mbscasestr-tests (Makefile.am): Likewise.
11289         * modules/mbschr-tests (Makefile.am): Likewise.
11290         * modules/mbscspn-tests (Makefile.am): Likewise.
11291         * modules/mbsinit-tests (Makefile.am): Likewise.
11292         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11293         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11294         * modules/mbspbrk-tests (Makefile.am): Likewise.
11295         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11296         * modules/mbsrchr-tests (Makefile.am): Likewise.
11297         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11298         * modules/mbsspn-tests (Makefile.am): Likewise.
11299         * modules/mbsstr-tests (Makefile.am): Likewise.
11300         * modules/nl_langinfo-tests (Makefile.am): Likewise.
11301         * modules/quotearg-tests (Makefile.am): Likewise.
11302         * modules/regex-tests (Makefile.am): Likewise.
11303         * modules/strfmon_l-tests (Makefile.am): Likewise.
11304         * modules/strtod-tests (Makefile.am): Likewise.
11305         * modules/strtold-tests (Makefile.am): Likewise.
11306         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
11307         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
11308         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
11309         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
11310         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11311         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11312         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11313         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11314         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
11315         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11316         * modules/wcrtomb-tests (Makefile.am): Likewise.
11317         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
11318         * modules/wcsrtombs-tests (Makefile.am): Likewise.
11319         * modules/wcwidth-tests (Makefile.am): Likewise.
11320         * doc/posix-functions/setlocale.texi: Mention that the multithread-
11321         safety fix is also available in module 'setlocale'.
11323 2019-12-18  Bruno Haible  <bruno@clisp.org>
11325         hard-locale: Make multithread-safe.
11326         * lib/hard-locale.h (hard_locale): Move documentation to here.
11327         * lib/hard-locale.c: Don't include <stdlib.h>.
11328         (GLIBC_VERSION): Remove macro.
11329         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
11330         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
11331         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
11332         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
11333         (Link): New section.
11334         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
11335         $(LIB_HARD_LOCALE).
11337 2019-12-18  Bruno Haible  <bruno@clisp.org>
11339         hard-locale: Avoid test failure on Haiku.
11340         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
11342 2019-12-18  Bruno Haible  <bruno@clisp.org>
11344         setlocale-null: Handle NULL result from setlocale.
11345         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
11346         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
11347         from setlocale or _wsetlocale.
11349 2019-12-18  Bruno Haible  <bruno@clisp.org>
11351         hard-locale: Add test.
11352         * tests/test-hard-locale.c: New file.
11353         * tests/locale.c: New file.
11354         * modules/hard-locale-tests: New file.
11356 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11358         dfa: do not match invalid UTF-8
11359         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
11360         from 5 to 9 tokens; this is needed due to the changes to
11361         add_utf8_anychar.
11362         (charclass_index): 2nd arg is now pointer-to-const.
11363         (add_utf8_anychar): Match only valid UTF-8 byte sequences
11364         instead of allowing overlong encodings or surrogate halves.
11366         dfa: simplify charclass by assuming C99
11367         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
11368         (charclass_word): Now always uint_fast64_t.
11369         (CHARCLASS_PAIR): Remove.
11370         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
11372         fts: tune via calloc
11373         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
11375         dfa: tune via xzalloc
11376         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
11378 2019-12-17  Bruno Haible  <bruno@clisp.org>
11380         localcharset: Fix multithread-safety bug on Windows and OS/2.
11381         * lib/localcharset.h (locale_charset): Clarify when the result becomes
11382         invalid.
11383         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
11384         assemble the result.
11386 2019-12-17  Bruno Haible  <bruno@clisp.org>
11388         localcharset: Optimize code for native Windows.
11389         * lib/localcharset.c (locale_charset): Don't bother calling
11390         setlocale (LC_ALL, NULL) since we're not interested in its result.
11392 2019-12-17  Bruno Haible  <bruno@clisp.org>
11394         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
11395         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
11396         setlocale.
11397         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
11398         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
11399         * modules/nl_langinfo (Depends-on): Add setlocale-null.
11401 2019-12-17  Bruno Haible  <bruno@clisp.org>
11403         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
11404         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
11405         stack-allocated buffer to assemble each result and different static
11406         buffers to return it.
11407         * tests/test-nl_langinfo-mt.c: New file.
11408         * modules/nl_langinfo-tests (Files): Add it.
11409         (Depends-on): Add thread, nanosleep.
11410         (Makefile.am): Build test-nl_langinfo-mt test.
11412 2019-12-17  Bruno Haible  <bruno@clisp.org>
11414         langinfo: Document more details.
11415         * doc/posix-headers/langinfo.texi: List platform details.
11416         * doc/posix-functions/nl_langinfo.texi: Likewise.
11418 2019-12-17  Bruno Haible  <bruno@clisp.org>
11420         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
11421         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
11422         and Martin Storsjö <martin@martin.st>
11423         in <https://savannah.gnu.org/bugs/?57406>.
11424         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
11425         mingw.
11427 2019-12-17  Bruno Haible  <bruno@clisp.org>
11429         glob: Avoid warning on mingw.
11430         Reported by Christian Biesinger <cbiesinger@google.com> in
11431         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
11432         * lib/glob.c (__stat64): Undefine first.
11434 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11436         xalloc: tune xzalloc for fresh allocations
11437         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
11438         because when the memory is freshly allocated from the OS via sbrk
11439         or mmap, calloc can avoid doing the memset.
11441         dfa: new function dfacopysyntax
11442         * lib/dfa.c (struct dfa): Move syntax member later so
11443         that dfacopysyntax can easily clear earlier members.
11444         (dfacopysyntax): New function, used by Gawk.
11446 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11448         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
11449         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
11450         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
11451         if not already defined.
11453         dfa: remove one dependency on MB_CUR_MAX
11454         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
11456         dfa: remove struct lexer_state.cur_mb_len
11457         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
11458         as it’s not needed and the code is simpler without it.
11459         All uses removed.
11461 2019-12-16  Bruno Haible  <bruno@clisp.org>
11463         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
11464         Reported by Arnold Robbins <arnold@skeeve.com>.
11465         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
11466         copied from lib/glthread/lock.h.
11467         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
11468         (setlocale_null_with_lock): If pthread_in_use() is false, use
11469         setlocale_null_unlocked directly.
11470         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
11471         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
11472         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
11473         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
11474         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
11475         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
11477 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11479         dfa: make dfasyntax thread-safe
11480         Problem reported by Bruno Haible in:
11481         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
11482         * lib/dfa.c: Do not include locale.h.
11483         (struct dfa): Remove simple_locale member.
11484         All uses replaced by localeinfo.simple.
11485         (using_simple_locale): Remove; now present (with some
11486         changes) in localeinfo.c.
11487         (dfasyntax): No need to initialize removed member.
11489         localeinfo: record whether locale is simple
11490         * lib/localeinfo.c (using_simple_locale): New function,
11491         copied here from lib/dfa.c but with a change: it uses
11492         strcoll for its heuristic, instead of using setlocale.
11493         This lets it be thread-safe.
11494         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
11496 2019-12-15  Bruno Haible  <bruno@clisp.org>
11498         duplocale: Fix multithread-safety bug on AIX.
11499         * lib/duplocale.c: Don't include <stdlib.h>.
11500         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
11501         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
11502         Set LIB_DUPLOCALE.
11503         * modules/duplocale (Depends-on): Add setlocale-null.
11504         (Link): New section.
11505         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
11506         $(LIB_DUPLOCALE).
11508 2019-12-15  Bruno Haible  <bruno@clisp.org>
11510         setlocale-null: Add tests.
11511         * tests/test-setlocale_null.c: New file.
11512         * tests/test-setlocale_null-one.c: New file.
11513         * tests/test-setlocale_null-all.c: New file.
11514         * modules/setlocale-null-tests: New file.
11516         setlocale-null: New module.
11517         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
11518         setlocale_null): New declarations.
11519         * lib/setlocale_null.c: New file.
11520         * lib/setlocale-lock.c: New file.
11521         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
11522         * m4/setlocale_null.m4: New file.
11523         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
11524         GNULIB_SETLOCALE_NULL.
11525         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
11526         * modules/setlocale-null: New file.
11527         * doc/posix-functions/setlocale.texi: Mention the new module.
11529 2019-12-15  Bruno Haible  <bruno@clisp.org>
11531         lock tests: Skip test when no multithreading is enabled.
11532         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
11534 2019-12-14  Bruno Haible  <bruno@clisp.org>
11536         locale, duplocale, localename: Fix last patch.
11537         Reported by Daniel Richard G. in
11538         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
11539         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
11540         Don't define if locale_t does not exist.
11542 2019-12-13  Bruno Haible  <bruno@clisp.org>
11544         locale, duplocale, localename: Fix errors if locale_t does not exist.
11545         Reported by Daniel Richard G. in
11546         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
11547         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
11548         macros.
11549         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
11550         HAVE_NEWLOCALE.
11551         * tests/test-localename.c: Likewise.
11552         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
11553         HAVE_DUPLOCALE.
11554         * tests/test-locale-c++.cc: Likewise.
11556 2019-12-13  Bruno Haible  <bruno@clisp.org>
11558         wcstok: Fix test failure on HP-UX.
11559         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
11560         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
11562 2019-12-12  Bruno Haible  <bruno@clisp.org>
11564         strtod, strtold tests: Avoid test failure on AIX 7.2.
11565         * tests/test-strtod1.c (main): Allow implementations in which ',' and
11566         '.' both are radix characters.
11567         * tests/test-strtold1.c (main): Likewise.
11569 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
11571         dfa: prefer ptrdiff_t for API, too
11572         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
11573         but do this only for internal use for now.
11574         * NEWS: Mention the API change.
11575         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
11576         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
11577         values known to be nonnegative.
11578         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
11579         Prefer idx_t or ptrdiff_t to size_t for API.
11580         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
11581         Prefer ptrdiff_t to size_t for API.
11583         stdalign: port to xlclang 16.01
11584         Problem reportd by Bruno Haible in:
11585         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
11586         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
11587         ((__aligned__ (...))) with xlclang, as a top-level
11588         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
11589         xlclang version 16.01.0000.0001; the alignment directive is ignored.
11591 2019-12-12  Bruno Haible  <bruno@clisp.org>
11593         duplocale: Fix test failure on AIX 7.2 with xlclang.
11594         * lib/duplocale.c: Include <stdlib.h>.
11595         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
11596         value.
11598 2019-12-12  Bruno Haible  <bruno@clisp.org>
11600         stddef: Document the AIX xlc issue.
11601         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
11603 2019-12-12  Bruno Haible  <bruno@clisp.org>
11605         duplocale: Don't attempt to override if locale_t does not exist.
11606         Reported by Daniel Richard G. in
11607         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
11608         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
11609         HAVE_DUPLOCALE to 0.
11611 2019-12-12  Bruno Haible  <bruno@clisp.org>
11613         wcwidth: Avoid test failure on AIX 7.2.
11614         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
11615         negative.
11616         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
11618 2019-12-12  Bruno Haible  <bruno@clisp.org>
11620         ilogbl: Work around Cygwin bug.
11621         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
11622         correct.
11623         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
11625 2019-12-12  Bruno Haible  <bruno@clisp.org>
11627         strtold: Work around Cygwin bug.
11628         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
11629         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
11630         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
11631         STRTOLD_HAS_UNDERFLOW_BUG is defined.
11632         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
11634 2019-12-12  Bruno Haible  <bruno@clisp.org>
11636         strtold: Fix autoconf test.
11637         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
11639 2019-12-11  Bruno Haible  <bruno@clisp.org>
11641         fsync tests: Skip test that is known to fail.
11642         * doc/posix-functions/fsync.texi: Update list of platforms.
11643         * tests/test-fsync.c (main): Skip test with read-only file descriptors
11644         that is known to fail on AIX and Cygwin.
11646 2019-12-11  Bruno Haible  <bruno@clisp.org>
11648         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
11649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
11650         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
11651         HAVE_GETADDRINFO as a C macro.
11652         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
11653         declare as replacement functions.
11654         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
11655         define as no-op overrides.
11656         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
11657         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
11658         * modules/getaddrinfo (Depends-on, configure.ac): Test
11659         REPLACE_GETADDRINFO.
11660         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
11661         problem.
11662         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
11663         convention problems.
11665 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
11667         dfa: prefer signed integers for internals
11668         Signed integers can be checked more easily for integer overflow.
11669         * lib/dfa.c (position, struct lexer_state, struct parser_state)
11670         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
11671         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
11672         (nsubtoks, copytoks, closure, alloc_position_set, delete)
11673         (replace, state_index, epsclosure, charclass_context)
11674         (state_separate_contexts, merge_nfa_state, dfaoptimize)
11675         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
11676         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
11677         (comsubs, inboth, allocmust):
11678         Prefer a signed to an unsigned integer when calculating indexes,
11679         unless the integer is part of the external API (a bigger deal,
11680         and to be done later).
11682         dfa: fix index overflow
11683         * lib/dfa.c (compare): Avoid integer overflow when analyzing
11684         very large regular expressions.
11686         dfa: update commentary for previous change
11687         * NEWS: Mention the change.
11688         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
11690 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11692         dfa: separate parse and compile phase
11693         ‘dfamust’ must be called after parsing and before tokens are
11694         reordered, but both are executed in the compilation phase.
11695         Token reordering was introduced in Gnulib commit
11696         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
11697         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
11698         * lib/dfa.c (dfaparse): Change it to global function.
11699         (dfacomp): If first argument is NULL, skip parse.
11700         * lib/dfa.h: (dfaparse): Add a prototype.
11702 2019-12-11  Bruno Haible  <bruno@clisp.org>
11704         unistd tests: Fix link error on MSVC.
11705         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
11706         $(LIB_GETLOGIN).
11708 2019-12-11  Bruno Haible  <bruno@clisp.org>
11710         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
11711         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
11712         and POSIX substitutes are supported in C++ mode.
11713         * NEWS: Likewise.
11715 2019-12-11  Bruno Haible  <bruno@clisp.org>
11717         stddef: Fix compilation error in C++ mode on MSVC.
11718         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
11719         instead, include <cstddef>.
11721 2019-12-11  Bruno Haible  <bruno@clisp.org>
11723         unistd: Fix compilation error in C++ mode on MSVC.
11724         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
11725         does not have <unistd.h>.
11727 2019-12-11  Bruno Haible  <bruno@clisp.org>
11729         locale: Fix compilation error in C++ mode on MSVC.
11730         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
11731         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
11732         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
11733         int_n_sep_by_space): Define as macros on MSVC.
11735 2019-12-11  Bruno Haible  <bruno@clisp.org>
11737         wchar: Fix compilation error in C++ mode on MSVC.
11738         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
11740 2019-12-11  Bruno Haible  <bruno@clisp.org>
11742         pthread-thread: Fix compilation error in C++ mode on MSVC.
11743         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
11744         _GL_CXXALIAS_RPL invocation.
11746 2019-12-08  Bruno Haible  <bruno@clisp.org>
11748         Fix compilation errors in C++ mode on Haiku.
11749         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
11750         non-glibc systems.
11751         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
11752         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11753         posix_spawnattr_setschedparam): Likewise.
11754         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
11755         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11756         * lib/unistd.in.h (usleep): Likewise.
11758 2019-12-08  Bruno Haible  <bruno@clisp.org>
11760         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
11761         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
11762         * modules/fseeko (configure.ac-early): Require it instead of
11763         AC_FUNC_FSEEKO.
11764         * modules/ftello (configure.ac-early): Likewise.
11765         * modules/fflush (configure.ac-early): Likewise.
11767 2019-12-08  Bruno Haible  <bruno@clisp.org>
11769         Fix compilation error in C++ mode on HP-UX 11.
11770         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
11771         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
11773 2019-12-08  Bruno Haible  <bruno@clisp.org>
11775         Fix compilation errors on HP-UX 11/ia64.
11776         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
11777         _GL_FUNCDECL_SYS.
11779 2019-12-08  Bruno Haible  <bruno@clisp.org>
11781         Fix compilation error in C++ mode on OpenBSD.
11782         * lib/signal.in.h (signal): Declare on OpenBSD.
11784 2019-12-08  Bruno Haible  <bruno@clisp.org>
11786         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
11787         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
11788         instead of #error.
11790 2019-12-08  Bruno Haible  <bruno@clisp.org>
11792         Fix compilation errors in C++ mode on FreeBSD.
11793         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
11794         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
11795         * lib/threads.in.h (thrd_exit): Likewise.
11796         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
11798 2019-12-08  Bruno Haible  <bruno@clisp.org>
11800         Fix compilation errors in C++ mode on macOS and FreeBSD.
11801         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
11802         or FreeBSD with clang, use the approach without C preprocessor macro.
11804 2019-12-07  Bruno Haible  <bruno@clisp.org>
11806         Fix compilation errors in C++ mode on AIX with xlclang++.
11807         Reported by Christian Biesinger <cbiesinger@google.com> in
11808         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11809         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
11811 2019-12-07  Bruno Haible  <bruno@clisp.org>
11813         Document compilation error in C++ mode on NetBSD 8.0.
11814         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
11816 2019-12-07  Bruno Haible  <bruno@clisp.org>
11818         Fix compilation errors in C++ mode on Solaris 10.
11819         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
11820         to non-empty on Solaris with a non-GCC compiler.
11821         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
11823 2019-12-07  Bruno Haible  <bruno@clisp.org>
11825         Reword NEWS entry.
11826         * NEWS: Reword the latest NEWS entry.
11828 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
11830         Move xstrtol_fatal to a new xstrtol-error module.
11831         * lib/xstrtol.h: Stop including <getopt.h>.
11832         (xstrtol_fatal): Move ...
11833         * lib/xstrtol-error.h: ... here.  New file.
11834         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
11835         * tests/test-xstrtol.c: Likewise.
11836         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
11837         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
11838         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
11839         * modules/xstrtol-error: New file.
11840         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
11841         * MODULES.html.sh: Add xstrtol-error.
11842         * NEWS: Document the change.
11844 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11846         nstrftime: better width support for %N, %z
11847         * lib/nstrftime.c (width_add, width_add1, width_cpy):
11848         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
11849         a new WIDTH parameter.
11850         (add, add1, cpy): Use these macros.
11851         (width_add): Do not treat digits == 0 as a special case,
11852         do not pad if padding is ‘-’, and do not use a negative width.
11853         (__strftime_internal): Redo formatting of nanoseconds and numeric
11854         timezones to avoid buffer misuse in unusual cases, and so that
11855         widths make more sense.  Add support for widths greater than 9 to
11856         the %N format; they are zero filled on the right.
11857         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
11859 2019-12-05  Bruno Haible  <bruno@clisp.org>
11861         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
11862         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
11863         set REPLACE_ISFINITE to 1.
11864         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
11865         REPLACE_ISINF to 1.
11866         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
11867         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
11868         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11869         * lib/threads.in.h (call_once): Likewise.
11870         * lib/iconv.in.h (iconv): Likewise.
11872 2019-12-05  Bruno Haible  <bruno@clisp.org>
11874         wchar: Add more C++ tests.
11875         Reported by Christian Biesinger <cbiesinger@google.com> in
11876         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11877         * tests/test-wchar-c++3.cc: New file.
11878         * modules/wchar-c++-tests (Files): Add it.
11879         (Makefile.am): Compile it.
11881 2019-12-05  Bruno Haible  <bruno@clisp.org>
11883         Add more C++ tests.
11885         assert-h: Add C++ tests.
11886         * tests/test-assert-h-c++.cc: New file.
11887         * tests/test-assert-h-c++2.cc: New file.
11888         * modules/assert-h-c++-tests: New file.
11889         * modules/assert-h-tests: New file.
11891         ctype: Add C++ tests.
11892         * tests/test-ctype-c++.cc: New file.
11893         * tests/test-ctype-c++2.cc: New file.
11894         * modules/ctype-c++-tests: New file.
11895         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
11897         errno: Add C++ tests.
11898         * tests/test-errno-c++.cc: New file.
11899         * tests/test-errno-c++2.cc: New file.
11900         * modules/errno-c++-tests: New file.
11901         * modules/errno-tests (Depends-on): Add errno-c++-tests.
11903         float: Add C++ tests.
11904         * tests/test-float-c++.cc: New file.
11905         * tests/test-float-c++2.cc: New file.
11906         * modules/float-c++-tests: New file.
11907         * modules/float-tests (Depends-on): Add float-c++-tests.
11909         inttypes: Add more C++ tests.
11910         * tests/test-inttypes-c++2.cc: New file.
11911         * modules/inttypes-c++-tests (Files): Add it.
11912         (Makefile.am): Compile it.
11914         limits-h: Add C++ tests.
11915         * tests/test-limits-h-c++.cc: New file.
11916         * tests/test-limits-h-c++2.cc: New file.
11917         * modules/limits-h-c++-tests: New file.
11918         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
11920         stdarg: Add C++ tests.
11921         * tests/test-stdarg-c++.cc: New file.
11922         * tests/test-stdarg-c++2.cc: New file.
11923         * modules/stdarg-c++-tests: New file.
11924         * modules/stdarg-tests: New file.
11926         stdbool: Add C++ tests.
11927         * tests/test-stdbool-c++.cc: New file.
11928         * tests/test-stdbool-c++2.cc: New file.
11929         * modules/stdbool-c++-tests: New file.
11930         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
11932         stddef: Add C++ tests.
11933         * tests/test-stddef-c++.cc: New file.
11934         * tests/test-stddef-c++2.cc: New file.
11935         * modules/stddef-c++-tests: New file.
11936         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
11938         stdint: Add C++ tests.
11939         * tests/test-stdint-c++.cc: New file.
11940         * tests/test-stdint-c++2.cc: New file.
11941         * modules/stdint-c++-tests: New file.
11942         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
11944         wchar: Add more C++ tests.
11945         * tests/test-wchar-c++2.cc: New file.
11946         * modules/wchar-c++-tests (Files): Add it.
11947         (Makefile.am): Compile it.
11949         wctype-h: Add more C++ tests.
11950         * tests/test-wctype-h-c++2.cc: New file.
11951         * modules/wctype-h-c++-tests (Files): Add it.
11952         (Makefile.am): Compile it.
11954 2019-12-04  Bruno Haible  <bruno@clisp.org>
11956         Fix compilation errors in C++ mode with xlclang++ on AIX.
11957         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
11958         C++ mode on AIX.
11959         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
11960         without C preprocessor macro.
11961         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
11962         _GL_CXXALIAS_SYS.
11963         * lib/threads.in.h (thrd_exit): Likewise.
11965 2019-12-04  Bruno Haible  <bruno@clisp.org>
11967         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
11968         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
11969         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
11971 2019-12-04  Bruno Haible  <bruno@clisp.org>
11973         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
11974         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11975         _GL_CXXALIASWARN invocation on non-glibc systems.
11976         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
11977         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
11978         iswctype, towlower, towupper): Likewise.
11980 2019-12-03  Bruno Haible  <bruno@clisp.org>
11982         Avoid hassles caused by [[noreturn]] in C++.
11983         Reported by Christian Biesinger <cbiesinger@google.com> in
11984         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
11985         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
11986         * lib/_Noreturn.h: Likewise.
11988 2019-12-02  Bruno Haible  <bruno@clisp.org>
11990         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
11991         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
11992         LIBMULTITHREAD.
11993         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
11994         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
11995         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
11996         gl_THREADLIB.
11997         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
11999 2019-12-02  Bruno Haible  <bruno@clisp.org>
12001         Fix some more link errors with --enable-threads=isoc.
12002         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
12003         * modules/pthread-rwlock (Depends-on): Likewise.
12005 2019-12-02  Bruno Haible  <bruno@clisp.org>
12007         Fix link errors with --enable-threads=posix on AIX.
12008         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
12009         program with $(LIBTHREAD).
12010         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
12011         program with $(LIBTHREAD).
12013 2019-12-02  Bruno Haible  <bruno@clisp.org>
12015         Fix link errors with --enable-threads=posix on AIX.
12016         * modules/mbrtowc (Link): New section.
12017         * modules/acl (Link): Likewise.
12018         * modules/argmatch (Link): Likewise.
12019         * modules/backup-rename (Link): Likewise.
12020         * modules/backupfile (Link): Likewise.
12021         * modules/closein (Link): Likewise.
12022         * modules/closeout (Link): Likewise.
12023         * modules/copy-file (Link): Likewise.
12024         * modules/csharpcomp (Link): Likewise.
12025         * modules/csharpexec (Link): Likewise.
12026         * modules/dfa (Link): Likewise.
12027         * modules/exclude (Link): Likewise.
12028         * modules/fnmatch (Link): Likewise.
12029         * modules/fnmatch-gnu (Link): Likewise.
12030         * modules/fnmatch-posix (Link): Likewise.
12031         * modules/glob (Link): Likewise.
12032         * modules/human (Link): Likewise.
12033         * modules/javacomp (Link): Likewise.
12034         * modules/javaexec (Link): Likewise.
12035         * modules/javaversion (Link): Likewise.
12036         * modules/mbfile (Link): Likewise.
12037         * modules/mbiter (Link): Likewise.
12038         * modules/mbmemcasecmp (Link): Likewise.
12039         * modules/mbmemcasecoll (Link): Likewise.
12040         * modules/mbrlen (Link): Likewise.
12041         * modules/mbscasecmp (Link): Likewise.
12042         * modules/mbscasestr (Link): Likewise.
12043         * modules/mbschr (Link): Likewise.
12044         * modules/mbscspn (Link): Likewise.
12045         * modules/mbsinit (Link): Likewise.
12046         * modules/mbslen (Link): Likewise.
12047         * modules/mbsncasecmp (Link): Likewise.
12048         * modules/mbsnlen (Link): Likewise.
12049         * modules/mbsnrtowcs (Link): Likewise.
12050         * modules/mbspbrk (Link): Likewise.
12051         * modules/mbspcasecmp (Link): Likewise.
12052         * modules/mbsrchr (Link): Likewise.
12053         * modules/mbsrtowcs (Link): Likewise.
12054         * modules/mbssep (Link): Likewise.
12055         * modules/mbsspn (Link): Likewise.
12056         * modules/mbsstr (Link): Likewise.
12057         * modules/mbstok_r (Link): Likewise.
12058         * modules/mbswidth (Link): Likewise.
12059         * modules/mbuiter (Link): Likewise.
12060         * modules/mkdir-p (Link): Likewise.
12061         * modules/propername (Link): Likewise.
12062         * modules/quote (Link): Likewise.
12063         * modules/quotearg (Link): Likewise.
12064         * modules/quotearg-simple (Link): Likewise.
12065         * modules/regex-quote (Link): Likewise.
12066         * modules/rpmatch (Link): Likewise.
12067         * modules/sh-quote (Link): Likewise.
12068         * modules/system-quote (Link): Likewise.
12069         * modules/trim (Link): Likewise.
12070         * modules/unistdio/ulc-asnprintf (Link): Likewise.
12071         * modules/unistdio/ulc-fprintf (Link): Likewise.
12072         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
12073         * modules/unistdio/ulc-vasprintf (Link): Likewise.
12074         * modules/unistdio/ulc-vfprintf (Link): Likewise.
12075         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
12076         * modules/unistdio/ulc-vsprintf (Link): Likewise.
12077         * modules/xfreopen (Link): Likewise.
12078         * modules/xmemcoll (Link): Likewise.
12079         * modules/yesno (Link): Likewise.
12080         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
12081         * modules/argmatch-tests (Makefile.am): Likewise.
12082         * modules/closein-tests (Makefile.am): Likewise.
12083         * modules/copy-file-tests (Makefile.am): Likewise.
12084         * modules/dfa-tests (Makefile.am): Likewise.
12085         * modules/fnmatch-tests (Makefile.am): Likewise.
12086         * modules/glob-tests (Makefile.am): Likewise.
12087         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12088         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12089         * modules/mbrtowc-tests (Makefile.am): Likewise.
12090         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12091         * modules/mbscasestr-tests (Makefile.am): Likewise.
12092         * modules/mbschr-tests (Makefile.am): Likewise.
12093         * modules/mbscspn-tests (Makefile.am): Likewise.
12094         * modules/mbsinit-tests (Makefile.am): Likewise.
12095         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12096         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12097         * modules/mbspbrk-tests (Makefile.am): Likewise.
12098         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12099         * modules/mbsrchr-tests (Makefile.am): Likewise.
12100         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12101         * modules/mbsspn-tests (Makefile.am): Likewise.
12102         * modules/mbsstr-tests (Makefile.am): Likewise.
12103         * modules/quotearg-tests (Makefile.am): Likewise.
12104         * modules/quotearg-simple-tests (Makefile.am): Likewise.
12105         * modules/readtokens-tests (Makefile.am): Likewise.
12106         * modules/regex-quote-tests (Makefile.am): Likewise.
12107         * modules/sh-quote-tests (Makefile.am): Likewise.
12108         * modules/system-quote-tests (Makefile.am): Likewise.
12109         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
12110         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12111         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
12112         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
12113         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
12114         * modules/yesno-tests (Makefile.am): Likewise.
12116 2019-12-02  Bruno Haible  <bruno@clisp.org>
12118         Simplify link sections.
12119         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
12120         * modules/lock (Link): Likewise.
12121         * modules/cond (Link): Likewise.
12122         * modules/tls (Link): Likewise.
12123         * modules/yield (Link): Likewise.
12124         * modules/regex (Link): Likewise.
12125         * modules/localename (Link): Likewise.
12126         * modules/unicase/locale-language (Link): Likewise.
12127         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
12129 2019-12-02  Bruno Haible  <bruno@clisp.org>
12131         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
12132         * tests/test-thread_self.c (main): Disable test on AIX.
12134 2019-12-01  Bruno Haible  <bruno@clisp.org>
12136         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
12137         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
12138         gl_THREADLIB_EARLY_BODY.
12139         (gl_THREADLIB_EARLY_BODY): Invoke it.
12140         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
12141         (gl_THREADLIB_BODY): Invoke it.
12142         (gl_PTHREADLIB): New macro.
12143         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
12144         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
12145         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
12146         * modules/pthread-h (Files): Add threadlib.m4.
12147         (Depends-on): Remove threadlib.
12148         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
12149         and _THREAD_SAFE here.
12150         (Link): Use LIBPTHREAD, not LIBTHREAD.
12151         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
12152         LIBMULTITHREAD.
12153         * modules/pthread-once (Link): Likewise.
12154         * modules/pthread-mutex (Link): Likewise.
12155         * modules/pthread-rwlock (Link): Likewise.
12156         * modules/pthread-cond (Link): Likewise.
12157         * modules/pthread-tss (Link): Likewise.
12158         * modules/pthread-spin (Link): Likewise.
12159         * modules/pthread (Link): Likewise.
12160         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
12161         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
12162         * modules/pthread-once-tests (test_pthread_once1_LDADD,
12163         test_pthread_once2_LDADD): Likewise.
12164         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
12165         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
12166         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
12167         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
12169 2019-12-01  Bruno Haible  <bruno@clisp.org>
12171         cond: State linking requirements.
12172         * modules/cond (Link): New section.
12174 2019-12-01  Bruno Haible  <bruno@clisp.org>
12176         threadlib: Remove unnecessary file (left over from 2019-07-06).
12177         * modules/threadlib (Files): Remove config.rpath.
12179 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
12181         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
12182         Reported by Dagobert Michelsen <dam@opencsw.org> in
12183         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
12184         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
12185         list of strings instead of one string.
12186         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
12187         * pygnulib/GLImport.py (execute): Likewise.
12189 2019-11-27  Bruno Haible  <bruno@clisp.org>
12191         openpty, forkpty: Fix build error on Solaris 11.4.
12192         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
12193         also in <termios.h>.
12194         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
12195         of the function also in <termios.h>.
12196         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
12197         * doc/glibc-functions/forkpty.texi: Likewise.
12199 2019-11-27  Bruno Haible  <bruno@clisp.org>
12201         New options --enable-threads=isoc and --enable-threads=isoc+posix.
12202         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
12203         --enable-threads=isoc and --enable-threads=isoc+posix.
12204         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
12205         When both the ISO C and the POSIX threads API are available, choose
12206         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
12207         --enable-threads=isoc+posix was specified. When only the ISO C threads
12208         API is available and --enable-threads=iso was specified, choose
12209         USE_ISOC_THREADS.
12210         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
12211         USE_ISOC_AND_POSIX_THREADS.
12212         * lib/glthread/lock.c: Likewise.
12213         * lib/glthread/cond.h: Likewise.
12214         * lib/glthread/cond.c: Likewise.
12215         * lib/glthread/tls.h: Likewise.
12216         * lib/glthread/tls.c: Likewise.
12217         * lib/glthread/yield.h: Likewise.
12218         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
12219         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
12220         * lib/glthread/thread.c: Likewise.
12221         * lib/glthread/threadlib.c: Likewise.
12222         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
12223         USE_ISOC_AND_POSIX_THREADS.
12224         * tests/test-cond.c: Consider USE_ISOC_THREADS and
12225         USE_ISOC_AND_POSIX_THREADS.
12226         * tests/test-tls.c: Likewise.
12227         * tests/test-thread_create.c (main): Likewise.
12228         * tests/test-pthread-cond.c: Likewise.
12229         * tests/test-pthread-mutex.c: Likewise.
12230         * tests/test-pthread-once2.c: Likewise.
12231         * tests/test-pthread-rwlock.c: Likewise.
12232         * tests/test-pthread-tss.c: Likewise.
12233         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
12234         USE_POSIX_THREADS.
12236 2019-11-24  Bruno Haible  <bruno@clisp.org>
12238         mbrtowc: Modernize autoconf test.
12239         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
12240         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
12241         try a UTF-8 locale.
12242         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
12244 2019-11-24  Bruno Haible  <bruno@clisp.org>
12246         Fix errors in C++ mode on mingw.
12247         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
12248         instead of _GL_CXXALIAS_SYS.
12249         * lib/signal.in.h (pthread_sigmask): Likewise.
12250         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
12251         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12252         Likewise.
12253         * lib/wchar.in.h (btowc): Likewise.
12255 2019-11-24  Bruno Haible  <bruno@clisp.org>
12257         sys_time: Fix errors in C++ mode on mingw.
12258         * lib/sys_time.in.h (timeval): Restore the redirection
12259         '#define timeval rpl_timeval', for when the symbol timeval is being used
12260         outside the 'gnulib' namespace.
12261         * lib/sys_select.in.h (select): In C++, write 'timeval', not
12262         'struct timeval'.
12264 2019-11-24  Bruno Haible  <bruno@clisp.org>
12266         iswctype: Fix errors in C++ mode on mingw.
12267         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
12268         is 1.
12269         * lib/iswctype.c (iswctype): Add another implementation, for the
12270         GNULIB_defined_wint_t case.
12271         * modules/iswctype (configure.ac): Compile iswctype.c also if
12272         GNULIB_OVERRIDES_WINT_T is 1.
12274 2019-11-24  Bruno Haible  <bruno@clisp.org>
12276         windows-timedmutex: Fix errors in C++ mode on mingw.
12277         * lib/windows-timedmutex.h: Add closing brace.
12279 2019-11-24  Bruno Haible  <bruno@clisp.org>
12281         Fix errors in C++ mode on Cygwin.
12282         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
12283         _GL_CXXALIAS_SYS.
12285 2019-11-24  Bruno Haible  <bruno@clisp.org>
12287         time_r: Fix for mingw (regression from 2019-11-16).
12288         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
12289         AC_LINK_IFELSE test only if the function does not appear to exist.
12291 2019-11-24  Bruno Haible  <bruno@clisp.org>
12293         wcstok: Add tests.
12294         * tests/test-wcstok.c: New file.
12295         * modules/wcstok-tests: New file.
12297 2019-11-24  Bruno Haible  <bruno@clisp.org>
12299         wcstok: Work around wrong signature on native Windows.
12300         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
12301         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
12302         REPLACE_WCSTOK.
12303         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
12304         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
12305         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
12306         * doc/posix-functions/wcstok.texi: Mention the problem.
12308 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
12310         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
12311         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
12312         remove workaround for GCC bug 91450 as the bug should be fixed
12313         there too.
12315 2019-11-21  Bruno Haible  <bruno@clisp.org>
12317         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
12318         Reported by Christian Biesinger <cbiesinger@google.com> in
12319         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
12320         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
12321         non-glibc systems.
12322         * lib/locale.in.h (localeconv, setlocale): Likewise.
12323         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
12324         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
12325         rint, round, trunc): Likewise.
12326         * lib/monetary.in.h (strfmon_l): Likewise.
12327         * lib/pthread.in.h (pthread_mutexattr_getrobust,
12328         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
12329         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
12330         pthread_spin_destroy): Likewise.
12331         * lib/signal.in.h (raise, signal): Likewise.
12332         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
12333         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
12334         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
12335         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
12336         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
12337         Likewise.
12338         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
12339         Likewise.
12340         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
12341         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
12342         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
12343         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
12344         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
12345         wcsftime): Likewise.
12346         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
12348 2019-11-21  Bruno Haible  <bruno@clisp.org>
12350         Fix various errors in _GL_CXXALIAS_SYS invocations.
12351         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
12352         _GL_CXXALIAS_SYS.
12353         * lib/pthread.in.h (pthread_mutexattr_gettype,
12354         pthread_mutexattr_getrobust): Likewise.
12355         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
12356         * lib/sys_socket.in.h (recv, send): Likewise.
12357         * lib/unistd.in.h (getdtablesize): Likewise.
12358         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
12359         'struct timeval'.
12361 2019-11-21  Bruno Haible  <bruno@clisp.org>
12363         math tests: Update after 2019-08-28 change.
12364         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
12365         return type of 'bool', not 'int'.
12367 2019-11-21  Bruno Haible  <bruno@clisp.org>
12369         pthread-spin: Fix errors in C++ mode.
12370         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
12371         functions as nonexistent when <pthread.h> exists but does not define
12372         the pthread_spinlock_t type.
12374 2019-11-21  Bruno Haible  <bruno@clisp.org>
12376         pthread-mutex: Fix errors in C++ mode.
12377         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
12378         pthread_mutexattr_getrobust exists. If not, define
12379         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
12380         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
12381         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
12382         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
12383         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
12384         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
12385         definition.
12387 2019-11-19  Bruno Haible  <bruno@clisp.org>
12389         threads-h tests: Fix typo.
12390         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
12392 2019-11-19  Bruno Haible  <bruno@clisp.org>
12394         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
12395         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
12396         to 'const pthread_attr_t *'.
12397         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
12398         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
12400 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12402         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
12403         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
12404         work around GCC bug 91450 as the bug should be fixed there.
12406 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12408         glob: get closer to glibc glob.c
12409         Omit differences from glibc when the differences don’t matter.
12410         * lib/glob.c [_LIBC]: Include shlib-compat.h.
12411         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
12412         (glob_lstat): New function.
12413         (glob_in_dir): Use it.
12414         (GLOB_ATTRIBUTE): Define to empty if not already defined.
12415         Use changed.
12417 2019-11-18  Bruno Haible  <bruno@clisp.org>
12419         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
12420         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
12421         UINTPTR_MAX): Consider _WIN64.
12422         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
12423         a pointer.
12425 2019-11-18  Bruno Haible  <bruno@clisp.org>
12427         stdint: Fix value of WINT_MAX when we override wint_t.
12428         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
12429         when GNULIB_OVERRIDES_WINT_T is 1.
12431 2019-11-18  Bruno Haible  <bruno@clisp.org>
12433         vcs-to-changelog: New module.
12434         * modules/vcs-to-changelog: New file.
12435         * MODULES.html.sh (func_all_modules): Add it.
12437 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
12439         vcs-to-changelog: New script to generate ChangeLog-like output.
12440         Discussion:
12441         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
12442         * build-aux/vcs_to_changelog.py: New file.
12443         * build-aux/vcstocl/frontend_c.py: New file.
12444         * build-aux/vcstocl/misc_util.py: New file.
12445         * build-aux/vcstocl/vcs_git.py: New file.
12447 2019-11-18  Bruno Haible  <bruno@clisp.org>
12449         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
12450         Reported by Keith Marshall <keith@users.osdn.me> in
12451         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
12452         and <https://osdn.net/projects/mingw/ticket/39677>.
12453         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
12454         already been defined by mingw's <crtdefs.h>.
12456 2019-11-18  Bruno Haible  <bruno@clisp.org>
12458         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
12459         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
12460         conditionally enabled.
12462 2019-11-18  Bruno Haible  <bruno@clisp.org>
12464         gc: Mirror libgcrypt.m4 from libgcrypt.
12465         * config/srclistvars.sh (LIBGCRYPT): New variable.
12466         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
12468 2019-11-17  Bruno Haible  <bruno@clisp.org>
12470         locale, localename: Improve z/OS support.
12471         Reported by Daniel Richard G. in
12472         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
12473         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
12474         gl_LOCALE_H.
12475         (gl_LOCALE_H): Require it.
12476         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
12477         defined, don't even check for newlocale, duplocale, freelocale.
12478         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
12479         locale_t is not defined.
12481 2019-11-17  Bruno Haible  <bruno@clisp.org>
12483         havelib: Make libdirstems processing more flexible.
12484         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
12485         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
12486         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
12487         patch from 2017-02-19).
12488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
12489         libdirs, even when the first one exists as a directory.
12491 2019-11-17  Bruno Haible  <bruno@clisp.org>
12493         havelib: Match the bitness when searching for libraries.
12494         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
12495         acl_is_expected_elfclass.
12496         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
12497         file exists, in ELF, also test whether it has the ELF class that
12498         corresponds to the host's bitness.
12500 2019-11-17  Bruno Haible  <bruno@clisp.org>
12502         host-cpu-c-abi: Add support for unknown CPUs.
12503         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
12504         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
12505         32-bit or 64-bit.
12507 2019-11-17  Bruno Haible  <bruno@clisp.org>
12509         havelib: Remove redundant code.
12510         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
12511         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
12513 2019-11-17  Bruno Haible  <bruno@clisp.org>
12515         havelib: Fix a bug in dependency processing.
12516         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
12517         of .la files, don't overwrite the value of additional_libdir for the
12518         next rounds.
12520 2019-11-16  Bruno Haible  <bruno@clisp.org>
12522         wctype-h: When overriding wint_t, override also the related functions.
12523         Reported by Christian Biesinger <cbiesinger@google.com> in
12524         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
12525         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
12526         REPLACE_ISWCNTRL to 1.
12527         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
12528         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
12529         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
12530         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
12531         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
12532         on mingw.
12533         * doc/posix-headers/wctype.texi: Likewise.
12535 2019-11-16  Bruno Haible  <bruno@clisp.org>
12537         time_r: Fix for mingw.
12538         Reported by Christian Biesinger <cbiesinger@google.com> in
12539         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
12540         * lib/time.in.h: On mingw, include <unistd.h>.
12541         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
12542         <time.h>. Test for localtime_r in a way that works when it is defined
12543         as an inline function.
12545 2019-11-13  Bruno Haible  <bruno@clisp.org>
12547         havelib: Revert last change.
12548         * build-aux/config.rpath: Revert last change. We can add msys2 support
12549         when it has been added to libtool.m4 upstream.
12551 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12553         config: add msys support
12554         Requested by Arnold Robbins in:
12555         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
12556         He also requested a change to config.guess, which I’ll forward
12557         upstream.
12558         * build-aux/ar-lib (func_file_conv):
12559         * build-aux/compile (func_file_conv):
12560         * build-aux/config.rpath (wl, with_gnu_ld)
12561         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
12562         Treat msys like cygwin.
12564 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12566         regex: now back in sync with glibc
12567         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
12568         regexec.c got merged into glibc and are now copies again.
12570 2019-10-27  Bruno Haible  <bruno@clisp.org>
12572         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
12573         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
12574         statement.
12575         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
12576         32-bit CPUs.
12578 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12580         timespec-add, timespec-sub: simplify
12581         * lib/timespec-add.c (timespec_add):
12582         * lib/timespec-sub.c (timespec_sub):
12583         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12584         work on unsigned integers.
12586 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12588         nstrftime: speed up integer overflow checking
12589         * lib/nstrftime.c: Include intprops.h.
12590         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
12591         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
12592         instead of doing it by hand.
12593         * modules/nstrftime (Depends-on): Add intprops.
12595         Port better to GCC under macOS
12596         Work around macOS header that has ‘#define __has_builtin(x) 0’
12597         when compiled by GCC.  Apple really, really doesn’t want you to
12598         use GCC, apparently.  Rroblem reported by Akim Demaille in:
12599         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
12600         The fix is to not trust __has_builtin when being compiled by
12601         recent-enough GCC.
12602         * lib/intprops.h (__has_builtin)
12603         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12604         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
12605         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
12606         Remove.  All uses removed.
12607         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
12608         directly, if defined and if not newer GCC.
12609         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
12610         New macro, that use __has_builtin directly, if defined and if
12611         not newer GCC.
12612         (assume): Use them.
12614 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
12616         maintainer-makefile: update rule for argmatch.
12617         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
12619 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
12621         bitset: let freeing functions accept NULL.
12622         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
12623         given NULL.
12624         * lib/bitset.h: Document that.
12625         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
12627 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12629         inttypes: use more-robust test for int range
12630         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
12631         Problem reported by Dagobert Michelsen in:
12632         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
12633         * lib/inttypes.in.h: Rely only on limits.h when checking
12634         int range.
12636 2019-10-15  Bruno Haible  <bruno@clisp.org>
12638         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
12639         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
12640         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
12641         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
12642         term_ostream_set_hyperlink): New functions.
12643         (term_styled_ostream_get_hyperlink_ref,
12644         term_styled_ostream_get_hyperlink_id,
12645         term_styled_ostream_set_hyperlink): New function aliases.
12647 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12649         update-copyright: use en dashes in .texi ranges
12650         * build-aux/update-copyright: Match year ranges like "1998--2019",
12651         which are used in the Autoconf manual.  Also, update ranges in
12652         .tex, .texi, and .texinfo files to use en dashes instead of
12653         hyphens.
12655 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12657         * config/srclist.txt: Remove posix/regex_internal.c for now.
12659 2019-10-13  Bruno Haible  <bruno@clisp.org>
12661         git-version-gen: Allow 'snapshot' as .tarball-version contents.
12662         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
12663         contents to the empty string.
12665 2019-10-12  Bruno Haible  <bruno@clisp.org>
12667         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
12668         * tests/test-intprops.c (main): Disable two more tests when using
12669         HP-UX cc.
12671 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12673         Simplify and regularize regex use of ‘assert’
12674         Also, tell GCC about the asserts even when compiling without
12675         debugging, to give it further optimization opportunities.
12676         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
12677         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
12678         (parse_expression, parse_bracket_exp):
12679         * lib/regex_internal.c (build_wcs_buffer)
12680         (build_wcs_upper_buffer, re_string_reconstruct)
12681         (re_string_context_at):
12682         * lib/regexec.c (re_search_stub, re_copy_regs)
12683         (re_search_internal, prune_impossible_nodes, check_matching)
12684         (check_halt_state_context, set_regs, sift_states_backward)
12685         (build_sifted_states, transit_state_mb, transit_state_bkref)
12686         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
12687         (match_ctx_add_subtop):
12688         Use it instead of plain ‘assert’.
12690 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12692         regex: omit debug assignment when not debugging
12693         * lib/regexec.c (re_search_internal) [!DEBUG]:
12694         Remove unnecessary assignment.
12696         regex: tell compiler there’s at most 256 arcs out
12697         Partly this is to help the reader (and maybe help GCC);
12698         partly this is to pacify Coverity.
12699         * lib/regex_internal.h: Include verify.h.
12700         * lib/regexec.c (group_nodes_into_DFAstates):
12701         Tell the compiler that ndests cannot exceed SBC_MAX.
12702         * modules/regex (Depends-on): Add ‘verify’.
12704         regex: simplify by assuming C99
12705         * config/srclist.txt: Comment out regex_internal.h and regexec.c
12706         temporarily.
12707         * lib/regex_internal.h (lock_define, re_match_context_t):
12708         Simplify by assuming C99 macros and const.
12709         * lib/regexec.c (re_search_internal): Simplify by assuming C99
12710         initializers.  Remove unnecessary assignment, as mctx is now
12711         safely initialized earlier.
12713         regex: avoid copying of uninitialized storage
12714         * config/srclist.txt: Comment out regcomp.c temporarily.
12715         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
12716         Initialize even when not checking for lint, as the behavior is
12717         arguably undefined otherwise and Coverity warns about it.
12719 2019-10-06  Bruno Haible  <bruno@clisp.org>
12721         access tests: Fix test failure when run as root.
12722         * tests/test-access.c: Include root-uid.h.
12723         (geteuid): Define fallback.
12724         (main): Don't expect that writing to a read-only file would fail when
12725         running as root. Also, remove the created files at the end.
12726         * modules/access-tests (Depends-on): Add root-uid.
12727         (configure.ac): Test whether geteuid exists.
12729 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
12731         users.txt: add GNU nano
12732         Nano has been making use of gnulib since March 2017, version 2.8.0.
12734 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12736         bootstrap: simplify debugging of wget failures
12737         Problem reported by Tim Rühsen in:
12738         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
12739         * build-aux/bootstrap (po_download_command_format):
12740         Invoke wget with -nv instead of -q, to make debugging easier.
12742 2019-09-29  Bruno Haible  <bruno@clisp.org>
12744         avltree-list: Fix compilation warning (introduced on 2014-09-16).
12745         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
12746         'const' attribute.
12748 2019-09-29  Bruno Haible  <bruno@clisp.org>
12750         fbufmode: Fix compilation error on glibc >= 2.28 systems.
12751         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
12753 2019-09-28  Bruno Haible  <bruno@clisp.org>
12755         Update comments that refer to POSIX.
12756         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
12757         sentence about trailing slashes.
12758         * lib/fflush.c: Clarify the reasoning.
12759         * tests/test-fflush2.c: Cite the relevant sentence.
12761 2019-09-28  Bruno Haible  <bruno@clisp.org>
12763         access: Document limitations on Windows.
12764         Suggested by Zaretskii <eliz@gnu.org>.
12765         * doc/posix-functions/access.texi: Mention two limitations on Windows.
12767 2019-09-28  Bruno Haible  <bruno@clisp.org>
12769         findprog-in: Fix comment.
12770         Reported by Eli Zaretskii <eliz@gnu.org>.
12771         * lib/findprog.h (find_in_given_path): Extend description of EACCES
12772         condition.
12773         * lib/stat.c (rpl_stat): Fix typo in comment.
12774         * lib/utime.c (_gl_utimens_windows): Likewise.
12776 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12778         Update URLs and associated text
12779         (Thanks to Bruno Haible for proofreading this patch.)
12780         Prefer https: to http: in URLs where either will do, for the usual
12781         security reasons.  I also updated broken and/or moved URLs
12782         discovered during the process. In a few places I had to resort to
12783         archive.org, since I didn't find the originals elsewhere.
12785 2019-09-15  Paul Smith  <psmith@gnu.org>
12786             Bruno Haible  <bruno@clisp.org>
12788         findprog-in: Set errno when the search fails.
12789         * lib/findprog-in.c: Include <errno.h>.
12790         (find_in_given_path): Set errno before returning NULL.
12791         * lib/findprog.h (find_in_given_path): Update comment accordingly.
12792         Define the term "slash".
12794 2019-09-15  Bruno Haible  <bruno@clisp.org>
12796         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
12797         * modules/findprog (Depends-on): Add access.
12798         * modules/findprog-lgpl (Depends-on): Likewise.
12799         * modules/findprog-in (Depends-on): Likewise.
12801 2019-09-15  Bruno Haible  <bruno@clisp.org>
12803         access: Add tests.
12804         * tests/test-access.c: New file.
12805         * modules/access-tests: New file.
12807         access: New module.
12808         * lib/unistd.in.h (access): New declaration.
12809         * lib/access.c: New file.
12810         * m4/access.m4: New file.
12811         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
12812         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
12813         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
12814         REPLACE_ACCESS.
12815         * modules/access: New file.
12816         * tests/test-unistd-c++.cc (access): Check signature.
12817         * doc/posix-functions/access.texi: Mention the new module.
12819 2019-09-15  Bruno Haible  <bruno@clisp.org>
12821         fcntl-h: Fix compilation error of creat.c on MSVC.
12822         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
12823         defined.
12825 2019-09-15  Bruno Haible  <bruno@clisp.org>
12827         creat: Add tests.
12828         * tests/test-creat.c: New file, based on tests/test-open.h.
12829         * modules/creat-tests: New file.
12831         creat: New module.
12832         * lib/fcntl.in.h (creat): New declaration.
12833         * lib/creat.c: New file, based on lib/open.c.
12834         * m4/creat.m4: New file.
12835         * m4/open-slash.m4: New file, extracted from m4/open.m4.
12836         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
12837         Invoke gl_OPEN_TRAILING_SLASH_BUG.
12838         * modules/open (Files): Add m4/open-slash.m4.
12839         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
12840         REPLACE_CREAT.
12841         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
12842         * modules/creat: New file.
12843         * tests/test-fcntl-h-c++.cc (creat): Check signature.
12844         * doc/posix-functions/creat.texi: Mention the new module.
12846 2019-09-15  Bruno Haible  <bruno@clisp.org>
12848         open tests: Enhance test.
12849         * tests/test-open.h (test_open): Test the creation of an executable
12850         regular file. Also improve initial cleanup.
12852 2019-09-15  Bruno Haible  <bruno@clisp.org>
12854         intprops tests: Avoid build failure with HP-UX cc.
12855         * tests/test-intprops.c: Disable a check that makes HP cc choke with
12856         "error 4018: Macro param too large after substitution - use -H option.".
12858 2019-09-14  Bruno Haible  <bruno@clisp.org>
12860         Make autoconf tests work with -Werror=implicit-function-declaration.
12861         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
12862         towupper() declaration.
12863         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
12864         declaration.
12866 2019-09-14  Bruno Haible  <bruno@clisp.org>
12868         findprog-in: Better mimic the system on native Windows.
12869         Reported by Paul Smith <psmith@gnu.org>.
12870         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
12871         non-empty suffixes when the file name already contains a '.'.
12873 2019-09-10  Bruno Haible  <bruno@clisp.org>
12875         wctob: Fix autoconf test.
12876         Based on patch by Florian Weimer <fweimer@redhat.com>.
12877         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
12879 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
12881         xhash: provide hash_xinitialize.
12882         Suggested by Egor Pugin <egor.pugin@gmail.com>
12883         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
12884         * modules/xhash, lib/xhash.c: New.
12885         * lib/hash.h (hash_xinitialize): New.
12887 2019-09-09  Bruno Haible  <bruno@clisp.org>
12889         findprog-in: Make exec optimization optional.
12890         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
12891         (find_in_given_path): Add optimize_for_exec parameter.
12892         * lib/findprog-in.c (find_in_given_path): Likewise.
12894 2019-09-08  Bruno Haible  <bruno@clisp.org>
12896         Add option to assume the best, not the worst, when cross-compiling.
12897         Suggested by Jonas Termansen <sortie@maxsi.org>.
12898         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
12899         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
12900         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
12901         lt_cv_sys_argz_works.
12902         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
12903         ac_cv_func_calloc_0_nonnull.
12904         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
12905         --enable-cross-guesses for gl_cv_func_realpath_works.
12906         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
12907         gl_cv_func_cbrtl_ieee.
12908         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
12909         gl_cv_func_ceil_ieee.
12910         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
12911         gl_cv_func_ceilf_ieee.
12912         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
12913         gl_cv_func_ceill_ieee.
12914         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
12915         ac_cv_func_chown_works.
12916         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
12917         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
12918         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
12919         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
12920         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
12921         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
12922         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
12923         gl_cv_func_expl_works.
12924         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
12925         gl_cv_func_expm1_ieee.
12926         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
12927         gl_cv_func_expm1l_works.
12928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
12929         gl_cv_func_open_directory_works.
12930         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
12931         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
12932         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
12933         gl_cv_func_fchownat_empty_filename_works.
12934         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
12935         gl_cv_func_fdopendir_works.
12936         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
12937         gl_cv_func_floor_ieee.
12938         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
12939         gl_cv_func_floorf_ieee.
12940         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
12941         gl_cv_func_fma_works.
12942         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
12943         gl_cv_func_fmaf_works.
12944         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
12945         gl_cv_func_fmal_works.
12946         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
12947         gl_cv_func_fmod_ieee.
12948         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
12949         gl_cv_func_fmodf_ieee.
12950         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
12951         gl_cv_func_fmodl_ieee.
12952         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
12953         gl_cv_func_fpurge_works.
12954         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
12955         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
12956         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
12957         gl_cv_func_getcwd_null.
12958         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
12959         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
12960         gl_cv_func_working_getdelim.
12961         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12962         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
12963         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12964         gl_cv_func_getgroups_works.
12965         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
12966         am_cv_func_working_getline.
12967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
12968         for gl_cv_func_getopt_gnu.
12969         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
12970         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
12971         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
12972         gl_cv_func_hypot_ieee.
12973         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
12974         gl_cv_func_hypotf_ieee.
12975         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
12976         gl_cv_func_hypotl_ieee.
12977         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
12978         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
12979         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
12980         gl_cv_func_link_works.
12981         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
12982         gl_cv_func_linkat_slash.
12983         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
12984         gl_cv_func_log_ieee.
12985         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
12986         gl_cv_func_logf_ieee.
12987         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
12988         gl_cv_func_logl_works.
12989         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
12990         gl_cv_func_log10_ieee.
12991         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
12992         gl_cv_func_log10f_ieee.
12993         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
12994         gl_cv_func_log10l_works.
12995         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
12996         gl_cv_func_log1p_ieee.
12997         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
12998         gl_cv_func_log1pf_ieee.
12999         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
13000         gl_cv_func_log1pl_ieee.
13001         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
13002         gl_cv_func_log2_ieee.
13003         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
13004         gl_cv_func_log2f_ieee.
13005         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
13006         --enable-cross-guesses for
13007         gl_cv_func_lstat_dereferences_slashed_symlink.
13008         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
13009         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
13010         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
13011         gl_cv_C_locale_sans_EILSEQ.
13012         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
13013         gl_cv_func_memchr_works.
13014         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
13015         gl_cv_func_memmem_works_always.
13016         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
13017         gl_cv_func_memmem_works_fast.
13018         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
13019         gl_cv_func_mkdir_trailing_slash_works,
13020         gl_cv_func_mkdir_trailing_dot_works.
13021         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
13022         gl_cv_func_mkfifo_works.
13023         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
13024         gl_cv_func_mknod_works.
13025         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
13026         gl_cv_func_working_mkstemp.
13027         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
13028         gl_cv_func_working_mktime.
13029         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
13030         gl_cv_func_modf_ieee.
13031         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
13032         gl_cv_func_modff_ieee.
13033         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
13034         gl_cv_func_modfl_ieee.
13035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
13036         gl_cv_func_nanosleep.
13037         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
13038         gl_cv_func_perror_works.
13039         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
13040         gl_cv_func_printf_sizes_c99.
13041         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
13042         gl_cv_func_printf_infinite.
13043         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
13044         gl_cv_func_printf_infinite_long_double.
13045         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
13046         gl_cv_func_printf_directive_a.
13047         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
13048         gl_cv_func_printf_directive_f.
13049         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
13050         gl_cv_func_printf_flag_zero.
13051         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
13052         gl_cv_func_printf_enomem.
13053         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
13054         gl_cv_func_snprintf_truncation_c99.
13055         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
13056         gl_cv_func_snprintf_retval_c99.
13057         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
13058         gl_cv_func_snprintf_directive_n.
13059         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
13060         gl_cv_func_vsnprintf_zerosize_c99.
13061         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
13062         gl_cv_func_pselect_detects_ebadf.
13063         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
13064         Obey --enable-cross-guesses for
13065         gl_cv_pthread_rwlock_rdlock_prefer_writer.
13066         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
13067         gl_cv_func_ptsname_sets_errno.
13068         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
13069         gl_cv_func_svid_putenv.
13070         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
13071         gl_cv_func_readlink_works.
13072         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
13073         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
13074         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
13075         gl_cv_func_re_compile_pattern_working.
13076         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
13077         gl_cv_func_remainder_ieee.
13078         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
13079         gl_cv_func_remainderf_ieee.
13080         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
13081         gl_cv_func_remainderl_ieee.
13082         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
13083         gl_cv_func_rintl_works.
13084         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
13085         gl_cv_func_rmdir_works.
13086         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
13087         gl_cv_func_round_ieee.
13088         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
13089         gl_cv_func_roundf_ieee.
13090         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
13091         gl_cv_func_roundl_ieee.
13092         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
13093         gl_cv_func_select_detects_ebadf.
13094         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
13095         gl_cv_func_setenv_works.
13096         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
13097         gl_cv_func_unsetenv_works.
13098         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
13099         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
13100         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
13101         gl_cv_func_sleep_works.
13102         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
13103         gl_cv_func_stat_file_slash.
13104         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
13105         gl_cv_func_stpncpy.
13106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
13107         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
13108         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
13109         gl_cv_func_strcasestr_linear.
13110         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
13111         gl_cv_func_working_strerror.
13112         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
13113         gl_cv_func_strerror_0_works.
13114         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
13115         --enable-cross-guesses for gl_cv_func_strerror_r_works.
13116         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
13117         gl_cv_func_strstr_works_always.
13118         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
13119         gl_cv_func_strstr_linear.
13120         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
13121         gl_cv_func_strtod_works.
13122         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
13123         gl_cv_func_strtold_works.
13124         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
13125         gl_cv_func_symlink_works.
13126         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
13127         gl_cv_func_symlinkat_works.
13128         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
13129         gl_cv_func_trunc_ieee.
13130         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
13131         gl_cv_func_truncf_ieee.
13132         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
13133         gl_cv_func_truncl_ieee.
13134         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
13135         gl_cv_func_tzset_clobber.
13136         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
13137         gl_cv_func_ungetc_works.
13138         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
13139         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
13140         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
13141         gl_cv_func_usleep_works.
13142         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
13143         gl_cv_func_futimesat_works.
13144         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
13145         gl_cv_func_working_utimes.
13146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
13147         gl_cv_func_wcwidth_works.
13148         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
13149         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
13150         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
13151         links for testing. Obey --enable-cross-guesses for
13152         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
13153         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
13155 2019-09-08  Bruno Haible  <bruno@clisp.org>
13157         Clarify that cross-compilation guesses are guesses.
13158         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
13159         cross-compiling.
13161 2019-09-08  Bruno Haible  <bruno@clisp.org>
13163         chown: Fix configure output (regression from 2019-03-23).
13164         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
13165         gl_cv_func_chown_follows_symlink variable.
13167 2019-09-08  Bruno Haible  <bruno@clisp.org>
13169         findprog-in: New module.
13170         Suggested by Paul Smith <psmith@gnu.org>.
13171         * lib/findprog.h (find_in_given_path): New declaration.
13172         * lib/findprog-in.c: New file, based on lib/findprog.c.
13173         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
13174         * modules/findprog-in: New file.
13176 2019-09-08  Bruno Haible  <bruno@clisp.org>
13178         findprog: Remove unused dependency.
13179         * modules/findprog (Depends-on): Remove strdup.
13181 2019-09-08  Bruno Haible  <bruno@clisp.org>
13183         findprog: Remove test that is obsolete since 2006-04-24.
13184         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
13186 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
13188         bitset: style changes
13189         * lib/bitset/vector.c (vbitset_resize): Factor computation.
13190         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
13191         xzalloc to xcalloc.
13192         Suggested by Paul Eggert.
13194 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
13196         bitset: check memory allocation
13197         Reported by 江 祖铭 (Zu-Ming Jiang).
13198         With help from Paul Eggert.
13199         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
13200         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
13201         instead of realloc.
13202         When shrinking, accept failures.
13203         * lib/bitset/vector.c (vbitset_resize): Likewise.
13205 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
13207         scratch_buffer: sync from glibc
13208         * config/srclist.txt: Add the scratch_buffer source
13209         code from glibc, since these should be in sync.
13210         Autoupdate.
13212 2019-09-07  Bruno Haible  <bruno@clisp.org>
13214         doc: Update for glibc 2.30.
13215         * doc/glibc-functions/gettid.texi: New file.
13216         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
13217         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
13218         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
13219         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
13220         * doc/glibc-functions/sem_clockwait.texi: New file.
13221         * doc/glibc-functions/tgkill.texi: New file.
13222         * doc/glibc-functions/twalk_r.texi: New file.
13223         * doc/gnulib.texi: Include them.
13224         (Glibc semaphore.h): New section.
13225         * doc/pastposix-functions/h_errno.texi: Update.
13226         * doc/posix-functions/*.texi: Likewise.
13228 2019-09-06  Bruno Haible  <bruno@clisp.org>
13230         symlink tests: Avoid test failure on Linux with Lustre file system.
13231         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
13232         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
13233         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
13235 2019-09-01  Bruno Haible  <bruno@clisp.org>
13237         gitsub.sh: Add support for shallow-cloning of subdirectories.
13238         * top/gitsub.sh (func_usage): Document allowed git options with
13239         'git pull'.
13240         (func_pull): Accept GIT_OPTIONS argument.
13241         (pull): Parse git options before complaining about too many arguments.
13242         Pass the git options to func_pull.
13244 2019-08-29  Bruno Haible  <bruno@clisp.org>
13246         lock: Fix cross-compilation guesses.
13247         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
13248         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
13249         platforms.
13251 2019-08-28  Bruno Haible  <bruno@clisp.org>
13253         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
13254         Reported by Martin Storsjö <martin@martin.st> in
13255         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
13256         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
13257         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
13258         files from GCC 6 or newer, use an override through '#define', because
13259         the inline definitions in the platform's <cmath> cannot be overridden
13260         in another way.
13262 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
13264         Revert macOS INT_MULTIPLY_WRAPV patch
13265         Problem reported by Bruno Haible in:
13266         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
13267         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
13268         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
13269         Go back to working around the Clang bug on macOS.
13271 2019-08-27  Bruno Haible  <bruno@clisp.org>
13273         libtool-next-version: Fix error output.
13274         * build-aux/libtool-next-version (func_fatal_error): Fix the program
13275         name.
13277 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
13279         Speed up INT_MULTIPLY_WRAPV on macOS
13280         Assume that __builtin_mul_overflow works OK with Clang on macOS.
13281         Mattias Engdegård says it’s safe to assume the relevant library
13282         is always available there.
13283         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
13284         New temporary internal macro.
13285         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
13286         No need to work around the Clang bug on macOS.
13288 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13290         intprops.h, verify.h: port better to clang
13291         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
13292         with Clang.  Problem reported privately by Mattias Engdegård.
13293         Also, insulate intprops.h and verify.h better against each other’s
13294         definitions of __has_builtin on non-Clang hosts.
13295         * lib/intprops.h (__has_builtin): Define a temporary substitute
13296         if __has_builtin is not already defined.
13297         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
13298         New temporary internal macros.
13299         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
13300         Now two separate macros, replacing the old
13301         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
13302         __builtin_mul_overflow is like the rest.  All uses changed.
13303         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
13304         Adjust to above changes.
13305         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
13306         longer relevant.  All uses changed.
13307         * lib/verify.h (__has_builtin): Treat like intprops.h,
13308         so that the two .h files do not collide with each other.
13309         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
13310         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
13312 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13314         intprops: say why not Clang __builtin_add_overflow
13315         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
13316         Mention Clang in comment, responding to a query from
13317         Mattias Engdegård.
13319 2019-08-24  Bruno Haible  <bruno@clisp.org>
13321         doc: Document most of the files outside of modules.
13322         * doc/gnulib.texi (Build Infrastructure Files,
13323         Release Management Files): New chapters.
13325 2019-08-24  Bruno Haible  <bruno@clisp.org>
13327         bootstrap: Keep in sync with the 'gettext' module.
13328         Reported by Assaf Gordon in
13329         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
13330         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
13331         * build-aux/po/remove-potcdate.sin: Likewise.
13333 2019-08-24  Bruno Haible  <bruno@clisp.org>
13335         crypto/gc-sha512: Add tests.
13336         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
13337         * modules/crypto/gc-sha512-tests: New file.
13339         crypto/gc-sha256: Add tests.
13340         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
13341         * modules/crypto/gc-sha256-tests: New file.
13343         crypto/gc-sha256, crypto/gc-sha512: New modules.
13344         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
13345         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
13346         (MAX_DIGEST_SIZE): Set to 64.
13347         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
13348         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
13349         (gc_sha256, gc_sha512): New functions.
13350         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
13351         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
13352         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
13354 2019-08-24  Bruno Haible  <bruno@clisp.org>
13356         crypto/gc-sha1 tests: Improve output when the test fails.
13357         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
13358         output.
13360 2019-08-24  Bruno Haible  <bruno@clisp.org>
13362         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
13363         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
13364         LIBGCRYPT_HAS_MD_SM3.
13365         * lib/gc-libgcrypt.c: Include sm3.h.
13366         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
13367         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
13368         implementation if libgcrypt does not support SM3.
13370 2019-08-24  Bruno Haible  <bruno@clisp.org>
13372         crypto/gc-md2: Optimize and clarify code.
13373         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
13374         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
13375         is not needed.
13377 2019-08-24  Bruno Haible  <bruno@clisp.org>
13379         crypto/gc-md2: Add comment.
13380         * lib/gc-libgcrypt.c: Add comment.
13382 2019-08-24  Bruno Haible  <bruno@clisp.org>
13384         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
13385         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
13386         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
13387         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
13388         variable.
13390 2019-08-24  Bruno Haible  <bruno@clisp.org>
13392         crypto/gc: Fix link error with --with-libgcrypt.
13393         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
13394         AC_LIB_HAVE_LINKFLAGS invocation.
13396 2019-08-24  Bruno Haible  <bruno@clisp.org>
13398         crypto/gc: Access the module indicators correctly.
13399         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
13400         * lib/gc-libgcrypt.c: Likewise.
13402 2019-08-24  Bruno Haible  <bruno@clisp.org>
13404         crypto/gc: Fix configuration with --with-libgcrypt.
13405         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
13406         * modules/crypto/gc (Files): Add it.
13407         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
13409 2019-08-24  Bruno Haible  <bruno@clisp.org>
13411         Remove unused file.
13412         * m4/stat-macros.m4: Remove file.
13414 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13416         New strip-trailing-space option for srclist-update
13417         * config/srclist-update (fixfile): Support new option.
13418         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
13419         Use it.
13421 2019-08-20  Eric Blake  <eblake@redhat.com>
13423         accept4: Support SOCK_NONBLOCK, if defined
13424         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
13426         accept4: Fix compilation when native accept4() exists.
13427         Reported by Richard W.M. Jones <rjones@redhat.com> in
13428         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
13429         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
13431 2019-08-18  Bruno Haible  <bruno@clisp.org>
13433         Defeat -flto GCC optimization in math autoconf tests.
13434         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
13435         at <https://savannah.gnu.org/bugs/?56109>.
13436         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
13437         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
13438         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13439         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13440         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13441         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
13442         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13443         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13444         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
13445         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13446         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13447         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13449 2019-08-17  Bruno Haible  <bruno@clisp.org>
13451         windows-spin: Implement declared functions.
13452         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
13453         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
13454         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
13455         name.
13457 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13459         intprops: port to Oracle Developer Studio 12.6
13460         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
13461         typos that were in a section not compiled by GCC.
13463 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13465         intprops: support uchar, ushort _WRAPV dests
13466         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
13467         when __builtin_add_overflow etc. and _Generic are not used.
13468         (_GL_INT_OP_WRAPV): Use it to support destinations that
13469         are unsigned char or unsigned short, even in compilers
13470         that lack __typeof__ and are not C11-compatible.
13472         intprops: pacify picky GCC
13473         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
13474         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
13475         possibly-incorrect result.
13476         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
13477         about (A) used as a boolean, when A is an expression like 3 * 4.
13479         intprops: support unsigned *_WRAPV results
13480         Add support for unsigned, unsigned long, and unsigned long long
13481         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
13482         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
13483         bug with unsigned inputs reported by Eli Zaretskii in:
13484         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
13485         * config/srclist.txt: Break the glibc connection for intprops.h
13486         temporarily, while more testing is done in Gnulib-using apps.
13487         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13488         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
13489         Support unsigned results no narrower than unsigned int.  Report
13490         overflow correctly if some arguments are unsigned.
13491         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
13492         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
13493         the right thing with narrow args.
13494         (_GL_INT_OP_CALC1): Remove.  All callers removed.
13495         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
13496         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
13497         * tests/test-intprops.c: Check for bugs and test new behavior.
13499 2019-08-14  Bruno Haible  <bruno@clisp.org>
13501         get_progname_of: New module.
13502         * lib/get_progname_of.h: New file.
13503         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
13504         * lib/getprogname.c (getprogname): Tweak coding style.
13505         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
13506         * modules/get_progname_of: New file.
13508 2019-08-14  Bruno Haible  <bruno@clisp.org>
13510         get_ppid_of: New module.
13511         * lib/get_ppid_of.h: New file.
13512         * lib/get_ppid_of.c: New file.
13513         * modules/get_ppid_of: New file.
13515 2019-08-13  Bruno Haible  <bruno@clisp.org>
13517         libtextstyle-optional tests: Support the NO_COLOR environment variable.
13518         * tests/test-libtextstyle.c (main): Do not emit styling when the
13519         environment variable NO_COLOR is set.
13521 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13523         verify: improve diagnostic quality in recent GCC
13524         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
13525         useful line number containing the top-level caller of the macro.
13526         So, bring back the older way of issuing a diagnostic containing
13527         the top-level call’s arg, so that it is easier to diagnose
13528         ‘verify’ failures with recent GCC.
13529         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
13530         Bring back DIAGNOSTIC arg.  All callers changed.
13531         (verify): Just use _GL_VERIFY.
13533 2019-08-11  Bruno Haible  <bruno@clisp.org>
13535         localcharset: Add more aliases for OS/2.
13536         Based on patch by KO Myung-Hun <komh78@gmail.com> in
13537         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
13538         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
13540 2019-08-10  Eric Blake  <eblake@redhat.com>
13542         configmake: Update advice on usage.
13543         * modules/configmake (Include): No longer necessary to include
13544         last, since configmake.h itself worries about collision avoidance.
13546 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
13548         parse-datetime: fix 'T' military timezone handling
13549         * lib/parse-datetime.y (zone):
13550         follow-up to the previous commit: the 'T' case is handled outside the
13551         conversion table (used as either military timezone UTC-7 or ISO8601
13552         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
13553         timezone letters.
13555 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13557         parse-datetime: fix military timezone letters
13558         Problem and trivial fix reported by Neil Hoggarth in:
13559         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
13560         * lib/parse-datetime.y (military_table):
13561         Do it the right way, not the RFC 822 way.
13563 2019-08-08  Eric Blake  <eblake@redhat.com>
13565         configmake: Avoid namespace pollution issue on mingw.
13566         * modules/configmake (Makefile.am): If the project uses
13567         <winsock2.h>, include that header before defining DATADIR.
13569 2019-07-28  Bruno Haible  <bruno@clisp.org>
13571         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
13572         * tests/test-mbrtowc.c (main): Fix expected value of wc.
13574 2019-07-24  Bruno Haible  <bruno@clisp.org>
13576         pthread-h: Fix definitions of types and macros on mingw.
13577         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
13578         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
13579         not in use.
13580         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
13581         'pthread-once' is not in use.
13582         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
13583         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
13584         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
13585         in use.
13586         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
13587         Define also when module 'pthread-rwlock' is not in use.
13588         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
13589         also when module 'pthread-cond' is not in use.
13590         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
13591         'pthread-tss' is not in use.
13592         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
13593         use.
13595 2019-07-24  Simon Josefsson  <simon@josefsson.org>
13597         crypto/gc: Cope with libgcrypt without SM3.
13598         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
13600 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13602         backupfile: fix resource leak on memory failure
13603         Problem found by Coverity (CID 1484214).
13604         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
13606 2019-07-22  Bruno Haible  <bruno@clisp.org>
13608         Avoid missing-declarations warning in various tests.
13609         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
13610         test6, test_optional, test7, test8, test9, test10, test11, test12,
13611         test13, test14, test15, test_fun): Declare static.
13612         * tests/test-cnd.c (test_cnd_wait): Likewise.
13613         * tests/test-cond.c (test_cond): Likewise.
13615 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
13617         pthread tests: Avoid missing-declarations warning.
13618         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
13620 2019-07-19  Bruno Haible  <bruno@clisp.org>
13622         parse-datetime: Avoid warnings from bison versions >= 3.3.
13623         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
13624         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
13626 2019-07-19  Bruno Haible  <bruno@clisp.org>
13628         parse-datetime: Require Bison 2.4 or newer.
13629         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
13630         Code taken from gettext's intl.m4.
13631         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
13632         of YACC.
13634 2019-07-19  Bruno Haible  <bruno@clisp.org>
13636         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
13637         * lib/areadlink-with-size.c: Include <string.h>.
13638         * lib/areadlinkat-with-size.c: Likewise.
13639         * lib/xgethostname.c: Likewise.
13640         * lib/xgetdomainname.c: Likewise.
13642 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
13644         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
13645         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
13646         "%pure-parser".  The former is available since Bison 2.3b (2008),
13647         while the latter is marked as obsolete since version 3.4 (May 2019).
13649 2019-07-16  Bruno Haible  <bruno@clisp.org>
13651         update-copyright: Make it work again (regression from 2019-06-15).
13652         Reported by Brian C. Lane <bcl@redhat.com>.
13653         * build-aux/update-copyright: Add back the -0777, -p, -i options.
13655 2019-07-14  Bruno Haible  <bruno@clisp.org>
13657         doc: Update info about <pthread.h>.
13658         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
13659         of 'pthread'.
13661 2019-07-14  Bruno Haible  <bruno@clisp.org>
13663         pthread_sigmask tests: Use new multithread modules.
13664         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
13665         glthread/thread.h.
13666         (main_thread, killer_thread): Change type to pthread_t.
13667         (main): Update accordingly.
13668         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
13669         thread.
13671 2019-07-14  Bruno Haible  <bruno@clisp.org>
13673         pthread-tss: Add tests.
13674         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
13675         tests/test-tss.c.
13676         * modules/pthread-tss-tests: New file.
13678 2019-07-14  Bruno Haible  <bruno@clisp.org>
13680         pthread-cond: Add tests.
13681         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
13682         tests/test-cnd.c.
13683         * modules/pthread-cond-tests: New file.
13685 2019-07-14  Bruno Haible  <bruno@clisp.org>
13687         pthread-rwlock: Add tests.
13688         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
13689         * modules/pthread-rwlock-tests: New file.
13691 2019-07-14  Bruno Haible  <bruno@clisp.org>
13693         pthread-mutex: Add tests.
13694         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
13695         tests/test-mtx.c.
13696         * modules/pthread-mutex-tests: New file.
13698 2019-07-14  Bruno Haible  <bruno@clisp.org>
13700         pthread-once: Add tests.
13701         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
13702         tests/test-call_once.c.
13703         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
13704         tests/test-mtx.c.
13705         * modules/pthread-once-tests: New file.
13707 2019-07-14  Bruno Haible  <bruno@clisp.org>
13709         pthread-thread: Add tests.
13710         * tests/test-pthread-thread.c: New file, based on
13711         tests/test-thread_create.c and tests/test-thrd_create.c.
13712         * modules/pthread-thread-tests: New file.
13714 2019-07-14  Bruno Haible  <bruno@clisp.org>
13716         pthread: Turn into a convenience module.
13717         * lib/pthread.in.h: Remove declarations for extern inline functions.
13718         * lib/pthread.c: Remove file.
13719         * modules/pthread (Files): Remove it.
13720         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
13721         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
13722         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
13723         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
13724         GNULIB_PTHREAD.
13725         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
13727 2019-07-14  Bruno Haible  <bruno@clisp.org>
13729         pthread-spin: New module.
13730         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
13731         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
13732         inline definitions.
13733         * lib/pthread-spin.c: New file.
13734         * m4/pthread-spin.m4: New file.
13735         * modules/pthread-spin: New file.
13736         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
13737         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
13738         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
13739         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
13740         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
13742 2019-07-14  Bruno Haible  <bruno@clisp.org>
13744         pthread-tss: New module.
13745         * lib/pthread-tss.c: New file.
13746         * m4/pthread-tss.m4: New file.
13747         * modules/pthread-tss: New file.
13748         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
13749         * doc/posix-functions/pthread_setspecific.texi: Likewise.
13750         * doc/posix-functions/pthread_getspecific.texi: Likewise.
13751         * doc/posix-functions/pthread_key_delete.texi: Likewise.
13753 2019-07-14  Bruno Haible  <bruno@clisp.org>
13755         pthread-cond: New module.
13756         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
13757         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
13758         * lib/pthread-cond.c: New file.
13759         * m4/pthread-cond.m4: New file.
13760         * modules/pthread-cond: New file.
13761         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
13762         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
13763         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
13764         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
13765         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
13766         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
13767         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
13768         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
13770 2019-07-14  Bruno Haible  <bruno@clisp.org>
13772         pthread-rwlock: New module.
13773         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
13774         * m4/pthread-rwlock.m4: New file.
13775         * modules/pthread-rwlock: New file.
13776         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
13777         and the Android problem.
13778         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
13779         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
13780         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
13781         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
13782         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
13783         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
13784         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
13785         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
13786         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
13787         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
13789 2019-07-14  Bruno Haible  <bruno@clisp.org>
13791         pthread-mutex: New module.
13792         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
13793         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
13794         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
13795         pthread_mutex_unlock): Remove inline definitions.
13796         * lib/pthread-mutex.c: New file.
13797         * m4/pthread-mutex.m4: New file.
13798         * modules/pthread-mutex: New file.
13799         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
13800         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
13801         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
13802         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
13803         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13804         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13805         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
13806         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
13807         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
13808         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
13809         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
13810         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
13812 2019-07-14  Bruno Haible  <bruno@clisp.org>
13814         pthread-once: New module.
13815         * lib/pthread-once.c: New file.
13816         * m4/pthread-once.m4: New file.
13817         * modules/pthread-once: New file.
13818         * doc/posix-functions/pthread_once.texi: Mention the new module.
13820 2019-07-14  Bruno Haible  <bruno@clisp.org>
13822         pthread-thread: New module.
13823         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
13824         inline definitions.
13825         * lib/pthread-thread.c: New file.
13826         * m4/pthread-thread.m4: New file.
13827         * modules/pthread-thread: New file.
13828         * doc/posix-functions/pthread_create.texi: Mention the new module.
13829         * doc/posix-functions/pthread_attr_init.texi: Likewise.
13830         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
13831         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
13832         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
13833         * doc/posix-functions/pthread_self.texi: Likewise.
13834         * doc/posix-functions/pthread_equal.texi: Likewise.
13835         * doc/posix-functions/pthread_detach.texi: Likewise.
13836         * doc/posix-functions/pthread_join.texi: Likewise.
13837         * doc/posix-functions/pthread_exit.texi: Likewise.
13839 2019-07-14  Bruno Haible  <bruno@clisp.org>
13841         pthread-h: Prepare for adding new modules.
13842         * lib/pthread.in.h: Define the types and macros for each of the
13843         facilities separately.
13844         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
13845         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13846         HAVE_PTHREAD_PROCESS_SHARED.
13847         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
13848         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13849         HAVE_PTHREAD_PROCESS_SHARED.
13850         * modules/pthread-h (Makefile.am): Substitute
13851         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
13852         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
13854 2019-07-14  Bruno Haible  <bruno@clisp.org>
13856         pthread-h: Add declarations of essential pthread functions.
13857         * lib/pthread.in.h: Include snippets.
13858         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
13859         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
13860         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
13861         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
13862         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
13863         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
13864         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
13865         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
13866         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
13867         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
13868         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
13869         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
13870         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
13871         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
13872         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
13873         pthread_key_create, pthread_setspecific, pthread_getspecific,
13874         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
13875         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
13876         declarations.
13877         (pthread_mutex_timedlock): Move declaration.
13878         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
13879         declared.
13880         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
13881         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
13882         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
13883         HAVE_* and REPLACE_* variables for the new functions.
13884         * modules/pthread-h (Depends-on): Add snippet/c++defs,
13885         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
13886         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
13887         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
13888         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
13889         variables for the new functions. Split the sed script, to avoid the
13890         limit of 99 commands of HP-UX sed.
13891         * tests/test-pthread-c++.cc: Check the signature of the new functions.
13893 2019-07-14  Bruno Haible  <bruno@clisp.org>
13895         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
13896         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
13897         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
13898         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
13899         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
13900         * modules/pthread-h (Depends-on): Add threadlib.
13901         (Link): Change to $(LIBTHREAD).
13902         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
13903         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
13905 2019-07-14  Bruno Haible  <bruno@clisp.org>
13907         pthread-h: Add C++ tests.
13908         * tests/test-pthread-c++.cc: New file.
13909         * modules/pthread-h-c++-tests: New file.
13911 2019-07-14  Bruno Haible  <bruno@clisp.org>
13913         pthread-h: Add tests.
13914         * tests/test-pthread.c: New file.
13915         * modules/pthread-h-tests: New file.
13917 2019-07-14  Bruno Haible  <bruno@clisp.org>
13919         pthread-h: New module.
13920         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
13921         is 1.
13922         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
13923         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
13924         <pthread.h> pollutes the namespace; instead, prepare for generating a
13925         pthread.h always. Substitute HAVE_PTHREAD_H here.
13926         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
13927         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
13928         * modules/pthread-h: New file, based on modules/pthread.
13929         * modules/pthread: Rely on 'pthread-h'.
13930         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
13931         Update.
13932         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
13933         pthread.
13935 2019-07-14  Bruno Haible  <bruno@clisp.org>
13937         sched_yield: New module.
13938         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
13939         (sched_yield): New declaration.
13940         * lib/sched_yield.c: New file.
13941         * m4/sched_yield.m4: New file.
13942         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
13943         provide a replacement sched.h always. Test whether sched_yield is
13944         declared.
13945         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
13946         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
13947         (Makefile.am): Provide a replacement sched.h always. Substitute
13948         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
13949         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
13950         * modules/sched_yield: New file.
13951         * doc/posix-functions/sched_yield.texi: Mention the new module.
13953 2019-07-14  Bruno Haible  <bruno@clisp.org>
13955         windows-spin: New module.
13956         * lib/windows-spin.h: New file.
13957         * lib/windows-spin.c: New file.
13958         * modules/windows-spin: New file.
13960 2019-07-14  Bruno Haible  <bruno@clisp.org>
13962         windows-timedrwlock: New module.
13963         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
13964         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
13965         windows-cond.c.
13966         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
13967         redefinition conflict with windows-timedrwlock.h.
13968         * modules/windows-timedrwlock: New file.
13970 2019-07-14  Bruno Haible  <bruno@clisp.org>
13972         windows-rwlock: New module.
13973         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
13974         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
13975         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
13976         windows-initguard.h.
13977         (gl_rwlock_t): Define using glwthread_rwlock_t.
13978         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
13979         (glthread_rwlock_init): Define using glwthread_rwlock_init.
13980         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
13981         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
13982         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
13983         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
13984         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
13985         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
13986         glthread_rwlock_destroy_func): Remove declarations.
13987         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
13988         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
13989         gl_waitqueue_notify_all, glthread_rwlock_init_func,
13990         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
13991         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
13992         functions.
13993         * modules/windows-rwlock: New file.
13994         * modules/lock (Depends-on): Add windows-rwlock.
13996 2019-07-14  Bruno Haible  <bruno@clisp.org>
13998         windows-thread: Add support for creating a thread in detached state.
13999         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
14000         (glwthread_thread_create): Add attr argument.
14001         * lib/windows-thread.c (glwthread_thread_create): Likewise.
14002         * lib/glthread/thread.h (glthread_create): Update.
14003         * lib/thrd.c (thrd_create): Update.
14005 2019-07-14  Bruno Haible  <bruno@clisp.org>
14007         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
14008         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
14009         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
14010         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
14011         * lib/windows-mutex.h: Update.
14012         * lib/windows-recmutex.h: Likewise.
14013         * lib/windows-timedmutex.h: Likewise.
14014         * lib/windows-timedrecmutex.h: Likewise.
14015         * lib/windows-cond.h: Likewise.
14016         * lib/glthread/lock.h: Likewise.
14017         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
14018         lib/windows-spinlock.h.
14019         * modules/windows-recmutex (Files): Likewise.
14020         * modules/windows-timedmutex (Files): Likewise.
14021         * modules/windows-timedrecmutex (Files): Likewise.
14022         * modules/windows-cond (Files): Likewise.
14023         * modules/threads-h (Files): Likewise.
14025 2019-07-14  Bruno Haible  <bruno@clisp.org>
14027         doc: Fix info about pthread API in HP-UX.
14028         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
14030 2019-07-14  Bruno Haible  <bruno@clisp.org>
14032         threads-h: Fix generation of threads.h.
14033         * modules/threads-h (Makefile.am): Insert the required header file
14034         snippets.
14036 2019-07-09  Bruno Haible  <bruno@clisp.org>
14038         striconveh test: Fix a compilation failure when iconv is not available.
14039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14040         * tests/test-striconveh.c (main): Move iconv_close invocations inside
14041         HAVE_ICONV.
14043 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
14045         argmatch: adjust columns for help2man.
14046         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
14047         requires column 20 or more, return 20.
14049 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14051         areadlink-with-size: avoid realloc when size==0
14052         * lib/areadlink-with-size.c (areadlink_with_size):
14053         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
14054         Reallocate at the end to the actual size, to avoid memory waste,
14055         as suggested by Bruno Haible.  But when the guessed size is zero -
14056         useful when the size is unknown - do the initial small readlink
14057         into the stack, to avoid that realloc in the usual case.
14059 2019-07-06  Pádraig Brady  <P@draigBrady.com>
14061         areadlink-with-size: guess a buffer size with 0 size
14062         The size is usually taken from st_size, which can be zero,
14063         resulting in inefficient operation.
14064         Instead let zero select an initial memory allocation
14065         of 128 bytes, which most symlinks fit within.
14066         * lib/areadlink-with-size.c (areadlink_with_size):
14067         Start with a 128 byte buffer, for SIZE == 0.
14068         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
14070 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
14072         Replace manually crafted hex regexes with [:xdigit:]
14073         * build-aux/gitlog-to-changelog (parse_amend_file)
14074         (git_dir_option):
14075         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
14076         This patch is backported from Emacs (Bug#36167).
14078 2019-07-06  Bruno Haible  <bruno@clisp.org>
14080         error: Fix documentation.
14081         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
14082         module provides.
14083         * doc/glibc-functions/error_message_count.texi: Likewise.
14084         * doc/glibc-functions/error_one_per_line.texi: Likewise.
14085         * doc/glibc-functions/error_print_progname.texi: Likewise.
14087 2019-07-06  Bruno Haible  <bruno@clisp.org>
14089         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
14090         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
14091         and older is unsupported.
14092         * doc/**/*.texi: Update.
14094 2019-07-06  Bruno Haible  <bruno@clisp.org>
14096         doc: Remove documentation of Linux libc5 as a supported platform.
14097         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
14098         to Linux libc5.
14099         * doc/posix-functions/iswalpha.texi: Likewise.
14100         * doc/posix-functions/iswblank.texi: Likewise.
14101         * doc/posix-functions/iswcntrl.texi: Likewise.
14102         * doc/posix-functions/iswdigit.texi: Likewise.
14103         * doc/posix-functions/iswgraph.texi: Likewise.
14104         * doc/posix-functions/iswlower.texi: Likewise.
14105         * doc/posix-functions/iswprint.texi: Likewise.
14106         * doc/posix-functions/iswpunct.texi: Likewise.
14107         * doc/posix-functions/iswspace.texi: Likewise.
14108         * doc/posix-functions/iswupper.texi: Likewise.
14109         * doc/posix-functions/iswxdigit.texi: Likewise.
14110         * doc/posix-functions/snprintf.texi: Likewise.
14111         * doc/posix-functions/vsnprintf.texi: Likewise.
14113 2019-07-06  Bruno Haible  <bruno@clisp.org>
14115         doc: Remove documentation of Tandem/NSK as a supported platform.
14116         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
14117         Tandem/NSK.
14118         * doc/**/*.texi: Update.
14120 2019-07-06  Bruno Haible  <bruno@clisp.org>
14122         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
14123         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
14124         and older is unsupported.
14125         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
14126         Mac OS X 10.4 and older.
14127         * doc/posix-functions/asinl.texi: Likewise.
14128         * doc/posix-functions/atanl.texi: Likewise.
14129         * doc/posix-functions/cosl.texi: Likewise.
14130         * doc/posix-functions/expl.texi: Likewise.
14131         * doc/posix-functions/frexpl.texi: Likewise.
14132         * doc/posix-functions/gettimeofday.texi: Likewise.
14133         * doc/posix-functions/logl.texi: Likewise.
14134         * doc/posix-functions/mkstemp.texi: Likewise.
14135         * doc/posix-functions/sinl.texi: Likewise.
14136         * doc/posix-functions/sqrtl.texi: Likewise.
14137         * doc/posix-functions/tanl.texi: Likewise.
14138         * doc/posix-functions/wcswidth.texi: Likewise.
14139         * doc/**/*.texi: Update.
14141 2019-07-06  Bruno Haible  <bruno@clisp.org>
14143         doc: Remove documentation of AIX 4 as a supported platform.
14144         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
14145         unsupported.
14146         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
14147         workarounds.
14148         * doc/posix-functions/strnlen.texi: Likewise.
14149         * doc/posix-headers/inttypes.texi: Likewise.
14150         * doc/**/*.texi: Update.
14152 2019-07-06  Bruno Haible  <bruno@clisp.org>
14154         doc: Remove documentation of HP-UX 10 as a supported platform.
14155         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
14156         unsupported.
14157         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
14158         workarounds.
14159         * doc/posix-functions/gmtime_r.texi: Likewise.
14160         * doc/posix-functions/localtime_r.texi: Likewise.
14161         * doc/posix-functions/mkstemp.texi: Likewise.
14162         * doc/**/*.texi: Update.
14164 2019-07-06  Bruno Haible  <bruno@clisp.org>
14166         doc: Remove documentation of Interix 3.5 as a supported platform.
14167         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
14168         unsupported.
14169         * doc/posix-functions/select.texi: Don't mention Interix specific
14170         workarounds.
14171         * doc/posix-headers/signal.texi: Likewise.
14172         * doc/**/*.texi: Update.
14174 2019-07-06  Bruno Haible  <bruno@clisp.org>
14176         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
14177         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
14178         unsupported.
14179         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
14180         workarounds.
14181         * doc/posix-functions/nl_langinfo.texi: Likewise.
14182         * doc/posix-functions/remainder.texi: Likewise.
14183         * doc/posix-functions/towlower.texi: Likewise.
14184         * doc/posix-functions/towupper.texi: Likewise.
14185         * doc/posix-functions/vsnprintf.texi: Likewise.
14186         * doc/posix-functions/wcscat.texi: Likewise.
14187         * doc/posix-functions/wcschr.texi: Likewise.
14188         * doc/posix-functions/wcscmp.texi: Likewise.
14189         * doc/posix-functions/wcscpy.texi: Likewise.
14190         * doc/posix-functions/wcscspn.texi: Likewise.
14191         * doc/posix-functions/wcslen.texi: Likewise.
14192         * doc/posix-functions/wcsncat.texi: Likewise.
14193         * doc/posix-functions/wcsncmp.texi: Likewise.
14194         * doc/posix-functions/wcsncpy.texi: Likewise.
14195         * doc/posix-functions/wcspbrk.texi: Likewise.
14196         * doc/posix-functions/wcsrchr.texi: Likewise.
14197         * doc/posix-functions/wcsspn.texi: Likewise.
14198         * doc/posix-headers/langinfo.texi: Likewise.
14199         * doc/posix-headers/signal.texi: Likewise.
14200         * doc/posix-headers/wchar.texi: Likewise.
14201         * doc/posix-headers/wctype.texi: Likewise.
14202         * doc/**/*.texi: Update.
14204 2019-07-05  Bruno Haible  <bruno@clisp.org>
14206         doc: Remove documentation of OSF/1 as supported platform.
14207         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
14208         unsupported.
14209         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
14210         workarounds.
14211         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
14212         * doc/glibc-functions/ptsname_r.texi: Likewise.
14213         * doc/posix-functions/ceil.texi: Likewise.
14214         * doc/posix-functions/ceilf.texi: Likewise.
14215         * doc/posix-functions/ceill.texi: Likewise.
14216         * doc/posix-functions/fchdir.texi: Likewise.
14217         * doc/posix-functions/floor.texi: Likewise.
14218         * doc/posix-functions/floorf.texi: Likewise.
14219         * doc/posix-functions/fmod.texi: Likewise.
14220         * doc/posix-functions/fmodf.texi: Likewise.
14221         * doc/posix-functions/fmodl.texi: Likewise.
14222         * doc/posix-functions/log.texi: Likewise.
14223         * doc/posix-functions/logf.texi: Likewise.
14224         * doc/posix-functions/logl.texi: Likewise.
14225         * doc/posix-functions/log10.texi: Likewise.
14226         * doc/posix-functions/log10f.texi: Likewise.
14227         * doc/posix-functions/log10l.texi: Likewise.
14228         * doc/posix-functions/log2.texi: Likewise.
14229         * doc/posix-functions/log2f.texi: Likewise.
14230         * doc/posix-functions/log2l.texi: Likewise.
14231         * doc/posix-functions/mbrtowc.texi: Likewise.
14232         * doc/posix-functions/recv.texi: Likewise.
14233         * doc/posix-functions/recvfrom.texi: Likewise.
14234         * doc/posix-functions/remainder.texi: Likewise.
14235         * doc/posix-functions/remainderf.texi: Likewise.
14236         * doc/posix-functions/remainderl.texi: Likewise.
14237         * doc/posix-functions/round.texi: Likewise.
14238         * doc/posix-functions/roundf.texi: Likewise.
14239         * doc/posix-functions/roundl.texi: Likewise.
14240         * doc/posix-functions/send.texi: Likewise.
14241         * doc/posix-functions/sendto.texi: Likewise.
14242         * doc/posix-functions/setenv.texi: Likewise.
14243         * doc/posix-functions/snprintf.texi: Likewise.
14244         * doc/posix-functions/tcgetsid.texi: Likewise.
14245         * doc/posix-functions/trunc.texi: Likewise.
14246         * doc/posix-functions/truncf.texi: Likewise.
14247         * doc/posix-functions/truncl.texi: Likewise.
14248         * doc/posix-functions/ttyname_r.texi: Likewise.
14249         * doc/posix-functions/unsetenv.texi: Likewise.
14250         * doc/posix-functions/wcsrtombs.texi: Likewise.
14251         * doc/posix-headers/sys_select.texi: Likewise.
14252         * doc/posix-headers/wchar.texi: Likewise.
14253         * doc/posix-headers/wctype.texi: Likewise.
14254         * doc/**/*.texi: Update.
14256 2019-07-05  Bruno Haible  <bruno@clisp.org>
14258         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
14259         * doc/**/*.texi: Update.
14261 2019-07-05  Bruno Haible  <bruno@clisp.org>
14263         doc: Remove documentation of Solaris 8 and older as supported platforms.
14264         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
14265         unsupported.
14266         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
14267         workarounds.
14268         * doc/posix-functions/memcmp.texi: Likewise.
14269         * doc/posix-functions/rename.texi: Likewise.
14270         * doc/posix-functions/tzset.texi: Likewise.
14271         * doc/posix-headers/wctype.texi: Likewise.
14272         * doc/**/*.texi: Update.
14274 2019-07-05  Bruno Haible  <bruno@clisp.org>
14276         doc: Remove documentation of Interix 3.5 as a supported platform.
14277         * doc/**/*.texi: Update.
14279 2019-07-05  Bruno Haible  <bruno@clisp.org>
14281         doc: Remove documentation of BeOS as a supported platform.
14282         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
14283         unsupported.
14284         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
14285         * doc/posix-functions/getdelim.texi: Likewise.
14286         * doc/**/*.texi: Update.
14288 2019-07-05  Bruno Haible  <bruno@clisp.org>
14290         thread, lock, cond, tls: Remove support for Pth threads.
14291         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
14292         --enable-threads=pth any more.
14293         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
14294         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
14295         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
14296         threads and ISO C11 threads.
14297         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
14298         * lib/glthread/lock.h: Likewise.
14299         * lib/glthread/lock.c: Likewise.
14300         * lib/glthread/cond.h: Likewise.
14301         * lib/glthread/cond.c: Likewise.
14302         * lib/glthread/tls.h: Likewise.
14303         * lib/glthread/tls.c: Likewise.
14304         * lib/glthread/yield.h: Likewise.
14305         * lib/regex_internal.h: Likewise.
14306         * tests/test-thread_create.c: Likewise.
14307         * tests/test-lock.c: Likewise.
14308         * tests/test-cond.c: Likewise.
14309         * tests/test-tls.c: Likewise.
14310         * tests/test-rwlock1.c: Don't include glthread/yield.h.
14311         (main): Sleep without calling gl_thread_yield.
14313 2019-07-05  Bruno Haible  <bruno@clisp.org>
14315         thread, lock, cond, tls: Remove support for old Solaris threads.
14316         Solaris >= 2.5.1 has POSIX threads.
14317         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
14318         --enable-threads=solaris any more.
14319         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
14320         * lib/glthread/thread.c: Update comment.
14321         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
14322         * lib/glthread/lock.h: Likewise.
14323         * lib/glthread/lock.c: Likewise.
14324         * lib/glthread/cond.h: Likewise.
14325         * lib/glthread/cond.c: Likewise.
14326         * lib/glthread/tls.h: Likewise.
14327         * lib/glthread/tls.c: Likewise.
14328         * lib/glthread/yield.h: Likewise.
14329         * lib/regex_internal.h: Likewise.
14330         * tests/test-thread_create.c: Likewise.
14331         * tests/test-lock.c: Likewise.
14332         * tests/test-cond.c: Likewise.
14333         * tests/test-tls.c: Likewise.
14335 2019-07-05  Bruno Haible  <bruno@clisp.org>
14337         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
14338         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
14339         needed size is equal to the allocated size.
14340         * lib/getcwd.c (__getcwd): Likewise.
14342 2019-07-05  Bruno Haible  <bruno@clisp.org>
14344         xgetdomainname: Don't return an excessive memory allocation.
14345         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
14346         before returning it.
14348 2019-07-05  Bruno Haible  <bruno@clisp.org>
14350         xgethostname: Don't return an excessive memory allocation.
14351         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
14352         returning it.
14354 2019-07-05  Bruno Haible  <bruno@clisp.org>
14356         areadlinkat-with-size: Don't return an excessive memory allocation.
14357         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
14358         before returning it.
14360 2019-07-05  Bruno Haible  <bruno@clisp.org>
14362         areadlink-with-size: Don't return an excessive memory allocation.
14363         Reported by Andreas Dilger <adilger@whamcloud.com>.
14364         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
14365         before returning it.
14367 2019-07-03  Bruno Haible  <bruno@clisp.org>
14369         renameatu: Fix test failure on MSVC.
14370         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
14371         empty string.
14373 2019-07-03  Bruno Haible  <bruno@clisp.org>
14375         mbrtowc: Fix invalid use of mbtowc() on MSVC.
14376         * lib/mbrtowc.c: Include glthread/lock.h.
14377         (mbtowc_lock): New variable.
14378         (mbrtowc): Treat UTF-8 encoding without locking. For the other
14379         encodings, explicitly reset the internal state of mbtowc, and protect
14380         this through a lock.
14381         * modules/mbrtowc (Depends-on): Add lock.
14383 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
14385         argmatch: don't define _ in the header.
14386         Reported by Jim Meyering.
14387         * lib/argmatch.h (N_, _): Don't define.
14388         Use gettext instead.
14389         * lib/argmatch.h (_): Define.
14390         * tests/test-argmatch.c (N_): Define.
14392 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14394         verify: document ‘assume’ better
14395         * lib/verify.h: Reword doc (Bug#36370).
14397 2019-07-02  Bruno Haible  <bruno@clisp.org>
14399         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
14400         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
14401         "CPutf8".
14402         * lib/nl_langinfo.c (ctype_codeset): Likewise.
14404 2019-07-02  Bruno Haible  <bruno@clisp.org>
14406         getcwd: Fix crash when invoked with size = 0 on MSVC.
14407         * lib/getcwd.c: Include msvc-inval.h.
14408         (getcwd_nothrow): New function/macro.
14409         (getcwd_system): New macro.
14410         (__getcwd): Use it instead of getcwd.
14411         * modules/getcwd (Depends-on): Add msvc-inval.
14412         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
14414 2019-07-02  Bruno Haible  <bruno@clisp.org>
14416         nonblocking-pipe tests: Fix test failure on MSVC.
14417         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
14418         native Windows.
14420 2019-07-02  Bruno Haible  <bruno@clisp.org>
14422         usleep: Implement with millisecond resolution on native Windows.
14423         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
14424         * doc/pastposix-functions/usleep.texi: Update accordingly.
14426 2019-07-02  Bruno Haible  <bruno@clisp.org>
14428         lstat tests: Fix test failure on MSVC.
14429         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
14430         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
14432 2019-07-02  Bruno Haible  <bruno@clisp.org>
14434         stat tests: Fix test failure on MSVC.
14435         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
14436         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
14438 2019-07-02  Bruno Haible  <bruno@clisp.org>
14440         getaddrinfo tests: Fix test failure on MSVC.
14441         * tests/test-getaddrinfo.c: Include sockets.h.
14442         (main): Invoke gl_sockets_startup.
14443         * modules/getaddrinfo-tests (Depends-on): Add sockets.
14445 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
14447         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
14448         * lib/poll.c: Call Windows native select() with Windows native timeval.
14450 2019-06-30  Bruno Haible  <bruno@clisp.org>
14452         argmatch: Fix compilation errors.
14453         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
14454         * tests/test-argmatch.c (main): Update after last-minute function names
14455         change.
14457 2019-06-30  Bruno Haible  <bruno@clisp.org>
14459         Include <stdlib.h> when needed.
14460         * lib/cnd.c: Include <stdlib.h>, needed for abort().
14461         * lib/fcntl.c: Likewise.
14462         * lib/mbscasestr.c: Likewise.
14463         * lib/mbssep.c: Likewise.
14464         * lib/mbsstr.c: Likewise.
14465         * lib/openat.c: Include <stdlib.h>, needed for free().
14466         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
14467         abort().
14469 2019-06-30  Bruno Haible  <bruno@clisp.org>
14471         Include <stdlib.h> when needed.
14472         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
14473         * lib/faccessat.c: Likewise.
14474         * lib/fchmodat.c: Likewise.
14475         * lib/fchownat.c: Likewise.
14476         * lib/fstatat.c: Likewise.
14477         * lib/mkfifoat.c: Likewise.
14478         * lib/mknodat.c: Likewise.
14479         * lib/readlinkat.c: Likewise.
14480         * lib/symlinkat.c: Likewise.
14481         * lib/utimensat.c: Likewise.
14482         * lib/mkdirat.c: Likewise. Include also the specification header.
14484 2019-06-30  Bruno Haible  <bruno@clisp.org>
14486         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
14487         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
14488         from gl_PREREQ_SYS_H_SOCKET.
14489         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
14490         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
14491         gl_PREREQ_SYS_H_WS2TCPIP.
14492         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
14493         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
14494         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
14496 2019-06-30  Bruno Haible  <bruno@clisp.org>
14498         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
14499         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
14500         REPLACE_INET_NTOP to 1 always.
14501         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
14502         REPLACE_INET_PTON to 1 always.
14504 2019-06-30  Bruno Haible  <bruno@clisp.org>
14506         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
14507         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
14508         not REPLACE_INET_NTOP.
14510 2019-06-30  Bruno Haible  <bruno@clisp.org>
14512         poll: Add comment.
14513         * lib/poll.c: Add comment about WSAPoll.
14515 2019-06-30  Bruno Haible  <bruno@clisp.org>
14517         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
14518         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
14519         * lib/poll.in.h: Include <winsock2.h>.
14520         (POLL*, pollfd): Override on native Windows.
14521         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14522         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
14523         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14525 2019-06-28  Bruno Haible  <bruno@clisp.org>
14527         accept4: Fix compilation error on OpenIndiana.
14528         Reported by Michal Nowak <mnowak@startmail.com>
14529         via Mark H Weaver <mhw@netris.org>.
14530         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
14531         whether it exists as a function.
14533 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
14535         strverscmp: sync from glibc
14536         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
14537         comments, include libc-config.h, define __strverscmp to be
14538         strverscmp, and don’t assume types line uint8_t and int8_t that
14539         that C99 doesn’t guarantee.
14540         [!_LIBC]: Include libc-config.h; define __strverscmp.
14541         Include stdint.h.
14542         (__strverscmp): Assume C99.  Use uint_least8_t
14543         and int_least8_t instead of unsigned char and signed char.
14544         * modules/strverscmp (Depends-on): Add libc-config, stdint.
14546 2019-06-25  Bruno Haible  <bruno@clisp.org>
14548         tss tests: Add tests for destructors and races.
14549         * tests/test-tss.c (worker_thread): Fix typo in debug message.
14550         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
14551         functions.
14552         (main): Invoke them.
14553         * modules/tls-tests (Depends-on): Add mtx.
14555 2019-06-25  Bruno Haible  <bruno@clisp.org>
14557         tls tests: Add tests for destructors and races.
14558         * tests/test-tls.c: Include glthread/lock.h.
14559         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
14560         functions.
14561         (main): Invoke them.
14562         * modules/tls-tests (Depends-on): Add lock.
14564 2019-06-25  Bruno Haible  <bruno@clisp.org>
14566         windows-tls: Implement TLS key destructors for native Windows.
14567         * lib/windows-tls.h (glwthread_tls_process_destructors): New
14568         declaration.
14569         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
14570         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
14571         (dtor_table_init_once, dtor_table_lock: New variables.
14572         (struct dtor): New type.
14573         (dtor_table, dtors_count, dtors_used, dtors_allocated,
14574         dtor_processing_threads): New variables.
14575         (dtor_table_initialize, dtor_table_ensure_initialized,
14576         dtor_table_shrink_used, glwthread_tls_process_destructors): New
14577         functions.
14578         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
14579         handle non-NULL destructors.
14580         * modules/windows-tls (Depends-on): Add windows-once.
14581         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
14582         Use the functions declared in windows-tls.h.
14583         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
14584         GLWTHREAD_DESTRUCTOR_ITERATIONS.
14585         * lib/windows-thread.c: Include windows-tls.h.
14586         (wrapper_func, glwthread_thread_exit): Invoke
14587         glwthread_tls_process_destructors.
14588         * modules/windows-thread (Depends-on): Add windows-tls.
14590 2019-06-25  Bruno Haible  <bruno@clisp.org>
14592         threadlib: Avoid autoconf warning "was expanded before it was required".
14593         * modules/threadlib (configure.ac): Require gl_THREADLIB.
14595 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
14597         argmatch: remove duplicate const qualifier
14598         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
14600 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14602         unistd: stddef.h and sys/types.h namespace cleanup
14603         * lib/unistd.in.h [__GLIBC__]:
14604         Do not include stddef.h or sys/types.h.
14605         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
14606         supposed to declare off_t and ssize_t.  Problem found when looking
14607         at why @GNULIB_PWRITE@ was different from the newly-added
14608         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
14610 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14612         maintainer-makefile: restore portability to non-GNU awks
14613         Reported by Tim Rühsen.
14614         * top/maint.mk (AWK): New variable.  Use it.
14615         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
14617 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14619         Document setvbuf _IOLBF problem
14620         * doc/posix-functions/setvbuf.texi (setvbuf):
14621         Document MS-Windows portability problem with _IOLBF.
14623         Document lseek SEEK_DATA/SEEK_HOLE
14624         * doc/posix-functions/lseek.texi (lseek):
14625         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
14627 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14629         argmatch: put all the docs member last.
14630         Reported by Bruno Haible.
14631         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
14632         member before the docs done.
14633         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
14635 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
14637         argmatch: add support to generate the usage message.
14638         * lib/argmatch.c: Move some #includes and gettext support to...
14639         * lib/argmatch.h: here.
14640         (ARGMATCH_DEFINE_GROUP): New macro.
14641         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
14642         (argmatch_backup_group): New.
14643         (CHECK): New.
14644         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
14645         argmatch_backup_argument and argmatch_backup_usage.
14646         * modules/argmatch: We depend on c99.
14647         * doc/argmatch.texi (Recognizing Option Arguments): New.
14648         * doc/gnulib.texi: Use it.
14650 2019-06-21  Bruno Haible  <bruno@clisp.org>
14652         thrd: Add comment.
14653         * lib/thrd.c (pthread_main_func): Add comment.
14655 2019-06-21  Bruno Haible  <bruno@clisp.org>
14657         threads-h: Define 'thread_local' if and only if it actually works.
14658         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
14659         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
14660         Oracle Solaris Studio C. Compile a simple program, to see whether
14661         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
14662         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
14663         * lib/threads.in.h (thread_local): Undefine if it does not work.
14664         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
14665         (Link): Mention LIBTHREADLOCAL.
14666         * tests/test-threads.c: Don't check that thread_local is defined.
14667         * tests/test-thread_local.c: New file.
14668         * modules/threads-h-tests (Files): Add it and macros.h.
14669         (Depends-on): Add thrd and stdint.
14670         (configure.ac): Test whether 'alarm' is declared.
14671         (Makefile.am): Arrange to build and link test-thread_local.
14672         * doc/posix-headers/threads.texi: Mention the platforms that don't
14673         support 'thread_local'.
14675 2019-06-20  Bruno Haible  <bruno@clisp.org>
14677         threads-h: Simplify link dependencies.
14678         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
14679         Don't set LTLIBSTDTHREAD.
14680         * modules/thrd (Link): Simplify accordingly.
14681         * modules/mtx (Link): Likewise.
14682         * modules/cnd (Link): Likewise.
14683         * modules/tss (Link): Likewise.
14684         * modules/threads (Link): Likewise.
14686 2019-06-20  Bruno Haible  <bruno@clisp.org>
14688         threads-h: Fix link error on FreeBSD 11.
14689         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
14690         also with -lpthread.
14692 2019-06-20  Bruno Haible  <bruno@clisp.org>
14694         threadlib: Fix typo (regression from today).
14695         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
14697 2019-06-20  Bruno Haible  <bruno@clisp.org>
14699         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
14700         * lib/windows-thread.c: Include <errno.h>.
14701         * lib/windows-tls.c: Likewise.
14703 2019-06-20  Bruno Haible  <bruno@clisp.org>
14705         tss tests: Small improvement.
14706         * tests/test-tss.c (test_tss): Pass a different id to each thread.
14708 2019-06-20  Bruno Haible  <bruno@clisp.org>
14710         threads: New module.
14711         * modules/threads: New file.
14713 2019-06-20  Bruno Haible  <bruno@clisp.org>
14715         tss: Add tests.
14716         * tests/test-tss.c: New file, based on tests/test-tls.c.
14717         * modules/tss-tests: New file.
14719 2019-06-20  Bruno Haible  <bruno@clisp.org>
14721         cnd: Add tests.
14722         * tests/test-cnd.c: New file, based on tests/test-cond.c.
14723         * modules/cnd-tests: New file.
14725 2019-06-20  Bruno Haible  <bruno@clisp.org>
14727         mtx: Add tests.
14728         * tests/test-mtx.c: New file, based on tests/test-lock.c.
14729         * tests/test-call_once.c: New file, based on tests/test-once.c.
14730         * modules/mtx-tests: New file.
14732 2019-06-20  Bruno Haible  <bruno@clisp.org>
14734         thrd: Add tests.
14735         * tests/test-thrd_create.c: New file, based on
14736         tests/test-thread_create.c.
14737         * tests/test-thrd_current.c: New file, based on
14738         tests/test-thread_self.c.
14739         * modules/thrd-tests: New file.
14741 2019-06-20  Bruno Haible  <bruno@clisp.org>
14743         tss: New module.
14744         * lib/tss.c: New file.
14745         * modules/tss: New file.
14746         * doc/posix-functions/tss_create.texi: Mention the new module.
14747         * doc/posix-functions/tss_set.texi: Likewise.
14748         * doc/posix-functions/tss_get.texi: Likewise.
14749         * doc/posix-functions/tss_delete.texi: Likewise.
14751 2019-06-20  Bruno Haible  <bruno@clisp.org>
14753         cnd: New module.
14754         * lib/cnd.c: New file.
14755         * modules/cnd: New file.
14756         * doc/posix-functions/cnd_init.texi: Mention the new module.
14757         * doc/posix-functions/cnd_wait.texi: Likewise.
14758         * doc/posix-functions/cnd_timedwait.texi: Likewise.
14759         * doc/posix-functions/cnd_signal.texi: Likewise.
14760         * doc/posix-functions/cnd_broadcast.texi: Likewise.
14761         * doc/posix-functions/cnd_destroy.texi: Likewise.
14763 2019-06-20  Bruno Haible  <bruno@clisp.org>
14765         mtx: New module.
14766         * lib/mtx.c: New file.
14767         * modules/mtx: New file.
14768         * doc/posix-functions/call_once.texi: Mention the new module.
14769         * doc/posix-functions/mtx_init.texi: Likewise.
14770         * doc/posix-functions/mtx_lock.texi: Likewise.
14771         * doc/posix-functions/mtx_trylock.texi: Likewise.
14772         * doc/posix-functions/mtx_timedlock.texi: Likewise.
14773         * doc/posix-functions/mtx_unlock.texi: Likewise.
14774         * doc/posix-functions/mtx_destroy.texi: Likewise.
14776 2019-06-20  Bruno Haible  <bruno@clisp.org>
14778         thrd: New module.
14779         * lib/thrd.c: New file.
14780         * m4/thrd.m4: New file.
14781         * modules/thrd: New file.
14782         * doc/posix-functions/thrd_current.texi: Mention the new module.
14783         * doc/posix-functions/thrd_detach.texi: Likewise.
14784         * doc/posix-functions/thrd_equal.texi: Likewise.
14785         * doc/posix-functions/thrd_exit.texi: Likewise.
14786         * doc/posix-functions/thrd_sleep.texi: Likewise.
14787         * doc/posix-functions/thrd_yield.texi: Likewise.
14788         * doc/posix-functions/thrd_create.texi: Mention the new module and the
14789         AIX bug.
14790         * doc/posix-functions/thrd_join.texi: Mention the new module and the
14791         AIX and Solaris bugs.
14793 2019-06-20  Bruno Haible  <bruno@clisp.org>
14795         threads-h: Add tests.
14796         * tests/test-threads.c: New file.
14797         * modules/threads-h-tests: New file.
14798         * tests/test-threads-c++.cc: New file.
14799         * modules/threads-h-c++-tests: New file.
14801 2019-06-20  Bruno Haible  <bruno@clisp.org>
14803         threads-h: New module.
14804         * lib/threads.in.h: New file.
14805         * m4/threads.m4: New file.
14806         * m4/yield.m4 (gl_YIELD): Update comment.
14807         * modules/threads-h: New file.
14808         * modules/yields (configure.ac): Use AC_REQUIRE.
14809         * doc/posix-headers/threads.texi: Mention the new module and the AIX
14810         bugs.
14812 2019-06-20  Bruno Haible  <bruno@clisp.org>
14814         windows-thread: New module.
14815         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
14816         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
14817         * lib/glthread/thread.h: Include windows-thread.h.
14818         (gl_thread_t): Define using glwthread_thread_t.
14819         (glthread_create): Define using glwthread_thread_create.
14820         (glthread_join): Define using glwthread_thread_join.
14821         (gl_thread_self): Define using glwthread_thread_self.
14822         (gl_thread_exit): Define using glwthread_thread_exit.
14823         (glthread_create_func, glthread_join_func, gl_thread_self_func,
14824         gl_thread_exit_func): Remove declarations.
14825         * lib/glthread/thread.c (self_key): Remove variable.
14826         (do_init_self_key, init_self_key): Remove functions.
14827         (struct gl_thread_struct): Remove type.
14828         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
14829         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
14830         functions.
14831         * modules/windows-thread: New file.
14832         * modules/thread (Depends-on): Add windows-thread.
14834 2019-06-20  Bruno Haible  <bruno@clisp.org>
14836         windows-tls: New module.
14837         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
14838         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
14839         * lib/glthread/tls.h: Include windows-tls.h.
14840         (gl_tls_key_t): Define using glwthread_tls_key_t.
14841         * modules/windows-tls: New file.
14842         * modules/tls (Depends-on): Add windows-tls.
14844 2019-06-20  Bruno Haible  <bruno@clisp.org>
14846         windows-cond: New module.
14847         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
14848         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
14849         * lib/glthread/cond.h: Include windows-cond.h.
14850         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
14851         (gl_cond_t): Define using glwthread_cond_t.
14852         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
14853         (glthread_cond_init): Define using glwthread_cond_init.
14854         (glthread_cond_wait): Define using glwthread_cond_wait.
14855         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
14856         (glthread_cond_signal): Define using glwthread_cond_signal.
14857         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
14858         (glthread_cond_destroy): Define using glwthread_cond_destroy.
14859         (glthread_cond_init_func, glthread_cond_wait_func,
14860         glthread_cond_timedwait_func, glthread_cond_signal_func,
14861         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14862         declarations.
14863         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
14864         types.
14865         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14866         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
14867         glthread_cond_init_func, glthread_cond_wait_func,
14868         glthread_cond_timedwait_func, glthread_cond_signal_func,
14869         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14870         functions.
14871         * modules/windows-cond: New file.
14872         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
14874 2019-06-20  Bruno Haible  <bruno@clisp.org>
14876         windows-timedrecmutex: New module.
14877         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
14878         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
14879         * modules/windows-timedrecmutex: New file.
14881 2019-06-20  Bruno Haible  <bruno@clisp.org>
14883         windows-timedmutex: New module.
14884         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
14885         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
14886         * modules/windows-timedmutex: New file.
14888 2019-06-20  Bruno Haible  <bruno@clisp.org>
14890         windows-recmutex: New module.
14891         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
14892         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
14893         * lib/glthread/lock.h: Include windows-recmutex.h.
14894         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
14895         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
14896         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
14897         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
14898         (glthread_recursive_lock_unlock): Define using
14899         glwthread_recmutex_unlock.
14900         (glthread_recursive_lock_destroy): Define using
14901         glwthread_recmutex_destroy.
14902         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
14903         glthread_recursive_lock_unlock_func,
14904         glthread_recursive_lock_destroy_func): Remove declarations.
14905         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
14906         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
14907         glthread_recursive_lock_destroy_func): Remove functions.
14908         * modules/windows-recmutex: New file.
14909         * modules/lock (Depends-on): Add windows-recmutex.
14911 2019-06-20  Bruno Haible  <bruno@clisp.org>
14913         windows-mutex: New module.
14914         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
14915         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
14916         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
14917         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
14918         (gl_spinlock_t): Remove type.
14919         (gl_lock_t): Define using glwthread_mutex_t.
14920         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
14921         (glthread_lock_init): Define using glwthread_mutex_init.
14922         (glthread_lock_lock): Define using glwthread_mutex_lock.
14923         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
14924         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
14925         (glthread_lock_init_func, glthread_lock_lock_func,
14926         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14927         declarations.
14928         Use glwthread_spinlock_t instead of gl_spinlock_t.
14929         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
14930         GLWTHREAD_SPINLOCK_INIT.
14931         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
14932         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14933         functions.
14934         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
14935         gl_spinlock_t.
14936         * modules/windows-mutex: New file.
14937         * modules/lock (Depends-on): Add windows-mutex.
14939 2019-06-20  Bruno Haible  <bruno@clisp.org>
14941         windows-once: New module.
14942         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
14943         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
14944         * lib/glthread/lock.h: Include windows-once.h.
14945         (gl_once_t): Define using glwthread_once_t.
14946         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
14947         (glthread_once): Define using glwthread_once.
14948         (glthread_once_func): Remove declaration.
14949         * lib/glthread/lock.c (glthread_once_func): Remove function.
14950         * modules/windows-once: New file.
14951         * modules/lock (Depends-on): Add windows-once.
14953 2019-06-20  Bruno Haible  <bruno@clisp.org>
14955         lock, cond: Avoid possible counter wraparound on Windows.
14956         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
14957         field of the guard unchanged if it was already positive.
14958         (glthread_rwlock_rdlock_func): Likewise.
14959         (glthread_rwlock_wrlock_func): Likewise.
14960         (glthread_recursive_lock_lock_func): Likewise.
14961         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
14962         (glthread_cond_timedwait_func): Likewise.
14964 2019-06-20  Bruno Haible  <bruno@clisp.org>
14966         cond: Make glthread_cond_timedwait more reliable on Windows.
14967         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
14968         condition variable before looking at the current time.
14970 2019-06-20  Bruno Haible  <bruno@clisp.org>
14972         pthread_mutex_timedlock: New module.
14973         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
14974         new declaration.
14975         * lib/pthread_mutex_timedlock.c: New file.
14976         * m4/pthread_mutex_timedlock.m4: New file.
14977         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
14978         whether pthread_mutex_timedlock is declared.
14979         (gl_PTHREAD_MODULE_INDICATOR): New macro.
14980         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14981         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14982         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
14983         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14984         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14985         * modules/pthread_mutex_timedlock: New file.
14986         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
14987         module.
14989 2019-06-20  Bruno Haible  <bruno@clisp.org>
14991         thread, lock, cond, tls: Recognize C11 multithreaded applications.
14992         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
14993         * lib/glthread/thread.h (c11_threads_in_use): New macro.
14994         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14995         * lib/glthread/lock.h (c11_threads_in_use): New macro.
14996         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14997         * lib/glthread/cond.h (c11_threads_in_use): New macro.
14998         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14999         * lib/glthread/tls.h (c11_threads_in_use): New macro.
15000         (pthread_in_use, pth_in_use, thread_in_use): Use it.
15002 2019-06-20  Bruno Haible  <bruno@clisp.org>
15004         tls tests: Small improvements.
15005         * tests/test-tls.c: Include <stdint.h>.
15006         (worker_thread): Avoid gcc warning on 64-bit mingw.
15007         (test_tls): Pass a different id to each thread.
15008         * modules/tls-tests (Depends-on): Add stdint.
15010 2019-06-20  Bruno Haible  <bruno@clisp.org>
15012         cond tests: Simplify.
15013         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
15015 2019-06-20  Bruno Haible  <bruno@clisp.org>
15017         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
15018         * tests/test-lock.c (test_once): Don't reference fire_signal if
15019         !ENABLE_LOCKING.
15021 2019-06-19  Bruno Haible  <bruno@clisp.org>
15023         nanosleep: Relicense under LGPLv2+.
15024         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
15025         * modules/nanosleep (License): Change to LGPLv2+.
15027 2019-06-19  Bruno Haible  <bruno@clisp.org>
15029         Reorder pieces of header in perl scripts.
15030         The desired order is
15031         - Prologue part 1 (2 lines with #!)
15032         - Program short description
15033         - Copyright and license notice
15034         - Written-by notice
15035         - Program short description (optional)
15036         - Program long description (optional)
15037         - Prologue part 2
15038         - Time stamp
15039         - Code
15040         Reported by Paul Eggert.
15041         * build-aux/announce-gen: Reorder header.
15042         * build-aux/gitlog-to-changelog: Likewise.
15043         * build-aux/useless-if-before-free: Likewise.
15044         * build-aux/prefix-gnulib-mk: Add copyright notice and short
15045         description.
15046         * build-aux/update-copyright: Likewise. Add short description. Bump
15047         time-stamp-line-limit to 200.
15049 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
15051         verify-tests: work around xlc bug
15052         Problem reported by Bruno Haible in:
15053         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
15054         * tests/test-verify.c (item): Move the arithmetic inside the
15055         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
15057 2019-06-16  Bruno Haible  <bruno@clisp.org>
15059         Restore Emacs time-stamp hook applicability.
15060         Reported by Darshit Shah <darnir@gnu.org>.
15061         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
15062         * build-aux/announce-gen: Likewise.
15063         * build-aux/gitlog-to-changelog: Likewise.
15064         * build-aux/prefix-gnulib-mk: Likewise.
15065         * build-aux/update-copyright: Likewise.
15067 2019-06-15  Bruno Haible  <bruno@clisp.org>
15069         Fix scripts to have valid executable format on Alpine Linux.
15070         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
15071         Idea by Paul Eggert.
15072         * build-aux/useless-if-before-free: Use a prologue that starts with
15073         '#!/bin/sh'.
15074         * build-aux/announce-gen: Likewise.
15075         * build-aux/gitlog-to-changelog: Likewise.
15076         * build-aux/prefix-gnulib-mk: Likewise.
15077         * build-aux/update-copyright: Likewise.
15078         * tests/test-update-copyright.sh: Update test program accordingly.
15080 2019-06-10  Bruno Haible  <bruno@clisp.org>
15082         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
15083         Reported by Nikita Ermakov <arei@altlinux.org> in
15084         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
15085         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
15086         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
15088 2019-06-10  Bruno Haible  <bruno@clisp.org>
15090         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
15091         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
15092         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
15093         a copy of the path argument.
15094         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
15095         it.
15097 2019-06-10  Bruno Haible  <bruno@clisp.org>
15099         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
15100         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
15101         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
15102         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
15103         a copy of the path argument.
15104         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
15105         it.
15107 2019-06-10  Bruno Haible  <bruno@clisp.org>
15109         posix_spawn_file_actions_addfchdir: Add tests.
15110         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
15111         * tests/test-posix_spawn5.c: New file.
15112         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
15114 2019-06-10  Bruno Haible  <bruno@clisp.org>
15116         posix_spawn_file_actions_addfchdir: New module.
15117         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
15118         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
15119         union member 'fchdir_action'.
15120         * lib/spawn_faction_addfchdir.c: New file.
15121         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
15122         * m4/posix_spawn_faction_addfchdir.m4: New file.
15123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
15124         'posix_spawn_file_actions_addfchdir' is present and whether
15125         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
15126         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
15127         posix_spawn_file_actions_addfchdir is declared.
15128         (gl_SPAWN_H_DEFAULTS): Initialize
15129         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
15130         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
15131         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
15132         * modules/spawn (Makefile.am): Substitute
15133         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
15134         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
15135         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
15136         * modules/posix_spawn_file_actions_addfchdir: New file.
15137         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
15138         signature.
15139         * doc/posix-functions/posix_spawn.texi: Mention the new module.
15140         * doc/posix-functions/posix_spawnp.texi: Likewise.
15141         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
15142         Likewise.
15144 2019-06-10  Bruno Haible  <bruno@clisp.org>
15146         doc: Document existence of posix_spawn_file_actions_addchdir module.
15147         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
15148         the posix_spawn_file_actions_addchdir module.
15150 2019-06-10  Bruno Haible  <bruno@clisp.org>
15152         posix_spawn-internal: Fix module description.
15153         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
15154         from here...
15155         * modules/posix_spawnp (configure.ac): ... and here...
15156         * modules/posix_spawn-internal (configure.ac): ... to here.
15158 2019-06-10  Bruno Haible  <bruno@clisp.org>
15160         doc: Update and improve documentation of glibc functions.
15161         This is a series of commits that
15162         - updates the documentation to the state of glibc 2.29,
15163         - adds references to Linux man pages and glibc documentation,
15164         - marks Linux specific functions as such.
15165         These are the commits:
15166         doc: Update after removal of crypt functions from glibc 2.28.
15167         doc: Remove mention of function vm86 (does not exist on x86_64).
15168         doc: Remove mention of functions that are gone from glibc.
15169         doc: Mention that glibc no longer provides h_errno.
15170         doc: Mention the availability of specific functions in glibc versions.
15171         doc: Mention eaccess.
15172         doc: Add references to Linux man pages.
15173         doc: Add references to glibc documentation.
15174         doc: Mention inotify_* functions.
15175         doc: Mention ppoll.
15176         doc: Mention sched_getcpu.
15177         doc: Mention sync_file_range.
15178         doc: Mention epoll_pwait.
15179         doc: Mention eventfd, eventfd_read, eventfd_write.
15180         doc: Mention signalfd.
15181         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
15182         doc: Mention epoll_create1.
15183         doc: Mention getauxval.
15184         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
15185         doc: Mention nextdown, nextup.
15186         doc: Mention more ISO TS 18661-1 <math.h> functions.
15187         doc: Mention ISO TS 18661-1 <fenv.h> functions.
15188         doc: Mention getrandom, getentropy.
15189         doc: Mention strfromf, strfromd, strfroml.
15190         doc: Mention preadv2, pwritev2.
15191         doc: Mention copy_file_range.
15192         doc: Mention memfd_create.
15193         doc: Mention mlock2.
15194         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
15195         doc: Mention more ISO TS 18661-1 <math.h> functions.
15196         doc: Mention renameat2.
15197         doc: Mention statx.
15198         doc: Mention the ISO C11 multithreading header and functions.
15199         doc: Mention getcpu.
15200         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
15201         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
15202         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
15203         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
15204         doc: Some glibc functions also exist on Solaris 11.
15205         doc: Some glibc functions also exist on Solaris 11.4.
15206         doc: Some glibc functions also exist on FreeBSD.
15207         doc: Some glibc functions also exist on BeOS.
15208         doc: Some glibc functions also exist on Haiku.
15209         doc: Mark functions which exist only on Linux.
15210         doc: Mark functions which exist only on Linux and illumos.
15212 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
15214         copy-file: fix typo
15215         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
15217         copy-file-range: simplify into a stub
15218         Based on a comment by Florian Weimer in:
15219         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
15220         It turns out that Emacs (which will use this module) won’t need an
15221         emulation and I suspect other programs won’t either, because these
15222         programs will need to fall back on read+write anyway.  Perhaps I
15223         am wrong and other programs will be able to use an emulation; if
15224         so, this patch can be reverted.
15225         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
15226         Just call it copy_file_range.
15227         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
15228         Check via AC_LINK_IFELSE.
15229         * modules/copy-file-range (Depends-on): Remove modules no longer used.
15231 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
15233         copy-file: prefer copy_file_range
15234         * lib/copy-file.c: Do not include xalloc.h.
15235         (qcopy_file_preserving): Allocate a buffer only if
15236         copy_file_range does not suffice.  If the allocation fails
15237         don't give up; just use a small stack-based buffer.
15238         Prefer copy_file_range if it works.
15239         * modules/copy-file (Depends-on): Add copy-file-range.
15240         Remove xalloc.
15242         copy-file-range: new module
15243         * MODULES.html.sh: Add copy-file-range.
15244         * lib/copy-file-range.c, m4/copy-file-range.m4:
15245         * modules/copy-file-range: New files.
15246         * lib/unistd.in.h (copy_file_range): Declare.
15247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
15248         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
15249         * modules/unistd (unistd.h): Substitute them.
15251 2019-05-28  Bruno Haible  <bruno@clisp.org>
15253         binary-io: Attempted use of O_BINARY on consoles no longer fails.
15254         Reported by KO Myung-Hun <komh78@gmail.com> in
15255         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
15256         * lib/binary-io.h (__gl_setmode_check): Remove function.
15257         (set_binary_mode): Declare as notinline on DJGPP and EMX.
15258         * lib/binary-io.c (__gl_setmode_check): Remove function.
15259         (set_binary_mode): Define here on DJGPP and EMX. Inline
15260         __gl_setmode_check. In case of a tty, don't return an error code.
15262 2019-05-28  James Youngman  <jay@gnu.org>
15264         dirent-safer: Make opendir_safer usable from C++.
15265         * lib/dirent-safer.h: use extern "C".
15267 2019-05-28  James Youngman  <jay@gnu.org>
15269         canonicalize: Make canonicalize_filename_mode usable from C++.
15270         * lib/canonicalize.h: use extern "C".
15272 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
15274         prefix-gnulib-mk: Fix CPPFLAGS migration.
15275         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
15276         _a part of the library name.
15278 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15280         flexmember: update comments again
15281         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
15283         flexmember: update comment
15284         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
15286 2019-05-20  Bruno Haible  <bruno@clisp.org>
15288         setlocale: Improve fallback on macOS.
15289         * lib/setlocale.c (search): Optimize away a redundant strcmp()
15290         invocation.
15291         (locales_with_principal_territory): New array.
15292         (langcmp, get_main_locale_with_same_language): New functions.
15293         (locales_with_principal_language): New array.
15294         (terrcmp, get_main_locale_with_same_territory): New functions.
15295         (rpl_setlocale): When setlocale_single failed, try again with a locale
15296         that is more likely to exist. Don't warn if the environment variable
15297         SETLOCALE_VERBOSE is not set.
15299 2019-05-19  Bruno Haible  <bruno@clisp.org>
15301         localename: Fix default on macOS.
15302         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
15303         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
15304         (gl_locale_name_environ, gl_locale_name_default): Remove code for
15305         HAVE_CFLOCALECOPYCURRENT.
15306         * lib/localename.h (gl_locale_name_default): Update.
15308 2019-05-19  Karl Berry  <karl@freefriends.org>
15310         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
15311         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
15312         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
15314 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
15316         maintainer-makefile: catch uses of $< in non-implicit rules
15317         * top/maint.mk (sc_prohibit_magic_number_exit): New.
15319 2019-05-18  Bruno Haible  <bruno@clisp.org>
15321         threadlib: Provide an easy way to avoid mingw's winpthreads library.
15322         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
15323         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
15324         gl_use_threads accordingly.
15326 2019-05-18  Bruno Haible  <bruno@clisp.org>
15328         pthread_sigmask: Fix compilation error with --enable-threads=windows.
15329         Reported by Tim Rühsen in
15330         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
15331         and Michele Locati in
15332         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
15333         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
15334         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
15335         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
15336         in use and regardless which threads API is chosen.
15338 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15340         close-stream, closein, closeout: simplify
15341         I noticed this opportunity for simplification while drafting a
15342         new, related module that I haven’t had time to finish yet.
15343         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
15344         * modules/close-stream (Files): Remove m4/close-stream.m4.
15345         (configure.ac): Omit gl_CLOSE_STREAM.
15346         * modules/closein (Files): Remove m4/closein.m4
15347         (configure.ac): Omit gl_CLOSEIN.
15348         * modules/closeout (Files): Remove m4/closeout.m4.
15349         (configure.ac): Omit gl_CLOSEOUT.
15351 2019-05-12  Bruno Haible  <bruno@clisp.org>
15353         libtool-next-version: New program.
15354         * build-aux/libtool-next-version: New file.
15356 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
15357             Bruno Haible  <bruno@clisp.org>
15359         version-etc: Ease translation.
15360         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
15361         URLs and formatting newlines out of translatable string.
15363 2019-05-11  Bruno Haible  <bruno@clisp.org>
15365         gnupload: Explain how to create symlinks.
15366         * build-aux/gnupload (usage): Add an example that creates symlinks.
15368 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15370         fpucw: port to gcc -pedantic
15371         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
15372         Use __extension__ if using ({ ... }).
15374         crypto/af_alg: port to strict C compilers
15375         * lib/af_alg.c: Include af_alg.h regardless, so that the
15376         compilation unit is nonempty.
15378 2019-05-10  Bruno Haible  <bruno@clisp.org>
15380         base64: Avoid false positive warning from Coverity.
15381         Reported by Kamil Dudka <kdudka@redhat.com>.
15382         Idea by Paul Eggert.
15383         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
15384         '& 0x3f' to the array index expressions. This convinces Coverity that
15385         there is no out-of-bounds array reference, regardless of the input.
15387 2019-05-09  Bruno Haible  <bruno@clisp.org>
15389         gettext: Update to gettext 0.20.
15390         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
15391         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
15392         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
15393         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
15394         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
15395         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
15396         (configure.ac): Request infrastructure compatible with gettext 0.20.
15397         * m4/glibc2.m4: Remove file.
15398         * m4/intdiv0.m4: Remove file.
15399         * m4/intl.m4: Remove file.
15400         * m4/intldir.m4: Remove file.
15401         * m4/intmax.m4: Remove file.
15402         * m4/printf-posix.m4: Remove file.
15403         * m4/uintmax_t.m4: Remove file.
15404         * m4/gettext.m4: Update from gettext 0.20.
15405         * m4/po.m4: Likewise.
15407 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15409         verify: remove verify_true
15410         * NEWS: Mention this.
15411         * lib/verify.h (verify_true): Remove.
15412         * tests/test-verify.c (item): Test verify_expr, not verify_true.
15414         Support C2X and C++17 static_assert
15415         C2X and C++17 finally added support for a simple, single-argument
15416         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
15417         doing back in 2005.  Implement static_assert on older platforms.
15418         The only remaining advantage of ‘verify’ is a shorter name.
15419         * doc/posix-headers/assert.texi (assert.h):
15420         * doc/verify.texi (Compile-time Assertions):
15421         Modernize for C2X and C++17.
15422         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
15423         New macros.
15424         (_GL_HAVE__STATIC_ASSERT): Remove.
15425         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
15426         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
15427         string.  All callers changed.
15428         (_GL_VERIFY): Require 3 or more args, of which only the first 2
15429         are used.  All callers changed.
15430         (_Static_assert): Allow either 1 or 2 args, and define if
15431         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
15432         !_GL_HAVE__STATIC_ASSERT.
15433         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
15434         of defining if !_GL_HAVE_STATIC_ASSERT.
15435         (verify_expr, verify): Don’t bother trying to copy the expression
15436         into the diagnostic, since 1-argument static_assert doesn’t.
15437         (verify): Prefer 1-argument _Static_assert if it works.
15438         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
15440 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15442         Fix _GL_HAVE__STATIC_ASSERT typo
15443         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
15444         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
15446 2019-05-05  Bruno Haible  <bruno@clisp.org>
15448         wcwidth: Ensure width 1, not 2, for ambiguous characters.
15449         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
15450         via Akim Demaille <akim.demaille@gmail.com>.
15451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
15452         en_US.UTF-8 locale, since that is more likely to be present than an
15453         fr_FR.UTF-8 locale.
15454         * tests/test-wcwidth.c (main): Check the width of U+2202.
15455         * doc/posix-functions/wcwidth.texi: Mention the issue.
15457 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15459         Port manywarnings to GCC 9
15460         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
15461         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
15462         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
15463         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
15464         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
15465         --help=warnings output.
15466         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
15467         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
15468         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
15470 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
15472         Sync lib/mktime-internal.h from glibc
15473         * config/srclist.txt: Add entry for lib/mktime-internal.h.
15474         * lib/mktime-internal.h: Autoupdate.
15476 2019-04-28  Bruno Haible  <bruno@clisp.org>
15478         tls tests: Prevent that the test takes too long.
15479         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
15480         (main): Let the test fail if it takes more than 10 minutes.
15481         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
15483 2019-04-27  Bruno Haible  <bruno@clisp.org>
15485         lock tests: Prevent that the test takes too long.
15486         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
15487         (main): Let the test fail if it takes more than 10 minutes.
15488         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
15490 2019-04-27  Bruno Haible  <bruno@clisp.org>
15492         localename: Fix crash on mingw (regression from 2018-11-23).
15493         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
15494         locale name that is null.
15496 2019-04-27  Bruno Haible  <bruno@clisp.org>
15498         Fix gcc warnings on 64-bit mode mingw.
15499         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
15500         * lib/gl_array_list.c: Likewise.
15501         * lib/gl_array_map.c: Likewise.
15502         * lib/gl_array_set.c: Likewise.
15503         * lib/gl_carray_list.c: Likewise.
15504         * lib/gl_sublist.c: Likewise.
15505         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
15506         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
15507         * lib/gl_hash_map.c (uintptr_t): Likewise.
15508         * lib/gl_hash_set.c (uintptr_t): Likewise.
15509         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
15510         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
15511         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
15512         * lib/iconv.c (uintptr_t): Likewise.
15513         * lib/iconv_close.c (uintptr_t): Likewise.
15514         * tests/test-lock.c: Include <stdint.h>.
15515         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
15516         'long'.
15517         * modules/clean-temp (Depends-on): Add stdint.
15518         * modules/array-list (Depends-on): Likewise.
15519         * modules/array-map (Depends-on): Likewise.
15520         * modules/array-set (Depends-on): Likewise.
15521         * modules/carray-list (Depends-on): Likewise.
15522         * modules/sublist (Depends-on): Likewise.
15523         * modules/lock-tests (Depends-on): Likewise.
15525 2019-04-27  Bruno Haible  <bruno@clisp.org>
15527         error: Tweak indentation.
15528         * lib/error.c: Correct indentation.
15530 2019-04-27  Bruno Haible  <bruno@clisp.org>
15532         term-style-control: Fix gcc warning on mingw.
15533         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
15534         of i.
15536 2019-04-26  Bruno Haible  <bruno@clisp.org>
15538         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
15539         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
15541 2019-04-26  Bruno Haible  <bruno@clisp.org>
15543         relocatable-prog: Fix gcc warning on mingw.
15544         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
15545         on EMX.
15547 2019-04-02  Bruno Haible  <bruno@clisp.org>
15549         gitsub.sh: New file.
15550         * top/gitsub.sh: New file.
15552 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
15554         argmatch: use void* for raw memory pointers
15555         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
15556         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
15557         to "values", keep char* for strings.
15559 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
15561         prefix-gnulib-mk: fix the support for gnulib-po
15562         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
15563         Don't touch HAVE_* variables.
15564         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
15566 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
15568         di-set: allow free with 'ino_map' being NULL.
15569         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
15570         is NULL.  Bug introduced in commit 3703dbbe88dd.
15571         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
15572         as a test.
15574 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
15576         * lib/str-two-way.h: Fix comment typo.
15578 2019-04-13  Bruno Haible  <bruno@clisp.org>
15580         x-to-1: Restore ability to use original calling convention.
15581         * build-aux/x-to-1.in: Add comments. Accept the original form of
15582         HELP2MAN argument as well as the form expected since 2012-12-12.
15584 2019-04-13  Bruno Haible  <bruno@clisp.org>
15586         x-to-1: Avoid failure due to missing perl modules.
15587         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
15588         needs are installed.
15590 2019-04-13  Bruno Haible  <bruno@clisp.org>
15592         openmp-init: New module.
15593         * modules/openmp-init: New file.
15594         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
15595         the changes from 2019-04-09.
15597 2019-04-12  Bruno Haible  <bruno@clisp.org>
15599         signbit: Fix compilation error when gnulib's math.h exists twice.
15600         * lib/math.in.h (GNULIB_defined_signbit): New macro.
15602 2019-04-12  Bruno Haible  <bruno@clisp.org>
15604         openmp: Fix compilation error on platforms without OpenMP.
15605         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
15607 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
15609         mountlist: make parsing /proc/self/mountinfo more robust
15610         Cater for the following issues with mountinfo parsing (the first
15611         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
15612         in <https://bugs.gnu.org/35137>).
15613         1. The fields source, target, mntroot and fstype may contain characters
15614         like '\r'; sscanf(3) fails to read such values with the %s format
15615         specifier because it would stop at such characters.
15616         Example: "mount -t tmpfs tmpfs /foo^Mbar".
15617         The only true separator in that file is the ' ' character.
15618         2. The source field may be an empty string, which happens e.g. with
15619         "mount -t tmpfs '' /target".
15620         3. The fstype field may contain mangled characters as well which need
15621         unescaping.
15622         * lib/mountlist.c (terminate_at_blank): Add utility function.
15623         (read_file_system_list): In the block trying to read the mountinfo file,
15624         avoid using sscanf(3) with %s format; instead, parse the above fields
15625         separated by spaces one by one.
15626         This also handles the case when the source field is an empty string.
15627         Unescape the fstype field.
15629 2019-04-09  Bruno Haible  <bruno@clisp.org>
15631         openmp: Add workaround for 32-bit programs on AIX.
15632         * lib/omp.in.h: New file.
15633         * lib/omp-init.c: New file, based on lib/nproc.c.
15634         * m4/omp_h.m4: New file.
15635         * modules/openmp (Files): Add them.
15636         (Depends-on): Add include_next, c-ctype, setenv.
15637         (configure.ac): Invoke gl_OMP_H.
15638         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
15639         (Include): Mention <omp.h>.
15641 2019-04-09  Bruno Haible  <bruno@clisp.org>
15643         nproc: Fix return value for privileged processes.
15644         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
15645         getpid().
15647 2019-04-07  Bruno Haible  <bruno@clisp.org>
15649         Add copyright notices in several files.
15650         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
15651         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
15652         * lib/libunistring.valgrind: Likewise.
15653         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
15654         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
15655         * lib/memchr.valgrind: Likewise.
15656         * lib/memchr2.valgrind: Likewise.
15657         * lib/rawmemchr.valgrind: Likewise.
15658         * lib/relocatable.valgrind: Likewise.
15659         * lib/strchrnul.valgrind: Likewise.
15661 2019-03-25  Bruno Haible  <bruno@clisp.org>
15663         term-style-control tests: Fix link error.
15664         Reported by Tom G. Christensen in
15665         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
15666         * modules/term-style-control-tests (Makefile.am): Link
15667         test-term-style-control-hello and test-term-style-control-yes against
15668         LIBINTL.
15670 2019-03-24  Bruno Haible  <bruno@clisp.org>
15672         term-style-control: Add tests.
15673         * tests/test-term-style-control-hello.c: New file.
15674         * tests/test-term-style-control-yes.c: New file.
15675         * modules/term-style-control-tests: New file.
15677         term-style-control: New module.
15678         * lib/term-style-control.h: New file, based on libtextstyle's
15679         term-ostream.oo.h and term-ostream.oo.c.
15680         * lib/term-style-control.c: New file, based on libtextstyle's
15681         term-ostream.oo.c.
15682         * modules/term-style-control: New file.
15684 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15686         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
15687         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
15688         C++98 appears to be supported by Clang, but not by GCC nor ICC.
15690 2019-03-23  Bruno Haible  <bruno@clisp.org>
15692         Support cross-compilation to musl libc.
15693         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
15694         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
15695         musl libc.
15696         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15697         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
15698         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15699         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15700         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15701         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
15702         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15703         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15704         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15705         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15706         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
15707         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
15708         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15709         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15710         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15711         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15712         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15713         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15714         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
15715         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15716         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15717         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15718         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
15719         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15720         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
15721         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15722         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15723         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15724         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
15725         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15726         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15727         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15728         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
15729         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15730         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15731         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
15732         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15733         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15734         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15735         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15736         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15737         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
15738         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15739         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15740         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15741         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15742         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15743         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
15744         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
15745         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
15746         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
15747         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
15748         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15749         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
15750         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15751         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
15752         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15753         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15754         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15755         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
15756         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15757         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15758         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15759         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
15760         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15761         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15762         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15763         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
15764         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15765         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
15766         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15767         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15768         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15769         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15770         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
15771         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15772         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15775 2019-03-23  Bruno Haible  <bruno@clisp.org>
15777         posix_spawn_file_actions_*: Document musl libc bugs.
15778         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15779         the bug.
15780         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
15781         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
15782         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
15783         cross-compiling to a musl system, guess no.
15784         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
15785         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
15787 2019-03-23  Bruno Haible  <bruno@clisp.org>
15789         futimens: Document musl libc bug.
15790         * doc/posix-functions/futimens.texi: Mention the bug.
15791         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
15792         cross-compiling, guess no on glibc and musl systems.
15794 2019-03-23  Bruno Haible  <bruno@clisp.org>
15796         Clarify that cross-compilation guesses are guesses.
15797         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
15798         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
15799         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
15800         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
15801         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
15802         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
15803         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
15804         gl_cv_glob_lists_symlinks.
15805         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
15806         'guessing ' to ac_cv_func_malloc_0_nonnull.
15807         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
15808         'guessing ' to ac_cv_func_realloc_0_nonnull.
15809         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
15810         'guessing ' to gl_cv_func_poll.
15811         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
15812         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
15813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
15815 2019-03-23  Bruno Haible  <bruno@clisp.org>
15817         strtold: Fix typo.
15818         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
15820 2019-03-23  Bruno Haible  <bruno@clisp.org>
15822         noreturn: In C++ mode with clang, use _Noreturn as fallback.
15823         Reported by Akim Demaille.
15824         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
15825         [[noreturn]] would not work, use _Noreturn instead.
15827 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15829         libtextstyle-optional: Fix compiler warnings.
15830         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
15831         as unused.
15833 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15835         bitset: fix memory leaks
15836         Reported by Bruno Haible.
15837         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
15838         * lib/bitset/vector.c (vbitset_free): New.
15839         (vbitset_vtable): Use it.
15841 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15843         bitset: minor changes
15844         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
15845         * lib/bitset/table.c: Formatting changes.
15846         Remove useless braces.
15847         Prefer using else in cascades of if/else-if with returns.
15848         * lib/bitset/vector.c: Reduce scopes.
15850 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15852         bitset: expose bitset_resize
15853         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
15854         * tests/test-bitset.c (check_attributes): Check bitset_resize.
15855         (main): Use a variable bitset as reference, since fixed does not support resize.
15857 2019-03-19  Bruno Haible  <bruno@clisp.org>
15859         doc: Document the 'stdnoreturn' and 'noreturn' modules.
15860         Reported by Akim Demaille.
15861         * doc/noreturn.texi: New file.
15862         * doc/gnulib.texi: Include it.
15864 2019-03-19  Bruno Haible  <bruno@clisp.org>
15866         doc: Document how to use 'static inline'.
15867         * doc/static-inline.texi: New file.
15868         * doc/gnulib.texi: Include it.
15870 2019-03-19  Bruno Haible  <bruno@clisp.org>
15872         libtextstyle-optional: Add tests.
15873         * tests/test-libtextstyle.c: New file, based on libtextstyle's
15874         adhoc-tests/hello.c.
15875         * tests/test-libtextstyle-default.css: New file, copied from
15876         libtextstyle's adhoc-tests/hello-default.css.
15877         * modules/libtextstyle-optional-tests: New file.
15879         libtextstyle-optional: New module.
15880         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
15881         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
15882         * modules/libtextstyle-optional: New file.
15884 2019-03-19  Bruno Haible  <bruno@clisp.org>
15886         c-stack: Make signal handlers more reliable.
15887         * lib/c-stack.c (progname): New variable.
15888         (die): Use it.
15889         (c_stack_action): Initialize it.
15890         (segv_handler): Save and restore errno.
15892 2019-03-19  Bruno Haible  <bruno@clisp.org>
15894         Help making signal handlers more reliable.
15895         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
15896         _GL_ASYNC_SAFE into config.h.
15897         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
15898         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
15899         argument.
15900         * lib/fatal-signal.c (action_t, uninstall_handlers,
15901         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
15902         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
15903         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
15904         _GL_ASYNC_SAFE.
15905         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
15906         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
15908 2019-03-18  Bruno Haible  <bruno@clisp.org>
15910         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
15911         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
15912         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
15914 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15916         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
15917         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
15918         GCC 4.8.
15920 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
15922         fts: minor simplification
15923         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
15925 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15927         bitset, timevar: Depend on c99.
15928         Reported by Bruno Haible.
15929         * modules/bitset, modules/timevar (Depends-on): Add c99.
15931 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15933         bitset: a bit (...) more tests
15934         * tests/test-bitset.c (check_attributes): Check zero and ones.
15936 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15938         bitset: fix overflows.
15939         Reported by Bruno Haible.
15940         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
15941         * lib/bitset/table.c (tbitset_test): last_bit is the position of
15942         the bit in the array of bitset_word, so be sure to take its modulo
15943         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
15944         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
15946 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
15948         bitset: style changes.
15949         * lib/bitset/table.c: Use NULL, not 0, for pointers.
15950         Formatting changes.
15951         (tbitset_list): Reduce scopes.
15953 2019-03-16  Bruno Haible  <bruno@clisp.org>
15955         fatal-signal: Pass the signal number to the action.
15956         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
15957         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
15958         (fatal_signal_handler): Pass the signal number to the action.
15959         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
15960         signal number as parameter.
15961         (create_temp_dir): Update.
15962         * lib/wait-process.c (cleanup_slaves_action): New function.
15963         (register_slave_subprocess): Update at_fatal_signal invocation.
15964         * NEWS: Mention the change.
15966 2019-03-16  Bruno Haible  <bruno@clisp.org>
15968         fatal-signal: Add function that lists the fatal signals.
15969         * lib/fatal-signal.h (get_fatal_signals): New declaration.
15970         * lib/fatal-signal.c (get_fatal_signals): New function.
15972 2019-03-14  Bruno Haible  <bruno@clisp.org>
15974         isatty: Make it return true in Cygwin consoles on native Windows.
15975         * lib/isatty.c: Include <string.h>.
15976         (GetProcAddress): New macro.
15977         (GetNamedPipeClientProcessIdFuncType): New type.
15978         (GetNamedPipeClientProcessIdFunc): New variable.
15979         (QueryFullProcessImageNameFuncType): New type.
15980         (QueryFullProcessImageNameFunc): New variable.
15981         (initialized): New variable.
15982         (initialize): New function.
15983         (IsCygwinConsoleHandle): New function.
15984         (isatty): Invoke it.
15985         * doc/posix-functions/isatty.texi: Mention the issue.
15987 2019-03-14  Bruno Haible  <bruno@clisp.org>
15989         all: Update URLs to msdn.microsoft.com.
15990         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
15991         was moved to docs.microsoft.com.
15993 2019-03-13  Bruno Haible  <bruno@clisp.org>
15995         gnulib-tool: Clarify the coding style.
15996         Suggested by Pavel Raiskup <praiskup@redhat.com>.
15997         * gnulib-tool: Add comment about coding style.
15999 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
16001         strtod: fix clash with strtold
16002         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
16003         * lib/strtod.c (compute_minus_zero, minus_zero):
16004         Simplify by remving the macro / external variable,
16005         and having just a function.  User changed.  This avoids
16006         the need for an external variable that might clash.
16008 2019-03-10  Bruno Haible  <bruno@clisp.org>
16010         alloca-opt: Fix conflict mingw's new <alloca.h> file.
16011         Reported by Eli Zaretskii <eliz@gnu.org>.
16012         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
16013         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
16014         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
16016 2019-03-10  Bruno Haible  <bruno@clisp.org>
16018         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
16019         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
16020         is in use.
16021         * tests/test-printf-posix2.c: Likewise.
16023 2019-03-10  Bruno Haible  <bruno@clisp.org>
16025         uninorm tests: Free allocated memory.
16026         * tests/uninorm/test-u32-normalize-big.h
16027         (struct normalization_test_file): Remove 'const' from allocated member.
16028         (free_normalization_test_file): New declaration.
16029         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
16030         memory.
16031         (free_normalization_test_file): New function.
16032         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
16033         'struct normalization_test_file' contents.
16034         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
16035         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
16036         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
16038 2019-03-10  Bruno Haible  <bruno@clisp.org>
16040         di-set: Fix memory leak.
16041         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
16042         not free().
16044 2019-03-10  Bruno Haible  <bruno@clisp.org>
16046         tests: Free allocated memory.
16047         Reported by <deltatau@protonmail.com> via Assaf Gordon.
16048         * tests/test-astrxfrm.c (main): Free allocated memory.
16049         * tests/test-bitset.c (compare, check_attributes): Free allocated
16050         bitsets.
16051         * tests/test-filenamecat.c (main): Free allocated memory.
16052         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
16053         * tests/test-freadptr.c (main): Likewise.
16054         * tests/test-freadptr2.c (main): Free allocated memory.
16055         * tests/test-freadseek.c (main): Likewise.
16056         * tests/test-gc-arcfour.c (main): Close allocated context.
16057         * tests/test-gc-arctwo.c (main): Likewise.
16058         * tests/test-gc-des.c (main): Close all allocated contexts.
16059         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
16060         * tests/test-pipe-filter-ii1.c (main): Likewise.
16061         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
16062         allocated file actions.
16063         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
16064         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
16065         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
16066         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
16067         * tests/test-strfmon_l.c (main): Free allocated locales.
16068         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
16069         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
16070         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16071         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
16072         * tests/unistr/test-chr.h (main): Free input32.
16073         * tests/unistr/test-strchr.h (test_strchr): Likewise.
16075 2019-03-10  Bruno Haible  <bruno@clisp.org>
16077         tests: Prepare for using valgrind.
16078         * tests/*.sh: Invoke all test programs through ${CHECKER}.
16079         * tests/*/*.sh: Likewise.
16080         * tests/test-freadptr.c (main): Update accordingly.
16081         * tests/test-freadseek.c (main): Likewise.
16083 2019-03-09  Bruno Haible  <bruno@clisp.org>
16085         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
16086         * lib/get-rusage-as.c (get_rusage_as): When compiled by
16087         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
16088         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
16089         before exiting.
16091 2019-03-09  Jim Meyering  <meyering@fb.com>
16093         test-userspec.c: don't print NULL
16094         * tests/test-userspec.c (main): A test release of gcc,
16095         9.0.1 20190310, warned that this test would attempt to
16096         print a NULL pointer via a %s printf format.  Fix that
16097         and remove the unnecessary preceding "!diag" conjunct.
16098         Also add a comment.
16100 2019-03-03  Bruno Haible  <bruno@clisp.org>
16102         getloadavg: Write NULL for the null pointer.
16103         Reported by Michal Privoznik <mprivozn@redhat.com>.
16104         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
16106 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
16108         alloca, tsearch-tests: Write NULL for the null pointer.
16109         * lib/alloca.c (i00afunc): Write NULL instead of 0.
16110         * tests/test-tsearch.c (mangle_tree): Likewise.
16112 2019-03-09  Bruno Haible  <bruno@clisp.org>
16114         strfmon_l: Fix -fsanitize=address finding.
16115         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
16116         <string.h>.
16117         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
16118         (directive_t, directives_t): New types.
16119         (fmon_parse): New function.
16120         (rpl_strfmon_l): Don't call va_arg more often than needed for the
16121         format string. Consume 'long double' arguments in places where the
16122         format string indicates so.
16123         * modules/strfmon_l (Depends-on): Add 'stdbool'.
16125 2019-03-09  Bruno Haible  <bruno@clisp.org>
16127         crypto/des: Fix undefined behaviour.
16128         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
16129         shift operations on 'int'.
16131 2019-03-09  Bruno Haible  <bruno@clisp.org>
16133         Fix undefined behaviour.
16134         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
16135         'unsigned int', to avoid shift operations on 'int'.
16136         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
16137         * tests/test-count-leading-zeros.c (main): Use a random number that has
16138         as many bits as TYPE, not only 2*15 or 2*31 bits.
16139         * tests/test-count-trailing-zeros.c (main): Likewise.
16140         * tests/test-count-one-bits.c (main): Likewise.
16141         * tests/test-memmem.c: Don't include "null-ptr.h".
16142         (main): Use zerosize_ptr() instead of null_ptr().
16143         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
16145 2019-03-08  Bruno Haible  <bruno@clisp.org>
16147         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
16148         Reported by Jeffrey Walton <noloader@gmail.com>.
16149         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
16150         invoke memset with a zero size.
16151         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
16152         Likewise.
16153         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
16154         Adjust accordingly.
16156 2019-03-08  Bruno Haible  <bruno@clisp.org>
16158         unistr/*, uniconv/*: Fix undefined behaviour.
16159         Reported by Jeffrey Walton <noloader@gmail.com>.
16160         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
16161         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
16162         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
16163         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
16165 2019-03-08  Bruno Haible  <bruno@clisp.org>
16167         unistr/u8-cmp: Fix undefined behaviour.
16168         Reported by Jeffrey Walton <noloader@gmail.com>.
16169         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
16171 2019-03-08  Bruno Haible  <bruno@clisp.org>
16173         unictype/numeric: Fix undefined behaviour.
16174         Reported by Jeffrey Walton <noloader@gmail.com>.
16175         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
16176         on shift overflow, caught by "gcc -fsanitize=undefined".
16177         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
16178         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
16179         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
16181 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
16183         git-version-gen: fix --version copyright year
16184         * build-aux/git-version-gen, build-aux/move-if-change (version):
16185         --version output copyright year is now taken from script year,
16186         so that it no longer needs to be updated by hand.
16188 2019-03-04  Bruno Haible  <bruno@clisp.org>
16190         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
16191         This approach supports relocatable installation of shared libraries
16192         which depend on other shared libraries from the same package.
16193         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
16194         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
16195         wrapper around the original LIBTOOL.
16196         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
16197         token '@loader_path' instead of '$ORIGIN'.
16198         * build-aux/libtool-reloc: New file.
16199         * modules/relocatable-prog (Files): Add it.
16200         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
16201         the recent changes. Document the need to set the *_LDFLAGS of libraries.
16202         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
16203         Makefile.am, not in configure.ac.
16205 2019-03-04  Bruno Haible  <bruno@clisp.org>
16207         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
16208         * build-aux/install-reloc: Revert change.
16209         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
16211 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16213         nstrftime: support the ‘+’ flag
16214         * lib/nstrftime.c (add, __strftime_internal):
16215         Add support for the ‘+’ flag introduced in POSIX.1-2017.
16216         (__strftime_internal): New arg ‘width’.  All uses changed.
16217         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
16219 2019-02-24  Bruno Haible  <bruno@clisp.org>
16221         relocatable-prog: Improve verbose output.
16222         * build-aux/install-reloc (func_verbose): Escape characters that would
16223         be interpreted by the shell.
16225 2019-02-24  Bruno Haible  <bruno@clisp.org>
16227         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
16228         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
16229         "sys/stat.h".
16230         * lib/lstat.c: Likewise.
16231         * lib/fstat.c: Likewise.
16232         * lib/fstatat.c: Likewise.
16234 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
16236         long-options: add parse_gnu_standard_options_only
16237         Discussed in https://bugs.gnu.org/33468 .
16239         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
16240         (parse_gnu_standard_options_only): Add function to process
16241         the GNU default options --help and --version and fail for
16242         any other unknown long or short option. See
16243         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
16244         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
16245         * modules/long-options (depends-on): Add stdbool, exitfail.
16246         * top/maint.mk (sc_prohibit_long_options_without_use): Update
16247         syntax-check rule, add new function name.
16249 2019-02-23  Bruno Haible  <bruno@clisp.org>
16251         relocatable-prog: Update documentation.
16252         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
16253         the recent changes.
16255 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16257         nstrftime: tweak arg order
16258         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
16259         All callers changed.  Suggested by TAMUKI Shoichi in:
16260         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
16262 2019-02-23  Bruno Haible  <bruno@clisp.org>
16264         relocatable-prog: Use wrapper-free installation also on Mac OS X.
16265         Reported by Paul Smith <psmith@gnu.org>.
16266         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
16267         (func_relativize): New function, from gnulib-tool.
16268         Handle mode 'macosx' through invocations of 'otool' and
16269         'install_name_tool'.
16270         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
16271         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
16272         'install-reloc' invocation with mode 'macosx'.
16274 2019-02-23  Bruno Haible  <bruno@clisp.org>
16276         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
16277         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
16278         Hurd with glibc >= 2.27.
16280 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16282         nstrftime: merge glibc strftime changes
16283         This incorporates:
16284         2019-02-11 Fix a few whitespace arrangement inconsistencies
16285         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
16286         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
16287         2019-01-11 strftime: use the "L_" macro with character literals
16288         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
16289         callers changed.  Default width of %Ey is now 2.  This is needed
16290         for proper handling of Japanese dates starting on 2019-05-01.
16292 2019-02-19  Bruno Haible  <bruno@clisp.org>
16294         relocatable-prog: Use $ORIGIN trick on more platforms.
16295         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
16296         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
16297         Solaris >= 10, Haiku. But don't use it on Android.
16298         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
16299         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
16301 2019-02-19  Bruno Haible  <bruno@clisp.org>
16303         progreloc: Speed up executable lookup on various platforms.
16304         * lib/progreloc.c: Include <errno.h>.
16305         (safe_read, full_read): New functions.
16306         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
16307         prefer the information from the /proc file system to a PATH search.
16309 2019-02-19  Bruno Haible  <bruno@clisp.org>
16311         progreloc: Simplify code for Android.
16312         * lib/progreloc.c (executable_fd): Don't define on Android.
16313         (maybe_executable, find_executable): Don't use executable_fd on Android.
16315 2019-02-15  Bruno Haible  <bruno@clisp.org>
16317         gnulib-tool: Support --import with just a few tests, not --with-tests.
16318         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
16319         'inctests' when generating files; use 'inctests' only for computing the
16320         transitive closure.
16322 2019-02-14  Bruno Haible  <bruno@clisp.org>
16324         gnulib-tool: Improve handling of multiple --local-dir options.
16325         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
16326         options work.
16327         * gnulib-tool (func_path_prepend): Remove function.
16328         (func_path_foreach): Make IFS handling more robust.
16329         (local_gnulib_path): Collect --local-dir values using func_path_append,
16330         not func_path_prepend.
16331         (func_determine_path_separator): Make IFS handling more robust.
16332         (func_lookup_file_cb): New function.
16333         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
16334         func_lookup_local_file. Apply the patches in the reverse order of their
16335         origin in $local_gnulib_path.
16336         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
16337         * NEWS: Mention that the first --local-dir option is the one with
16338         highest priority.
16340 2019-02-10  Bruno Haible  <bruno@clisp.org>
16342         libtextstyle: New module.
16343         * m4/libtextstyle.m4: New file.
16344         * modules/libtextstyle: New file.
16346 2019-02-05  Bruno Haible  <bruno@clisp.org>
16348         declared.sh: Fix bug with variables of pointer type.
16349         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
16350         before the symbol to be omitted if the preceding character is a '*'.
16352 2019-02-04  Bruno Haible  <bruno@clisp.org>
16354         Add script for running tests under valgrind.
16355         * build-aux/run-test: New file, from GNU libunistring.
16356         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
16357         as well.
16359 2019-02-04  Bruno Haible  <bruno@clisp.org>
16361         declared.sh: Fix --version output.
16362         * build-aux/declared.sh (func_version): Update package name.
16364 2019-02-03  Bruno Haible  <bruno@clisp.org>
16366         Add script for determining the set of symbols to export from a library.
16367         * build-aux/declared.sh: New file, from GNU libunistring.
16368         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
16369         Mention it.
16371 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16373         vla: add commentary about VLA_ELEMS
16374         * lib/vla.h (VLA_ELEMS): Add commentary,
16375         some inspired by Bruno Haible’s proposal in:
16376         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
16378         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
16379         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
16380         assume the C99 signatures for strtod and strtold.  Programs that
16381         require stricter adherence to C99 should also use the strtod and
16382         strtold modules as needed, and we no longer need the
16383         HAVE_C99_STRTOLD macro.
16384         * NEWS: Mention this.
16385         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
16386         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
16387         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
16388         (Files): Remove m4/c-strtod.m4.
16389         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
16390         exists.
16392 2019-02-02  Bruno Haible  <bruno@clisp.org>
16394         fma: Improve code style.
16395         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
16397 2019-02-02  Colin Watson  <cjwatson@debian.org>
16399         *-map tests: Fix compilation error.
16400         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
16401         * tests/test-hash_map.c: Likewise.
16402         * tests/test-linkedhash_map.c: Likewise.
16404 2019-01-31  Bruno Haible  <bruno@clisp.org>
16406         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
16407         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
16408         GNULIB_defined_strtold_function): New macros.
16409         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
16410         (STRTOD): Ignore HAVE_C99_STRTOLD.
16411         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
16412         deemed buggy. But do use it on platforms where uselocale exists and is
16413         usable.
16414         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
16415         deemed buggy. On platforms where uselocale exists and is usable, use
16416         uselocale and strtod/strtold.
16417         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
16418         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
16419         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
16420         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
16421         (Depends-on): Add strtod.
16422         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
16423         (Depends-on): Add strtold.
16425 2019-01-31  Bruno Haible  <bruno@clisp.org>
16427         strtod, strtold: Use the locale's decimal point.
16428         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
16429         (decimal_point_char): New function, copied from lib/vasnprintf.c.
16430         (parse_number): Add a radixchar argument. Use it instead of '.'.
16431         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
16432         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
16433         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
16434         * tests/test-strtod1.c: New file.
16435         * tests/test-strtod1.sh: New file.
16436         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
16437         locale-fr.m4 and its dependencies.
16438         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
16439         (Makefile.am): Arrange to compile test-strtod1.c and run
16440         test-strtod1.sh.
16441         * tests/test-strtold1.c: New file.
16442         * tests/test-strtold1.sh: New file.
16443         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
16444         locale-fr.m4 and its dependencies.
16445         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
16446         (Makefile.am): Arrange to compile test-strtold1.c and run
16447         test-strtold1.sh.
16449 2019-01-31  Bruno Haible  <bruno@clisp.org>
16451         strtod, strtold tests: Simplify tests.
16452         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
16453         * tests/test-strtold.c (main): Likewise.
16455 2019-01-31  Bruno Haible  <bruno@clisp.org>
16457         strtod, strtold: Avoid unnecessary rounding errors.
16458         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
16459         decimal to DOUBLE conversion.
16461 2019-01-31  Bruno Haible  <bruno@clisp.org>
16463         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
16464         * lib/strtod.c (STRTOD): When there is an extra character after the
16465         exponent marker 'p', reparse the number.
16466         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
16467         * doc/posix-functions/strtold.texi: Likewise.
16469 2019-01-29  Bruno Haible  <bruno@clisp.org>
16471         strtold: Add tests.
16472         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
16473         * modules/strtold-tests: New file.
16475 2019-01-29  Bruno Haible  <bruno@clisp.org>
16477         strtold: New module.
16478         * lib/stdlib.in.h (strtold): New declaration.
16479         * lib/strtold.c: New file.
16480         * lib/strtod.c: Consider USE_LONG_DOUBLE.
16481         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
16482         USE_LDEXP): New macros.
16483         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
16484         USE_LONG_DOUBLE.
16485         (underlying_strtod): Remove function. Replace with some macros.
16486         Re-add the code for a missing underlying function that was removed on
16487         2013-02-19.
16488         * m4/strtold.m4: New file.
16489         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
16490         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
16491         REPLACE_STRTOLD.
16492         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
16493         REPLACE_STRTOLD.
16494         * modules/strtold: New file.
16495         * doc/posix-functions/strtold.texi: Document the new module.
16497 2019-01-29  Bruno Haible  <bruno@clisp.org>
16499         strtod: Fix compilation error on IRIX 6.5.
16500         * modules/strtod (Depends-on): Add 'math'.
16502 2019-01-28  Bruno Haible  <bruno@clisp.org>
16504         Fix build error when building a shared libunistring on Android.
16505         * tests/uninorm/test-nfc.c (n): Don't define on Android.
16506         (main): Add 'volatile', to defeat a GCC optimization that would
16507         eliminate the reference.
16508         * tests/uninorm/test-nfd.c (n): Don't define on Android.
16509         (main): Add 'volatile', to defeat a GCC optimization that would
16510         eliminate the reference.
16511         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
16512         (main): Add 'volatile', to defeat a GCC optimization that would
16513         eliminate the reference.
16514         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
16515         (main): Add 'volatile', to defeat a GCC optimization that would
16516         eliminate the reference.
16518 2019-01-27  Bruno Haible  <bruno@clisp.org>
16520         Avoid build errors due to wrong references between modules.
16521         * lib/uninorm/canonical-decomposition.c: Include
16522         "uninorm/decomposition-table.h", not "decomposition-table.h".
16523         * lib/uninorm/decomposition.c: Likewise.
16524         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
16525         not "decompose-internal.h".
16526         * lib/uninorm/u16-normalize.c: Likewise.
16527         * lib/uninorm/u32-normalize.c: Likewise.
16528         * lib/uninorm/uninorm-filter.c: Likewise.
16529         * lib/uninorm/nfkc.c: Likewise.
16530         * lib/uninorm/nfkd.c: Likewise.
16531         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
16532         "caseprop.h".
16533         * lib/unicase/u8-ct-totitle.c: Likewise.
16534         * lib/unicase/u8-prefix-context.c: Likewise.
16535         * lib/unicase/u8-suffix-context.c: Likewise.
16536         * lib/unicase/u16-casemap.c: Likewise.
16537         * lib/unicase/u16-ct-totitle.c: Likewise.
16538         * lib/unicase/u16-prefix-context.c: Likewise.
16539         * lib/unicase/u16-suffix-context.c: Likewise.
16540         * lib/unicase/u32-casemap.c: Likewise.
16541         * lib/unicase/u32-ct-totitle.c: Likewise.
16542         * lib/unicase/u32-prefix-context.c: Likewise.
16543         * lib/unicase/u32-suffix-context.c: Likewise.
16544         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
16545         "unicasemap.h".
16546         * lib/unicase/u8-toupper.c: Likewise.
16547         * lib/unicase/u8-ct-tolower.c: Likewise.
16548         * lib/unicase/u8-ct-toupper.c: Likewise.
16549         * lib/unicase/u16-tolower.c: Likewise.
16550         * lib/unicase/u16-toupper.c: Likewise.
16551         * lib/unicase/u16-ct-tolower.c: Likewise.
16552         * lib/unicase/u16-ct-toupper.c: Likewise.
16553         * lib/unicase/u32-tolower.c: Likewise.
16554         * lib/unicase/u32-toupper.c: Likewise.
16555         * lib/unicase/u32-ct-tolower.c: Likewise.
16556         * lib/unicase/u32-ct-toupper.c: Likewise.
16557         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
16558         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
16559         * lib/unicase/u16-ct-casefold.c: Likewise.
16560         * lib/unicase/u32-ct-casefold.c: Likewise.
16562 2019-01-27  Bruno Haible  <bruno@clisp.org>
16564         gperf: Fix error when this module is required by some test module.
16565         * modules/gperf (Applicability): Set to 'all'.
16567 2019-01-27  Bruno Haible  <bruno@clisp.org>
16569         tmpfile: Add support for Android.
16570         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
16571         works.
16572         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
16573         Android.
16574         * modules/tmpfile (Depends-on): Add 'stdbool'.
16575         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
16576         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
16578 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
16580         bitsetv: allow free on NULL.
16581         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
16583 2019-01-27  Bruno Haible  <bruno@clisp.org>
16585         test-framework-sh: Improve maintainability.
16586         * tests/init.sh: Clarify what belongs together. Reorder definitions.
16588 2019-01-27  Bruno Haible  <bruno@clisp.org>
16590         tests: Don't assume that /tmp exists.
16591         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
16592         * tests/test-copy-acl-1.sh: Likewise.
16593         * tests/test-file-has-acl-1.sh: Likewise.
16594         * tests/test-copy-file-1.sh: Likewise.
16596 2019-01-27  Bruno Haible  <bruno@clisp.org>
16598         tests: Accommodate a shell that is not in /bin/sh.
16599         * tests/init.sh (setup_): Set srcdir and builddir.
16600         (BOURNE_SHELL): New variable.
16601         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
16602         * modules/file-has-acl-tests (Depends-on): Likewise.
16603         * modules/copy-file-tests (Depends-on): Likewise.
16604         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
16605         scripts through $BOURNE_SHELL.
16606         * tests/test-set-mode-acl-2.sh: Likewise.
16607         * tests/test-copy-acl-1.sh: Likewise.
16608         * tests/test-copy-acl-2.sh: Likewise.
16609         * tests/test-file-has-acl-1.sh: Likewise.
16610         * tests/test-file-has-acl-2.sh: Likewise.
16611         * tests/test-copy-file-1.sh: Likewise.
16612         * tests/test-copy-file-2.sh: Likewise.
16613         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
16614         invoker.
16615         * tests/test-copy-acl.sh (builddir): Likewise.
16616         * tests/test-file-has-acl.sh (builddir): Likewise.
16617         * tests/test-copy-file.sh (builddir): Likewise.
16618         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
16619         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
16620         * tests/test-vc-list-files-git.sh: Likewise.
16622 2019-01-27  Bruno Haible  <bruno@clisp.org>
16624         tests: Fix some "unused variable" warnings.
16625         * tests/test-fts.c (fts_dealloc): Remove unused variable.
16626         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
16627         * tests/test-striconveh.c (main): Move some variable into the
16628         '#if HAVE_ICONV'.
16629         * tests/test-striconveha.c (main): Likewise.
16630         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16631         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16632         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16633         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
16634         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16635         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
16636         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16637         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16638         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16639         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
16640         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
16641         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
16642         * tests/test-tsearch.c (main): Move some variable into the
16643         '#if HAVE_INITSTATE'.
16645 2019-01-27  Bruno Haible  <bruno@clisp.org>
16647         unigbrk/uc-grapheme-breaks: Fix build failure.
16648         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
16649         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
16651 2019-01-27  Bruno Haible  <bruno@clisp.org>
16653         mountlist: Merge two .m4 files.
16654         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
16655         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
16656         * m4/ls-mntd-fs.m4: Remove file.
16657         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
16659 2019-01-27  Bruno Haible  <bruno@clisp.org>
16661         tests: Enable Linux specific tests on Android.
16662         * tests/test-flock.c (main): Treat Android like Linux.
16663         * tests/test-openat-safer.c (main): Likewise.
16665 2019-01-27  Bruno Haible  <bruno@clisp.org>
16667         relocatable-prog: Use Linux code on Android.
16668         * lib/progreloc.c: Treat Android like Linux.
16670 2019-01-26  Bruno Haible  <bruno@clisp.org>
16672         getloadavg: Add support for Android.
16673         * lib/getloadavg.c: Treat Android like Linux.
16675 2019-01-26  Bruno Haible  <bruno@clisp.org>
16677         vma-iter: Add support for Android.
16678         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
16679         * lib/vma-iter.c: Treat Android like Linux.
16680         * lib/get-rusage-data.c (get_rusage_data): Likewise.
16682 2019-01-26  Bruno Haible  <bruno@clisp.org>
16684         fts: Optimize on Android.
16685         * lib/fts.c: Treat Android like Linux.
16687 2019-01-26  Bruno Haible  <bruno@clisp.org>
16689         fts: Add support for Android.
16690         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
16691         defined by this module and the ones in libc.
16692         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
16694 2019-01-26  Bruno Haible  <bruno@clisp.org>
16696         mountlist: Use Linux code on Android.
16697         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
16698         (unescape_tab, read_file_system_list): Enable Linux code on Android
16699         as well.
16700         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
16701         and endmntent.
16702         * modules/mountlist (Depends-on): Add 'getline'.
16704 2019-01-26  Bruno Haible  <bruno@clisp.org>
16706         localename tests: Fix test failure on Android.
16707         * modules/localename-tests (Depends-on): Add 'setlocale'.
16709 2019-01-26  Bruno Haible  <bruno@clisp.org>
16711         mountlist: Port better to Android.
16712         * lib/mountlist.c (MOUNTED): Redefine on Android.
16713         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
16714         Android.
16716 2019-01-26  Bruno Haible  <bruno@clisp.org>
16718         striconveh: Fix use of uninitialized iconv_t.
16719         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
16720         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
16721         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
16723 2019-01-26  Bruno Haible  <bruno@clisp.org>
16725         nonblocking-socket-tests: Fix test failure on Android 4.3.
16726         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
16727         also on Android.
16729 2019-01-26  Bruno Haible  <bruno@clisp.org>
16731         sh-filename: Add support for Android 4.3.
16732         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
16734 2019-01-26  Bruno Haible  <bruno@clisp.org>
16736         ptsname_r: Work around bug on Android 4.3.
16737         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
16738         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
16739         correct.
16740         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
16741         is defined, just fix the return value.
16742         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
16743         The behaviour of musl libc is nothing to be "fixed", since it is
16744         compliant with the next POSIX standard.
16746 2019-01-26  Bruno Haible  <bruno@clisp.org>
16748         ttyname_r: Work around bug on Android 4.3.
16749         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
16750         * lib/ttyname_r.c (ttyname_r): Implement for Android.
16751         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
16752         * doc/posix-functions/ttyname.texi: Likewise.
16754 2019-01-25  Bruno Haible  <bruno@clisp.org>
16756         getprogname: Port to Android 4.3.
16757         * lib/getprogname.c (getprogname): On Android, take only the last
16758         component of __progname.
16760 2019-01-25  Bruno Haible  <bruno@clisp.org>
16762         wcrtomb: Work around bug on Android 4.3.
16763         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
16764         the C locale.
16765         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
16766         which does not have the 'wctomb' function.
16767         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
16768         * tests/test-wcrtomb.c (main): Accept argument '5'.
16769         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
16771 2019-01-25  Bruno Haible  <bruno@clisp.org>
16773         setlocale: Work around bug on Android 4.3.
16774         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
16775         the "C" locale.
16776         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
16777         * doc/posix-functions/setlocale.texi: Mention the Android bug.
16779 2019-01-24  Bruno Haible  <bruno@clisp.org>
16781         memchr: Work around bug on Android <= 5.0.
16782         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
16783         * doc/posix-functions/memchr.texi: Mention the Android bug.
16785 2019-01-24  Bruno Haible  <bruno@clisp.org>
16787         random: Fix compilation error on Android 4.3.
16788         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
16789         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
16790         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
16791         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
16792         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
16794         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16795         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
16796         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16797         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
16798         REPLACE_INITSTATE, REPLACE_SETSTATE.
16799         * doc/posix-functions/random.texi: Correct the description of the
16800         situation on Android.
16801         * doc/posix-functions/srandom.texi: Likewise.
16802         * doc/posix-functions/rand.texi: Likewise.
16803         * doc/posix-functions/srand.texi: Likewise.
16805 2019-01-24  Bruno Haible  <bruno@clisp.org>
16807         mbtowc: Fix compilation error on Android 4.3.
16808         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
16809         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
16810         HAVE_MBTOWC.
16811         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
16812         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
16813         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
16814         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
16815         * doc/posix-functions/mbtowc.texi: Mention the change.
16817 2019-01-24  Bruno Haible  <bruno@clisp.org>
16819         fdatasync: Fix compilation error on Android 4.3.
16820         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
16821         test whether fdatasync() exists.
16823 2019-01-24  Bruno Haible  <bruno@clisp.org>
16825         unlinkat: Fix compilation error on Android 4.3.
16826         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
16827         also on Android.
16828         * doc/posix-functions/unlinkat.texi: Mention the issue.
16830 2019-01-24  Bruno Haible  <bruno@clisp.org>
16832         renameat: Fix compilation error on Android 4.3.
16833         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
16834         * doc/posix-functions/renameat.texi: Mention the issue.
16836 2019-01-24  Bruno Haible  <bruno@clisp.org>
16838         fchownat: Fix compilation error on Android 4.3.
16839         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
16840         use.
16841         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
16842         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
16843         * doc/posix-functions/fchownat.texi: Mention the issue.
16845 2019-01-23  Bruno Haible  <bruno@clisp.org>
16847         gnulib-tool: Support running testdirs on Android.
16848         * build-aux/test-driver.diff: New file.
16849         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
16850         build-aux/test-driver after running automake.
16852 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16854         relocatable-prog: avoid warnings from Automake
16855         * modules/relocatable-prog: Don't declare PHONY dependencies in
16856         Automake conditionals.
16858 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16860         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
16861         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
16863 2019-01-23  Bruno Haible  <bruno@clisp.org>
16865         threadlib: Revert commit from 2018-06-25. We now have a better fix.
16866         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
16867         preceding -Wl,--as-needed option. Don't check whether the linker
16868         supports --as-needed/--no-as-needed and --push-state/--pop-state.
16870 2019-01-23  Bruno Haible  <bruno@clisp.org>
16872         thread: Force linking with -lpthread, even when --as-needed is in use.
16873         Reported by Richard W.M. Jones <rjones@redhat.com> in
16874         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
16875         * lib/glthread/thread.h (pthread_create): Don't declare weak.
16877 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
16878             Bruno Haible  <bruno@clisp.org>
16880         relocatable: avoid compiler warnings (-Wshadow)
16881         * lib/relocatable.c (compute_curr_prefix): Rename local variables
16882         to avoid name collisions with global variables.
16884 2019-01-22  Bruno Haible  <bruno@clisp.org>
16886         vasnprintf: Don't use %n on Android.
16887         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
16888         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
16889         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
16891 2019-01-22  Bruno Haible  <bruno@clisp.org>
16893         *printf: Support cross-compilation to Android.
16894         * m4/printf.m4: Add cross-compilation guesses for Android.
16896 2019-01-21  Bruno Haible  <bruno@clisp.org>
16898         diacrit: Mark deprecated.
16899         * modules/diacrit (Status, Notice): Mark as deprecated.
16900         * NEWS: Mention it.
16902 2019-01-20  Bruno Haible  <bruno@clisp.org>
16904         rintl: Override broken implementation on NetBSD.
16905         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
16906         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
16907         REPLACE_RINTL.
16908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
16909         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
16910         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
16911         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
16913 2019-01-20  Bruno Haible  <bruno@clisp.org>
16915         log10l: Work around inaccurate implementation on NetBSD.
16916         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
16917         * lib/log10l.c: Comment out too simplistic override.
16918         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
16920 2019-01-20  Bruno Haible  <bruno@clisp.org>
16922         logl: Work around inaccurate implementation on NetBSD.
16923         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
16924         * lib/logl.c: Comment out unused code.
16925         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
16927 2019-01-20  Bruno Haible  <bruno@clisp.org>
16929         expm1l: Work around inaccurate implementation on NetBSD.
16930         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
16931         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
16932         REPLACE_EXPM1L.
16933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
16934         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
16935         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
16936         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
16938 2019-01-20  Bruno Haible  <bruno@clisp.org>
16940         expl: Work around inaccurate implementation on NetBSD.
16941         * lib/math.in.h (expl): Test also REPLACE_EXPL.
16942         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
16943         REPLACE_EXPL.
16944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
16945         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
16946         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
16947         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
16949 2019-01-20  Bruno Haible  <bruno@clisp.org>
16951         exp2l: Work around inaccurate implementation on NetBSD.
16952         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
16953         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
16955 2019-01-20  Bruno Haible  <bruno@clisp.org>
16957         floor, floorl: Avoid autoconf warnings.
16958         * modules/floor (configure.ac): Use AC_REQUIRE.
16959         * modules/floorl (configure.ac): Likewise.
16961 2019-01-20  Bruno Haible  <bruno@clisp.org>
16963         Defeat current GCC optimizations in math autoconf tests.
16964         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
16965         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16966         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16967         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16968         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16969         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16970         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16971         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16972         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16973         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16974         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16975         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16976         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16977         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16978         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16979         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16980         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
16981         * m4/log.m4 (gl_FUNC_LOG): Likewise.
16982         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16983         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
16984         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16985         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16986         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
16987         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16988         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
16989         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
16990         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16991         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16992         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16993         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16994         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16995         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16996         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16997         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16998         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16999         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17000         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17001         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17003 2019-01-19  Pádraig Brady  <P@draigBrady.com>
17005         gettext: support disabling use of VLAs
17006         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
17008 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
17010         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
17011         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
17013 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
17015         fcntl: Fix syntax error (regression from 2018-10-05).
17016         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
17018 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
17020         relocatable: improve documentation.
17021         * doc/relocatable-maint.texi (Supporting Relocation): For
17022         substitutions performed by config.status, we need more variables
17023         (for instance datarootdir defaults to '${prefix}/share' so we need
17024         prefix).
17026 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
17028         backup: update dependencies
17029         * modules/backup-rename (Depends-on): It now depends on opendirat
17030         instead of opendir.  It also uses stdint, and xalloc-oversized.
17031         But no longer dirfd.
17032         * modules/backupfile (Depends-on): Add xalloc-oversized.
17034 2019-01-13  Bruno Haible  <bruno@clisp.org>
17036         getcwd: Fix test failure when building on a Linux 9p file system.
17037         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
17038         EINVAL from mkdir like ENAMETOOLONG.
17039         * tests/test-getcwd.c (test_long_name): Likewise.
17041 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
17043         Fix typos found by codespell.
17044         * lib/*.[hc]: Fix typos in comments.
17045         * pygnulib/*.py: Fix typos in error messages and comments.
17047 2019-01-12  Bruno Haible  <bruno@clisp.org>
17049         doc: Fix documentation about container data types.
17050         Reported by Werner Lemberg <wl@gnu.org>.
17051         * doc/containers.texi (Container data types): Fix typo.
17053 2019-01-10  Bruno Haible  <bruno@clisp.org>
17055         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
17056         Reported by Reuben Thomas <rrt@sc3d.org>.
17057         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
17059 2019-01-06  Bruno Haible  <bruno@clisp.org>
17061         maintainer-makefile: Make the configure.ac section optional.
17062         * top/maint.mk (GREP, SED): Define if not defined.
17064 2019-01-06  Bruno Haible  <bruno@clisp.org>
17066         localename: Assume setlocale function.
17067         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
17068         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
17070 2019-01-06  Bruno Haible  <bruno@clisp.org>
17072         doc: Add documentation about container data types.
17073         * doc/containers.texi: New file.
17074         * doc/gnulib.texi (Particular Modules): Include it.
17076 2019-01-06  Bruno Haible  <bruno@clisp.org>
17078         doc: Update documentation about 'progname' module.
17079         * doc/progname.texi: Rename from doc/error.texi. Change node name and
17080         title. Rewrite.
17081         * doc/gnulib.texi (Particular Modules): Update.
17083 2019-01-06  Bruno Haible  <bruno@clisp.org>
17085         doc: Document the xstdopen and *-safer modules.
17086         * doc/xstdopen.texi: New file.
17087         * doc/gnulib.texi (Particular Modules): Include it.
17089 2019-01-06  Bruno Haible  <bruno@clisp.org>
17091         xstdopen: Add tests.
17092         * tests/test-xstdopen.c: New file.
17093         * tests/test-xstdopen.sh: New file.
17094         * modules/xstdopen-tests: New file.
17096         xstdopen: New module.
17097         * lib/xstdopen.h: New file.
17098         * lib/xstdopen.c: New file.
17099         * modules/xstdopen: New file.
17101 2019-01-06  Bruno Haible  <bruno@clisp.org>
17103         stdopen: Fix compilation error with IRIX cc.
17104         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
17106 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17108         xfreopen need not include stdio--.h
17109         * lib/xfreopen.c: Do not include stdio--.h.
17111         xfreopen need not depend on freopen-safer
17112         * modules/xfreopen (Depends-on):
17113         Depend on freopen, not freopen-safer.
17115         stdopen: modernize and simplify
17116         * lib/stdopen.c: Update copyright date
17117         Do not include sys/types.h; no longer needed these days.
17118         (stdopen): Use C99-style decl in loop.  Return int errno
17119         value, rather than just a bool.  Do not worry about fd mismatches,
17120         since the caller cares only if 0, 1, 2 are occupied.
17121         * lib/stdopen.h: No need to include <stdbool.h>.
17122         * m4/stdopen.m4: Remove.
17123         * modules/stdopen: New file.
17125         stdopen: copy from last use in coreutils
17126         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
17127         New files, taken from their last commit in coreutils
17128         2007-07-23T12:35:58Z!jim@meyering.net
17129         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
17131 2019-01-05  Bruno Haible  <bruno@clisp.org>
17133         argp: Don't pass an invalid argument to dgettext().
17134         Reported by He X <xw897002528@gmail.com>.
17135         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
17136         dgettext().
17138 2019-01-05  Bruno Haible  <bruno@clisp.org>
17140         argp: Don't pass an invalid argument to dgettext().
17141         Reported by He X <xw897002528@gmail.com>.
17142         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
17143         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
17144         dgettext().
17146 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17148         stdioext: port to newer 32-bit Android
17149         Problem reported by Tom Yan in:
17150         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
17151         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
17152         (fp_) [__ANDROID__]: Use it.
17154 2019-01-04  Bruno Haible  <bruno@clisp.org>
17156         lock: Fix link error with --enable-threads=pth.
17157         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
17158         Mark as weak.
17160 2019-01-04  Bruno Haible  <bruno@clisp.org>
17162         Fix link errors in unit tests.
17163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17164         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
17165         * modules/array-map-tests (Makefile.am): Link test-array_map against
17166         libintl.
17167         * modules/array-set-tests (Makefile.am): Link test-array_set against
17168         libintl.
17169         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
17170         libintl.
17171         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
17172         libintl.
17173         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
17174         against libintl.
17175         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
17176         against libintl.
17178 2019-01-04  Bruno Haible  <bruno@clisp.org>
17180         Fix incorrect 'Link' sections.
17181         * modules/regex (Link): Mention the link requirement of module 'lock'.
17182         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
17184 2019-01-04  Bruno Haible  <bruno@clisp.org>
17186         Fix some 'Link' sections.
17187         * modules/c-stack (Link): Add link directive from the 'gettext-h'
17188         dependency.
17189         * modules/getaddrinfo (Link): Likewise.
17191 2019-01-04  Bruno Haible  <bruno@clisp.org>
17193         Remove redundant 'Link' sections.
17194         * modules/canon-host (Link): Remove section.
17195         * modules/timevar (Link): Likewise.
17197 2019-01-04  Bruno Haible  <bruno@clisp.org>
17199         Remove incorrect 'Link' sections.
17200         * modules/acl (Link): Remove section. Use combined 'Link' sections from
17201         the dependencies instead.
17202         * modules/crypto/md5 (Link): Likewise.
17203         * modules/crypto/sha1 (Link): Likewise.
17204         * modules/crypto/sha256 (Link): Likewise.
17205         * modules/crypto/sha512 (Link): Likewise.
17206         * modules/faccessat (Link): Likewise.
17207         * modules/fdutimensat (Link): Likewise.
17208         * modules/iconv_open-utf (Link): Likewise.
17209         * modules/propername (Link): Likewise.
17210         * modules/qacl (Link): Likewise.
17211         * modules/unicodeio (Link): Likewise.
17212         * modules/utimecmp (Link): Likewise.
17213         * modules/utimensat (Link): Likewise.
17214         * modules/xstriconv (Link): Likewise.
17215         * modules/xstriconveh (Link): Likewise.
17217 2019-01-04  Bruno Haible  <bruno@clisp.org>
17219         gnulib-tool: New option --extract-recursive-link-directive.
17220         * gnulib-tool (func_usage): Document the new options
17221         --extract-recursive-dependencies, --extract-recursive-link-directive.
17222         (func_verify_module): Document output variables.
17223         (func_get_dependencies_recursively): New function.
17224         (func_get_link_directive_recursively): New function.
17225         Use them to implement the new options
17226         --extract-recursive-dependencies, --extract-recursive-link-directive.
17227         * doc/gnulib-tool.texi (Link-time requirements): New section.
17229 2019-01-04  Bruno Haible  <bruno@clisp.org>
17231         Clarify meaning of 'Link' section in module description.
17232         * doc/gnulib.texi (Module description): Clarify the meaning of the
17233         'Link' section versus the one of the dependencies.
17234         * NEWS: Mention the change.
17236 2019-01-04  Bruno Haible  <bruno@clisp.org>
17238         pselect: Fix module description.
17239         * modules/pselect (Link): Put one link option per line.
17241 2019-01-04  Bruno Haible  <bruno@clisp.org>
17243         cosl: Fix module description.
17244         * modules/cosl (Link): Fix typo.
17245         * modules/mathl (configure.ac): Likewise.
17247 2019-01-04  Bruno Haible  <bruno@clisp.org>
17249         c-xvasprintf: Fix module dependencies.
17250         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
17252 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
17254         bootstrap: die when some submodules are not initialized
17255         * build-aux/bootstrap: Make sure all submodules are initialized.
17257 2019-01-04  Bruno Haible  <bruno@clisp.org>
17259         bitsetv: Fix module dependencies.
17260         * lib/bitsetv.c: Include xalloc.h.
17261         * modules/bitsetv (Depends-on): Add 'xalloc'.
17263 2019-01-04  Bruno Haible  <bruno@clisp.org>
17265         xmemdup0: Remove redundant code.
17266         * lib/xmemdup0.h (xalloc_die): Remove declaration.
17268 2019-01-04  Bruno Haible  <bruno@clisp.org>
17270         backupfile: Fix module dependencies.
17271         * modules/backupfile (Depends-on): Add 'xalloc'.
17273 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17275         bitset, crypto/gc: fix conflicts with Solaris 11
17276         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
17277         avoid clash with Solaris 11 <sys/bitset.h>.
17278         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
17279         with Solaris 11 <xorg/gc.h>.
17281 2019-01-04  Bruno Haible  <bruno@clisp.org>
17283         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
17284         Reported by Andy Fiddaman <andy@omniosce.org>.
17285         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
17287 2019-01-03  Eric Blake  <eblake@redhat.com>
17289         maintainer-makefile: fix typo in previous patch
17290         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
17291         of Roman's work.
17293 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
17295         maintainer-makefile: prefer $(GREP) over grep
17296         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
17297         defined.
17298         * top/maint.mk: Use it everywhere.
17300         maintainer-makefile: split long argument lines
17301         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
17302         it would be too long for exec limits on BSD.
17304 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17306         mkfifo: bring back HAVE_MKFIFO macro
17307         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
17308         Problem reported by Andrew Janke in:
17309         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
17311 2018-12-21  Bruno Haible  <bruno@clisp.org>
17313         Assume Autoconf >= 2.63.
17314         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
17315         versions < 2.60.
17317 2018-12-21  Bruno Haible  <bruno@clisp.org>
17319         memcmp: Mention the clang bug.
17320         * tests/test-memcmp.c: Add comment about a known test failure.
17321         * doc/posix-functions/memcmp.texi: Mention the clang bug.
17323 2018-12-20  Jim Meyering  <meyering@fb.com>
17325         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
17326         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
17327           echo '123-x'|LC_ALL=C grep -E '.\bx'
17328         The goal is to revert the first, but reverting it requires to restore
17329         the function deleted in the second. I ran this to restore the deleted
17330         function:
17331           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
17332             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
17333             | patch -R -p1
17334         * lib/dfa.c (charclass_context): Restore deleted function.
17335         Reverting the primary commit removes this change:
17336         dfa: Simplify a building state
17337         * lib/dfa.c (build_state): Simplify a building state.
17339 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17341         version-etc: allow zero authors
17342         * lib/version-etc.c (version_etc_arn): If no authors are given,
17343         omit authorship info instead of dumping core.
17345 2018-12-19  Bruno Haible  <bruno@clisp.org>
17347         lchown tests: Be more permissive regarding errno values.
17348         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
17349         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
17350         alternative to ENOSYS.
17351         * modules/lchown-tests (Depends-on): Add 'errno'.
17352         * modules/fchownat-tests (Depends-on): Likewise.
17354 2018-12-18  Bruno Haible  <bruno@clisp.org>
17356         duplocale: Avoid test failure on AIX 7.
17357         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
17358         (configure.ac): Invoke gt_FUNC_USELOCALE.
17359         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
17360         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
17361         works.
17363 2018-12-18  Bruno Haible  <bruno@clisp.org>
17365         localename: Fix test failure on AIX 7.
17366         Reported by Assaf Gordon in
17367         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
17368         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
17369         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
17370         instead of ac_cv_func_uselocale.
17371         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
17372         HAVE_USELOCALE.
17373         * lib/localename-table.h: Likewise.
17374         * lib/localename-table.c: Likewise.
17375         * tests/test-localename.c: Likewise.
17376         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
17378 2018-12-18  Bruno Haible  <bruno@clisp.org>
17380         localename: Update comments regarding Cygwin.
17381         * lib/localename.c: Update comment.
17382         * doc/posix-functions/uselocale.texi: Update platforms list.
17383         * doc/posix-functions/newlocale.texi: Likewise.
17384         * doc/posix-functions/duplocale.texi: Likewise.
17385         * doc/posix-functions/freelocale.texi: Likewise.
17387 2018-12-16  Bruno Haible  <bruno@clisp.org>
17389         c-stack: Fix for Linux/sparc.
17390         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
17391         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
17393 2018-12-16  Bruno Haible  <bruno@clisp.org>
17395         localename: Avoid test failure on some glibc systems.
17396         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
17397         Unset environment variables that might disturb the first setlocale call,
17398         and verify that this setlocale call succeeds.
17400 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
17402         random: Fix build error on native Windows (regression from 2018-06-21).
17403         * lib/random.c (__srandom, __initstate, __setstate, __random,
17404         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
17405         to the symbols without '__' prefix.
17407 2018-12-16  Bruno Haible  <bruno@clisp.org>
17409         obstack, libc-config: Support HP-UX cc in C99 mode.
17410         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
17411         compiler, even when in C99 mode.
17412         * lib/cdefs.h (__flexarr): Likewise.
17413         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
17415 2018-12-16  Bruno Haible  <bruno@clisp.org>
17417         localename: Fix test failure on OpenBSD >= 6.2.
17418         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
17419         locale system. Define HAVE_FAKE_LOCALES in this case.
17420         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
17421         HAVE_USELOCALE.
17422         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
17423         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
17424         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
17425         platforms list.
17426         * doc/posix-functions/newlocale.texi: Likewise.
17427         * doc/posix-functions/duplocale.texi: Update platforms list.
17428         * doc/posix-functions/freelocale.texi: Likewise.
17430 2018-12-16  Bruno Haible  <bruno@clisp.org>
17432         duplocale tests: Re-enable the test on platforms without <monetary.h>.
17433         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
17434         of the test, on platforms without <monetary.h>.
17436 2018-12-16  Bruno Haible  <bruno@clisp.org>
17438         localename: Update comments.
17439         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
17441 2018-12-15  Jim Meyering  <meyering@fb.com>
17443         regex: fix indentation
17444         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
17446 2018-12-15  Bruno Haible  <bruno@clisp.org>
17448         openat-safer tests: Avoid test failure on NetBSD 8.
17449         * tests/test-openat-safer.c (main): Execute a Linux specific test only
17450         on Linux.
17452 2018-12-15  Jim Meyering  <meyering@fb.com>
17454         regex: work around a bug in glibc-2.27 and prior
17455         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
17456         assertion for /0|()0|\1|0/.
17457         * tests/test-regex.c (main): Add the same test here.
17459 2018-12-15  Bruno Haible  <bruno@clisp.org>
17461         localename: Fix use of uninitialized shell variable.
17462         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
17463         gt_cv_locale_solaris114 always before use. Remove assignment without
17464         effect.
17466 2018-12-15  Bruno Haible  <bruno@clisp.org>
17468         dfa tests: Avoid test failure on Alpine Linux.
17469         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
17470         command found on Alpine Linux.
17472 2018-12-15  Jim Meyering  <meyering@fb.com>
17474         dfa: avoid new warnings from gcc
17475         These would prevent building with -Werror and a Dec snapshot of gcc.
17476         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
17477         Rename each inner instance to "p".
17478         (charclass_context): Remove unused static function.
17480 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
17482         mkdir-p: improve diagnostic for FUSE mounts
17483         Problem reported by Niklas Hambüchen in:
17484         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
17485         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
17486         errno to mkdir errno if the stat errno is likely more interesting.
17488 2018-12-14  Bruno Haible  <bruno@clisp.org>
17490         hash-map: Add tests.
17491         * tests/test-hash_map.c: New file.
17492         * modules/hash-map-tests: New file.
17494         linkedhash-map: Add tests.
17495         * tests/test-linkedhash_map.c: New file.
17496         * modules/linkedhash-map-tests: New file.
17498         array-map: Add tests.
17499         * tests/test-array_map.c: New file.
17500         * modules/array-map-tests: New file.
17502         xmap: New module.
17503         * lib/gl_xmap.h: New file.
17504         * lib/gl_xmap.c: New file.
17505         * modules/xmap: New file.
17507         hash-map: New module.
17508         * lib/gl_hash_map.h: New file.
17509         * lib/gl_hash_map.c: New file.
17510         * modules/hash-map: New file.
17512         linkedhash-map: New module.
17513         * lib/gl_linkedhash_map.h: New file.
17514         * lib/gl_linkedhash_map.c: New file.
17515         * lib/gl_anyhash1.h: Update comments.
17516         * lib/gl_anyhash2.h: Likewise.
17517         * modules/linkedhash-map: New file.
17519         array-map: New module.
17520         * lib/gl_array_map.h: New file.
17521         * lib/gl_array_map.c: New file.
17522         * modules/array-map: New file.
17524         map: New module.
17525         * lib/gl_map.h: New file.
17526         * lib/gl_map.c: New file.
17527         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
17528         conflict with gl_map.h.
17529         * modules/map: New file.
17531 2018-12-13  Bruno Haible  <bruno@clisp.org>
17533         select tests: Avoid test failure on Cygwin.
17534         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
17536 2018-12-13  Bruno Haible  <bruno@clisp.org>
17538         localtime-buffer: Avoid endless recursion in localtime and gmtime.
17539         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
17541 2018-12-13  Bruno Haible  <bruno@clisp.org>
17543         localeconv tests: Avoid test failure on Cygwin.
17544         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
17545         'mon_grouping' tests.
17547 2018-12-11  Bruno Haible  <bruno@clisp.org>
17549         omap: Don't dispose the old value when the function returns it.
17550         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
17551         here.
17552         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17553         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17554         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
17555         here.
17557         array-omap, avltree-omap, rbtree-omap: Tweak style.
17558         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
17559         false.
17560         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
17562         rbtree-omap: Add tests.
17563         * tests/test-rbtree_omap.c: New file.
17564         * modules/rbtree-omap-tests: New file.
17566         avltree-omap: Add tests.
17567         * tests/test-avltree_omap.c: New file.
17568         * modules/avltree-omap-tests: New file.
17570         array-omap: Add tests.
17571         * tests/test-array_omap.c: New file.
17572         * modules/array-omap-tests: New file.
17574         xomap: New module.
17575         * lib/gl_xomap.h: New file.
17576         * lib/gl_xomap.c: New file.
17577         * modules/xomap: New file.
17579         rbtree-omap: New module.
17580         * lib/gl_rbtree_omap.h: New file.
17581         * lib/gl_rbtree_omap.c: New file.
17582         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
17583         Parameterize.
17584         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
17585         * modules/rbtree-omap: New file.
17586         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
17587         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
17589         avltree-omap: New module.
17590         * lib/gl_avltree_omap.h: New file.
17591         * lib/gl_avltree_omap.c: New file.
17592         * lib/gl_avltree_ordered.h: Code moved to here from
17593         lib/gl_avltree_oset.c. Parameterize.
17594         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
17595         * lib/gl_anytree_omap.h: New file.
17596         * modules/avltree-omap: New file.
17597         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
17598         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
17600         array-omap: New module.
17601         * lib/gl_array_omap.h: New file.
17602         * lib/gl_array_omap.c: New file.
17603         * modules/array-omap: New file.
17605         omap: New module.
17606         * lib/gl_omap.h: New file.
17607         * lib/gl_omap.c: New file.
17608         * modules/omap: New file.
17610 2018-12-11  Bruno Haible  <bruno@clisp.org>
17612         hash-set, linkedhash-set: Reduce code duplication.
17613         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
17614         lib/gl_anyhash_set1.h.
17615         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
17616         lib/gl_anyhash_set2.h. Parameterize.
17617         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
17618         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
17619         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
17620         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
17621         * lib/gl_rbtreehash_list.c: Likewise.
17622         * lib/gl_linkedhash_list.c: Likewise.
17623         (hash_resize_after_add): Remove function.
17624         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
17625         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
17626         * gl_hash_set.c: Likewise.
17627         * modules/avltreehash-list (Files, Makefile.am): Update file list.
17628         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
17629         * modules/linkedhash-list (Files, Makefile.am): Likewise.
17630         * modules/linkedhash-set (Files, Makefile.am): Likewise.
17631         * modules/hash-set (Files, Makefile.am): Likewise.
17633 2018-12-11  Bruno Haible  <bruno@clisp.org>
17635         array-set: Optimize.
17636         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
17637         outside the loop, not inside the loop.
17639 2018-12-11  Bruno Haible  <bruno@clisp.org>
17641         times: Fix tests.
17642         * tests/test-times.c (doublecmp): Implement a total order.
17644 2018-12-11  Bruno Haible  <bruno@clisp.org>
17646         array-set, linkedhash-set, hash-set: Fix tests.
17647         * tests/test-array_set.c (cmp_objects_in_array): New function.
17648         (check_equals): Use it.
17649         * tests/test-hash_set.c: Likewise.
17650         * tests/test-linkedhash_set.c: Likewise.
17652 2018-12-08  Bruno Haible  <bruno@clisp.org>
17654         Fix comments.
17655         * lib/gl_list.h (gl_list_free): Clarify what it does.
17656         * lib/gl_oset.h (gl_oset_free): Likewise.
17657         * lib/gl_set.h (gl_set_free): Likewise.
17658         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
17659         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
17660         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
17661         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
17663 2018-12-03  Bruno Haible  <bruno@clisp.org>
17665         hash-set: Add tests.
17666         * tests/test-hash_set.c: New file.
17667         * modules/hash-set-tests: New file.
17669         linkedhash-set: Add tests.
17670         * tests/test-linkedhash_set.c: New file.
17671         * modules/linkedhash-set-tests: New file.
17673         array-set: Add tests.
17674         * tests/test-array_set.c: New file.
17675         * modules/array-set-tests: New file.
17677         xset: New module.
17678         * lib/gl_xset.h: New file.
17679         * lib/gl_xset.c: New file.
17680         * modules/xset: New file.
17682         hash-set: New module.
17683         * lib/gl_hash_set.h: New file.
17684         * lib/gl_hash_set.c: New file.
17685         * modules/hash-set: New file.
17687         linkedhash-set: New module.
17688         * lib/gl_linkedhash_set.h: New file.
17689         * lib/gl_linkedhash_set.c: New file.
17690         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
17691         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
17692         * lib/gl_anyhash_primes.h: New file, extracted from
17693         lib/gl_anyhash_list2.h.
17694         * lib/gl_anyhash_list2.h: Include it.
17695         (primes, next_prime): Remove definitions.
17696         * modules/linkedhash-set: New file.
17697         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
17698         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17699         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
17700         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17701         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
17702         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17704         array-set: New module.
17705         * lib/gl_array_set.h: New file.
17706         * lib/gl_array_set.c: New file.
17707         * modules/array-set: New file.
17709         set: New module.
17710         * lib/gl_set.h: New file.
17711         * lib/gl_set.c: New file.
17712         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
17713         gl_set.h.
17714         * modules/set: New file.
17716 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
17718         bison: don't force the Yacc mode
17719         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
17720         errors when Bison features are used in the grammar file.  Some of
17721         these features (such as %expect) were flagged non-yacc recently.  Most
17722         of the time, -y is actually used to please Automake's ylwrap which
17723         expects the output to be y.tab.c.
17724         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
17726 2018-12-01  Bruno Haible  <bruno@clisp.org>
17728         gnupload: Document short options.
17729         * build-aux/gnupload (usage): Document the short options.
17731 2018-11-28  Ben Elliston  <bje@gnu.org>
17733         gnupload: Support option -h as alias of --help.
17734         * build-aux/gnupload: Support -h.
17736 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
17738         memrchr: port better to clang
17739         * lib/memrchr.c (__memrchr): Cast to void * instead of to
17740         longword *, to pacify clang -Wcast-align (Bug#33544).
17742 2018-11-29  Eric Blake  <eblake@redhat.com>
17744         docs: mention printf %m considerations
17745         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
17746         is not portable, and is easy enough to work around.
17747         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
17748         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
17749         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
17750         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17751         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17752         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17753         * doc/posix-functions/printf.texi (printf): Likewise.
17754         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17755         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17756         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
17757         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17758         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17759         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17760         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17761         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17762         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17763         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
17764         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17765         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17767 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
17769         bitset: rename ebitset/expandable.* as tbitset/table.*
17770         See
17771         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
17772         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
17773         * lib/bitset/table.h, lib/bitset/table.c: these.
17774         Rename all the ebitset* symbols as tbitset*.
17775         Adjust dependencies.
17777 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17779         bitset: check the operations
17780         * tests/test-bitset.c (bitset_random): New.
17781         Use it.
17782         * lib/bitset/expandable.c (ebitset_not): Fix typo.
17784 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17786         bitset: properly use false/true instead of 0/1 for Booleans
17787         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
17788         0/1, as Booleans.
17790 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17792         bitset: rename BITSET_VARRAY as BITSET_VECTOR
17793         For consistency with the name of the file.
17794         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
17795         * lib/bitset/stats.c, lib/bitset/vector.c
17796         (BITSET_VARRAY): Rename as...
17797         (BITSET_VECTOR): this.
17799 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17801         strerror_r-posix: memmove, not memcpy
17802         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
17803         since the source and destination might overlap in the call
17804         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
17805         Simplify.
17807 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17809         bitsetv: new module
17810         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
17812 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17814         bitset: add tests and doc
17815         First stabs at providing a documentation and test for the bitset
17816         module.
17817         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
17819 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17821         bitset: new module
17822         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
17823         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
17824         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
17825         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
17826         * lib/bitset/vector.h, modules/bitset:
17827         New.
17829 2018-11-23  Bruno Haible  <bruno@clisp.org>
17831         localename: Fix gettext test failures on mingw.
17832         * lib/localename.c (gl_locale_name_posix): Convert the result of
17833         gl_locale_name_environ to XPG syntax.
17835 2018-11-23  Karl Berry  <karl@freefriends.org>
17837         * config/srclistvars.txt,
17838         * config/srclist.txt: remove all gettext references;
17839         the gettext maintainers will sync as needed.
17841 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17843         mktime: add libc-config dependency
17844         I missed this when we synced from glibc.
17845         * modules/mktime (Depends-on): Add libc-config.
17847 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17849         longlong: fix comment typo
17850         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
17852 2018-11-11  Bruno Haible  <bruno@clisp.org>
17854         havelib: Remove the need to include asm-underscore.m4.
17855         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
17856         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
17857         gl_HOST_CPU_C_ABI.
17858         * modules/havelib (Files): Add host-cpu-c-abi.m4.
17859         (Depends-on): Remove host-cpu-c-abi.
17861 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17863         parse-datetime: simplify test for mktime failure
17864         * lib/parse-datetime.y (mktime_ok): Simplify.
17865         Remove args TZ and T; no longer needed.  Callers changed.
17867         posixtm: simplify test for mktime failure
17868         * lib/posixtm.c (posixtime): Simplify.
17870         nstrftime: simplify test for mktime failure
17871         * lib/nstrftime.c (__strftime_internal): Simplify.
17873 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17875         gnulib-common.m4: port _Noreturn to C++
17876         Problem reported by Akim Demaille in:
17877         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
17878         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
17879         Merge adjustments from _Noreturn.h and from glibc into the non-C++
17880         version.
17881         * lib/_Noreturn.h: Match gnulib-common.
17883 2018-10-30  Bruno Haible  <bruno@clisp.org>
17885         gnu-make: Fix for NetBSD 8 'make'.
17886         Reported by Reuben Thomas in
17887         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
17888         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
17889         output, ignoring exit codes.
17891 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
17893         maintainer-makefile: fix syntax-check rule for "same.h"
17894         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
17895         for 'same_nameat', too.
17897 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17899         havelib: fix nested ‘configure’ chatter
17900         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
17901         AC_CACHE_CHECK calls, which resulted in confusing output like
17902         “checking for the common suffixes of directories in the library
17903         search path... checking for 64-bit host... no lib,lib”.
17905         backupfile: tweak for better code
17906         * lib/backupfile.c: Sort include directives, and remove
17907         unnecessary <limits.h> include.
17908         (FALLTHROUGH): New macro, copied from other modules.
17909         (backupfile_internal): Use it to avoid code duplication.
17910         This lets GCC 8.2.1 generate better code by inlining the
17911         call to check_extension.
17913 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17915         backupfile: new dir_fd args
17916         New module opendirat with code taken from fts.
17917         Use this module to let backupfile use a directory file descriptor.
17918         * NEWS: Document the incompatible change.
17919         * lib/backup-find.c (find_backup_file_name):
17920         * lib/backup-rename.c (backup_file_rename):
17921         New arg DIR_FD.
17922         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
17923         (SIZE_MAX): Remove.
17924         Include opendirat.h rather than dirent--.h.
17925         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
17926         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
17927         (backupfile_internal): New arg DIR_FD.  All callers changed.
17928         * lib/fts.c: Include opendirat.h.
17929         (opendirat): Move to opendirat.c.
17930         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
17931         * modules/backupfile (Depends-on): Remove dirfd, opendir.
17932         Add opendirat.
17933         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
17934         Add opendirat.
17936 2018-10-23  Bruno Haible  <bruno@clisp.org>
17938         localename: Simplify support for per-thread locales on Solaris 11.4.
17939         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
17940         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
17941         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
17942         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
17943         specific code.
17944         * lib/localename-table.h: Update comments.
17945         * lib/localename-table.c: Update comments.
17946         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
17947         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
17948         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
17949         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
17950         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
17951         HAVE_NAMELESS_LOCALES here.
17952         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
17953         m4/intlsolaris.m4.
17954         * modules/gettext (Files): Likewise.
17956 2018-10-22  Bruno Haible  <bruno@clisp.org>
17958         std-gnu11: Support Autoconf versions < 2.64.
17959         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
17960         when _AC_DO_LIMIT does not exist.
17962 2018-10-22  Bruno Haible  <bruno@clisp.org>
17964         Assume Autoconf >= 2.63.
17965         * DEPENDENCIES: Mention the requirement.
17967         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
17968         (func_get_filelist): Don't list m4/onceonly.m4 any more.
17969         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
17970         * m4/onceonly.m4: Remove file.
17972         * m4/openmp.m4: Remove file.
17973         * modules/openmp (Files): Remove m4/openmp.m4.
17975         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
17976         htmldir, dvidir, pdfdir, psdir, localedir.
17977         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
17979         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
17980         Autoconf < 2.60.
17981         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
17982         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
17984         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
17985         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
17986         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
17988         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
17989         exists.
17990         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
17992         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
17993         Autoconf < 2.61.
17995         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
17996         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
17997         Autoconf >= 2.52.
17999         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
18000         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
18001         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
18003 2018-10-22  Bruno Haible  <bruno@clisp.org>
18005         Assume Automake >= 1.11.
18006         * m4/configmake.m4: Update comments.
18007         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
18008         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
18009         of 'eval'.
18010         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
18011         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
18012         requires Automake >= 1.11.
18014 2018-10-22  Bruno Haible  <bruno@clisp.org>
18016         localename: Fix typo in comment.
18017         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
18019 2018-10-22  Bruno Haible  <bruno@clisp.org>
18021         Fix failure of 'gnulib-tool --create-testdir' with all modules.
18022         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
18024 2018-10-21  Bruno Haible  <bruno@clisp.org>
18026         locale: Ease integration with GNU libintl.
18027         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
18028         GNULIB_defined_freelocale): New macros.
18030 2018-10-21  Bruno Haible  <bruno@clisp.org>
18032         localename: Fine-tune support for per-thread locales on Solaris 11.4.
18033         * lib/localename-table.h: New file, extracted from lib/localename.c.
18034         * lib/localename-table.c: Likewise.
18035         * lib/localename.c: Include localename-table.h.
18036         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
18037         locale_hash_function instead of pointer_hash.
18038         * modules/localename (Files): Add lib/localename-table.h,
18039         lib/localename-table.c.
18040         (lib_SOURCES): Add localename-table.c.
18041         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
18042         for Solaris 11.4 locale system only on Solaris. Test for it
18043         independently whether getlocalename_l exists.
18044         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
18045         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
18046         HAVE_NAMELESS_LOCALES.
18047         * modules/gettext (Files): Add m4/intlsolaris.m4.
18049 2018-10-21  Bruno Haible  <bruno@clisp.org>
18051         Small update from gettext.
18052         * m4/intl.m4: Update from gettext:
18053         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
18054         mode on AIX.
18055         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
18056         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
18058 2018-10-16  Bruno Haible  <bruno@clisp.org>
18060         mountlist: Remove support for Cray with UNICOS 9.
18061         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
18062         MOUNTED_LISTMNTENT.
18063         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
18065 2018-10-16  Bruno Haible  <bruno@clisp.org>
18067         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
18068         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
18069         STAT_STATFS2_FS_DATA.
18070         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
18071         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
18072         MOUNTED_GETMNT.
18073         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
18074         * lib/getloadavg.c (decstation): Remove definition and case.
18075         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
18076         * lib/getgroups.c: Likewise.
18077         * doc/posix-functions/getgroups.texi: Likewise.
18078         * lib/time.in.h: Update comments.
18080 2018-10-16  Bruno Haible  <bruno@clisp.org>
18082         getloadavg: Remove support for ConvexOS.
18083         * lib/getloadavg.c: Remove convex case.
18085 2018-10-16  Bruno Haible  <bruno@clisp.org>
18087         getloadavg: Remove support for Sony NEWS.
18088         * lib/getloadavg.c: Remove sony_news case.
18090 2018-10-16  Bruno Haible  <bruno@clisp.org>
18092         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
18093         * lib/fsusage.c: Remove _SEQUENT_ case.
18094         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
18095         * lib/mountlist.c: Don't test for MNTTABNAME.
18096         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
18097         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
18098         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
18099         * lib/stat-size.h: Don't mention the Sequent bug.
18100         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
18102 2018-10-16  Bruno Haible  <bruno@clisp.org>
18104         fsusage: Remove support for AIX 3.
18105         * lib/fsusage.c: Remove code for AIX 3.
18106         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
18108 2018-10-16  Bruno Haible  <bruno@clisp.org>
18110         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
18111         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
18112         * lib/fsusage.c: Remove code for AIX PS/2.
18113         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
18114         * lib/getloadavg.c: Likewise.
18116 2018-10-16  Bruno Haible  <bruno@clisp.org>
18118         getloadavg: Remove support for HP-UX on m68k.
18119         * lib/getloadavg.c: Remove hp9000s300 case.
18121 2018-10-16  Bruno Haible  <bruno@clisp.org>
18123         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
18124         * lib/fsusage.c: Remove DOLPHIN case.
18125         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
18126         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
18128 2018-10-16  Bruno Haible  <bruno@clisp.org>
18130         getloadavg: Remove support for Alliant FX/2800.
18131         * lib/getloadavg.c: Remove alliant case.
18133 2018-10-16  Bruno Haible  <bruno@clisp.org>
18135         getloadavg: Remove support for tek4300.
18136         * lib/getloadavg.c: Remove tek4300 case.
18138 2018-10-16  Bruno Haible  <bruno@clisp.org>
18140         getloadavg: Remove support for Ardent.
18141         * lib/getloadavg.c: Remove ardent case.
18143 2018-10-16  Bruno Haible  <bruno@clisp.org>
18145         mountlist: Remove support for SVR2.
18146         Reported by Andrew Borodin <aborodin@vmail.ru> in
18147         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
18148         * lib/mountlist.c: Remove MOUNTED_FREAD case.
18149         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
18150         MOUNTED_FREAD.
18152 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18154         libc-config: merge from glibc
18155         * lib/cdefs.h (__glibc_has_attribute): New macro.
18157         regex: depend on libc-config
18158         * modules/regex (Depends-on): Add libc-config.
18159         This is needed after the recent autoupdate from glibc.
18161 2018-10-14  Bruno Haible  <bruno@clisp.org>
18163         localename: Add support for per-thread locales on Solaris 11.4.
18164         * lib/locale.in.h (newlocale, freelocale): New declarations.
18165         (duplocale): Declare also when the 'localename' module requests it.
18166         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
18167         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
18168         (struniq): Update.
18169         (struct locale_categories_names, struct locale_hash_node): New types.
18170         (LOCALE_HASH_TABLE_SIZE): New constant.
18171         (locale_hash_table, locale_lock): New variables.
18172         (pointer_hash, get_locale_t_name): New functions.
18173         (newlocale, duplocale, freelocale): New overridden functions.
18174         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
18175         * m4/intlsolaris.m4: New file.
18176         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
18177         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
18178         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
18179         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
18180         declared.
18181         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
18182         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
18183         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
18184         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
18185         * modules/localename (Files): Add intlsolaris.m4.
18186         (Depends-on): Add 'locale'.
18187         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
18188         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
18189         the signatures.
18191 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
18193         timevar: use gethrxtime to get wall clock time
18194         clock_gettime is not portable.  gethrxtime takes the best available
18195         option to get the wall clock time, including clock_gettime (monotonic
18196         clock), and gettime (non monotonic).
18197         Also, using xtime_t instead of float preserves the precision.
18198         Suggested by Bruno Haible.
18199         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
18200         * modules/timevar (Depends-on): We need gethrxtime.
18201         We no longer use times().
18202         (Link): Update.
18203         * lib/timevar.h (timevar_time_def): Use xtime_t.
18204         * lib/timevar.c (set_to_current_time): Use gethrxtime.
18205         (timevar_print): Instead of checking whether the timings themselves
18206         are large enough for the timevar to be printed, check the percentages.
18208 2018-10-14  Bruno Haible  <bruno@clisp.org>
18210         wcsnrtombs: Work around Solaris 11.4 bug.
18211         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
18212         macro.
18213         (gl_FUNC_WCSNRTOMBS): Invoke it.
18214         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
18216 2018-10-14  Bruno Haible  <bruno@clisp.org>
18218         mbsnrtowcs: Work around Solaris 11.4 bug.
18219         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
18220         macro.
18221         (gl_FUNC_MBSNRTOWCS): Invoke it.
18222         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
18224 2018-10-14  Bruno Haible  <bruno@clisp.org>
18226         doc: Update for Solaris 11.4.
18227         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
18228         mention Solaris 11.4.
18229         * m4/printf.m4: Update comments about Solaris.
18230         * m4/log.m4: Likewise.
18231         * m4/log10.m4: Likewise.
18232         * m4/logb.m4: Likewise.
18233         * m4/logbf.m4: Likewise.
18234         * m4/logbl.m4: Likewise.
18235         * m4/rename.m4: Likewise.
18236         * m4/wcrtomb.m4: Likewise.
18237         * m4/hostent.m4: Likewise.
18238         * m4/servent.m4: Likewise.
18240 2018-10-14  Bruno Haible  <bruno@clisp.org>
18242         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
18243         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
18244         pointer.
18245         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
18246         pointer.
18247         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
18248         pointer.
18249         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
18250         pointer.
18251         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
18252         pointer.
18254 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
18256         bootstrap: fix wget command for po files.
18257         * build-aux/bootstrap (po_download_command_format): Fix comment,
18258         and adjust callers.
18260 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
18262         timevar: improve the output format
18263         Suggested by Bruno Haible.
18264         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
18265         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
18266         wall, since its resolution is much higher.
18268 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
18270         timevar: expect that getrusage is available.
18271         Don't keep both times and getrusage as backend: both are guaranteed by
18272         gnulib, a single one suffices.  Using getrusage is open to possibly
18273         tracking other types of resources in the future.
18274         * modules/timevar (Depends-on): Add getrusage.
18275         (configure.ac): Remove gl_TIMEVAR.
18276         (Files): Remove m4/timevar.m4.
18277         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
18278         * lib/timevar.h (timevar_enabled): Clarify documentation.
18279         * lib/timevar.c: Remove all the code about times.
18280         Remove all the CPP guards about getrusage: expect it to be present
18281         (courtesy of gnulib).
18283 2018-10-12  Bruno Haible  <bruno@clisp.org>
18285         mountlist: Improve support for Solaris in 64-bit mode.
18286         Reported by David Wood <David.Wood@deshaw.com> in
18287         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
18288         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
18289         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
18290         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
18292 2018-10-12  Bruno Haible  <bruno@clisp.org>
18294         mountlist: Add support for Minix.
18295         Reported by Assaf Gordon in
18296         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
18297         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
18298         AC_CHECK_FUNCS to check for 'getmntinfo'.
18299         * lib/mountlist.c: Update comments.
18301 2018-10-12  Bruno Haible  <bruno@clisp.org>
18303         Make better use of Autoconf.
18304         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
18305         * m4/manywarnings.m4: Likewise.
18306         * m4/manywarnings-c++.m4: Likewise.
18307         * m4/socklen.m4: Likewise.
18308         * m4/sockpfaf.m4: Likewise.
18309         * m4/stdarg.m4: Likewise.
18310         * m4/visibility.m4: Likewise.
18311         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
18312         indentation.
18313         * m4/ls-mntd-fs.m4: Likewise.
18315 2018-10-11  Bruno Haible  <bruno@clisp.org>
18317         mountlist: Modernize platform lists.
18318         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
18319         platforms, deemphasizing the obsolete ones.
18320         * lib/mountlist.c: Likewise.
18322 2018-10-11  Bruno Haible  <bruno@clisp.org>
18324         getprogname: Add support for 32-bit programs on HP-UX.
18325         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
18326         try the similar functions 32-bit programs on 64-bit HP-UX.
18328 2018-10-11  Bruno Haible  <bruno@clisp.org>
18330         getprogname: Work around program name truncation when possible.
18331         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
18332         possibly use pst_cmd instead.
18334 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18336         fts: cleanup after FTS_NOATIME removal
18337         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
18338         (FTS_STOP): Shrink to minimal values.  We don’t need to
18339         worry about binary compatibility in Gnulib, and the old way
18340         of doing things had a hole in the user options that caused
18341         FTS_OPTIONMASK to not work as desired.
18343 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
18345         fts: remove FTS_NOATIME
18346         This reverts commit da4d6974013c822af1498941e32db774b2031765.
18347         We cannot guarantee that O_NOATIME works: e.g. openat fails
18348         with EPERM if the effective user ID of the caller does not match
18349         the owner of the file and the caller is not privileged.
18350         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
18351         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
18352         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
18353         (FTS_OPTIONMASK): Adjust.
18354         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
18355         (fd_ring_check): Likewise.
18357 2018-10-08  Bruno Haible  <bruno@clisp.org>
18359         csharpcomp*, csharpexec*: Remove support for pnet.
18360         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
18361         HAVE_CSCC.
18362         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
18363         Don't test HAVE_CSCC.
18364         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
18365         (compile_csharp_class): Don't invoke it.
18366         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
18367         HAVE_ILRUN.
18368         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
18369         Don't test HAVE_ILRUN.
18370         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
18371         (execute_csharp_program): Don't invoke it.
18372         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
18373         any more.
18375 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
18377         renameatu: prefer renameat2 to syscall
18378         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
18379         Use renameat2 instead of syscall (Bug#32796).
18380         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
18382 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
18384         bootstrap, gnulib-tool: use https instead of insecure rsync
18385         * build-aux/bootstrap (download_po_files, po_download_command_format):
18386         Don't try using rsync; always use wget over https to fetch PO files.
18387         * gnulib-tool (func_import): Likewise.
18388         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18390 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
18392         bootstrap, gnulib-tool: correct the translations wget command
18393         * build-aux/bootstrap (po_download_command_format2): Restrict
18394         recursion to a single level.
18395         * gnulib-tool (func_import): Likewise.
18396         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18398 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
18400         doc: the gnulib snapshots are not maintained
18401         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
18403 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
18405         timevar: add to lib_SOURCES
18406         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
18408 2018-10-07  Bruno Haible  <bruno@clisp.org>
18410         dirent: Update documentation.
18411         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
18413 2018-10-05  Bruno Haible  <bruno@clisp.org>
18415         strpbrk: Make it possible to namespace the defined symbol.
18416         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
18418 2018-10-05  Bruno Haible  <bruno@clisp.org>
18420         strcspn: Make it possible to namespace the defined symbol.
18421         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
18423 2018-10-05  Bruno Haible  <bruno@clisp.org>
18425         raise: Make it possible to namespace the defined symbol.
18426         * lib/raise.c (raise): Undefine only after the replacement function has
18427         been defined.
18428         (raise): Renamed from rpl_raise.
18429         (raise_nothrow): Move to the end of the compilation unit.
18431 2018-10-05  Bruno Haible  <bruno@clisp.org>
18433         memcmp: Make it possible to namespace the defined symbol.
18434         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
18436 2018-10-05  Bruno Haible  <bruno@clisp.org>
18438         explicit_bzero: Make it possible to namespace the defined symbol.
18439         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
18440         glibc.
18442 2018-10-05  Bruno Haible  <bruno@clisp.org>
18444         mkdir-p: Depend on 'mkdir'.
18445         * modules/mkdir-p (Depends-on): Add 'mkdir'.
18447 2018-10-05  Bruno Haible  <bruno@clisp.org>
18449         tempname: Depend on 'mkdir'.
18450         Reported by Maarten Bosmans <mkbosmans@gmail.com>
18451         at <https://savannah.gnu.org/bugs/?33379>.
18452         * modules/tempname (Depends-on): Add 'mkdir'.
18454 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
18456         timevar: rely on gnulib modules for time portability.
18457         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
18458         * m4/timevar.m4: Don't check for clock_t and struct tms,
18459         guaranteed by gnulib.
18460         * lib/timevar.h: Use extern "C" protection.
18461         Include <stdio.h> for FILE.
18462         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
18463         they are guaranteed by gnulib.
18464         Remove uses of clock as (now useless) fallback.
18466 2018-10-04  Bruno Haible  <bruno@clisp.org>
18468         sh-filename: New module.
18469         * m4/sh-filename.m4: New file.
18470         * modules/sh-filename: New file.
18471         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
18472         "/bin/sh".
18473         * tests/test-posix_spawn1.c (main): Likewise.
18474         * tests/test-posix_spawn2.c (main): Likewise.
18475         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
18476         is_envjavac_gcj43): Likewise.
18477         * lib/javaexec.c (execute_java_class): Likewise.
18478         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
18479         * modules/posix_spawnp-tests (Depends-on): Likewise.
18480         * modules/javacomp (Depends-on): Likewise.
18481         * modules/javaexec (Depends-on): Likewise.
18483 2018-10-04  Bruno Haible  <bruno@clisp.org>
18485         spawn-pipe tests: Avoid test failure on native Windows.
18486         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
18487         that fd 2 is closed.
18489 2018-10-04  Bruno Haible  <bruno@clisp.org>
18491         fcntl: Make it possible to namespace the defined symbol.
18492         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
18493         been defined.
18494         (fcntl): Renamed from rpl_fcntl.
18495         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
18496         from fcntl.
18497         (klibc_fcntl): Move to the end of the compilation unit.
18499 2018-10-02  Bruno Haible  <bruno@clisp.org>
18501         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
18502         * tests/test-vasnprintf.c (test_function): Change the test added on
18503         2018-09-23 to check only the 18 most significant digits.
18505         vasnprintf tests: Avoid test failure on Cygwin.
18506         * tests/test-vasnprintf.c (test_function): Change the test added on
18507         2018-09-23 to check only the 42 most significant digits.
18509 2018-10-01  Bruno Haible  <bruno@clisp.org>
18511         mkostemp, mkostemps: Update documentation.
18512         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
18513         * doc/glibc-functions/mkostemps.texi: Likewise.
18515 2018-10-01  Tom Tromey  <tom@tromey.com>
18517         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
18518         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
18519         on OS X.
18521 2018-09-30  Pádraig Brady  <P@draigBrady.com>
18523         hmac-*: refactor to remove repetitive code
18524         * lib/hmac.c: A new parameterized single implementation.
18525         * lib/hmac-md5.c: Define parameters and include implementation.
18526         * lib/hmac-sha1.c: Likewise.
18527         * lib/hmac-sha256.c: Likewise.
18528         * lib/hmac-sha512.c: Likewise.
18529         * modules/crypto/hmac-md5: Reference the new implementation file.
18530         * modules/crypto/hmac-sha1: Likewise.
18531         * modules/crypto/hmac-sha256: Likewise.
18532         * modules/crypto/hmac-sha512: Likewise.
18533         * tests/test-hmac-md5.c: Refactor common code to a single function.
18534         * tests/test-hmac-sha1.c: Likewise.
18535         * tests/test-hmac-sha256.c: Likewise.
18536         * tests/test-hmac-sha512.c: Likewise.
18538 2018-09-30  Zhang Qing  <zhangqingl@126.com>
18540         hmac-sha512: fix hash for keys > blocksize (128 bytes)
18541         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
18542         key length to that output by sha512, not the blocksize.
18543         Otherwise uninitialized data from the stack
18544         is used when computing the hash.
18545         * tests/test-hmac-sha512.c: Add a shortened key test case.
18546         Reported at https://github.com/coreutils/gnulib/pull/5
18548 2018-09-30  Bruno Haible  <bruno@clisp.org>
18550         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
18551         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
18552         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
18553         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
18554         'unsigned int' before comparison with an unsigned value.
18556 2018-09-30  Bruno Haible  <bruno@clisp.org>
18558         grantpt: Remove unnecessary dependency.
18559         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
18561 2018-09-30  Bruno Haible  <bruno@clisp.org>
18563         timevar: Small tweaks.
18564         * lib/timevar.h: Fix comments. Add parameter names to function
18565         declarations.
18566         * lib/timevar.c: Include timevar.h immediately after config.h.
18567         * lib/timevar.def: Fix comments.
18568         * modules/timevar (Maintainer): List Akim Demaille.
18570 2018-09-30  Bruno Haible  <bruno@clisp.org>
18572         timevar: Include documentation in gnulib manual.
18573         * doc/timevar.texi: Change node and section name to 'Profiling of
18574         program phases'.
18575         In the code snippets, tweak the #includes and use GNU coding style.
18576         * doc/gnulib.texi: Include timevar.texi.
18578 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
18580         timevar: import from Bison.
18581         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
18582         New files.
18583         * lib/timevar.def: New file.
18584         * doc/timevar.texi: New file.
18586 2018-09-26  Bruno Haible  <bruno@clisp.org>
18588         javacomp-script, javacomp: Add preliminary support for Java 12..17.
18589         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
18590         * lib/javacomp.c (default_target_version): Likewise.
18592 2018-09-26  Bruno Haible  <bruno@clisp.org>
18594         javacomp-script, javacomp: Add support for Java 11.
18595         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
18596         target-version 11.
18597         * lib/javaversion.h: Update comments.
18598         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18599         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18600         TARGET_VERSION_BOUND, target_version_index,
18601         corresponding_classfile_version): Accept source_version 11 and
18602         target_version 11.
18603         * lib/javacomp.h: Update comments accordingly.
18605 2018-09-23  Bruno Haible  <bruno@clisp.org>
18607         vasnprintf: Fix heap memory overrun bug.
18608         Reported by Ben Pfaff <blp@cs.stanford.edu> in
18609         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
18610         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
18611         memory.
18612         * tests/test-vasnprintf.c (test_function): Add another test.
18614 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18616         maint: mktime.c now shared with glibc
18617         * config/srclist.txt: intprops.h, timegm.c and mktime.c
18618         are now the same in Gnulib and glibc.
18620         mktime: fix _LIBC typo
18621         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
18623 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18625         dfa: optimization for state merge
18626         * lib/dfa.c (merge2): New function.
18627         (merge_nfa_state): Use it.
18629 2018-09-18  Jim Meyering  <meyering@fb.com>
18631         dfa: trivial comment fix: s/is/if/
18632         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
18634 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18636         dfa: use more-informative function name
18637         * lib/dfa.c (maybe_disable_superset_dfa):
18638         Rename from dfautf8noss.  Use change.
18640         dfa: tweak allocation performance
18641         * lib/dfa.c (merge_nfa_state, dfaoptimize):
18642         Prefer ptrdiff_t for indexes some more.
18643         Use char for flags, as it’s wide enough.
18644         Allocate queue and flags together, with one malloc call.
18645         No need to use xnmalloc since the multiplication and
18646         addition cannot overflow (it’s already been checked by
18647         earlier allocation).  Prefer memset to open-coding.
18649         dfa: prune states as we go
18650         * lib/dfa.c (prune): Remove.
18651         dfa: reorder enum for efficiency
18652         (merge_nfa_state): Prune as we go instead of at the end.
18653         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
18655         * lib/dfa.c (END): Now -1 again.  Reorder other elements
18656         of the enumeration to make it easier for GCC to generate
18657         efficient code by using fewer comparisons to check for
18658         ranges of values.
18659         (atom): Take advantage of the reordering.
18661 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18663         dfa: optimize alternation in NFA
18664         Even when similar states exist in alternation, the DFA treats them
18665         as separate items, which may complicate the transition in NFA and
18666         cause slowdown.  This change assembles the states into one.  For
18667         example, ab|ac is changed into a(b|c).  This change speeds-up
18668         matching for many branched patterns.  For example, grep speeds up
18669         more than 30× in:
18671           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
18672           time -p env LC_ALL=C grep -vf in in
18674         * lib/dfa.c (prune): New function.
18675         (merge_nfa_state): New function.  It merges similar NFA states.
18676         (dfaoptimize): New function.  It seeks merged and removed nodes.
18677         (dfaanalyze): Call new function.
18678         (dfautf8noss): Change name from dfaoptimize because of addition of new
18679         function.
18680         (dfacomp): Update caller.
18682         dfa: simplify initial state
18683         Simplifying the initial state enables easier optimization of the NFA.
18684         * lib/dfa.c (enum token): Add new element BEG.
18685         (prtok): Adjust due to adding element BEG.
18686         (dfaparse): Put BEG at a head of tokens.
18687         (state_index): Adjust due to adding element BEG.
18688         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
18689         build initial state.
18690         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
18692 2018-09-18  Bruno Haible  <bruno@clisp.org>
18694         file-has-acl: Fix test failure on Cygwin 2.9.
18695         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
18696         * lib/acl-internal.h: Likewise.
18697         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
18698         * lib/acl-internal.c: Update comments regarding Cygwin.
18699         * lib/acl_entries.c: Likewise.
18700         * lib/file-has-acl.c: Likewise.
18701         (file_has_acl): For Cygwin, use a different way to determine whether
18702         the "default" ACL of a directory is nontrivial.
18703         * lib/get-permissions.c: Update comments regarding Cygwin.
18704         * lib/set-permissions.c: Likewise.
18706 2018-09-18  Bruno Haible  <bruno@clisp.org>
18708         stat-time tests: Fix test failure on Cygwin.
18709         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
18711 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18713         doc: OS X 10.11 lacked ns time functions
18714         According to <https://github.com/zeromq/libzmq/issues/2175>,
18715         nanosecond-resolution timestamp functions were introduced
18716         in macOS 10.12, so document the last version (OS X 10.11)
18717         where they were absent.
18719         gettime: nanotime never existed
18720         Problem reported by Bruno Haible in:
18721         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
18722         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
18723         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
18725 2018-09-18  Bruno Haible  <bruno@clisp.org>
18727         doc: Update statement about target platforms.
18728         Reported by Simon Sobisch.
18729         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
18730         restrictions on MSVC versions.
18732 2018-09-18  Bruno Haible  <bruno@clisp.org>
18734         posix_spawn tests: Fix link error on 64-bit Cygwin.
18735         * tests/test-posix_spawn1.c (environ): Remove declaration.
18736         * tests/test-posix_spawn2.c (environ): Likewise.
18737         * tests/test-posix_spawn3.c (environ): Likewise.
18738         * tests/test-posix_spawn4.c (environ): Likewise.
18739         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
18740         * modules/posix_spawnp-tests (Depends-on): Likewise.
18742 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18744         timespec: new function current_timespec
18745         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
18746         and don’t worry about it failing on a CLOCK_REALTIME arg.
18747         POSIX requires it to succeed and I don’t know of any
18748         counterexamples where the fallbacks would work.
18749         (current_timespec): New function, taken from Emacs.  It is more
18750         convenient than gettime, and can help register allocation.
18751         * lib/timespec.h: Include arg-nonnull.h.
18752         (current_timespec): New declaration.
18753         (gettime, settime): Declare args to be nonnull.
18754         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
18756 2018-09-16  Bruno Haible  <bruno@clisp.org>
18758         setlocale: Improve locale handling on macOS 10.12 or newer.
18759         * lib/setlocale.c: Include header files for CoreFoundation. Declare
18760         gl_locale_name_canonicalize.
18761         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
18762         and LC_MESSAGES.
18763         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
18765 2018-09-16  Bruno Haible  <bruno@clisp.org>
18767         Update list of locale names with scripts on macOS.
18768         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
18769         match Mac OS X 10.13 and recent glibc.
18771 2018-09-16  Bruno Haible  <bruno@clisp.org>
18773         gettext: Use newer macOS APIs when possible.
18774         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
18775         CFLocaleCopyPreferredLanguages.
18777 2018-09-16  Bruno Haible  <bruno@clisp.org>
18779         localename: Revisit macOS specific code.
18780         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
18781         Fix comments about Mac OS X versions.
18783 2018-09-15  Bruno Haible  <bruno@clisp.org>
18785         setlocale: Improve support for locales not supported by libc.
18786         Reported by Dapeng Gao <peter@dpgao.cc> at
18787         <https://savannah.gnu.org/bugs/?54479>.
18788         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
18789         (libintl_setlocale): Use a more error-tolerant strategy when the locale
18790         to be set is not supported by libc: Emit warnings instead of failing.
18792 2018-09-15  Bruno Haible  <bruno@clisp.org>
18794         strstr, strcasestr: Add workaround against glibc-2.28 bug.
18795         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
18796         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
18797         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
18798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
18799         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
18800         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
18801         * doc/glibc-functions/strcasestr.texi: Likewise.
18803 2018-09-14  Bruno Haible  <bruno@clisp.org>
18805         doc: Fix bottom of top-level page.
18806         Reported by Akim Demaille <akim.demaille@gmail.com> in
18807         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
18808         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
18809         mode.
18810         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
18811         accordingly.
18813 2018-09-12  Bruno Haible  <bruno@clisp.org>
18815         Add test case from a recent glibc bug.
18816         * tests/test-strstr.c (main): Add test of long needle.
18817         * tests/test-strcasestr.c (main): Likewise.
18818         * tests/test-c-strstr.c (main): Likewise.
18819         * tests/test-c-strcasestr.c (main): Likewise.
18820         * tests/test-memmem.c (main): Likewise.
18822 2018-09-12  Bruno Haible  <bruno@clisp.org>
18824         Apply Eric Blake's improvements from 2011-02-25 to more tests.
18825         * tests/test-c-strstr.c (main): Add the same tests here as well.
18827 2018-09-12  Bruno Haible  <bruno@clisp.org>
18829         Apply Jim Meyering's fix from 2015-01-11 to more tests.
18830         * tests/test-memmem.c (main): Free haystack.
18831         * tests/test-strcasestr.c (main): Likewise.
18832         * tests/test-c-strcasestr.c (main): Likewise.
18834 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
18836         xstrtol: fix missing-TYPE_SIGNED typo
18837         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
18839 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18841         timespec: fix resolution confusion
18842         In normal usage, clock resolution is given in seconds, but the
18843         code was mistakenly using inverse seconds and calling it
18844         “resolution”.  Fix this, partly by renaming two identifiers.
18845         The old names will be kept for a bit, to ease transition.
18846         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
18847         New constants, replacing TIMESPEC_RESOLUTION and
18848         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
18849         All uses changed.
18851 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18853         mktime: simplify in prep for glibc merge
18854         * lib/mktime.c, lib/timegm.c [_LIBC]:
18855         Include mktime-internal.h (a small file just for glibc)
18856         instead of using a typedef.
18858 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18860         intprops: minor clarification of code
18861         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
18862         Use _GL_INT_CONVERT rather than reinventing it.
18864 2018-09-07  Bruno Haible  <bruno@clisp.org>
18866         Fix a comment.
18867         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
18869 2018-09-07  Bruno Haible  <bruno@clisp.org>
18871         posix_spawn_file_actions_addchdir: Add tests.
18872         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
18873         * tests/test-posix_spawn4.c: New file.
18874         * modules/posix_spawn_file_actions_addchdir-tests: New file.
18876 2018-09-07  Bruno Haible  <bruno@clisp.org>
18878         posix_spawn_file_actions_addchdir: New module.
18879         Suggested by Eric Blake in
18880         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
18881         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
18882         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
18883         union member 'chdir_action'.
18884         * lib/spawn_faction_addchdir.c: New file.
18885         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
18886         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
18887         HAVE_WORKING_POSIX_SPAWN.
18888         * lib/spawn_faction_adddup2.c: Likewise.
18889         * lib/spawn_faction_addopen.c: Likewise.
18890         * m4/posix_spawn_faction_addchdir.m4: New file.
18891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
18892         'posix_spawn_file_actions_addchdir' is present and whether
18893         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
18894         instead of HAVE_WORKING_POSIX_SPAWN.
18895         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
18896         posix_spawn_file_actions_addchdir is declared.
18897         (gl_SPAWN_H_DEFAULTS): Initialize
18898         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18899         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18900         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18901         * modules/spawn (Makefile.am): Substitute
18902         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18903         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18904         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18905         * modules/posix_spawn_file_actions_addchdir: New file.
18906         * modules/posix_spawn_file_actions_addclose (Depends-on,
18907         configure.ac): Test also REPLACE_POSIX_SPAWN.
18908         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
18909         configure.ac): Likewise.
18910         * modules/posix_spawn_file_actions_addopen (Depends-on,
18911         configure.ac): Likewise.
18912         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
18913         signature.
18914         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18915         * doc/posix-functions/posix_spawnp.texi: Likewise.
18917 2018-09-06  Bruno Haible  <bruno@clisp.org>
18919         stddef: Override max_align_t on NetBSD 8.0/x86.
18920         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
18921         the value of __alignof__ (max_align_t).
18922         * doc/posix-headers/stddef.texi: Mention the issue.
18924 2018-09-06  Bruno Haible  <bruno@clisp.org>
18926         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
18927         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
18928         system fcntl.
18929         * doc/posix-functions/fcntl.texi: Document the issue.
18931 2018-09-06  Bruno Haible  <bruno@clisp.org>
18933         count-trailing-zeros tests: Rely on limits-h module.
18934         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
18935         definition.
18936         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
18938 2018-09-06  Bruno Haible  <bruno@clisp.org>
18940         count-leading-zeros tests: Rely on limits-h module.
18941         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
18942         definition.
18943         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
18945 2018-09-06  Bruno Haible  <bruno@clisp.org>
18947         count-one-bits tests: Rely on limits-h module.
18948         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
18949         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
18951 2018-09-06  Bruno Haible  <bruno@clisp.org>
18953         xstrtoll: Rely on limits-h module.
18954         * lib/xstrtol.c: Don't include intprops.h.
18955         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18956         * modules/xstrtol (Depends-on): Remove 'intprops'.
18957         * modules/xstrtoll (Depends-on): Add 'limits-h'.
18959 2018-09-06  Bruno Haible  <bruno@clisp.org>
18961         strtoll, strtoull: Rely on limits-h module.
18962         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
18963         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18964         * modules/strtoll (Depends-on): Add limits-h.
18965         * modules/strtoull (Depends-on): Likewise.
18967 2018-09-06  Bruno Haible  <bruno@clisp.org>
18969         intprops tests: Fix compilation error with pre-C99 compiler.
18970         * tests/test-intprops.c (verify_stmt): New macro.
18971         (VERIFY, main): Use it.
18973 2018-09-06  Bruno Haible  <bruno@clisp.org>
18975         limits-h: Provide numerical limits macros.
18976         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
18977         IRIX and for GCC.
18978         (WORD_BIT, LONG_BIT): Define.
18979         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
18980         <limits.h> does not define LLONG_MAX or WORD_BIT.
18981         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
18982         TYPE_MAXIMUM): New macros, from intprops.h.
18983         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
18984         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
18985         provides.
18987 2018-09-05  Bruno Haible  <bruno@clisp.org>
18989         fcntl: Don't access nonexistent optional argument.
18990         Reported by Frank Busse <f.busse@imperial.ac.uk> in
18991         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
18992         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
18993         don't consume an argument. For actions that take an 'int' argument,
18994         consume an 'int' argument.
18996 2018-09-05  Eric Blake  <eblake@redhat.com>
18998         doc: mention environ pitfall
18999         * doc/posix-functions/environ.texi (environ): Assigning NULL to
19000         environ is a glibc extension.
19002 2018-09-03  Bruno Haible  <bruno@clisp.org>
19004         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
19005         Reported by Antoine Luong <antoine.luong@c-s.fr> in
19006         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
19007         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
19008         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
19009         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
19011 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19013         mktime: fix unlikely race+overflow bug
19014         Problem reported by Alexandre Oliva in:
19015         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
19016         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
19017         to avoid an unlikely race if the compiler delays a load and
19018         if this cascades into a signed integer overflow.
19020 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19022         mktime, timegm: simplify glibc time64_t
19023         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
19024         Now long int, not time_t, since long int is the longstanding type
19025         for this in glibc and there is no need to change it even if time_t
19026         becomes 64 bits - even int would do, though this would be a change
19027         to the glibc generated code.  When this change is merged into
19028         glibc, it should simplify the time_t vs time64_t situation.
19030         mktime, timegm: simplify merge to glibc
19031         Move code around to make a merge to glibc easier to audit.
19032         This should not change behavior.
19033         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
19034         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
19035         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
19036         simplify later conditionals; default the others to zero.  In uses
19037         of these conditionals, explicitly spell out how _LIBC affects
19038         things, so it’s easier to review from a glibc viewpoint.
19039         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
19040         compartmentalize tzset issues.  Move system-dependent tzsettish
19041         code here from mktime.
19042         (mktime): Move tzsettish code to my_tzset, and move
19043         localtime_offset to within mktime so that it doesn’t
19044         need a separate ifdef.
19046 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
19048         intprops: avoid evaluation of some expressions
19049         This makes EXPR_SIGNED (e) easier to use, as it no longer
19050         evaluates the expression E.  Formerly, E was required to be free
19051         of side effects.
19052         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
19053         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
19054         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
19056 2018-08-23  Bruno Haible  <bruno@clisp.org>
19058         getcwd: Add cross-compilation guesses.
19059         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
19060         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
19061         Based on a patch by Paul Eggert.
19062         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
19063         guesses for all GNU systems.
19065 2018-08-19  Bruno Haible  <bruno@clisp.org>
19067         glob-h: Formalize side effects from other modules.
19068         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
19069         * m4/glob.m4 (gl_GLOB): Invoke it.
19071         fnmatch-h: Formalize side effects from other modules.
19072         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
19073         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
19075         limits-h: Formalize side effects from other modules.
19076         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
19077         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
19079 2018-08-19  Bruno Haible  <bruno@clisp.org>
19081         getpass: Move declaration to <unistd.h>.
19082         * lib/unistd.in.h (getpass): New declaration.
19083         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
19084         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
19085         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
19086         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
19087         On glibc systems, don't set REPLACE_GETPASS to 1.
19088         * modules/getpass (Depends-on): Add 'unistd'.
19089         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
19090         (Include): Specify <unistd.h> instead of "getpass.h".
19091         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
19092         (configure.ac): Sync with the configure.ac section of modules/getpass.
19093         (Include): Specify <unistd.h> instead of "getpass.h".
19094         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
19095         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
19096         REPLACE_GETPASS.
19097         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
19098         REPLACE_GETPASS.
19099         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
19100         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
19101         and musl.
19102         * NEWS: Mention the change.
19104 2018-08-19  Bruno Haible  <bruno@clisp.org>
19106         glob: Fix over-optimization due to attribute __nonnull__.
19107         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
19109 2018-08-19  Bruno Haible  <bruno@clisp.org>
19111         glob: Fix another compilation error when glob.h is not replaced.
19112         Reported by Reuben Thomas <rrt@sc3d.org> in
19113         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
19114         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
19115         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
19117 2018-08-18  Bruno Haible  <bruno@clisp.org>
19119         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
19120         Reported by Reuben Thomas <rrt@sc3d.org> in
19121         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
19122         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
19123         in config.h.
19125 2018-08-18  Bruno Haible  <bruno@clisp.org>
19127         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
19128         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
19129         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
19130         Solution proposed by Eli Zaretskii.
19131         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
19132         * lib/gettimeofday.c (GetProcAddress): Likewise.
19133         * lib/link.c (GetProcAddress): Likewise.
19134         * lib/physmem.c (GetProcAddress): Likewise.
19135         * lib/poll.c (GetProcAddress): Likewise.
19136         * lib/select.c (GetProcAddress): Likewise.
19137         * lib/stat-w32.c (GetProcAddress): Likewise.
19139 2018-08-18  Bruno Haible  <bruno@clisp.org>
19141         glob: Fix another compilation error when glob.h is not replaced.
19142         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
19143         * lib/globfree.c: Include <libc-config.h>.
19145 2018-08-18  Bruno Haible  <bruno@clisp.org>
19147         glob: Fix compilation error when glob.h is not replaced.
19148         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
19149         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
19150         * lib/glob_pattern_p.c: Include <libc-config.h>.
19151         * modules/glob (Depends-on): Add libc-config.
19153 2018-08-18  Bruno Haible  <bruno@clisp.org>
19155         scratch_buffer: Add tests.
19156         * tests/test-scratch-buffer.c: New file.
19157         * modules/scratch_buffer-tests: New file.
19159 2018-08-18  Bruno Haible  <bruno@clisp.org>
19161         scratch_buffer: Fix include file.
19162         Reported by Reuben Thomas <rrt@sc3d.org> in
19163         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
19164         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
19165         double-inclusion guard.
19167 2018-08-18  Bruno Haible  <bruno@clisp.org>
19169         glob-h: Revert Paul Eggert's revert.
19170         * m4/glob_h.m4: Revert to previous state.
19171         * modules/glob-h: Likewise.
19173 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19175         glob-h: always build glob.h
19176         This works around a problem reported by Reuben Thomas in:
19177         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
19178         This workaround always builds glob.h, even on platforms that
19179         do not need it; perhaps this could be improved someday.
19180         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
19181         is always created now.
19182         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
19184 2018-08-13  Bruno Haible  <bruno@clisp.org>
19186         monetary: Simplify m4 code.
19187         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
19188         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
19190 2018-08-13  Bruno Haible  <bruno@clisp.org>
19192         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
19193         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
19194         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
19195         and by Paul J. Lucas <paul@lucasmail.org> in
19196         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
19197         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
19199 2018-08-11  Bruno Haible  <bruno@clisp.org>
19201         setlocale: Trivial simplification.
19202         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
19204 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19206         verify: port 'assume' to traditional tools
19207         * lib/verify.h (assume): Port better to Oracle Studio 12.6
19208         and other tools that use /*NOTREACHED*/ comments.
19210 2018-08-10  Bruno Haible  <bruno@clisp.org>
19212         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
19213         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19214         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
19215         'fnmatch-gnu' is in use.
19217 2018-08-07  Bruno Haible  <bruno@clisp.org>
19219         glob-h: Add tests.
19220         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
19221         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
19222         tests/test-glob-h.c.
19223         * modules/glob-h-tests: New file.
19224         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
19225         conditions.
19226         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
19227         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
19229 2018-08-07  Bruno Haible  <bruno@clisp.org>
19231         glob-h: New module.
19232         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
19233         replacements.
19234         * lib/glob.c: Include <config.h>.
19235         * m4/glob_h.m4: New file.
19236         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
19237         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
19238         REPLACE_GLOB_PATTERN_P as appropriate.
19239         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
19240         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
19241         * modules/glob-h: New file.
19242         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
19243         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
19244         lstat, sys_stat. Change conditions.
19245         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
19246         REPLACE_GLOB_PATTERN_P. Set module indicator.
19247         (Makefile.am): Remove code that is moved to glob-h.
19248         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
19249         * modules/posixcheck (Depends-on): Add glob-h.
19251 2018-08-06  Bruno Haible  <bruno@clisp.org>
19253         Force generation of substitute .h file when C++ support is enabled.
19254         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
19255         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
19256         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
19257         FNMATCH_H to non-empty.
19258         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
19259         ICONV_H to non-empty.
19260         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
19261         MONETARY_H to non-empty.
19262         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
19263         non-empty.
19265 2018-08-06  Bruno Haible  <bruno@clisp.org>
19267         fnmatch-h: Fix test compilation error on mingw (regression from today).
19268         * lib/fnmatch.in.h: Fix conditions.
19270 2018-08-06  Bruno Haible  <bruno@clisp.org>
19272         sys_resource: Relicense under LGPLv2+.
19273         John Malmberg's approval is in
19274         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
19275         * modules/sys_resource (License): Change to LGPLv2+.
19277 2018-08-06  Bruno Haible  <bruno@clisp.org>
19279         fnmatch-h: Add tests.
19280         * tests/test-fnmatch-h.c: New file.
19281         * modules/fnmatch-h-tests: New file.
19282         * tests/test-fnmatch-h-c++.cc: New file.
19283         * modules/fnmatch-h-c++-tests: New file.
19285 2018-08-06  Bruno Haible  <bruno@clisp.org>
19287         fnmatch-h: New module.
19288         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
19289         replacements.
19290         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
19291         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
19292         'posixcheck' warning.
19293         * m4/fnmatch_h.m4: New file.
19294         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
19295         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
19296         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
19297         as appropriate.
19298         * modules/fnmatch-h: New file.
19299         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
19300         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
19301         conditions.
19302         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
19303         indicator.
19304         (Makefile.am): Remove code that is moved to fnmatch-h.
19305         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
19306         REPLACE_FNMATCH.
19307         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
19308         * modules/posixcheck (Depends-on): Add fnmatch-h.
19310 2018-08-06  Bruno Haible  <bruno@clisp.org>
19312         Enable more C++ tests.
19313         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
19314         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
19315         * modules/strings-tests (Depends-on): Add strings-c++-tests.
19316         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
19317         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
19319 2018-08-06  Bruno Haible  <bruno@clisp.org>
19321         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
19322         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
19323         getopt.h.
19324         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
19326 2018-08-05  Bruno Haible  <bruno@clisp.org>
19328         utime-h: Generate header file when module 'posixcheck' is in use.
19329         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
19330         UTIME_H to non-empty.
19332 2018-08-05  Bruno Haible  <bruno@clisp.org>
19334         monetary: Generate header file when module 'posixcheck' is in use.
19335         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
19336         use, set MONETARY_H to non-empty.
19338 2018-08-05  Bruno Haible  <bruno@clisp.org>
19340         iconv-h: Generate header file when module 'posixcheck' is in use.
19341         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
19342         set ICONV_H to non-empty.
19344 2018-08-05  Bruno Haible  <bruno@clisp.org>
19346         Optimize the "checking whether ... is declared without a macro" checks.
19347         Suggested by Paul Eggert in
19348         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
19349         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
19350         Gnulib module 'posixcheck' is not in use.
19352 2018-08-05  Bruno Haible  <bruno@clisp.org>
19354         iconv-h: Enable 'posixcheck' warnings.
19355         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
19356         iconv_open.
19357         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
19359 2018-08-05  Bruno Haible  <bruno@clisp.org>
19361         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
19362         * m4/extern-inline.m4: Add more comments.
19363         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
19364         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
19365         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
19367 2018-08-04  Bruno Haible  <bruno@clisp.org>
19369         New module 'posixcheck'.
19370         * modules/posixcheck: New file.
19371         * m4/posixcheck.m4: New file.
19372         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
19373         (Which modules?): Reference it.
19375 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
19377         dfa: fix memory leak
19378         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
19380 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19382         ieee754-h: new module
19383         It looks like Emacs can use this for some NaN processing.
19384         Emacs uses it only on double NaNs so it should be safe.
19385         * MODULES.html.sh (func_all_modules): Add ieee754-h.
19386         * config/srclist.txt: Mention ieee754.h in a comment.
19387         * doc/glibc-headers/ieee754.texi (ieee754.h):
19388         Gnulib now has a substitute that should work
19389         except for long double and for non-IEEE platforms.
19390         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
19391         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
19393 2018-07-27  Bruno Haible  <bruno@clisp.org>
19395         iswcntrl: Mention minor problem on macOS.
19396         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
19398 2018-07-26  Colin Watson  <cjwatson@debian.org>
19400         bootstrap, gnulib-tool: fix translations rsync
19401         Previously, we created files such as $pobase/Makefile.in.in and then the
19402         subsequent rsync would immediately delete them.
19403         * build-aux/bootstrap (po_download_command_format): Avoid deleting
19404         non-.po files in target directory when rsyncing translations.
19405         * gnulib-tool (func_import): Likewise.
19406         * pygnulib/GLImport.py (GLImport.execute): Likewise.
19408 2018-07-25  Jim Meyering  <meyering@fb.com>
19410         bootstrap: reinstate definition fo gnulib_mk.
19411         That variable is used at least by cppi.
19412         * build-aux/bootstrap (gnulib_mk): Restore definition.
19413         This reverts the deletion from v0.1-1844-gc66dba9ba.
19415 2018-07-23  Bruno Haible  <bruno@clisp.org>
19417         doc: For module names, use texinfo markup @code{} or @samp{}.
19418         * doc/alloca.texi: Mark gnulib module names with @code.
19419         * doc/alloca-opt.texi: Likewise.
19420         * doc/quote.texi: Likewise.
19421         * doc/posix-functions/freopen.texi: Likewise.
19422         * doc/posix-functions/open.texi: Likewise.
19423         * doc/posix-functions/readlink.texi: Likewise.
19424         * doc/posix-functions/readlinkat.texi: Likewise.
19425         * doc/posix-functions/stdout.texi: Likewise.
19426         * doc/posix-functions/stderr.texi: Likewise.
19427         * doc/posix-functions/unlink.texi: Likewise.
19428         * doc/posix-functions/unlinkat.texi: Likewise.
19429         * doc/posix-functions/utime.texi: Likewise.
19430         * doc/posix-functions/utimensat.texi: Likewise.
19431         * doc/posix-functions/utimes.texi: Likewise.
19432         * doc/posix-headers/stdint.texi: Likewise.
19433         * doc/glibc-functions/futimesat.texi: Likewise.
19434         * doc/glibc-functions/lutimes.texi: Likewise.
19435         * doc/glibc-functions/memmem.texi: Likewise.
19437 2018-07-23  Werner LEMBERG  <wl@gnu.org>
19439         doc: Avoid some overfull lines in the TeX output.
19440         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
19441         @example.
19442         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
19443         newline before the long URL.
19444         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
19445         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
19446         Add line breaks in code snippets.
19448 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
19450         hard-locale: simplify by removing hard-locale.m4
19451         * m4/hard-locale.m4: Remove.
19452         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
19453         (configure.ac): Do not call gl_HARD_LOCALE.
19455         gnulib-tool: limit line length for git send-email
19456         * gnulib-tool (func_import): Break actioncmd log line
19457         into multiple lines.
19459 2018-07-16  Bruno Haible  <bruno@clisp.org>
19461         ffs: Ensure declaration on mingw.
19462         Reported by Daniel P. Berrangé <berrange@redhat.com>
19463         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
19464         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
19465         also declared.
19467 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
19469         regex-tests: add dependency
19470         * modules/regex-tests (Depends-on): Add gettext-h.
19471         This is needed given the recent changes to regex,
19472         which no longer depends on gettext-h.
19474 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19476         regex: now in sync with glibc
19477         * config/srclist.txt: Gnulib and glibc regex code
19478         are synchronized again.
19480 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19482         renameatu: rename from renameat2
19483         It's looking like Glibc will add a renameat2 function
19484         that is incompatible with Gnulib renameat2; see:
19485         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
19486         To help avoid future confusion, rename renameat2 to something else.
19487         Use the name 'renameatu', as the Gnulib function is close to the
19488         Glibc function.  Perhaps someday there will also be a renameat2
19489         Gnulib module, which mimicks the future glibc renameat2, but that
19490         can wait as nobody seems to need such a module now.
19491         * NEWS: Mention this.
19492         * lib/renameatu.c: Rename from lib/renameat2.c.
19493         * lib/renameatu.h: Rename from lib/renameat2.h.
19494         * modules/renameatu: Rename from modules/renameat2.
19495         * modules/renameatu-tests: Rename from modules/renameat2-tests.
19496         All uses of "renameat2" in identifiers or file name
19497         changed to "renameatu", except for two instances in
19498         lib/renameatu.c that deal with the Linux kernel's
19499         renameat2 syscall.
19501 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19503         gnulib-tool: minor tweaks for --gnu-make
19504         * gnulib-tool: Do not allow --gnu-make in test modes,
19505         since they all require automake.
19506         (func_emit_lib_Makefile_am): Don’t emit automake comment
19507         if --gnu-make.
19509         regex: work around conditional-dependencies glitch
19510         * modules/regex (Depends-on): Add langinfo.
19511         Without this change, I had problems building an experimental
19512         version of GNU Emacs.  The symptom of the bug was a message
19513         ‘./configure: line 12726: test: =: unary operator expected’.
19514         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
19515         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
19516         was unset.  Although gl_FUNC_NL_LANGINFO has
19517         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
19518         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
19519         --conditional-dependencies sometimes arranges for the
19520         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
19521         code.  Since the regex code includes <langinfo.h> it should be
19522         depending on the langinfo module anyway, and this happens to work
19523         around the bug, so install that as a workaround for now.  To
19524         reproduce the original problem, run the following shell script on
19525         the version of Gnulib just before this patch was installed.
19526                 rm -fr foo
19527                 mkdir foo
19528                 cat >foo/configure.ac <<'EOF'
19529                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
19530                 gl_EARLY
19531                 gl_INIT
19532                 AC_OUTPUT
19533                 EOF
19534                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
19535                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
19536                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
19537                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
19538                 cd foo
19539                 aclocal -I m4
19540                 autoconf
19541                 ./configure --with-included-regex
19543 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19545         wchar: fix bug when checking for ‘inline’
19546         I discovered this when looking into using the regex module
19547         with Emacs.
19548         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
19549         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
19550         conftest1.c and conftest2.c but these files were not created.
19551         As far as I can see, this check never worked and nobody reported
19552         it until now, which is a bit worrisome.
19554 2018-06-30  Jim Meyering  <meyering@fb.com>
19556         bootstrap: s/--option val/--option=val/
19557         * build-aux/bootstrap (gnulib_tool_options): Change the
19558         spelling of "--option val" pairs to "--option=val", for
19559         aesthetics, and also so that this file no longer triggers
19560         a common help2man syntax-check warning when copied into
19561         projects like grep, gzip, etc.
19563 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19565         manywarnings: omit -Wswitch-default
19566         This should make things more consistent, as we already ignore
19567         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
19568         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
19569         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
19570         Add -Wswitch-default.
19571         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
19572         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19573         Remove -Wswitch-default.
19575         regex: revert most trimming
19576         Problems reported by Bruno Haible in:
19577         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
19578         * modules/regex (Depends-on): Add lock, memcmp, memmove,
19579         and wctype back in.  lock because regex users shouldn’t
19580         need to know that regex needs locking, and the rest because
19581         gnulib-tool should ordinarily ignore them anyway.
19583 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19585         regex: trim module dependencies
19586         * modules/regex (Depends-on): Remove gettext-h and lock,
19587         since the regex code should work OK without these modules,
19588         and Emacs uses it that way.  Also remove memcmp, memmove,
19589         and wctype, as these modules are obsolete and should not be
19590         needed any more.
19592 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
19594         regex: glibc does not use intprops.h
19595         Maybe we can talk glibc into using intprops.h someday, but
19596         now doesn’t seem to be a good time.
19597         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
19598         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
19599         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
19601 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
19603         regex: port to recently proposed glibc regex merge
19604         This patch is inspired by Adhemerval Zanella's recent proposal
19605         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
19606         to merge glibc and Gnulib regex.  It aims to simplify the merge on
19607         the glibc side, without keeping Gnulib portable.
19608         * lib/regex.h: Fix a problem with glibc installed-header checking,
19609         as follows:
19610         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
19611         (_Restrict_arr_): Prefer __restrict_arr if defined,
19612         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
19613         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
19614         (build_wcs_upper_buffer, build_upper_buffer)
19615         (re_string_translate_buffer, re_string_context_at):
19616         Move decls here from lib/regex_internal.h, for glibc internal tests.
19617         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
19618         glibc BZ #18496.
19619         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
19620         -Wunused-value.
19621         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
19622         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
19623         (bitset_mask): Now static inline, and without any __attribute__
19624         ((unused)) decoration, for glibc internal tests.
19626 2018-06-25  Bruno Haible  <bruno@clisp.org>
19628         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
19629         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
19630         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
19631         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
19632         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
19633         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
19634         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
19635         / -lthread / -lpth does not get optimized away by a preceding
19636         --as-needed option.
19638 2018-06-25  Bruno Haible  <bruno@clisp.org>
19640         Continue to use spaces for indentation, not tabs.
19641         * MODULES.html.sh: Untabify.
19642         * doc/regex.texi: Likewise.
19643         * lib/acl-internal.c: Likewise.
19644         * lib/dfa.c: Likewise.
19645         * lib/exclude.c: Likewise.
19646         * lib/exclude.h: Likewise.
19647         * lib/get-permissions.c: Likewise.
19648         * lib/gettimeofday.c: Likewise.
19649         * lib/parse-datetime.y: Likewise.
19650         * lib/pselect.c: Likewise.
19651         * lib/set-permissions.c: Likewise.
19652         * lib/time.in.h: Likewise.
19653         * m4/canonicalize.m4: Likewise.
19654         * m4/gc.m4: Likewise.
19655         * m4/gnulib-common.m4: Likewise.
19656         * m4/pthread_sigmask.m4: Likewise.
19657         * m4/vararrays.m4: Likewise.
19658         * tests/test-digest.h: Likewise.
19659         * tests/test-fcntl-h.c: Likewise.
19660         * tests/test-timespec.c: Likewise.
19661         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
19663 2018-06-25  Bruno Haible  <bruno@clisp.org>
19665         manywarnings: Don't enable -Wjump-misses-init warnings by default.
19666         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
19667         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
19668         -Wjump-misses-init.
19670 2018-06-25  Jim Meyering  <meyering@fb.com>
19672         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
19673         * lib/acl-internal.h (free_permission_context): Remove that
19674         attribute directive.  Otherwise, it would provoke this from GCC 9:
19675         lib/acl-internal.h:300:3: error: 'const' attribute on function \
19676           returning 'void' [-Werror=attributes]
19678 2018-06-24  Jim Meyering  <meyering@fb.com>
19680         parse-datetime: accommodate gcc-4.8.5
19681         Bruno Haible reported the build failure in
19682         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
19683         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
19684         on declaration of new local.
19686 2018-06-24  Bruno Haible  <bruno@clisp.org>
19688         af_alg: Fail in continuable manner on Linux/powerpc64le.
19689         Reported by Assaf Gordon <assafgordon@gmail.com>
19690         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
19691         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
19692         byte send() as the first round.
19694 2018-06-24  Bruno Haible  <bruno@clisp.org>
19696         af_alg: Fix state of stream after sendfile() succeeds.
19697         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
19698         the stream is correctly positioned afterwards.
19699         * modules/crypto/af_alg (Depends-on): Add fflush.
19700         * tests/test-digest.h (test_digest_on_files): Verify that after the
19701         operation the stream is positioned at end of file.
19703 2018-06-24  Jim Meyering  <meyering@fb.com>
19705         canon-host: take GCC9's advice rather than ignoring warning
19706         Pádraig Brady suggested not to ignore this GCC9 advice.
19707         * lib/canon-host.c: Undo preceding change.
19708         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
19710         parse-datetime.y: avoid spurious GCC 9 warning
19711         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
19712         a function local prior to the first "goto fail".  The prior use would
19713         evoke this:
19714         parse-datetime.y: In function 'parse_datetime2':
19715         parse-datetime.y:1791:19: error: jump skips variable initialization \
19716           [-Werror=jump-misses-init]
19717         parse-datetime.y:2385:2: note: label 'fail' defined here
19718         parse-datetime.y:188:43: note: '({anonymous})' declared here
19719         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
19721         canon-host.c: avoid spurious GCC 9 warning
19722         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
19724         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
19725         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
19726         * m4/manywarnings.m4: Remove them.
19727         Otherwise, building coreutils, I would see this:
19728         cc1: error: deprecated command line option '-Wchkp' [-Werror]
19729         cc1: error: -Wabi won't warn about anything [-Werror=abi]
19730         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
19731           which is also used by default
19732         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
19734 2018-06-24  Bruno Haible  <bruno@clisp.org>
19736         af_alg tests: Add another test.
19737         * tests/test-digest.h (test_digest_on_files): Also check a large file
19738         with a skipped header.
19739         * tests/test-md5.c: Include macros.h.
19740         * tests/test-sha1.c: Likewise.
19741         * tests/test-sha256.c: Likewise.
19742         * tests/test-sha512.c: Likewise.
19743         * modules/crypto/md5-tests (Files): Add tests/macros.h.
19744         * modules/crypto/sha1-tests (Files): Likewise.
19745         * modules/crypto/sha256-tests (Files): Likewise.
19746         * modules/crypto/sha512-tests (Files): Likewise.
19748 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19750         maint: clarify comments about sticky EOF
19751         * lib/af_alg.c: Be more direct that we can't
19752         assume stickiness of EOF for portability reasons.
19753         * lib/md5.c: Clarify that this isn't just a glibc issue.
19754         * lib/sha1.c: Likewise.
19755         * lib/sha256.c: Likewise.
19756         * lib/sha512.c: Likewise.
19758 2018-06-24  Bruno Haible  <bruno@clisp.org>
19760         af_alg: Comment and style improvements.
19761         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
19762         (afalg_buffer, afalg_stream): Improve comments.
19764 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19766         af_alg: disable kernel hash functions by default
19767         All the kernel routines were seen to be significantly slower
19768         with these relatively recent components on an i3-2310M system:
19769           kernel-4.10.6-200.fc25.x86_64
19770           openssl-1.0.2m-1.fc25.x86_64
19771         sha1 was nearly twice as slow in the kernel for example.
19772         Further considerations why this should not be the default, at:
19773         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
19775         * m4/af_alg.m4: Require --with-linux-crypto to enable.
19776         * m4/gl-openssl.m4: Tweak accordingly.
19778 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19780         af_alg: avoid hangs when reading from streams
19781         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
19782         and thus avoid doing a fread() when feof() is set.
19783         * lib/md5.c: Ensure feof() is called before fread().
19784         * lib/sha1.c: Likewise.
19785         * lib/sha256.c: Likewise.
19786         * lib/sha512.c: Likewise.
19788 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19790         af_alg: fix error handling when hash not returned
19791         * lib/af_alg.c (afalg_stream): Handle the case where we've
19792         successfully written data to the kernel in the read/write loop,
19793         but the kernel doesn't respond with the hash.
19795 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19797         libc-config: merge from glibc
19798         * lib/cdefs.h (__inline, __restrict):
19799         Copy from current glibc.  This fixes glibc bug 17721,
19800         which Gnulib had already fixed in a different way.
19801         (__nonnull): Lessen the distance from glibc by using the
19802         glibc definition inside an ‘#ifndef __nonnull’.
19803         (__attribute_nonstring__): New macro, copied from
19804         current glibc.
19805         * lib/libc-config.h (__attribute_nonstring__): New undef.
19806         (__restrict): Remove; workaround no longer needed.
19807         Keep the __inline workaround, though, as it uses HAVE___INLINE to
19808         support more compilers than the glibc __inline can.
19810 2018-06-24  Bruno Haible  <bruno@clisp.org>
19812         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
19813         * lib/mbrtowc.c (enc_t): New enum type.
19814         (locale_enc, locale_enc_cached): New functions.
19815         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
19816         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
19817         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
19818         instead.
19819         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
19820         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
19821         * modules/wcwidth (configure.ac): Invoke it.
19823 2018-06-24  Bruno Haible  <bruno@clisp.org>
19825         wchar-single: Fix test failure in wcwidth tests.
19826         * tests/test-wcwidth.c (main): If the wchar-single module is present,
19827         skip the tests in the C locale.
19829 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19831         crypto: mention --without-linux-crypto in --with-openssl --help
19832         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
19833         routines take precedence in --with-openssl help output.
19835 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19837         wchar-single: a new module to enable optimizations in wchar replacements
19838         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
19839         GNULIB_WCHAR_SINGLE is enabled.
19840         * lib/wcwidth.c (wcwidth): Likewise.
19842 2018-06-23  Bruno Haible  <bruno@clisp.org>
19844         libc-config: Fix conflict with FreeBSD include files.
19845         * lib/cdefs.h (__nonnull): Remove definition.
19846         * lib/libc-config.h (__nonnull): Remove undefinition.
19848 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19850         random_r: do not crash if state is unaligned
19851         Problem reported by Bruce Korb in:
19852         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
19853         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
19854         with 'cc -O2 -xmemalign=8s'.
19855         * lib/random_r.c: Include string.h, for memcpy.
19856         (get_int32, set_int32): New functions.
19857         (__srandom_r, __initstate_r, __setstate_r, __random_r):
19858         Use them to avoid assumption that state pointer is aligned.
19859         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
19860         * tests/test-random_r.c (test_failed): New function.
19861         (main): Use it, to test for alignment bugs.
19863         random_r: omit unnecessary include
19864         * lib/random_r.c: Do not include limits.h.
19866         random, random_r: merge from glibc
19867         * lib/random.c, lib/random_r.c:
19868         Include libc-config.h if !_LIBC, not config.h unilaterally.
19869         * lib/random.c:
19870         Do not include stdint.h or time.h; not needed.
19871         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
19872         (unsafe_state): Rename from generator.  All uses changed.
19873         Use C99-style initializers.
19874         (__random, __srandom, __initstate, __setstate): Rename from
19875         non-underscored version, but define it to non-underscored version
19876         on Gnulib.  Add a lock.
19877         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
19878         Likewise.
19879         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
19880         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
19881         (__srandom_r): Use int32_t instead of long int where int32_t will do.
19882         (__random_r): Use uint32 to fix glibc bug 17343.
19883         * modules/random, modules/random_r (Depends-on): Add libc-config.
19884         Depend on stdint only if $HAVE_RANDOM = 0.
19886 2018-06-19  Jim Meyering  <meyering@fb.com>
19888         README-release: also run any check-very-expensive tests
19889         * top/README-release: Adjust instructions so they run the
19890         check-very-expensive tests when there is such a target.
19892 2018-06-18  Bruno Haible  <bruno@clisp.org>
19894         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
19895         * m4/pthread_rwlock_rdlock.m4: Add comment.
19896         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
19897         are reader-preferring in glibc.
19898         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
19899         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
19901 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19903         crypto: use byteswap
19904         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
19905         * lib/sm3.c: Include <byteswap.h>.
19906         (SWAP): Use its macros rather than reinventing the wheel.
19907         * modules/crypto/md4, modules/crypto/md5-buffer:
19908         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
19909         * modules/crypto/sha512-buffer, modules/crypto/sm3:
19910         (Depends-on): Add byteswap.
19912 2018-06-17  Pádraig Brady  <P@draigBrady.com>
19914         gendocs.sh: fix support for legacy --texi2html
19915         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
19916         to the default makeinfo invocation.
19917         Reported by Bruce Korb
19919 2018-06-17  Bruno Haible  <bruno@clisp.org>
19921         gettext po infrastructure: Update from current gettext git.
19922         Reported by Akim Demaille <akim@lrde.epita.fr>.
19923         * build-aux/po/Makefile.in.in: Update from current gettext git.
19924         * build-aux/po/remove-potcdate.sin: Likewise.
19925         * config/srclist.txt: Temporarily disable sync for these files.
19927 2018-06-17  Bruno Haible  <bruno@clisp.org>
19929         getloadavg: Return 0 on Windows without Cygwin.
19930         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
19932 2018-06-17  Paul Smith  <psmith@gnu.org>
19934         getloadavg: Allow building on Windows without Cygwin
19935         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
19936         * m4/getloadavg.m4: Check for unistd.h.
19938 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
19940         Port crypto/af_alg to GCC 4.8.4
19941         Problem reported by Peter Simons in:
19942         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
19943         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
19945 2018-05-27  Colin Watson  <cjwatson@debian.org>
19947         bootstrap: document source fetching in --help
19948         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
19950 2018-04-09  Colin Watson  <cjwatson@debian.org>
19952         bootstrap: allow non-submodule control of gnulib
19953         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
19954         bootstrap.conf when fetching gnulib using "git clone" or via
19955         GNULIB_SRCDIR.
19957 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19959         crypto: omit stream ops Emacs doesn’t need
19960         * lib/md5.c (md5_stream):
19961         * lib/sha1.c (sha1_stream):
19962         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
19963         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19964         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
19965         defined.  Emacs needs this, as it does not use the stream
19966         operations and doesn’t need all the af_alg stuff we’ve recently
19967         added.  Perhaps a similar change is needed to the other crypto
19968         modules, but this patch changes only those needed for Emacs.
19969         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
19970         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
19971         New modules, used by Emacs.
19972         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19973         * modules/crypto/sha512: Rewrite to depend on the new modules.
19975 2018-05-20  Pádraig Brady  <P@draigBrady.com>
19977         fts: avoid a memory leak edge case
19978         * lib/fts.c (fts_open): Set an appropriate fts_level
19979         so that an immediate fts_close() will free the allocation.
19980         * tests/test-fts.c (fts_dealloc): Add a test case which
19981         will trigger under valgrind or address sanitizer.
19982         Fixes https://bugs.gnu.org/31439
19984 2018-05-20  Bruno Haible  <bruno@clisp.org>
19986         wcwidth tests: Fix link error.
19987         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
19988         $(LIBUNISTRING).
19990 2018-05-20  Bruno Haible  <bruno@clisp.org>
19992         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
19993         * modules/regex (Files): Add m4/glibc21.m4.
19995 2018-05-20  Bruno Haible  <bruno@clisp.org>
19997         localcharset: Optimize.
19998         * lib/localcharset.c (alias_table): Comment out no-op mappings for
19999         platforms where these don't matter. This reduces the table size,
20000         which in turn reduces the lookup time.
20002 2018-05-19  Bruno Haible  <bruno@clisp.org>
20004         localcharset: Map the locale encodings found in newer OSes.
20005         * lib/localcharset.c (alias_table): Add mapping for locale encodings
20006         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
20007         IRIX 6.5, Minix 3.3.
20008         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
20010 2018-05-19  Bruno Haible  <bruno@clisp.org>
20012         localcharset: Move mapping tables into the code. Use a binary search.
20013         * lib/localcharset.h: Document the GNU canonical names for character
20014         encodings here.
20015         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
20016         relocatable.h, configmake.h.
20017         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
20018         macros.
20019         (charset_aliases): Remove variable.
20020         (get_charset_aliases): Remove function.
20021         (struct table_entry): New type.
20022         (alias_table, locale_table): New constants.
20023         (locale_charset): Use the alias_table or locale_table to get the
20024         canonicalized encoding name.
20025         * lib/config.charset: Remove file.
20026         * lib/ref-add.sin: Remove file.
20027         * lib/ref-del.sin: Remove file.
20028         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
20029         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
20030         * modules/localcharset (Notice): Remove.
20031         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
20032         glibc21.m4.
20033         (Depends-on): Remove configmake.
20034         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
20035         (Makefile.am): Simplify.
20036         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
20038 2018-05-19  Bruno Haible  <bruno@clisp.org>
20040         localcharset: Add a manual test.
20041         * tests/test-localcharset.c: New file.
20042         * modules/localcharset-tests: New file.
20044 2018-05-19  Bruno Haible  <bruno@clisp.org>
20046         localcharset: Remove support for obsolete platforms.
20047         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
20048         Mac OS X 10.2. Comment out dubious entry for Solaris.
20050 2018-05-19  Jim Meyering  <meyering@fb.com>
20052         gnupload: adjust comment
20053         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
20054         more likely we'll remove the just-added code in a year or two.
20056 2018-05-19  Bruno Haible  <bruno@clisp.org>
20058         gnupload: Fix "gpg-agent is not available in this session" error.
20059         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
20061 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20063         crypto/af_alg: fix --help
20064         * m4/af_alg.m4: Avoid spurious newline in --help output.
20066 2018-05-13  Bruno Haible  <bruno@clisp.org>
20068         nl_langinfo: Fix compilation error on Android.
20069         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
20070         INT_CURR_SYMBOL, etc. only if these items are defined.
20072 2018-05-13  Bruno Haible  <bruno@clisp.org>
20074         truncate: Fix compilation error on Android.
20075         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
20076         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
20077         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
20078         HAVE_TRUNCATE.
20079         * modules/truncate: Likewise.
20080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
20081         not HAVE_TRUNCATE.
20082         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
20083         HAVE_TRUNCATE.
20084         * doc/posix-functions/truncate.texi: Mention the issue.
20086 2018-05-13  Bruno Haible  <bruno@clisp.org>
20088         pthread: Fix compilation error on Android.
20089         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
20090         recursive inclusion of this file.
20092 2018-05-13  Bruno Haible  <bruno@clisp.org>
20094         posix_spawn: Fix compilation error on Android.
20095         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
20096         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
20097         (posix_spawn_file_actions_t): Consider also the case
20098         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
20100 2018-05-13  Bruno Haible  <bruno@clisp.org>
20102         tsearch: Move from K&R C to ANSI C.
20103         * lib/tsearch.c (tfind): Convert definition to ANSI C.
20105 2018-05-13  Bruno Haible  <bruno@clisp.org>
20107         tsearch: Fix compilation error on Android.
20108         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
20109         is 0.
20110         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
20111         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
20112         GNULIB_defined_tsearch is true.
20113         (twalk): Define only if GNULIB_defined_twalk is true.
20114         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
20115         is 0.
20116         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
20117         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
20118         * modules/search (Makefile.am): Substitute HAVE_TWALK.
20120 2018-05-13  Bruno Haible  <bruno@clisp.org>
20122         imaxdiv: Fix compilation error on Android.
20123         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
20124         is not defined.
20125         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
20126         HAVE_DECL_IMAXDIV, is 0.
20127         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
20128         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
20130 2018-05-13  Bruno Haible  <bruno@clisp.org>
20132         Support selective inclusion mechanism of recent mingw.org header files.
20133         Reported by Eli Zaretskii <eliz@gnu.org>.
20134         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
20135         __need_ssize_t, or __need_time_t is defined, just include the system's
20136         <sys/types.h>.
20137         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
20138         include the system's <locale.h>.
20140 2018-05-13  Bruno Haible  <bruno@clisp.org>
20142         Avoid compilation error due to 'mmap' on Android.
20143         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
20144         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
20145         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
20146         Undefine on Android.
20148 2018-05-13  Bruno Haible  <bruno@clisp.org>
20150         Add cross-compilation guesses for Linux systems without glibc.
20151         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
20152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
20153         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20154         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20155         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
20156         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
20157         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20158         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
20159         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
20160         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
20161         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20162         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20163         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20164         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20165         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20166         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20167         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20168         * m4/utimens.m4 (gl_UTIMENS): Likewise.
20170 2018-05-13  Bruno Haible  <bruno@clisp.org>
20172         getpagesize: Fix compilation error on Android.
20173         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
20174         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
20175         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
20176         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
20177         HAVE_GETPAGESIZE accordingly.
20178         * modules/getcwd (Files): Add m4/getpagesize.m4.
20180 2018-05-13  Bruno Haible  <bruno@clisp.org>
20182         tcgetsid: Fix compilation error on Android.
20183         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
20184         AC_CHECK_FUNC.
20186 2018-05-13  Bruno Haible  <bruno@clisp.org>
20188         getpass: Fix configure test for Android.
20189         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
20190         AC_CHECK_FUNC.
20192 2018-05-13  Bruno Haible  <bruno@clisp.org>
20194         ffs: Fix compilation error on Android.
20195         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
20197 2018-05-13  Bruno Haible  <bruno@clisp.org>
20199         mkfifo: Fix compilation error on Android.
20200         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
20201         AC_CHECK_FUNC.
20203 2018-05-13  Bruno Haible  <bruno@clisp.org>
20205         c-strtod: Fix configure test for Android.
20206         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
20207         AC_CHECK_FUNC.
20209 2018-05-13  Bruno Haible  <bruno@clisp.org>
20211         random: Fix compilation error on Android.
20212         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
20213         AC_CHECK_FUNC.
20215 2018-05-13  Bruno Haible  <bruno@clisp.org>
20217         grantpt: Fix compilation error on Android.
20218         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
20219         AC_CHECK_FUNC.
20221 2018-05-13  Bruno Haible  <bruno@clisp.org>
20223         stdioext: Fix compilation errors with newer Android headers.
20224         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
20225         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
20226         fallbacks for Android.
20227         * lib/fpending.c: Update comments.
20228         * lib/fpurge.c: Likewise.
20229         * lib/freadable.h: Likewise.
20230         * lib/freadable.c: Likewise.
20231         * lib/freadahead.c: Likewise.
20232         * lib/freading.h: Likewise.
20233         * lib/freadptr.c: Likewise.
20234         * lib/fseterr.c: Likewise.
20235         * lib/fwritable.h: Likewise.
20236         * lib/fwritable.c: Likewise.
20237         * lib/fwriting.h: Likewise.
20238         * lib/fwriting.c: Likewise.
20240 2018-05-13  Bruno Haible  <bruno@clisp.org>
20242         doc: Add info about Android versions 2.0 to 8.1.
20243         * doc/**/*.texi: Add info about functions in all released versions of
20244         Bionic.
20246 2018-05-12  Bruno Haible  <bruno@clisp.org>
20248         fseeko: On mingw, don't use the hidden function _fseeki64.
20249         Reported by Eli Zaretskii <eliz@gnu.org>.
20250         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
20251         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
20253 2018-05-12  Bruno Haible  <bruno@clisp.org>
20255         glob: Choose 'dirent_type' in a way that works better on mingw.
20256         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
20257         * lib/glob.c (dirent_type): Define as uint_fast32_t.
20259 2018-05-12  Bruno Haible  <bruno@clisp.org>
20261         execute, spawn-pipe: Avoid warning about redefining 'close'.
20262         Reported by Eli Zaretskii <eliz@gnu.org>.
20263         * lib/execute.c: Undefine 'close' before redefining it.
20264         * lib/spawn-pipe.c: Likewise.
20266 2018-05-12  Bruno Haible  <bruno@clisp.org>
20268         nanosleep: Avoid test failure on mingw when it has nanosleep.
20269         Reported by Eli Zaretskii <eliz@gnu.org>.
20270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
20271         If it does not exist, use a simpler test program that does not call
20272         alarm().
20274 2018-05-10  Bruno Haible  <bruno@clisp.org>
20276         lock, cond, thread, tls: Use a different symbol as libpthread witness.
20277         Reported by Devin Hussey <husseydevin@gmail.com>.
20278         Based on a patch by Paul Eggert.
20279         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
20280         as witness of libpthread.
20281         * lib/glthread/cond.h (pthread_in_use): Likewise.
20282         * lib/glthread/thread.h (pthread_in_use): Likewise.
20283         * lib/glthread/tls.h (pthread_in_use): Likewise.
20285 2018-05-10  Bruno Haible  <bruno@clisp.org>
20287         cond tests: Fix compilation error on Solaris.
20288         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
20289         macro.
20291 2018-05-10  Bruno Haible  <bruno@clisp.org>
20293         doc: Add partial info about Android 4.3.
20294         * doc/*-functions/*.texi: Add info about functions that were added
20295         to Bionic between Android 4.3 and Android 9.0.
20297 2018-05-10  Bruno Haible  <bruno@clisp.org>
20299         doc: Add info about Android 9.0.
20300         * doc/**/*.texi: Add info about functions and headers in Bionic from
20301         Android 9.0.
20303 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
20305         af_alg: fix my typo in afalg_buffer
20306         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
20307         (afalg_stream): Simplify and avoid the need for a runtime test
20308         at the end.
20310         af_alg: recover better from crypto failures
20311         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
20312         input stream is seekable, by repositioning the stream back to
20313         where it was, possibly by just calling sendfile with an offset
20314         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
20315         cases, which lets our callers try again with user-mode code.
20316         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
20317         instead of on fflush and lseek.
20319         af_alg: distiguish I/O errors better
20320         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
20321         not -EIO, if it’s OK for the caller to try again with user-mode code.
20322         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
20323         some other error number) if fflush fails, as the caller should not
20324         try again that case.
20326         af_alg: avoid gotos
20327         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
20328         gotos, as they were a source of unreliability and made the code a
20329         bit harder to follow.
20331         af_alg: don’t leak file descriptors into children
20332         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
20333         This code should be compiled only on recent GNU/Linux platforms
20334         so we shouldn’t have to also depend on the accept4 module.
20336         af_alg: coalesce socket creation
20337         * lib/af_alg.c (alg_socket): New function.
20338         (afalg_buffer, afalg_stream): Use it.  This avoids some
20339         code duplication and gotos.
20341         af_alg: fix file descriptor leak
20342         * lib/af_alg.c (afalg_stream): Close leak.
20344         af_alg: Pacify --enable-gcc-warnings on GCC 8
20345         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
20346         and checking to pacify gcc -Wjump-misses-init on GCC 8.
20348 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20350         af_alg: Pacify --enable-gcc-warnings
20351         Problem reported by Assaf Gordon in:
20352         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
20353         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
20354         gcc -Wjump-misses-init.
20355         * lib/sha512.c (shaxxx_stream): Now static.
20357 2018-05-06  Bruno Haible  <bruno@clisp.org>
20359         af_alg: Add ability to use Linux kernel crypto API on data in memory.
20360         * lib/af_alg.h (afalg_buffer): New declaration.
20361         * lib/af_alg.c (afalg_buffer): New function.
20363 2018-05-06  Bruno Haible  <bruno@clisp.org>
20365         af_alg: Avoid warnings.
20366         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
20367         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
20369 2018-05-06  Bruno Haible  <bruno@clisp.org>
20371         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
20372         * tests/bench-digest.h: New file.
20373         * tests/bench-md5.c: New file.
20374         * tests/bench-sha1.c: New file.
20375         * tests/bench-sha224.c: New file.
20376         * tests/bench-sha256.c: New file.
20377         * tests/bench-sha384.c: New file.
20378         * tests/bench-sha512.c: New file.
20379         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
20380         tests/bench-digest.h.
20381         (Depends-on): Add getrusage, gettimeofday.
20382         (Makefile.am): Add variables to build bench-md5.
20383         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
20384         tests/bench-digest.h.
20385         (Depends-on): Add getrusage, gettimeofday.
20386         (Makefile.am): Add variables to build bench-sha1.
20387         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
20388         tests/bench-sha256.c, tests/bench-digest.h.
20389         (Depends-on): Add getrusage, gettimeofday.
20390         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
20391         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
20392         tests/bench-sha512.c, tests/bench-digest.h.
20393         (Depends-on): Add getrusage, gettimeofday.
20394         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
20396 2018-05-06  Bruno Haible  <bruno@clisp.org>
20398         af_alg: Fix a resource leak.
20399         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
20400         New local variable 'result'.
20402 2018-05-06  Bruno Haible  <bruno@clisp.org>
20404         af_alg: Fix bug with streams that are not at position 0.
20405         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
20406         assume that the stream is positioned at position 0.
20407         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
20408         of the stream.
20409         * lib/md5.h (md5_stream): Likewise.
20410         * lib/sha1.h (sha1_stream): Likewise.
20411         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
20412         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
20413         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
20415         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
20416         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
20417         stream that is not positioned at the beginning.
20419 2018-05-06  Bruno Haible  <bruno@clisp.org>
20421         af_alg: Add configure option to enable/disable use of Linux crypto API.
20422         Suggested by Assaf Gordon <assafgordon@gmail.com>.
20423         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
20424         USE_LINUX_CRYPTO_API.
20425         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
20426         * lib/af_alg.c: Likewise.
20428 2018-05-06  Bruno Haible  <bruno@clisp.org>
20430         Followup to 'af_alg: New module.'.
20431         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
20432         * modules/crypto/sha1 (Depends-on): Likewise.
20433         * modules/crypto/sha256 (Depends-on): Likewise.
20434         * modules/crypto/sha512 (Depends-on): Likewise.
20436 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20438         crypto/{md5,sha1,sha256,sha512}: simplify
20439         * lib/md5.c (md5_stream):
20440         * lib/sha1.c (sha1_stream):
20441         * lib/sha256.c (shaxxx_stream):
20442         Simplify, partly by assuming C99.
20443         * lib/sha256.c (shaxxx_stream):
20444         New function, which implements both sha256 and sha224.
20445         Simplify, partly by assuming C99.
20446         (sha256_stream, sha224_stream):
20447         Use it to avoid code duplication, removing a FIXME.
20448         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
20449         Likewise.
20451         af_alg: Improve comments.
20452         * lib/af_alg.h: Use imperatives and tighten up wording.
20454 2018-05-05  Bruno Haible  <bruno@clisp.org>
20456         af_alg: Improve comments.
20457         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
20459 2018-05-05  Bruno Haible  <bruno@clisp.org>
20461         af_alg: New module.
20462         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
20463         * lib/af_alg.c: Include "af_alg.h" before the other header files.
20464         * lib/md5.c: Include "af_alg.h" unconditionally.
20465         (md5_stream): Invoke afalg_stream unconditionally.
20466         * lib/sha1.c: Include "af_alg.h" unconditionally.
20467         (sha1_stream): Invoke afalg_stream unconditionally.
20468         * lib/sha256.c: Include "af_alg.h" unconditionally.
20469         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
20470         * lib/sha512.c: Include "af_alg.h" unconditionally.
20471         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
20472         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
20473         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
20474         * modules/crypto/af_alg: New file.
20475         * modules/crypto/md5 (Files): Remove files that are now in the
20476         'crypto/af_alg' module.
20477         (Depends-on): Add crypto/af_alg.
20478         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20479         (Makefile.am): Don't mention af_alg.c here.
20480         * modules/crypto/sha1 (Files): Remove files that are now in the
20481         'crypto/af_alg' module.
20482         (Depends-on): Add crypto/af_alg.
20483         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20484         (Makefile.am): Don't mention af_alg.c here.
20485         * modules/crypto/sha256 (Files): Remove files that are now in the
20486         'crypto/af_alg' module.
20487         (Depends-on): Add crypto/af_alg.
20488         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20489         (Makefile.am): Don't mention af_alg.c here.
20490         * modules/crypto/sha512 (Files): Remove files that are now in the
20491         'crypto/af_alg' module.
20492         (Depends-on): Add crypto/af_alg.
20493         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20494         (Makefile.am): Don't mention af_alg.c here.
20496 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20498         crypto tests: pacify GCC
20499         * tests/test-digest.h (test_digest_on_files):
20500         Don’t assume digest size fits in int (!).
20502         af_alg: minor style improvements
20503         * lib/af_alg.c (afalg_stream): Prefer C99 style
20504         decl-after-statement, since we’re already assuming C99.  Clarify
20505         by strengthening the bind test and omit unnecessary assignment.
20507 2018-05-05  Bruno Haible  <bruno@clisp.org>
20509         af_alg: Fix bug on empty files.
20510         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
20511         stream is empty.
20513 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20515         sys-limits.h: new file for crypto and safe I/O
20516         * lib/af_alg.c: Include sys-limits.h.
20517         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
20518         (afalg_stream): Also reject negative sizes for sendfile; they
20519         should not happen and the code is a bit cleaner and faster this way.
20520         * lib/safe-read.c: Include sys-limits.h.
20521         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
20522         * lib/sys-limits.h: New file, with values and commentary derived
20523         from the old safe-read.c and from GNU Emacs sysdep.c.
20524         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
20525         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
20526         Add lib/sys-limits.h to Files section.
20528 2018-05-05  Bruno Haible  <bruno@clisp.org>
20530         af_alg: Improve function signature.
20531         * lib/af_alg.h (afalg_stream): Swap second and third argument.
20532         * lib/af_alg.c (afalg_stream): Likewise.
20533         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
20535 2018-05-05  Bruno Haible  <bruno@clisp.org>
20537         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
20538         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
20539         * modules/crypto/sha1 (Depends-on): Likewise.
20540         * modules/crypto/sha256 (Depends-on): Likewise.
20541         * modules/crypto/sha512 (Depends-on): Likewise.
20543 2018-05-05  Bruno Haible  <bruno@clisp.org>
20545         crypto/{md5,sha1,sha256,sha512}: Fix module description.
20546         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
20547         * modules/crypto/sha1 (Depends-on): Likewise.
20548         * modules/crypto/sha256 (Depends-on): Likewise.
20549         * modules/crypto/sha512 (Depends-on): Likewise.
20551 2018-05-05  Bruno Haible  <bruno@clisp.org>
20553         af_alg: Add documentation.
20554         * lib/af_alg.h: Add comments.
20556 2018-05-05  Bruno Haible  <bruno@clisp.org>
20558         sha512: Add tests.
20559         * tests/test-sha512.c: New file.
20560         * modules/crypto/sha512-tests: New file.
20562 2018-05-05  Bruno Haible  <bruno@clisp.org>
20564         sha256: Add tests.
20565         * tests/test-sha256.c: New file.
20566         * modules/crypto/sha256-tests: New file.
20568 2018-05-05  Bruno Haible  <bruno@clisp.org>
20570         sha1 tests: Add test for sha1_stream.
20571         * tests/test-sha1.c: Include test-digest.h.
20572         (main): Invoke test_digest_on_files on 'sha1_stream'.
20573         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
20575 2018-05-05  Bruno Haible  <bruno@clisp.org>
20577         md5 tests: Add test for md5_stream.
20578         * tests/test-digest.h: New file.
20579         * tests/test-md5.c: Include test-digest.h.
20580         (main): Invoke test_digest_on_files on 'md5_stream'.
20581         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
20583 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20585         md5sum: Use AF_ALG when available.
20586         * lib/md5.c: Include af_alg.h.
20587         (md5_stream): Use afalg_stream when available.
20588         * modules/crypto/md5 (Files): Add the af_alg files.
20589         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20590         (Makefile.am): Add af_alg.c.
20592 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20594         sha512sum: Use AF_ALG when available.
20595         * lib/sha512.c: Include af_alg.h.
20596         (sha512_stream, sha384_stream): Use afalg_stream when available.
20597         * modules/crypto/sha512 (Files): Add the af_alg files.
20598         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20599         (Makefile.am): Add af_alg.c.
20601 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20603         sha256sum: Use AF_ALG when available.
20604         * lib/sha256.c: Include af_alg.h.
20605         (sha256_stream, sha224_stream): Use afalg_stream when available.
20606         * modules/crypto/sha256 (Files): Add the af_alg files.
20607         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20608         (Makefile.am): Add af_alg.c.
20610 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20612         sha1sum: Use AF_ALG when available.
20613         * lib/af_alg.h: New file.
20614         * lib/af_alg.c: New file.
20615         * lib/sha1.c: Include af_alg.h.
20616         (sha1_stream): Use afalg_stream when available.
20617         * m4/linux-if-alg.m4: New file.
20618         * modules/crypto/sha1 (Files): Add the new files.
20619         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20620         (Makefile.am): Add af_alg.c.
20622 2018-05-05  Bruno Haible  <bruno@clisp.org>
20624         all: Replace more http URLs by https URLs.
20625         * lib/localename.c: Use https: URL.
20626         * lib/timespec.h: Likewise.
20628 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20630         maint: port more modules to GCC 8
20631         * lib/dirname.h (base_name):
20632         * lib/exclude.h (new_exclude):
20633         * lib/xstrndup.h (xstrndup):
20634         Add malloc attribute.
20635         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
20636         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
20637         This pacifies GCC 8.
20638         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20639         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
20641 2018-05-03  Bruno Haible  <bruno@clisp.org>
20643         Simplify code. Drop support for Borland C++ on Windows.
20644         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
20645         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
20646         'defined _WIN32'.
20647         * lib/canonicalize-lgpl.c: Likewise.
20648         * lib/classpath.c: Likewise.
20649         * lib/clean-temp.c: Likewise.
20650         * lib/csharpexec.c: Likewise.
20651         * lib/ctime.c: Likewise.
20652         * lib/dosname.h: Likewise.
20653         * lib/dup2.c: Likewise.
20654         * lib/errno.in.h: Likewise.
20655         * lib/error.c: Likewise.
20656         * lib/euidaccess.c: Likewise.
20657         * lib/execute.c: Likewise.
20658         * lib/fcntl.in.h: Likewise.
20659         * lib/fcntl.c: Likewise.
20660         * lib/filename.h: Likewise.
20661         * lib/findprog.c: Likewise.
20662         * lib/flock.c: Likewise.
20663         * lib/fopen.c: Likewise.
20664         * lib/freopen.c: Likewise.
20665         * lib/fstat.c: Likewise.
20666         * lib/fsync.c: Likewise.
20667         * lib/gc-gnulib.c: Likewise.
20668         * lib/get-rusage-data.c: Likewise.
20669         * lib/getaddrinfo.c: Likewise.
20670         * lib/getdelim.c: Likewise.
20671         * lib/getdtablesize.c: Likewise.
20672         * lib/gethostname.c: Likewise.
20673         * lib/getlogin.c: Likewise.
20674         * lib/getlogin_r.c: Likewise.
20675         * lib/getopt.c: Likewise.
20676         * lib/getpagesize.c: Likewise.
20677         * lib/getpass.c: Likewise.
20678         * lib/getrusage.c: Likewise.
20679         * lib/gettimeofday.c: Likewise.
20680         * lib/glob.c: Likewise.
20681         * lib/inttypes.in.h: Likewise.
20682         * lib/isapipe.c: Likewise.
20683         * lib/javaexec.c: Likewise.
20684         * lib/link.c: Likewise.
20685         * lib/localcharset.c: Likewise.
20686         * lib/localename.h: Likewise.
20687         * lib/localename.c: Likewise.
20688         * lib/localtime.c: Likewise.
20689         * lib/lseek.c: Likewise.
20690         * lib/mbsinit.c: Likewise.
20691         * lib/mkdir.c: Likewise.
20692         * lib/msvc-nothrow.h: Likewise.
20693         * lib/nanosleep.c: Likewise.
20694         * lib/nl_langinfo.c: Likewise.
20695         * lib/nonblocking.c: Likewise.
20696         * lib/nproc.c: Likewise.
20697         * lib/open.c: Likewise.
20698         * lib/openpty.c: Likewise.
20699         * lib/pathmax.h: Likewise.
20700         * lib/pipe-filter-aux.c: Likewise.
20701         * lib/pipe-filter-gi.c: Likewise.
20702         * lib/pipe-filter-ii.c: Likewise.
20703         * lib/pipe.c: Likewise.
20704         * lib/pipe2.c: Likewise.
20705         * lib/poll.c: Likewise.
20706         * lib/popen.c: Likewise.
20707         * lib/posix_openpt.c: Likewise.
20708         * lib/printf-parse.c: Likewise.
20709         * lib/progreloc.c: Likewise.
20710         * lib/putenv.c: Likewise.
20711         * lib/read.c: Likewise.
20712         * lib/relocatable.c: Likewise.
20713         * lib/rename.c: Likewise.
20714         * lib/same-inode.h: Likewise.
20715         * lib/secure_getenv.c: Likewise.
20716         * lib/select.c: Likewise.
20717         * lib/sethostname.c: Likewise.
20718         * lib/setlocale.c: Likewise.
20719         * lib/sigaction.c: Likewise.
20720         * lib/sigprocmask.c: Likewise.
20721         * lib/sleep.c: Likewise.
20722         * lib/spawn-pipe.h: Likewise.
20723         * lib/spawn-pipe.c: Likewise.
20724         * lib/spawni.c: Likewise.
20725         * lib/stat-time.h: Likewise.
20726         * lib/stat-w32.c: Likewise.
20727         * lib/stat.c: Likewise.
20728         * lib/stdio.in.h: Likewise.
20729         * lib/stdio-impl.h: Likewise.
20730         * lib/stdio-read.c: Likewise.
20731         * lib/stdio-write.c: Likewise.
20732         * lib/stdlib.in.h: Likewise.
20733         * lib/strerror_r.c: Likewise.
20734         * lib/strftime-fixes.c: Likewise.
20735         * lib/sys_stat.in.h: Likewise.
20736         * lib/sys_types.in.h: Likewise.
20737         * lib/sys_wait.in.h : Likewise.
20738         * lib/system-quote.h: Likewise.
20739         * lib/system-quote.c: Likewise.
20740         * lib/tmpdir.c: Likewise.
20741         * lib/tzset.c: Likewise.
20742         * lib/uname.c: Likewise.
20743         * lib/unistd.in.h: Likewise.
20744         * lib/utime.in.h: Likewise.
20745         * lib/utime.c: Likewise.
20746         * lib/utimecmp.c: Likewise.
20747         * lib/utimens.c: Likewise.
20748         * lib/vasnprintf.c: Likewise.
20749         * lib/vma-iter.h: Likewise.
20750         * lib/vma-iter.c: Likewise.
20751         * lib/wait-process.c: Likewise.
20752         * lib/wcsftime.c: Likewise.
20753         * lib/wctype.in.h: Likewise.
20754         * lib/write.c: Likewise.
20755         * tests/nap.h: Likewise.
20756         * tests/test-cloexec.c: Likewise.
20757         * tests/test-dup-safer.c: Likewise.
20758         * tests/test-dup2.c: Likewise.
20759         * tests/test-dup3.c: Likewise.
20760         * tests/test-fcntl.c: Likewise.
20761         * tests/test-get-rusage-data.c: Likewise.
20762         * tests/test-getaddrinfo.c: Likewise.
20763         * tests/test-getlogin.h: Likewise.
20764         * tests/test-isatty.c: Likewise.
20765         * tests/test-localename.c: Likewise.
20766         * tests/test-mbrtowc-w32.c: Likewise.
20767         * tests/test-nonblocking.c: Likewise.
20768         * tests/test-nonblocking-pipe-main.c: Likewise.
20769         * tests/test-nonblocking-socket-main.c: Likewise.
20770         * tests/test-nonblocking-socket.h: Likewise.
20771         * tests/test-pipe.c: Likewise.
20772         * tests/test-pipe2.c: Likewise.
20773         * tests/test-poll.c: Likewise.
20774         * tests/test-pthread_sigmask1.c: Likewise.
20775         * tests/test-select.h: Likewise.
20776         * tests/test-sethostname2.c: Likewise.
20777         * tests/test-sigprocmask.c: Likewise.
20778         * tests/test-spawn-pipe-child.c: Likewise.
20779         * tests/test-stat-time.c: Likewise.
20780         * tests/test-system-quote-main.c: Likewise.
20781         * tests/test-utimens-common.h: Likewise.
20782         * tests/test-wcrtomb-w32.c: Likewise.
20783         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
20784         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20785         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
20786         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
20787         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
20788         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20789         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20790         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20791         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20792         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20793         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
20794         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
20795         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
20796         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20797         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
20798         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20800 2018-05-02  Bruno Haible  <bruno@clisp.org>
20802         localename: Fix test failures on mingw.
20803         * lib/localename.c (gl_locale_name_thread): Remove code specific to
20804         native Windows.
20805         (gl_locale_name_posix): Move code specific to native Windows here.
20806         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
20807         Accept result without charset suffix, as it appears on mingw.
20809 2018-04-28  Paul Smith  <psmith@gnu.org>
20811         bootstrap: Avoid gnulib operations if not needed
20812         * build-aux/bootstrap: Remove unused variable gnulib_mk.
20813         Set $gnulib_extra_files early so it can be overridden in .conf.
20814         Remove redundant --import flag from $gnulib_tool_options.
20815         Set $use_gnulib to false if no gnulib modules or files are needed.
20816         If $use_gnulib is false, don't do anything related to gnulib.
20817         A lot of this is just whitespace (indentation) changes.
20819 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20821         manywarnings: port to GCC 8.0
20822         * build-aux/gcc-warning.spec: Add -Wcatch-value,
20823         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
20824         fact that the GCC help message now mentions operands for
20825         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
20826         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
20827         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
20828         and -Wunused-const-variable.
20829         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
20830         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
20831         -Wmissing-attributes, -Wmultistatement-macros,
20832         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
20833         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
20835 2018-04-24  Bruno Haible  <bruno@clisp.org>
20837         sys_socket: Make SO_REUSEPORT available across platforms.
20838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20839         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
20840         * doc/posix-headers/sys_socket.texi: Mention the issue.
20841         * tests/test-poll.c (SO_REUSEPORT): Remove.
20842         * tests/test-select.h: Include <sys/socket.h>.
20843         (SO_REUSEPORT): Remove.
20844         * modules/select-tests (Depends-on): Add 'sys_socket'.
20846 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
20848         localcharset: short-circuit the search for an alias on a Mac
20849         * lib/localcharset.c (get_charset_aliases): Add a tautological
20850         UTF-8 entry to speed up the search for this case.
20851         Most machines default to a UTF-8 locale nowadays, so begin the
20852         list of aliases with a dummy UTF-8 entry so it will be found
20853         immediately and a time-consuming search through the rest of
20854         the list is avoided.
20856 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20858         fts: add comment
20859         * lib/fts.c (fts_build): Explain why ==, not >.
20860         See remark by Bernhard Voelker in:
20861         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
20863         fts: fix bug in find across filesystems
20864         This fixes a bug I introduced last summer.
20865         Problem reported by Kamil Dudka in:
20866         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
20867         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
20868         (leaf_optimization):
20869         New arg for file descriptor.  All callers changed.
20870         (fts_build): Check for whether inodes should be sorted
20871         before closing the directory.
20873 2018-04-07  Bruno Haible  <bruno@clisp.org>
20875         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
20876         Reported by Genki Sky <sky@genki.is>.
20877         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
20878         version 0.9.10 or newer.
20879         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
20880         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
20881         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
20882         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
20883         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
20885 2018-04-07  Bruno Haible  <bruno@clisp.org>
20887         execute: Update comment.
20888         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
20890 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20892         fts: treat CIFS like NFS
20893         Problem reported by Kamil Dudka in:
20894         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
20895         * lib/fts.c (S_MAGIC_CIFS): New macro.
20896         (dirent_inode_sort_may_be_useful, leaf_optimization):
20897         Treat CIFS like NFS.
20899 2018-03-28  Bruno Haible  <bruno@clisp.org>
20901         c-stack: Fix possible build failure on some platforms.
20902         * lib/c-stack.c (die): Define whenever this function is referenced.
20904 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
20906         time_rz: fix workaround for Mac OS X 10.6 infloop
20907         Problems reported by Charles A. Roelli (Bug#27736#117).
20908         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
20909         Also, discard output, which clutters the 'configure' log.
20911 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
20913         havelib: port to Solaris 10 /bin/sh
20914         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
20915         instead of '! test EXPR'.
20917 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20919         time_rz: work around Mac OS X 10.6 infloop
20920         * doc/posix-functions/localtime.texi:
20921         * doc/posix-functions/localtime_r.texi: Mention the bug.
20922         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
20923         better to fix localtime and localtime_r instead, but that would be
20924         more work and is not needed to fix the Emacs problem.
20925         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
20927 2018-03-24  Jim Meyering  <meyering@fb.com>
20929         test-version-etc.sh: don't use diff directly: use init.sh's compare
20930         We'd rather not sacrifice readable "diff -u" output even for
20931         "diff -c" output (not supported by busybox) or for even less
20932         readable ed-style "diff" output.  So use init.sh's compare function
20933         * tests/test-version-etc.sh: Source init.sh and add "." to path.
20934         Remove "./" from invocation of test-version-etc, so we use path.
20935         And s/diff/compare/.
20936         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
20937         to get init.sh.
20938         Prompted by Eric Blake's comments in
20939         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
20941 2018-03-24  Bruno Haible  <bruno@clisp.org>
20943         javacomp-script, javacomp: Add support for Java 10.
20944         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
20945         target-version 10.
20946         * lib/javaversion.h: Update comments.
20947         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20948         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20949         TARGET_VERSION_BOUND, target_version_index,
20950         corresponding_classfile_version): Accept source_version 10 and
20951         target_version 10.
20952         * lib/javacomp.h: Update comments accordingly.
20954 2018-03-24  Bruno Haible  <bruno@clisp.org>
20956         javacomp-script, javacomp: Update comments.
20957         * m4/javacomp.m4: Update comments regarding gcj.
20958         * lib/javacomp.h: Likewise.
20960 2018-03-24  Bruno Haible  <bruno@clisp.org>
20962         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
20963         * lib/javaversion.h: Update comments.
20964         * lib/javacomp.h: Likewise.
20965         * lib/javacomp.c (default_target_version, source_version_index,
20966         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
20967         "1.9".
20968         (TARGET_VERSION_BOUND): Bump to 9.
20969         (target_version_index, corresponding_classfile_version): Recognize "9"
20970         instead of "1.9".
20971         (get_source_version_for_javac): New function.
20972         (is_envjavac_nongcj_usable, is_javac_usable): Add
20973         source_version_for_javac argument.
20974         (compile_java_class): Determine and pass source_version_for_javac.
20975         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
20976         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
20977         appropriate.
20979 2018-03-23  Jim Meyering  <meyering@fb.com>
20981         test-version-etc.sh: port to diff without -c
20982         * tests/test-version-etc.sh: Don't use diff's -c option.
20983         This caused spurious test failure on Alpine Linux, which
20984         uses busybox's diff. Reported by Assaf Gordon in
20985         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
20987 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20989         c-stack: port to recent GCC build
20990         Problem reported by The Fireplace (Bug#30913).
20991         * lib/c-stack.c (die): Define only if used.
20993 2018-03-20  Bruno Haible  <bruno@clisp.org>
20995         euidaccess: Port to native Windows.
20996         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
20997         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
20999 2018-03-19  Bruno Haible  <bruno@clisp.org>
21001         javacomp: Add support for Java 7, 8, 9.
21002         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
21003         source_version_index, get_goodcode_snippet, get_failcode_snippet,
21004         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
21005         and target_version 1,7, 1.8, 1.9.
21006         * lib/javacomp.h: Update comments accordingly.
21008 2018-03-19  Bruno Haible  <bruno@clisp.org>
21010         javacomp-script: Add support for Java 9.
21011         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
21012         target-version 1.9.
21014 2018-03-16  Bruno Haible  <bruno@clisp.org>
21016         glob: Don't compile replacements on recent glibc systems.
21017         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
21018         REPLACE_GLOB is 0, include the system's <glob.h> and use
21019         _GL_CXXALIAS_SYS.
21020         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
21021         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
21022         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
21023         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
21024         Remove snippet/warn-on-use.
21025         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
21026         (Makefile.am): Create glob.h always. Update list of substitutions in
21027         glob.h. Don't depend on $(WARN_ON_USE_H).
21029 2018-03-16  Bruno Haible  <bruno@clisp.org>
21031         glob: Fix link error on native Windows.
21032         * modules/glob (Depends-on): Add 'lstat'.
21034 2018-03-15  Bruno Haible  <bruno@clisp.org>
21036         glob: Fix compilation error in C++ mode.
21037         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
21039 2018-03-15  Bruno Haible  <bruno@clisp.org>
21041         host-cpu-c-abi: Support for RISC-V CPU.
21042         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
21043         riscv32 and riscv64 ABIs.
21044         References:
21045         https://github.com/riscv/riscv-toolchain-conventions
21046         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
21047         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
21049 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
21051         fflush: be more paranoid about libio.h change
21052         Suggested by Eli Zaretskii in:
21053         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
21054         * lib/fbufmode.c (fbufmode):
21055         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21056         (disable_seek_optimization, rpl_fflush):
21057         * lib/fpending.c (__fpending):
21058         * lib/fpurge.c (fpurge):
21059         * lib/freadable.c (freadable):
21060         * lib/freadahead.c (freadahead):
21061         * lib/freading.c (freading):
21062         * lib/freadptr.c (freadptr):
21063         * lib/freadseek.c (freadptrinc):
21064         * lib/fseeko.c (fseeko):
21065         * lib/fseterr.c (fseterr):
21066         * lib/fwritable.c (fwritable):
21067         * lib/fwriting.c (fwriting):
21068         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
21070 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21072         maint: write-file-hooks -> before-save-hook
21073         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
21074         it's time to use the recommended replacement.
21075         Problem reported by Glenn Morris in:
21076         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
21077         * build-aux/announce-gen, build-aux/bootstrap:
21078         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
21079         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
21080         * build-aux/gnu-web-doc-update, build-aux/gnupload:
21081         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
21082         * build-aux/update-copyright, build-aux/useless-if-before-free:
21083         * build-aux/vc-list-files:
21084         Update hook usage for files where Gnulib is the canonical source.
21086 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
21088         binary-io: pacify gcc -Wunused-parameter
21089         Problem reported by Reuben Thomas in:
21090         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
21091         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
21092         Use _GL_UNUSED where appropriate.
21094         fflush: adjust to glibc 2.28 libio.h removal
21095         Problem reported by Daniel P. Berrangé in:
21096         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
21097         * lib/fbufmode.c (fbufmode):
21098         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21099         (disable_seek_optimization, rpl_fflush):
21100         * lib/fpending.c (__fpending):
21101         * lib/fpurge.c (fpurge):
21102         * lib/freadable.c (freadable):
21103         * lib/freadahead.c (freadahead):
21104         * lib/freading.c (freading):
21105         * lib/freadptr.c (freadptr):
21106         * lib/freadseek.c (freadptrinc):
21107         * lib/fseeko.c (fseeko):
21108         * lib/fseterr.c (fseterr):
21109         * lib/fwritable.c (fwritable):
21110         * lib/fwriting.c (fwriting):
21111         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
21112         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
21113         Define if not already defined.
21115 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
21117         environ: fix link error on 32-bit Cygwin
21118         Problem reported for GNU Emacs by Ken Brown in:
21119         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
21120         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
21122 2018-02-24  Bruno Haible  <bruno@clisp.org>
21124         mbrtowc tests: Fix regression on glibc.
21125         Reported by Bernhard Voelker.
21126         * tests/test-mbrtowc.c (main): Fix expected value of wc.
21128 2018-02-24  Bruno Haible  <bruno@clisp.org>
21130         striconveha, uniconv/*: Avoid test failures on musl libc.
21131         * tests/iconvsupport.c: New file.
21132         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
21133         does not support the ISO-2022-JP-2 encoding.
21134         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21135         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21136         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21137         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21138         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21139         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21140         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
21141         (Makefile.am): Link test-striconveha with iconvsupport.o.
21142         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
21143         tests/iconvsupport.c.
21144         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
21145         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
21146         tests/iconvsupport.c.
21147         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
21148         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
21149         tests/iconvsupport.c.
21150         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
21151         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
21152         tests/iconvsupport.c.
21153         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
21154         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
21155         tests/iconvsupport.c.
21156         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
21157         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
21158         tests/iconvsupport.c.
21159         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
21161 2018-02-24  Bruno Haible  <bruno@clisp.org>
21163         localename: Add support for musl libc.
21164         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
21165         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
21166         on Linux platforms which define NL_LOCALE_NAME.
21168 2018-02-24  Bruno Haible  <bruno@clisp.org>
21170         mbrtowc tests: Don't make assumptions about the charset the C locale.
21171         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
21172         particular mapping in the C locale.
21174 2018-02-24  Bruno Haible  <bruno@clisp.org>
21176         ptsname_r: Don't expect that this function sets errno.
21177         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
21178         from ptsname_r().
21179         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
21181 2018-02-23  Bruno Haible  <bruno@clisp.org>
21183         xmalloca: pacify gcc -Wbad-function-cast
21184         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
21186 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
21188         nl_langinfo: pacify gcc -Wunused-function
21189         * lib/nl_langinfo.c (ctype_codeset): Do not define if
21190         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
21191         this case.  Without this change, I got a diagnostic when building
21192         coreutils on Fedora 27 with gcc 7.3.1 20180130.
21194         same: pacify gcc -Wunused-variable
21195         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
21196         Omit unused variable.
21198         malloca: pacify gcc -Wbad-function-cast
21199         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
21200         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
21201         To pacify GCC, I had to cast alloca’s result to some type other
21202         than void * before casting that to uintptr_t.
21204 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
21206         utimecmp: new function utimecmpat
21207         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
21208         Do not include utimens.h.
21209         (utimecmpat): New function, generalizing utimecmp.
21210         (utimecmp): Now a thin layer around utimecmpat.
21211         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
21212         utimensat instead of on lstat and utimens.
21214         same: new function same_nameat
21215         * lib/same.c: Include fcntl.h.
21216         * lib/same.c (same_nameat): New function, generalizing same_name.
21217         (same_name): Now a thin layer around same_nameat.
21218         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
21219         * modules/same (Depends-on): Depend on fstatat, openat.
21221 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
21223         warnings: Add support for Objective C.
21224         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
21225         macro.
21227 2018-02-17  Bruno Haible  <bruno@clisp.org>
21229         lock: Fix test-once1 crash on FreeBSD11.
21230         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
21231         'pthread_create', not 'pthread_cancel'.
21233 2018-02-17  Bruno Haible  <bruno@clisp.org>
21235         lock: Add test of gl_once.
21236         * tests/test-once.c: New file.
21237         * modules/lock-tests (Files): Add it.
21238         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
21240 2018-02-17  Bruno Haible  <bruno@clisp.org>
21242         thread: Fix compilation error on IRIX.
21243         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
21244         needed; include it outside the C++ extern "C" {} block.
21245         * doc/posix-headers/pthread.texi: Mention the problem with
21246         pthread_atfork on IRIX.
21248 2018-02-04  Bruno Haible  <bruno@clisp.org>
21250         nl_langinfo: Override the system's nl_langinfo() when needed.
21251         Reported by Jim Meyering.
21252         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
21253         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
21255 2018-02-04  Bruno Haible  <bruno@clisp.org>
21257         signal-h, monetary, strings: Fix build failure in some cases.
21258         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21259         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
21260         as delimiter in sed command, not '|'.
21261         * modules/monetary (Makefile.am): Likewise.
21262         * modules/strings (Makefile.am): Likewise.
21264 2018-02-03  Jim Meyering  <meyering@fb.com>
21266         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
21267         * top/maint.mk (sc_file_system): Don't complain about
21268         "/proc/filesystems".
21270 2018-02-03  Bruno Haible  <bruno@clisp.org>
21272         stdlib: Fix compilation error on OpenIndiana.
21273         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
21274         <sys/time.h>.
21275         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21276         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
21278 2018-02-03  Bruno Haible  <bruno@clisp.org>
21280         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
21281         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
21282         and use $EGREP instead of 'grep -E'.
21283         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
21284         'grep -E'.
21286 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
21288         malloca: Add a compile-time verification.
21289         * lib/malloca.c (small_t): Verify that it is wide enough.
21290         * modules/malloca (Depends-on): Add verify.
21292 2018-02-02  Bruno Haible  <bruno@clisp.org>
21294         malloca: Add an argument check.
21295         Suggested by Paul Eggert.
21296         * lib/malloca.c (freea): Check against an invalid argument.
21298 2018-02-02  Bruno Haible  <bruno@clisp.org>
21300         localename: Add support for OpenIndiana.
21301         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
21302         Solaris 11 variants with uselocale() but without getlocalename_l().
21304 2018-02-02  Bruno Haible  <bruno@clisp.org>
21306         malloca, xmalloca: Make multithread-safe.
21307         Reported by Florian Weimer <fweimer@redhat.com>.
21308         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
21309         * lib/malloca.h (malloca): In the stack allocation case, return a
21310         pointer that is a multiple of 2 * sa_alignment_max.
21311         (sa_increment): Remove enum item.
21312         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
21313         a pointer that is a multiple of 2 * sa_alignment_max.
21314         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
21315         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
21316         HASH_TABLE_SIZE, mmalloca_results): Remove.
21317         (small_t): New type.
21318         (mmalloca, free): Rewritten.
21319         * lib/malloca.valgrind: Remove file.
21320         * modules/malloca (Files): Remove it.
21321         (Depends-on): Remove verify.
21323 2018-01-31  Bruno Haible  <bruno@clisp.org>
21325         environ: Fix link error on 64-bit Cygwin.
21326         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
21327         __declspec(dllimport) attribute.
21328         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
21330 2018-01-30  Bruno Haible  <bruno@clisp.org>
21332         get-rusage-data: Add support for Minix 3.
21333         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
21335 2018-01-30  Bruno Haible  <bruno@clisp.org>
21337         vma-iter: Add support for Minix 3.
21338         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
21339         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
21341 2018-01-27  Bruno Haible  <bruno@clisp.org>
21343         Fix malfunction of socket functions on HP-UX in 64-bit mode.
21344         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
21345         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
21346         _HPUX_ALT_XOPEN_SOCKET_API.
21347         * modules/accept (Depends-on): Add 'extensions'.
21348         * modules/getpeername (Depends-on): Likewise.
21349         * modules/getsockname (Depends-on): Likewise.
21350         * modules/getsockopt (Depends-on): Likewise.
21351         * modules/recvfrom (Depends-on): Likewise.
21352         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
21353         * doc/posix-functions/getpeername.texi: Likewise.
21354         * doc/posix-functions/getsockname.texi: Likewise.
21355         * doc/posix-functions/getsockopt.texi: Likewise.
21356         * doc/posix-functions/recvfrom.texi: Likewise.
21358 2018-01-27  Bruno Haible  <bruno@clisp.org>
21360         getsockname tests: More tests.
21361         * tests/test-getsockname.c (open_server_socket): New function, mostly
21362         copied from test-poll.c.
21363         (main): Check that getsockname fills in addr.
21364         * modules/getsockname-tests (Depends-on): Add the necessary
21365         dependencies.
21366         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
21368 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
21370         manywarnings: fix maintainer comment
21371         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
21372         it does not mistakenly think that ‘-1)’ is an option.
21374 2018-01-26  Bruno Haible  <bruno@clisp.org>
21376         langinfo: Fix last commit.
21377         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21378         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
21380 2018-01-24  Bruno Haible  <bruno@clisp.org>
21382         langinfo, nl_langinfo: Add support for alternative month names.
21383         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
21384         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
21385         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
21386         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
21387         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
21388         * doc/posix-functions/nl_langinfo.texi: Likewise.
21390 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21392         Merge strftime.c changes from glibc
21393         This incorporates:
21394         2017-11-14 [BZ #10871] Implement alternative month names
21395         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
21396         2017-06-20 Use locale_t, not __locale_t, throughout glibc
21397         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
21398         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
21399         Use locale_t, not __locale_t.
21400         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
21401         (__strftime_internal): Add support for alternate months.
21403 2018-01-23  Bruno Haible  <bruno@clisp.org>
21405         doc: Mention another prerequisite for using Gnulib.
21406         Reported at <https://stackoverflow.com/questions/48378214/>.
21407         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
21408         AC_CONFIG_HEADERS.
21410 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
21412         build: GuixSD doesn't have /bin/bash
21413         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
21415 2018-01-21  Bruno Haible  <bruno@clisp.org>
21417         Avoid test failures on Microsoft Windows Subsystem for Linux.
21418         * tests/test-fcntl.c (main): Allow a different errno.
21419         * tests/test-rename.h (test_rename): Likewise.
21420         * tests/test-renameat.c (main): Likewise.
21421         * tests/test-renameat2.c (main): Likewise.
21423 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21425         filenamecat: make base a suffix of result
21426         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
21427         (mfile_name_concat): Always make BASE a suffix of the result, as
21428         cp expects this.  To implement this, separate with '.' instead of
21429         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
21430         * tests/test-filenamecat.c (main): Adjust tests to match
21431         current behavior.  Check that BASE_IN_RESULT points to
21432         a copy of BASE and is a suffix of the resultk, and that DIR
21433         is a prefix of the result that is no longer than the prefix
21434         indicated by BASE_IN_RESULT.
21436 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
21438         update-copyright: Handle use of ©
21439         * build-aux/update-copyright ($circle_c_re): Update regex to
21440         handle use of © in headers.
21442 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
21444         Fix -Wundef warning in user-included header lib/cdefs.h.
21445         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
21447 2018-01-04  Bruno Haible  <bruno@clisp.org>
21449         pthread_sigmask: Avoid compilation error on mingw.
21450         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21451         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
21452         macro.
21454 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
21456         test-framework-sh: ‘ps -ef’, not ‘ps ef’
21457         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
21458         Suggested by Bob Proulx (Bug#29968).
21459         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
21461 2018-01-02  Eric Blake  <eblake@redhat.com>
21463         stat-time: silence -Wunused-parameter regression
21464         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
21465         Prefer attribute over cast-to-void.
21466         (stat_time_normalize): Mark st as potentially unused.
21468 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21470         test-framework-sh: avoid netstat
21471         Problem reported by Kristýna Streitová (Bug#29947).
21472         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
21473         deprecated on SuSE and it's not that important anyway.
21475 2018-01-01  Jim Meyering  <meyering@fb.com>
21477         update-copyright: add code to handle more special cases
21478         After running "make update-copyright" this year, five files
21479         required additional manual changes.  Automate those adjustments
21480         for next year.
21481         * Makefile (_year_and_prev): Define.
21482         (update-copyright): Add perl commands to induce this year's post-
21483         update-copyright adjustments.
21485 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21487         version-etc: new year
21488         * build-aux/gendocs.sh (version):
21489         * doc/gendocs_template:
21490         * doc/gendocs_template_min:
21491         * doc/gnulib.texi:
21492         * lib/version-etc.c (COPYRIGHT_YEAR):
21493         Update copyright dates by hand in templates and the like.
21495         maint: fix 'make update-copyright'
21496         * Makefile (update-copyright): Adjust to 2016-11-23 change
21497         to config/srclist-update, which changed the format of srclist.txt.
21499 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21501         chdir-safer: remove this module
21502         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
21503         * NEWS: Document removal.
21504         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
21505         * modules/chdir-safer: Remove these files.
21507 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
21509         Add cross-compilation results for GNU/Hurd.
21510         * m4/calloc.m4: Add GNU/Hurd guess.
21511         * m4/cbrtl.m4: Likewise.
21512         * m4/ceil.m4: Likewise.
21513         * m4/ceilf.m4: Likewise.
21514         * m4/ceill.m4: Likewise.
21515         * m4/chown.m4: Likewise.
21516         * m4/duplocale.m4: Likewise.
21517         * m4/exp2l.m4: Likewise.
21518         * m4/expm1.m4: Likewise.
21519         * m4/fchdir.m4: Likewise.
21520         * m4/floor.m4: Likewise.
21521         * m4/floorf.m4: Likewise.
21522         * m4/fmod.m4: Likewise.
21523         * m4/fmodf.m4: Likewise.
21524         * m4/fmodl.m4: Likewise.
21525         * m4/getcwd.m4: Likewise.
21526         * m4/getgroups.m4: Likewise.
21527         * m4/gettimeofday.m4: Likewise.
21528         * m4/hypot.m4: Likewise.
21529         * m4/hypotf.m4: Likewise.
21530         * m4/hypotl.m4: Likewise.
21531         * m4/link-follow.m4: Likewise.
21532         * m4/link.m4: Likewise.
21533         * m4/linkat.m4: Likewise.
21534         * m4/log.m4: Likewise.
21535         * m4/log10.m4: Likewise.
21536         * m4/log10f.m4: Likewise.
21537         * m4/log1p.m4: Likewise.
21538         * m4/log1pf.m4: Likewise.
21539         * m4/log1pl.m4: Likewise.
21540         * m4/log2.m4: Likewise.
21541         * m4/log2f.m4: Likewise.
21542         * m4/logf.m4: Likewise.
21543         * m4/lstat.m4: Likewise.
21544         * m4/malloc.m4: Likewise.
21545         * m4/mbrlen.m4: Likewise.
21546         * m4/mbrtowc.m4: Likewise.
21547         * m4/mkdir.m4: Likewise.
21548         * m4/mkfifo.m4: Likewise.
21549         * m4/mknod.m4: Likewise.
21550         * m4/mkstemp.m4: Likewise.
21551         * m4/modf.m4: Likewise.
21552         * m4/modff.m4: Likewise.
21553         * m4/modfl.m4: Likewise.
21554         * m4/printf.m4: Likewise.
21555         * m4/pselect.m4: Likewise.
21556         * m4/ptsname.m4: Likewise.
21557         * m4/putenv.m4: Likewise.
21558         * m4/readlink.m4: Likewise.
21559         * m4/realloc.m4: Likewise.
21560         * m4/remainder.m4: Likewise.
21561         * m4/remainderf.m4: Likewise.
21562         * m4/remainderl.m4: Likewise.
21563         * m4/rmdir.m4: Likewise.
21564         * m4/round.m4: Likewise.
21565         * m4/roundf.m4: Likewise.
21566         * m4/roundl.m4: Likewise.
21567         * m4/select.m4: Likewise.
21568         * m4/setenv.m4: Likewise.
21569         * m4/signbit.m4: Likewise.
21570         * m4/sleep.m4: Likewise.
21571         * m4/stat.m4: Likewise.
21572         * m4/strerror.m4: Likewise.
21573         * m4/strtok_r.m4: Likewise.
21574         * m4/symlink.m4: Likewise.
21575         * m4/symlinkat.m4: Likewise.
21576         * m4/trunc.m4: Likewise.
21577         * m4/truncf.m4: Likewise.
21578         * m4/truncl.m4: Likewise.
21579         * m4/tzset.m4: Likewise.
21580         * m4/ungetc.m4: Likewise.
21581         * m4/usleep.m4: Likewise.
21582         * m4/wcwidth.m4: Likewise.
21584 2017-12-28  Bruno Haible  <bruno@clisp.org>
21586         gnulib-tool: Make --conditional-dependencies work better.
21587         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
21588         * gnulib-tool (Options): Don't reject the combination of
21589         --conditional-dependencies with --with-tests.
21590         (func_emit_autoconf_snippets): Add argument referenceable_modules.
21591         Don't reference $modules.
21592         (func_import, func_create_testdir): Pass it.
21594 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21596         regex: use re_malloc etc. consistently
21597         Problem and original patch reported by Arnold Robbins in:
21598         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
21599         * lib/regcomp.c (re_comp):
21600         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
21601         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
21603 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
21604             Paul Eggert  <eggert@cs.ucla.edu>
21606         glob: Silence warning about void pointer arithmetic.
21607         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
21608         arithmetic.
21610 2017-12-15  Bruno Haible  <bruno@clisp.org>
21612         spawn-pipe: Silence a clang warning.
21613         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21614         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
21615         in this file.
21617 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21619         explicit_bzero: port to macOS + Clang 9.0.0
21620         Problem reported by Marcus Johnson (Bug#29658).
21621         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
21622         Don’t use asm.
21624 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21626         doc: Improve explanation of supporting relocatable libraries.
21627         * doc/relocatable-maint.texi (Supporting Relocation): Explain
21628         properly how to build the relocatable module for
21629         libraries. (Method and example code from Bruno Haible.)
21631 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21633         doc: Use better texinfo tags in a few cases.
21634         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
21635         instead of @samp in a few places.
21637 2017-12-11  Bruno Haible  <bruno@clisp.org>
21639         unistr/base: Update comment.
21640         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
21642 2017-12-10  Pádraig Brady  <P@draigBrady.com>
21644         test-faccessat.c: unlink temp file to avoid subsequent test failure
21645         * tests/test-faccessat.c: Remove the file to avoid failure
21646         to open the file on subsequent runs due to being created
21647         with no permissions.
21649 2017-12-10  Bruno Haible  <bruno@clisp.org>
21651         doc: New sect. "Modifying the build rules of a Gnulib import directory".
21652         * doc/gnulib-tool.texi (Modified build rules): New node.
21654 2017-12-10  Bruno Haible  <bruno@clisp.org>
21656         doc: Tweak wording.
21657         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
21658         "binaries".
21660 2017-12-05  Sam Steingold  <sds@gnu.org>
21661             Bruno Haible  <bruno@clisp.org>
21663         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
21664         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
21665         AC_EGREP_CPP pattern.
21667 2017-12-03  Bruno Haible  <bruno@clisp.org>
21669         all: Replace more http URLs by https URLs.
21670         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
21671         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
21672         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
21673         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
21675 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
21677         Port better to CentOS 5
21678         Problems reported by Tom G. Christensen in:
21679         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
21680         * doc/glibc-functions/strverscmp.texi (strverscmp):
21681         Document strverscmp bug with glibc 2.9 and earlier.
21682         * doc/posix-functions/tzset.texi (tzset):
21683         Document that TZ with angle brackets is POSIX-2001 and later.
21684         * tests/test-nstrftime.c: Include unistd.h.
21685         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
21686         (TZ): Use it to skip tests with angle brackets in TZ,
21687         for older systems.
21689         stat: add missing module dependencies
21690         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
21691         Add stat-time.
21693 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
21695         stat: fix compilation failure on macOS Sierra
21696         Reported by Marius Schamschula <mschamschula@gmail.com> in:
21697         https://savannah.gnu.org/bugs/?52546
21698         * lib/stat.c: Add missing include of stat-time.h.
21700 2017-11-28  Jim Meyering  <meyering@fb.com>
21702         test-faccessat.c: correct BASE definition to avoid parallel test failure
21703         * tests/test-faccessat.c (BASE): Define using this file's name, not
21704         that of test-lstat.c.  Using the latter caused this test to fail
21705         sometimes when run concurrently with test-lstat.
21707 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21709         unicase: fix VPATH build
21710         * modules/unicase/special-casing (Makefile.am): Ensure that the
21711         base directory is created when generating
21712         unicase/special-casing.h.
21714 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21716         libunistring: update to Unicode 9.0.0
21717         * lib/gen-uni-tables.c (fill_properties): Recognize
21718         Sentence_Terminal and Prepended_Concatenation_Mark.
21719         (is_property_default_ignorable_code_point): Exclude U+08E2.
21720         (fill_arabicshaping): Allow missing whitespace when parsing;
21721         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
21722         (output_blocks): Increase the element size of the level1 table to
21723         accommodate more blocks.
21724         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
21725         Update each class according to the standard.
21726         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
21727         E_Base_GAZ characters.
21728         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
21729         Glue_After_Zwj, and E_Base_GAZ characters.
21730         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
21731         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
21732         enum value.
21733         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
21734         value.
21735         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
21736         LBP_ZWJ, LBP_EB, and LBP_EM.
21737         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
21738         enum value.
21739         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
21740         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
21741         declaration.
21742         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
21743         (uniwbrk_table): Implement WB14.
21744         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
21745         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
21746         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
21747         uc-is-grapheme-break.
21748         * modules/unigbrk/uc-grapheme-breaks: New module.
21749         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
21750         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
21751         enum value.
21752         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
21753         * lib/unigbrk/u-grapheme-breaks.h: New file.
21754         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
21755         u-grapheme-breaks.h instead of uc_is_grapheme_break.
21756         * lib/unigbrk/uc-grapheme-breaks.c: New file.
21757         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
21758         29.
21759         * tests/unigbrk/test-uc-gbrk-prop.c
21760         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21761         GBP_GAZ, and GBP_EBG.
21762         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
21763         * tests/unigbrk/test-uc-is-grapheme-break.c
21764         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21765         GBP_GAZ, and GBP_EBG.
21766         (main): Skip unsupported rules involving 3 or more characters,
21767         namely GB10, GB12, and GB13.
21768         * lib/uniwidth/width.c (nonspacing_table_data): Update.
21769         * all generated files under lib/uni* and tests/uni*: Regenerate.
21770         * all the affected modules: Bump version.
21772 2017-11-26  Bruno Haible  <bruno@clisp.org>
21774         strfmon_l: Fix compilation error with glibc 2.5.
21775         Reported by Tom G. Christensen <tgc@jupiterrise.com>
21776         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
21777         * lib/monetary.in.h: Include also <locale.h>.
21779 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21781         posixtm: remove PDS_LEADING_YEAR
21782         This changes the API slightly, in a hopefully-innocuous way.
21783         Without this change the code had undefined behavior when a
21784         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
21785         Problem reported by Pádraig Brady in:
21786         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
21787         * NEWS: Mention this.
21788         * lib/posixtm.c (posix_time_parse): Treat the absence of
21789         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
21790         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
21791         present, but define it as zero, for compatibility with existing
21792         source code).  All other PDS_* values moved up.
21793         * tests/test-posixtm.c (LY): New macro.
21794         (T): Use it.  Do not expect a particular numeric encoding
21795         for PDS_CENTURY etc.
21797 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21799         stat: work around Solaris bug with tv_nsec < 0
21800         * doc/posix-functions/fstat.texi (fstat):
21801         * doc/posix-functions/fstatat.texi (fstatat):
21802         * doc/posix-functions/lstat.texi (lstat):
21803         * doc/posix-functions/stat.texi (stat):
21804         Mention Solaris 11 bug.
21805         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
21806         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
21807         * lib/lstat.c (rpl_lstat):
21808         * lib/stat.c (rpl_stat):
21809         Normalize resulting timestamps.
21810         * lib/fstatat.c (normal_fstatat): New function.
21811         (rpl_fstatat): Use it.
21812         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
21813         (stat_time_normalize): New function.
21814         * m4/fstat.m4 (gl_FUNC_FSTAT):
21815         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
21816         * m4/lstat.m4 (gl_FUNC_LSTAT):
21817         * m4/stat.m4 (gl_FUNC_STAT):
21818         Replace on Solaris.
21819         * modules/fstat (Depends-on):
21820         * modules/fstatat (Depends-on):
21821         Add stat-time.
21822         * modules/stat-time (Depends-on): Add errno, intprops.
21824 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
21826         regex: merge from glibc
21827         * lib/regcomp.c (init_word_char): Add comments.
21829 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21831         regex: merge from glibc
21832         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
21833         * lib/regex_internal.h (internal_function): Remove.
21834         All uses removed.
21836 2017-11-20  Bruno Haible  <bruno@clisp.org>
21838         crypto/gc-sm3: Fix buffer overrun.
21839         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
21840         Reported by Coverity.
21842 2017-11-12  Jim Meyering  <meyering@fb.com>
21844         maint: shorten https://lists.gnu.org/archive/html/... links
21845         Each /archive/html/ part can be replace with /r/.
21846         Run this to induce the change:
21847         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
21848         * ChangeLog: Perform that substitution.
21849         * Makefile: Likewise.
21850         * STATUS-libposix: Likewise.
21851         * build-aux/bootstrap: Likewise.
21852         * doc/maintain.texi: Likewise.
21853         * gnulib-tool: Likewise.
21854         * lib/allocator.h: Likewise.
21855         * lib/argp-ba.c: Likewise.
21856         * lib/argp-pv.c: Likewise.
21857         * lib/canon-host.c: Likewise.
21858         * lib/canonicalize-lgpl.c: Likewise.
21859         * lib/float.in.h: Likewise.
21860         * lib/fstat.c: Likewise.
21861         * lib/getdelim.c: Likewise.
21862         * lib/getprogname.c: Likewise.
21863         * lib/glthread/thread.h: Likewise.
21864         * lib/intprops.h: Likewise.
21865         * lib/mbsrtowcs-state.c: Likewise.
21866         * lib/safe-read.c: Likewise.
21867         * lib/signal.in.h: Likewise.
21868         * lib/stat.c: Likewise.
21869         * lib/stdbool.in.h: Likewise.
21870         * lib/stdio-impl.h: Likewise.
21871         * lib/stdio.in.h: Likewise.
21872         * lib/sysexits.in.h: Likewise.
21873         * lib/timespec.h: Likewise.
21874         * lib/wcsrtombs-state.c: Likewise.
21875         * m4/alloca.m4: Likewise.
21876         * m4/extern-inline.m4: Likewise.
21877         * m4/fstatat.m4: Likewise.
21878         * m4/gnulib-common.m4: Likewise.
21879         * m4/lib-ignore.m4: Likewise.
21880         * m4/printf.m4: Likewise.
21881         * m4/regex.m4: Likewise.
21882         * m4/stat-size.m4: Likewise.
21883         * m4/std-gnu11.m4: Likewise.
21884         * m4/stdbool.m4: Likewise.
21885         * m4/sys_types_h.m4: Likewise.
21886         * m4/threadlib.m4: Likewise.
21887         * m4/vararrays.m4: Likewise.
21888         * pygnulib/GLImport.py: Likewise.
21889         * tests/test-exp.h: Likewise.
21890         * tests/test-exp2.h: Likewise.
21891         * tests/test-expm1.h: Likewise.
21892         * tests/test-fflush2.c: Likewise.
21893         * tests/test-getopt_long.h: Likewise.
21894         * tests/test-intprops.c: Likewise.
21895         * tests/test-log.h: Likewise.
21896         * tests/test-log10.h: Likewise.
21897         * tests/test-log1p.h: Likewise.
21898         * tests/test-log2.h: Likewise.
21899         * tests/test-printf-posix.h: Likewise.
21900         * tests/test-regex.c: Likewise.
21901         * tests/test-snprintf-posix.h: Likewise.
21902         * tests/test-sprintf-posix.h: Likewise.
21903         * tests/test-stdalign.c: Likewise.
21904         * tests/test-stdbool.c: Likewise.
21905         * tests/test-vasnprintf-posix.c: Likewise.
21906         * tests/test-vasprintf-posix.c: Likewise.
21907         * top/maint.mk: Likewise.
21909 2017-11-12  Bruno Haible  <bruno@clisp.org>
21911         faccessat: Make the last change more robust.
21912         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
21913         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
21915 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21917         faccessat: port to macOS (Bug#29231)
21918         macOS faccessat has the same bug that lstat does: if the file
21919         name ends in '/' it ignores the trailing slash.
21920         Problem reported for Emacs by Vincent Zhang.
21921         * doc/posix-functions/faccessat.texi (faccessat): Document this.
21922         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
21923         around the initial includes.  Include errno.h, string.h, sys/stat.h.
21924         (orig_faccessat) [HAVE_FACCESSAT]: New function.
21925         Include "unistd.h" after defining it.
21926         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
21927         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
21928         Handle in the usual way.
21929         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
21930         lstat dereferences symlinks, since faccessat is likely to
21931         have the same problem.
21932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
21933         * modules/faccessat (Depends-on): Add fstatat.
21934         Depend if REPLACE_FACCESSAT is 1, too.
21935         (configure.ac): Link if REPLACE_FACCESSAT is 1.
21936         * modules/faccessat-tests (Depends-on): Add symlink.
21937         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
21938         * tests/test-faccessat.c (main): Test for the bug.
21940 2017-11-11  Bruno Haible  <bruno@clisp.org>
21942         getprogname: Fix compilation error on IRIX.
21943         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
21944         'namesize'.
21946 2017-11-11  Bruno Haible  <bruno@clisp.org>
21948         year2038: Tweak last patch.
21949         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
21951 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21953         year2038: be more insistent about 64-bit time_t
21954         Applications requiring access to arbitrary files should not be
21955         built with 32-bit time_t on hosts that have 64-bit timestamps,
21956         as this can lead to real trouble at runtime.
21957         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
21958         Check on all systems, not just MinGW.  Use a heuristic involving
21959         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
21960         output a failure or just a warning, to make it more likely that
21961         builders will select 64-bit time_t.
21963 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21965         havelib: fix typo in previous change
21966         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
21968         Don’t use AC_EGREP_CPP if affected by CFLAGS
21969         * m4/float_h.m4 (gl_FLOAT_H):
21970         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
21971         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
21972         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
21973         * m4/year2038.m4 (gl_YEAR2038):
21974         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
21975         likely to be affected by the choice of CFLAGS, since CFLAGS are
21976         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
21977         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
21979         fstatat: pacify GCC on unusual platform
21980         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
21981         Omit, as it’s unused in this case.
21983 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21985         timespec: prefer ‘assume’ to ‘assure’
21986         This avoids some runtime tests.  The rest of the module makes
21987         similar assumptions and there is little point to testing here.
21988         * lib/timespec.h: Include verify.h instead of assure.h.
21989         (timespec_cmp): Use ‘assume’, not ‘assure’.
21990         Also, remove an unnecessary cast to ‘int’, as lots of other
21991         code in this module now causes -Wconversion to complain, and
21992         this is a problem with -Wconversion not with the code.
21994         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
21996         Port recent gnulib-tool change to Dash
21997         * gnulib-tool (func_create_testdir): Don't assume that the shell
21998         retokenizes after expanding "$@" inside the call to
21999         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
22001 2017-10-27  Jim Meyering  <meyering@fb.com>
22003         timespec.h: use "assure" to avoid a spurious warning
22004         * lib/timespec.h: Include "assure.h" and use it to help
22005         gcc7's -Wstrict-overflow avoid a false positive warning
22006         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
22007         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
22008         * modules/timespec (Depends-on): Add assure.
22010 2017-10-29  Bruno Haible  <bruno@clisp.org>
22012         Avoid several test failures with traditional locales on Haiku.
22013         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
22014         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
22015         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
22016         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
22017         LOCALE_ZH_CN=none.
22019 2017-10-29  Bruno Haible  <bruno@clisp.org>
22021         strerror_r-posix: Fix behaviour and test failure on Haiku.
22022         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
22023         are positive. Work around return value 0 instead of ERANGE on Haiku.
22024         For unknown error numbers, use a format string consistent with perror().
22025         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
22026         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
22027         are positive.
22029 2017-10-29  Bruno Haible  <bruno@clisp.org>
22031         get-rusage-data: Avoid crash on Haiku.
22032         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
22034 2017-10-29  Bruno Haible  <bruno@clisp.org>
22036         get-rusage-as: Avoid crash on Haiku.
22037         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
22039 2017-10-29  Bruno Haible  <bruno@clisp.org>
22041         ilogbl: Ensure replacement on Haiku.
22042         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
22043         REPLACE_ILOGBL if ilogbl does not work.
22044         (gl_FUNC_ILOGBL_WORKS): New macro.
22045         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
22046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
22047         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
22048         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
22049         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
22051 2017-10-29  Bruno Haible  <bruno@clisp.org>
22053         expl: Ensure replacement on Haiku.
22054         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
22055         zero.
22056         * doc/posix-functions/expl.texi: Mention the Haiku problem.
22058 2017-10-29  Bruno Haible  <bruno@clisp.org>
22060         math: Fix test failure on Haiku.
22061         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
22062         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
22063         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
22064         * doc/posix-headers/math.texi: Mention the Haiku problem.
22066 2017-10-29  Bruno Haible  <bruno@clisp.org>
22068         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
22069         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
22070         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
22072 2017-10-29  Bruno Haible  <bruno@clisp.org>
22074         crypto/*: Verify that the header file is self-contained.
22075         * tests/test-gc-*.c: Include the module's header file immediately after
22076         <config.h>.
22077         * tests/test-hmac-*.c: Likewise.
22078         * tests/test-arcfour.c: Likewise.
22079         * tests/test-arctwo.c: Likewise.
22080         * tests/test-des.c: Likewise.
22081         * tests/test-md2.c: Likewise.
22082         * tests/test-md4.c: Likewise.
22083         * tests/test-md5.c: Likewise.
22084         * tests/test-rijndael.c: Likewise.
22085         * tests/test-sha1.c: Likewise.
22086         * tests/test-sm3.c: Likewise.
22088 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22089             Bruno Haible  <bruno@clisp.org>
22091         crypto/gc: fix build failure with -Werror=suggest-attribute=const
22092         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
22094 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22096         New module: crypto/gc-sm3
22097         * lib/gc.h: Declare SM3-related stuffs.
22098         * lib/gc-gnulib.c: Support sm3 in internal functions.
22099         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
22100         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
22101         * modules/crypto/gc-sm3: Define gc-sm3 module.
22102         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
22103         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
22104         * MODULES.html.sh: List gc-sm3 module.
22106 2017-10-29  Bruno Haible  <bruno@clisp.org>
22108         random, random_r: Mention different prototypes on Haiku.
22109         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
22110         * doc/glibc-functions/random_r.texi: Likewise.
22111         * doc/glibc-functions/initstate_r.texi: Likewise.
22112         * doc/glibc-functions/setstate_r.texi: Likewise.
22114 2017-10-28  Bruno Haible  <bruno@clisp.org>
22116         posix_spawn: Avoid spurious message in configure output.
22117         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
22118         'cmp' command.
22120 2017-10-28  Bruno Haible  <bruno@clisp.org>
22122         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
22123         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
22124         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
22126 2017-10-28  Bruno Haible  <bruno@clisp.org>
22128         ioctl: Override non-POSIX declaration on Haiku.
22129         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
22130         * lib/sys_ioctl.in.h: Add comment about Haiku.
22131         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
22132         * doc/glibc-headers/sys_ioctl.texi: Likewise.
22134 2017-10-28  Bruno Haible  <bruno@clisp.org>
22136         crypto/sm3: Add overview documentation to the .h file.
22137         * lib/sm3.h: Add comments.
22139 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22141         New module: crypto/sm3
22142         This new module can be used to compute SM3 message digest of files or
22143         memory blocks according to the specification GM/T 004-2012
22144         Cryptographic Hash Algorithm SM3, published by State Cryptography
22145         Administration, China.
22146         The official SM3 cryptographic hash algorithm specification is
22147         available at
22148         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
22149         * lib/sm3.h: Declare the APIs of sm3 module.
22150         * lib/sm3.c: Implement SM3 hash algorithm.
22151         * m4/sm3.m4: m4 file for sm3 module.
22152         * modules/crypto/sm3: Define sm3 module.
22153         * tests/test-sm3.c: Implement SM3 test case.
22154         * modules/crypto/sm3-tests: Define sm3 test module.
22155         * MODULES.html.sh: List sm3 module.
22157 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22159         gc-libgcrypt: fix undefined enum type in switch statement
22160         Resolve the following build failure:
22161         lib/gc-libgcrypt.c: In function 'gc_hash_open':
22162         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
22163         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
22164              case 0:
22165              ^~~~
22166         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
22167         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
22169 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22171         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
22172         Resolve the following build failure:
22173         lib/gc-libgcrypt.c: In function 'gc_hash_read':
22174         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
22175         in signedness [-Werror=pointer-sign]
22176             digest = gcry_md_read (ctx->gch, 0);
22177                    ^
22178         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
22180 2017-10-26  Bruno Haible  <bruno@clisp.org>
22182         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
22183         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
22184         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
22186 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22188         glob: fix another heap buffer overflow
22189         Problem reported by Tim Rühsen in:
22190         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
22191         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
22193 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22195         quotearg: pacify compiler re unsigned
22196         * lib/quotearg.c (quotearg_n_options):
22197         Rewrite to avoid diagnostic from overly-picky compiler.
22198         Problem reported by Sami Kerola in:
22199         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
22201         glob: fix heap buffer overflow
22202         * lib/glob.c (glob): Fix off-by-one error introduced into
22203         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
22204         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
22205         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
22206         Fix suggested by Bruno Haible.
22208 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
22210         glob: pacify fuzzer for mempcpy
22211         Problem reported by Tim Rühsen in:
22212         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
22213         * lib/glob.c (glob): Do not pass NULL to mempcpy.
22215 2017-10-12  Bruno Haible  <bruno@clisp.org>
22217         doc: Fix syntax error (regression from 2017-10-03).
22218         * doc/posix-functions/strncpy.texi: Fix syntax error.
22220 2017-10-12  Bruno Haible  <bruno@clisp.org>
22222         doc: Update for Solaris 11.3.
22223         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
22224         mention Solaris 11.3.
22225         * m4/log2.m4: Fix comments.
22226         * m4/log2f.m4: Likewise.
22227         * m4/printf.m4: Update comments.
22228         * m4/rename.m4: Likewise.
22229         * m4/strncat.m4: Likewise.
22231         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
22233 2017-10-10  Bruno Haible  <bruno@clisp.org>
22235         doc: Improve doc about ioctl.
22236         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
22237         prototype.
22239 2017-10-09  Bruno Haible  <bruno@clisp.org>
22241         wcwidth: Don't use obsolete syntax of 'test'.
22242         Reported by Eric Blake.
22243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
22244         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
22246 2017-10-09  Bruno Haible  <bruno@clisp.org>
22248         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
22249         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
22250         and Daniel P. Berrange <berrange@redhat.com>.
22251         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
22252         on glibc systems. The getopt-pfx-core.h file declares exactly what
22253         unistd.h needs, nothing more.
22255 2017-10-08  Bruno Haible  <bruno@clisp.org>
22257         vma-iter: Improve support for FreeBSD.
22258         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
22259         vma_iterate.
22260         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
22262 2017-10-08  Bruno Haible  <bruno@clisp.org>
22264         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
22265         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
22267 2017-10-07  KO Myung-Hun  <komh@chollian.net>
22269         test-framework-sh: Fix 'invalid path dir' error.
22270         On OS/2, a path separator is ';' not ':'. And ':' is used as a
22271         separator between a drive letter and directory parts.
22272         As a result, an absolute path such as x:/path/to/dir on OS/2 is
22273         treated as an invalid path dir.
22274         * tests/init.sh (PATH_SEPARATOR): Set at startup.
22275         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
22276         instead of hard coded ':'.
22278 2017-10-07  Bruno Haible  <bruno@clisp.org>
22280         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
22281         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
22282         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
22283         (rof_open): On Linux, do multiple read() calls and make sure
22284         MIN_LEFTOVER bytes are left when read() returns.
22286 2017-10-07  Bruno Haible  <bruno@clisp.org>
22288         vma-iter: Improve support for GNU/Hurd.
22289         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
22290         API, not the /proc file system.
22292 2017-10-07  Bruno Haible  <bruno@clisp.org>
22294         test-framework-sh: Don't require bash on Windows and OS/2.
22295         Reported by KO Myung-Hun.
22296         * tests/test-init.sh: Use 'shopt' only when running in bash.
22298 2017-10-06  KO Myung-Hun  <komh@chollian.net>
22300         wcwidth: check a macro version of wcwidth () as well
22301         * lib/wchar.in.h: Revert commit from 2016-01-14.
22302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
22304 2017-10-06  Bruno Haible  <bruno@clisp.org>
22306         getopt-posix: Clarify copyright header.
22307         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
22308         * lib/getopt-pfx-core.h: Likewise.
22309         * lib/getopt-pfx-ext.h: Likewise.
22310         * lib/getopt-cdefs.in.h: Likewise.
22312 2017-10-03  Bruno Haible  <bruno@clisp.org>
22314         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
22315         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
22316         gl_HOST_CPU_C_ABI.
22318 2017-10-03  Bruno Haible  <bruno@clisp.org>
22320         doc: warn about misuse of strncpy and wcsncpy.
22321         * doc/posix-functions/strcpy.texi: Describe requirements on prior
22322         memory allocation.
22323         * doc/posix-functions/wcscpy.texi: Likewise.
22324         * doc/posix-functions/strncpy.texi: Describe what this function is not
22325         useful for.
22326         * doc/posix-functions/wcsncpy.texi: Likewise.
22328 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
22330         fsuage: fix typo in previous change
22331         * lib/fsusage.c: Remove stray include of full-read.h.
22332         Problem reported by Sam Steingold for macOS (Bug#28669).
22334 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
22336         fsusage: remove SVR2 support
22337         SVR2 was obsolete by 1986 and is no longer supported by anybody,
22338         and its code was getting in the way of use of this module by
22339         Emacs, which has its own ‘read’ function anyway.
22340         * lib/fsusage.c: Do not include sys/filsys.h.
22341         (get_fs_usage): Remove SVR2-specific code.
22342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
22343         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
22344         * modules/fsusage (Depends-on): Do not depend on full-read.
22346         Simplify autoupdate of licenses
22347         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
22348         place.
22350 2017-10-01  Bruno Haible  <bruno@clisp.org>
22352         vma-iter: Add support for GNU/Hurd.
22353         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
22354         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
22356 2017-09-30  Bruno Haible  <bruno@clisp.org>
22358         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
22359         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
22360         fail when module 'largefile' is in use.
22361         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
22362         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
22363         Don't test HAVE_SYS_PROCFS_H.
22365 2017-09-30  Bruno Haible  <bruno@clisp.org>
22367         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
22368         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
22369         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
22370         * modules/havelib (Depends-on): Add host-cpu-c-abi.
22372 2017-09-30  Bruno Haible  <bruno@clisp.org>
22374         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
22375         * lib/uniname/uniname.c (unicode_name_character): Add braces around
22376         scope of local variables.
22378 2017-09-28  Bruno Haible  <bruno@clisp.org>
22380         string: code style
22381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
22382         substitutable variables.
22383         * modules/string (Makefile.am): Likewise.
22385 2017-09-26  Bruno Haible  <bruno@clisp.org>
22387         uniname/uniname-tests: Tighten code.
22388         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
22389         local variables into one.
22391 2017-09-26  Bruno Haible  <bruno@clisp.org>
22393         vma-iter: Improvements for Linux and BSD platforms.
22394         - Add support for DragonFly BSD.
22395         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
22396         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
22397         Read the entire file into memory in a single system call.
22398         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
22399         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
22401 2017-09-26  Bruno Haible  <bruno@clisp.org>
22403         vma-iter: Provide the protection flags on FreeBSD.
22404         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
22405         skip three fields between the addresses and the protection flags.
22407 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22409         glob: remove bogus extern decl
22410         * lib/glob.c (__glob_pattern_type): Remove now-spurious
22411         extern declaration.  Problem reported by Adhemerval Zanella in:
22412         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
22414 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22416         uniname/uniname-tests: integer overflow fix
22417         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
22418         Check for integer overflow.
22420         duplocale-tests: fix unlikely crash
22421         * tests/test-duplocale.c (get_locale_dependent_values):
22422         Don’t crash with absurdly long month names.
22424         maint: fix overflow checking in nap.h
22425         * modules/chown-tests:
22426         * modules/fchownat-tests, modules/fdutimensat-tests:
22427         * modules/futimens-tests, modules/lchown-tests:
22428         * modules/stat-time-tests, modules/utime-tests:
22429         * modules/utimens-tests, modules/utimensat-tests:
22430         Depend on intprops.
22431         * tests/nap.h: Include intprops.h.
22432         (diff_timespec): Handle overflow properly.
22434         sys_types: update URL
22435         * m4/sys_types_h.m4: Use https: URL.
22437         parse-datetime: fix dependency
22438         * modules/parse-datetime (Depends-on): Depend
22439         on nstrftime, not strftime.
22441         parse-datetime, posixtm: avoid uninit access
22442         * lib/parse-datetime.y (parse_datetime2):
22443         * lib/posixtm.c (posixtime):
22444         Do not access uninitialized storage, even though the resulting
22445         value is never used.
22447 2017-09-25  Bruno Haible  <bruno@clisp.org>
22449         vma-iter: Improvements for BSD platforms.
22450         - Add support for GNU/kFreeBSD.
22451         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
22452         - Speed up on OpenBSD.
22453         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
22454         (vma_iterate_bsd): New function.
22455         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
22456         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
22457         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
22458         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
22460 2017-09-23  Bruno Haible  <bruno@clisp.org>
22462         strfmon_l: New module.
22463         * modules/strfmon_l: New file.
22464         * lib/strfmon_l.c: New file.
22465         * m4/strfmon_l.m4: New file.
22466         * doc/posix-functions/strfmon_l.texi: Mention the new module.
22467         * modules/strfmon_l-tests: New file.
22468         * tests/test-strfmon_l.c: New file.
22470         monetary: New module.
22471         * modules/monetary: New file.
22472         * lib/monetary.in.h: New file.
22473         * m4/monetary_h.m4: New file.
22474         * doc/posix-headers/monetary.texi: Mention the new module.
22475         * modules/monetary-tests: New file.
22476         * tests/test-monetary.c: New file.
22477         * modules/monetary-c++-tests: New file.
22478         * tests/test-monetary-c++.cc: New file.
22479         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
22481 2017-09-23  Bruno Haible  <bruno@clisp.org>
22483         duplocale tests: Fix test crash on Linux/x86.
22484         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
22485         locale from the current thread before freeing it.
22487 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
22489         mktime: port to OpenVMS
22490         Problem reported by John E. Malmberg in:
22491         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
22492         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
22494 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22496         manywarnings: port to GCC on 64-bit MS-Windows
22497         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
22498         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
22499         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
22501 2017-09-13  Bruno Haible  <bruno@clisp.org>
22503         all: Replace many more http URLs by https URLs. Update stale URLs.
22504         * users.txt: Remove mention of 'newts'.
22505         * lib/localename.c: Update comment about LANG_SOTHO.
22507 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22509         all: Replace many http URLs by https URLs.
22511 2017-09-12  Bruno Haible  <bruno@clisp.org>
22513         doc: Prefer https URLs where possible.
22514         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
22515         * doc/ld-output-def.texi: Remove unavailable URL.
22517 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22519         maintainer-makefile: FTP -> HTTPS
22520         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
22521         of FTP, which is planned to be decommissioned on 2017-11-01.
22523 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22525         libc-config: Fix __GNUC_PREREQ macro.
22526         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
22527         __GNUC_MINOR.
22529 2017-09-09  Bruno Haible  <bruno@clisp.org>
22531         gnulib-tool: Simplify commit from 2015-08-20.
22532         * gnulib-tool (func_add_or_update): Remove local variable
22533         is_binary_file.
22535 2017-09-08  Bruno Haible  <bruno@clisp.org>
22537         stddef: Avoid conflict with system-defined max_align_t.
22538         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
22539         Reported by Werner Lemberg <wl@gnu.org> in
22540         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
22541         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
22542         (max_align_t): Define as a macro.
22543         (GNULIB_defined_max_align_t): New macro. Guards against multiple
22544         definitions of rpl_max_align_t in different copies of gnulib-generated
22545         <stddef.h>.
22547 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
22549         libc-config: port to MSVC
22550         Problems reported by Gisle Vanem in:
22551         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
22552         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
22553         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
22554         * m4/__inline.m4: New file.
22555         * modules/libc-config (Files): Add it.
22556         (Depends-on): Use it.
22558         glob: Use enum for __glob_pattern_type result
22559         From a patch proposed by Adhemerval Zanella in:
22560         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
22561         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
22562         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
22563         * lib/glob_internal.h (__glob_pattern_type):
22564         * lib/glob.c (glob):
22565         * lib/glob_pattern_p.c (__glob_pattern_p):
22566         Use them.
22568         glob: fix for use in glibc
22569         Problem reported by Adhemerval Zanella in:
22570         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
22571         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
22572         Do not redefine if _LIBC.
22574 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22576         glob: fix bugs with long login names
22577         Problem reported by Adhemerval Zanella in:
22578         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
22579         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
22580         (glob): Use the same scratch buffer for both getlogin_r and
22581         getpwnam_r.  Don’t require preallocation of the login name.  This
22582         simplifies storage allocation, and corrects the handling of
22583         long login names.
22585 2017-09-02  Bruno Haible  <bruno@clisp.org>
22587         dirent: Update doc.
22588         * doc/posix-headers/dirent.texi: More concrete list of platforms.
22590 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22592         glob: fix getpwnam_r errno typo
22593         * lib/glob.c (glob): Fix longstanding misuse of errno after
22594         getpwnam_r, which returns an error number rather than setting
22595         errno.
22597         glob: fix typo in recent change
22598         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
22599         Fix recently-introduced typo.
22601 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22603         glob: don't save and restore errno unnecessarily
22604         * lib/glob.c (glob): Don't save and restore errno
22605         merely because we have getpwnam_r.
22607         glob: don't assume getpwnam_r
22608         * lib/glob.c (glob): Port recent patches to platforms
22609         lacking getpwnam_r.
22611         scratch_buffer: don’t use private glibc API
22612         Suggested by Florian Weimer in:
22613         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
22614         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
22615         * lib/scratch_buffer_grow.c: Rename to
22616         lib/malloc/scratch_buffer_grow.c.
22617         * lib/scratch_buffer_grow_preserve.c: Rename to
22618         lib/malloc/scratch_buffer_grow_preserve.c.
22619         * lib/scratch_buffer_set_array_size.c: Rename to
22620         lib/malloc/scratch_buffer_set_array_size.c.
22621         * lib/scratch_buffer.h: New file.
22622         * modules/scratch_buffer (Files, Makefile.am):
22623         Adjust to source-file renaming.
22625 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22627         glob: use scratch_buffer instead of extend_alloca
22628         Much of the lib/glob.c part of this patch comes from a glibc patch
22629         proposed by Adhemerval Zanella in:
22630         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
22631         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
22632         included via glob.h, does this for us now.
22633         (__set_errno): Remove, as libc-config does this for us now.
22634         Include <scratch_buffer.h>.
22635         (GETPW_R_SIZE_MAX): Remove.
22636         (glob): Use struct scratch_buffer instead of extend_alloca.
22637         * lib/glob.in.h: Include libc-config.h rather than
22638         including <sys/cdefs.h> conditionally.
22639         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
22640         (__glibc_unlikely, __restrict, weak_alias):
22641         Remove, as libc-config does this for us now.
22642         * m4/glob.m4 (gl_PREREQ_GLOB):
22643         Remove sys/cdefs.h tests; no longer needed.
22644         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
22645         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
22647         scratch_buffer: new module
22648         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
22649         * lib/scratch_buffer_grow_preserve.c:
22650         * lib/scratch_buffer_set_array_size.c:
22651         New files, copied from glibc with very minor changes that can be
22652         copied back.
22653         * modules/scratch_buffer: New file.
22655         libc-config: new module
22656         * MODULES.html.sh: Add libc-config.
22657         * lib/cdefs.h: New file, copied from the GNU C Library with very
22658         minor changes that can be copied back.
22659         * lib/libc-config.h, modules/libc-config: New files.
22661 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22663         glob: match dangling symlinks
22664         This fixes a bug I inadvertently introduced to Gnulib when I
22665         merged glibc glob back into gnulib on 2007-10-16.  This fix is
22666         inspired by a patch proposed for glibc by Adhemerval Zanella in:
22667         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
22668         * doc/posix-functions/glob.texi: Update list of affected platforms.
22669         * lib/glob.c (__lstat64): New macro.
22670         (is_dir): New function.
22671         (glob, glob_in_dir): Match symlinks even if they are dangling.
22672         (link_stat, link_exists_p): Remove.  All uses removed.
22673         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
22674         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
22675         * modules/glob-tests (Depends-on): Add symlink.
22676         * tests/test-glob.c: Include errno.h, unistd.h.
22677         (BASE): New macro.
22678         (main): Test dangling symlinks, if symlinks are supported.
22680         glob, backupfile: inode 0 is a valid inode number
22681         * doc/posix-functions/readdir.texi (readdir):
22682         * doc/posix-headers/dirent.texi (dirent.h):
22683         Document more readdir portability issues.
22684         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
22685         (numbered_backup): Don’t treat inode 0 any differently from
22686         other inode values.
22687         * lib/glob.c (struct readdir_result): Remove skip_entry member.
22688         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
22689         All uses removed.
22690         * modules/glob (Depends-on): Remove d-ino.
22692         glob: simplify symlink detection
22693         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
22694         uint8_t, as C99 does not require uint8_t.
22695         (struct readdir_result): Use it.  Do not define skip_entry unless
22696         it is needed; this saves a byte on platforms lacking d_ino.
22697         (readdir_result_type, readdir_result_skip_entry):
22698         New functions, replacing ...
22699         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
22700         ... these functions, which were removed.  This makes the callers
22701         easier to read.  All callers changed.
22702         (D_INO_TO_RESULT): Now empty if there is no d_ino.
22704 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22706         fts-tests: tag as a longrunning-test so not included by default
22707         * modules/fts-tests: This test takes about 20s on current systems,
22708         and uses about 285M of space on ext4.
22710 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22712         renameat2: fix compilation on alpine linux
22713         * m4/renameat.m4: Check for <linux/fs.h> presence.
22714         * lib/renameat2.h: Only include <linux/fs.h> if present.
22715         Reported by Assaf Gordon on Alpine Linux.
22717 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22719         glob: try to port recent changes to MS-Windows
22720         Problem reported by Bruno Haible in:
22721         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
22722         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
22723         * lib/glob.in.h (__glob_pattern_p): ... to here.
22725 2017-08-24  Eric Blake  <eblake@redhat.com>
22727         warnings: fix compilation with old autoconf
22728         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
22729         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
22730         AC_DEFUN.
22731         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
22732         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
22734 2017-08-24  Bruno Haible  <bruno@clisp.org>
22736         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
22737         * modules/glob (Depends-on): Add c99.
22739 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22741         glob: fix typo that broke platforms lacking d_ino
22742         This typo also hurt performance on GNU/Linux and similar hosts.
22743         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
22744         in previous change.
22746 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22748         glob: merge from glibc with Zanella glob changes
22749         Merge glob from glibc, with changes for glob proposed
22750         by Adhemerval Zanella in the thread starting here:
22751         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
22752         plus some fixes for this merge.
22753         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
22754         New files, ported from glibc.
22755         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
22756         with __restrict.
22757         (__size_t): Remove.  All uses replaced by size_t.
22758         (size_t): Define by defining __need_size_t and including <stddef.h>.
22759         This should work even in non-glibc platforms, where any name
22760         pollution is OK.
22761         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
22762         (struct stat64): Don’t worry about __GLOB_GNULIB.
22763         (glob, globfree, glob_pattern_p): Remove macros for
22764         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
22765         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
22766         but set errno.
22767         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
22768         removed since the glibc behavior works on null pointers.
22769         Do not include stdio.h; old SunOS is irrelevant now.
22770         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
22771         Include glob_internal.h.
22772         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
22773         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
22774         worked only coincidentally.
22775         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
22776         Remove macros; now done in glob.in.h.
22777         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
22778         (glob): Properly initialize glob structure with
22779         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
22780         Remove old code using SHELL since Bash no longer
22781         uses this.
22782         (glob, prefix_array): Separate MS code better.
22783         (glob, glob_in_dir): Use C99 decls before statements when glibc
22784         does.
22785         (glob_in_dir): Remove old Amiga and VMS code.
22786         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
22787         separate files.
22788         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
22789         (__glibc_unlikely):
22790         Move here from glob.c.
22791         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
22792         (weak_alias): New macro.
22793         (__size_t): Remove.  All uses replaced by size_t.
22794         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
22795         * modules/glob (Files): Add +lib/glob_internal.h,
22796         lib/glob_pattern_p.c, lib/globfree.c.
22797         (Depends-on): Remove snippet/arg-nonnull.
22799 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22801         glob: port to clang's Undefined Sanitizer
22802         Problem reported by Tim Rühsen in:
22803         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
22804         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
22805         (glob_in_dir): Do not rely on undefined behavior in accessing
22806         struct members beyond their bounds.  Use a flexible array member
22807         instead.
22809 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22811         vc-list-files: port to Solaris 10
22812         * build-aux/vc-list-files: Don't assume test -e works.
22814 2017-08-21  Karl Berry  <karl@freefriends.org>
22816         * doc/posix-functions/srandom.texi (srandom): typo }.
22818 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22820         git-version-gen: port to Solaris 10
22821         Problem reported by Dagobert Michelsen in:
22822         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
22823         * build-aux/git-version-gen (v_from_git):
22824         Use expr instead of shell substitution.
22826 2017-08-19  Bruno Haible  <bruno@clisp.org>
22828         host-cpu-c-abi: Improve detection of MIPS ABI.
22829         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
22830         _MIPS_SIM.
22832 2017-08-17  Bruno Haible  <bruno@clisp.org>
22834         hypot tests: Fix test failure on FreeBSD 11.0/x86.
22835         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
22837 2017-08-17  Bruno Haible  <bruno@clisp.org>
22839         float: Fix LDBL_MIN value on FreeBSD/x86.
22840         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
22842 2017-08-17  Bruno Haible  <bruno@clisp.org>
22844         random: Fix test compilation failure on Cygwin 1.5.25.
22845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
22846         HAVE_DECL_SETSTATE.
22847         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
22848         declared.
22849         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
22850         HAVE_DECL_SETSTATE.
22851         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
22852         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
22853         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
22854         * doc/posix-functions/random.texi: Likewise.
22855         * doc/posix-functions/setstate.texi: Likewise.
22856         * doc/posix-functions/srandom.texi: Likewise.
22858 2017-08-16  Bruno Haible  <bruno@clisp.org>
22860         stdnoreturn: Fix test compilation failure on Cygwin.
22861         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
22862         <stdnoreturn.h> replacement.
22863         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
22864         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
22866 2017-08-16  Bruno Haible  <bruno@clisp.org>
22868         thread: Fix conflict with pthread_sigmask module.
22869         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
22870         it's defined as a macro.
22871         * modules/thread (Depends-on): Add pthread_sigmask.
22873 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22875         rename: port better to NetBSD
22876         * doc/posix-functions/rename.texi (rename): NetBSD 7
22877         does not have the link-count bug.
22878         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
22879         broken merely because rename ("a", "b") removes "a" when the two
22880         names are hard links to the same file.
22882 2017-08-16  Bruno Haible  <bruno@clisp.org>
22884         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
22885         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
22886         the target file names with '$(srcdir)/'.
22887         * modules/unicase/locale-language (Makefile.am): Likewise.
22888         * modules/unicase/special-casing (Makefile.am): Likewise.
22889         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
22890         * modules/unictype/category-byname (Makefile.am): Likewise.
22891         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
22892         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
22893         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
22894         * modules/unictype/property-byname (Makefile.am): Likewise.
22895         * modules/unictype/scripts (Makefile.am): Likewise.
22896         * modules/uninorm/composition (Makefile.am): Likewise.
22898 2017-08-16  Bruno Haible  <bruno@clisp.org>
22900         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
22901         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
22902         value for OpenBSD.
22904 2017-08-16  Bruno Haible  <bruno@clisp.org>
22906         rename, renameat: Update doc regarding NetBSD.
22907         * doc/posix-functions/rename.texi: Clarify that when using
22908         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
22909         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
22910         version.
22912 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22914         renameat2: port better to macOS
22915         * lib/renameat2.c (renameat2): Use renameatx_np if available.
22917         futimens: don’t assume struct timespec layout
22918         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
22919         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
22920         * tests/test-fdutimensat.c (main):
22921         * tests/test-futimens.h (test_futimens):
22922         * tests/test-lutimens.h (test_lutimens):
22923         * tests/test-utimens.h (test_utimens):
22924         * tests/test-utimensat.c (main):
22925         Don’t assume that struct timespec is a two-member structure in
22926         tv_sec, tv_nsec order.  Although this is true on all platforms we
22927         know about, POSIX does not guarantee it.
22929         rename: document+test NetBSD rename
22930         Test failure reported by Bruno Haible in:
22931         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
22932         This is an area where NetBSD is better-behaved than POSIX,
22933         so allow the NetBSD behavior in tests.
22934         * doc/posix-functions/rename.texi:
22935         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
22936         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
22938 2017-08-15  Bruno Haible  <bruno@clisp.org>
22940         renameat: Ensure declaration in <stdio.h> on NetBSD.
22941         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
22942         * doc/posix-functions/renameat.texi: Mention this problem.
22944 2017-08-15  Bruno Haible  <bruno@clisp.org>
22946         duplocale: Work around NetBSD 7.0 bug.
22947         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
22948         * lib/duplocale.c: Add comment about NetBSD problem.
22949         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
22951 2017-08-15  Bruno Haible  <bruno@clisp.org>
22953         duplocale tests: Verify use with *_l functions.
22954         * modules/duplocale-tests (configure.ac): Test for uselocale and
22955         some *_l functions.
22956         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
22957         from main.
22958         (get_locale_dependent_values_from, test_with_locale_parameter): New
22959         functions.
22960         (main): Test both test_with_uselocale and test_with_locale_parameter.
22962 2017-08-15  Bruno Haible  <bruno@clisp.org>
22964         extensions: Enable NetBSD specific extensions.
22965         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
22967 2017-08-14  Bruno Haible  <bruno@clisp.org>
22969         open, openat: Update doc about O_CLOEXEC.
22970         * doc/posix-functions/open.texi: More concrete list of platforms.
22971         * doc/posix-functions/openat.texi: Likewise.
22973 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22975         open: support O_CLOEXEC
22976         * NEWS, doc/posix-functions/open.texi:
22977         * doc/posix-functions/openat.texi: Document this.
22978         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
22979         (GNULIB_defined_O_CLOEXEC): New symbol.
22980         * lib/open.c: Include cloexec.h.
22981         (open): Support O_CLOEXEC.
22982         * lib/openat.c: Include cloexec.h.
22983         (rpl_openat): Support O_CLOEXEC.
22984         * lib/popen-safer.c: Do not include cloexec.h.
22985         (open_noinherit): Remove.
22986         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
22987         * lib/save-cwd.c: Do not include cloexec.h.
22988         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
22989         * m4/open-cloexec.m4: New file.
22990         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
22991         Replace 'open' if O_CLOEXEC is not present.
22992         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
22993         Replace 'openat' if O_CLOEXEC is not present.
22994         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
22995         * modules/open (Files): Add m4/open-cloexec.m4.
22996         (Depends-on): Depend on cloexec if replacing 'open'.
22997         * modules/openat (Files): Add m4/open-cloexec.m4.
22998         (Depends-on): Depend on cloexec if replacing openat.
22999         * modules/popen-safer (Depends-on): Remove cloexec.
23000         * modules/save-cwd (Depends-on): Remove cloexec, and add
23001         fd-safer-flag and 'open'.
23003 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
23005         reallocarray: minor fixes
23006         * doc/glibc-functions/reallocarray.texi: Update version numbers.
23007         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
23008         * modules/reallocarray (License): Change from GPL to LGPL.
23009         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
23010         Indent properly and don't use tabs.
23012 2017-08-13  Darshit Shah  <darnir@gnu.org>
23014         reallocarray: New module
23015         reallocarray is a new function in glibc 2.26 to safely allocate an array
23016         of memory locations with integer overflow protection.
23017         * MODULES.html.sh: Add reallocarray.
23018         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
23019         * lib/reallocarray.c: New file to implement module reallocarray.
23020         * lib/stdlib.in.h: Add function declarations for reallocarray.
23021         * m4/reallocarray.m4: New file.
23022         * m4/stdlib_h.m4: Declare reallocarray.
23023         * modules/reallocarray: New file.
23024         * modules/reallocarray-test: New file.
23025         * modules/stdlib: Coerce stdlib.h to export reallocarray.
23026         * tests/test-reallocarray.c: New test.
23028 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
23030         dirent-safer: fix cloexec race
23031         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
23032         (opendir_safer): Use F_DUPFD_CLOEXEC.
23033         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
23034         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
23035         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
23036         instead of dup_safer.
23038         fts: fix cloexec races
23039         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
23040         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
23041         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
23042         (fd_ring_check): Set cloexec flag on new file descriptors.
23043         (fts_build, fd_ring_check): While we’re at it, make sure the
23044         resulting file descriptor is not 0, 1, or 2, since that is easy.
23046 2017-08-11  Bruno Haible  <bruno@clisp.org>
23048         fts tests: Fix link error.
23049         Reported by Tom G. Christensen in
23050         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
23051         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
23053 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23055         fts: port recent changes to CentOS 6
23056         Problem reported by Tom G. Christensen in:
23057         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
23058         * lib/fts.c (fsword): New type.
23059         (struct dev_type, filesystem_type): Use it.
23060         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
23061         Also, check for f_type only if fstatfs and sys/vfs.h work.
23063 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23065         tempname: do not depend on secure_getenv
23066         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
23067         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
23068         * modules/tempname (Depends-on): Remove secure_getenv.
23070 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
23072         extensions: add _OPENBSD_SOURCE
23073         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
23075 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
23076             Bruno Haible  <bruno@clisp.org>
23078         manywarnings: Add support for C++.
23079         * build-aux/g++-warning.spec: New file.
23080         * m4/manywarnings-c++.m4: New file.
23081         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
23082         redirects to manywarnings-c++.m4.
23083         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
23085 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23087         git-version-gen: another fix for tags with "-"
23088         * build-aux/git-version-gen: Improve fix for tags containing "-".
23089         Suggested by Markus Armbruster in:
23090         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
23092 2017-08-06  Bruno Haible  <bruno@clisp.org>
23094         warnings, manywarnings: Add support for multiple languages, not just C.
23095         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
23096         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
23097         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
23098         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
23099         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
23100         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
23101         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
23102         of the current language. If C++ is the current language, modify
23103         WARN_CXXFLAGS instead of WARN_CFLAGS.
23104         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
23105         gl_MANYWARN_ALL_GCC.
23106         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
23108 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
23110         git-version-gen: Fix for tags containing '-'
23112         Really old versions of git-describe (before v1.5.0, Feb 2007)
23113         don't have the number of commits in their long format output,
23114         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
23115         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
23116         recognizes both patterns, and normalizes the old format to the new one.
23118         Unfortunately, this normalization code gets confused when the tag
23119         contains '-'.  Reproducer:
23121             $ git-tag -m test v0.2-rc1
23122             $ build-aux/git-version-gen .tarball-version; echo
23123             build-aux/git-version-gen: WARNING: git rev-list failed
23124             UNKNOWN
23126         We take exact tag "v0.2-rc1" for the old format, extract the presumed
23127         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
23128         commits since tha tag.  Fails, because tag "v0.2" does not exist.
23130         * git-version-gen: We could perhaps drop support for versions from
23131         more than a decade ago.  But tightening the pattern match is easy
23132         enough, so do that.  Still breaks when you use version tags ending in
23133         something matching -g????, but you arguably get what you deserve then.
23135 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23137         valgrind-tests: use ls, and cache
23138         * m4/valgrind-tests.m4: Test ls, not bash.
23139         Problem reported by Reuben Thomas.
23140         Also, cache the result so that it can be overridden.
23142 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
23144         manywarnings: port to 64-bit GCC builds of Emacs
23145         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
23146         object size rather than hardwiring 2147483647.  This is needed to
23147         build GNU Emacs, which has one conditional (and used
23148         only-in-theory) call to malloc with a literal greater than
23149         2147483647.
23151 2017-08-04  Bruno Haible  <bruno@clisp.org>
23153         Relax the license of some modules with no runtime code.
23154         * modules/std-gnu11 (License): Set to 'unlimited'.
23155         * modules/c99 (License): Likewise.
23156         Reported by Reuben Thomas <rrt@sc3d.org>.
23157         * modules/d-ino (License): Set to 'LGPL'.
23158         * modules/host-os (License): Likewise.
23159         * modules/longlong (License): Likewise.
23161 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23163         renameat2: port to RHEL 7 + NFS
23164         * lib/renameat2.c (renameat2) [SYS_renameat2]:
23165         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
23166         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
23168 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
23170         renameat2: port to non-renameat platforms
23171         Problem reported for MSVC-2015 by Gisle Vanem in:
23172         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
23173         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
23174         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
23176 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
23178         manywarnings: port to 32-bit GCC bug
23179         Problem reported by Pino Toscano in:
23180         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
23181         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
23182         not 2**63 - 1, to work around the following GCC bug:
23183         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
23185 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
23187         backupfile: new function to validate backup suffix
23188         * lib/backupfile.c (set_simple_backup_suffix): New function.
23189         (backupfile_internal): Use it.
23191         canonicalize: fix EOVERFLOW commentary
23192         Problem reported by Bruno Haible in:
23193         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
23194         * lib/canonicalize.c (canonicalize_filename_mode):
23195         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
23197         Don't interpret EOVERFLOW to mean nonexistence
23198         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
23199         may be EOVERFLOW; this is likely more useful than reporting the
23200         stat errno.
23201         * lib/glob.c (link_stat): Rename from link_exists2_p and
23202         return -1/0 instead of 0/1.  Caller changed.
23203         * lib/glob.c (link_exists_p):
23204         * lib/renameat2.c (rename_noreplace, renameat2):
23205         * lib/tempname.c (try_nocreate):
23206         If errno == EOVERFLOW then the directory entry exists, so do not
23207         act as if it does not exist.
23209         backup-rename: new module
23210         It is like backupfile, except it avoids some race conditions,
23211         and it does not output to stderr or exit.
23212         * MODULES.html.sh: Add backup-rename.
23213         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
23214         * modules/backup-rename: New files.
23215         * lib/backupfile.c: Turn this into an internals file, which
23216         contains code common to backupfile and backup_rename.  Include
23217         backupfile-internal.h instead of backupfile.h.  Do not include
23218         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
23219         renameat2.h and fcntl.h.
23220         (BACKUP_NOMEM): New constant.
23221         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
23222         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
23223         (backupfile_internal): Rename from find_backup_file_name.
23224         Support new arg RENAME.
23225         (backup_args, backup_types, get_version, xget_version):
23226         Move to lib/backup-find.c.
23227         * lib/backupfile.h (backup_file_rename): New decl.
23228         * modules/backupfile (Files): Add lib/backup-internal.h,
23229         lib/backup-find.c.
23230         (Depends-on): Add dirfd, fcntl, renameat2.
23231         (lib_SOURCES): Add backup-find.c.
23233         renameat2: port better to older Solaris
23234         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
23235         Add goto to use a label, to silence picky compilers.
23237         fts-tests: port to gcc -Wwrite-strings
23238         * tests/test-fts.c (base, base_d): New static vars.
23239         (argv, remove_tree, main): Use them.
23241 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
23243         relocatable-lib{,-lgpl}: improve documentation
23244         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
23245         Various other updates.
23247 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
23248             Bruno Haible  <bruno@clisp.org>
23250         relocatable-lib{,-lgpl}: add Valgrind suppressions
23251         * lib/relocatable.valgrind: New file.
23252         * modules/relocatable-lib (Files): Add relocatable.valgrind.
23253         * modules/relocatable-lib-lgpl: Likewise.
23255 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
23257         relocatable: Make the license on the sources the GPL.
23258         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
23259         LGPL, which was a special case so that the relocatable source files
23260         could be used without gnulib-tool, to GPL. They can still be used under
23261         the LGPL, using the --lgpl option to gnulib-tool.
23263 2017-07-30  Bruno Haible  <bruno@clisp.org>
23265         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
23266         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
23267         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
23268         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
23269         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
23271 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
23273         faccessat: document AT_SYMLINK_NOFOLLOW issue
23274         * doc/posix-functions/faccessat.texi: Modernize platform list.
23275         Document AT_SYMLINK_NOFOLLOW limitation.
23277         renameat2: port to Solaris 10
23278         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
23279         with AT_SYMLINK_NOFOLLOW (which is not portable).
23280         (renameat): Undef before using, to avoid endless recursion when
23281         the replacement renameat calls renameat2 which calls the
23282         replacement renameat.
23283         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
23284         * modules/renameat2 (Depends-on): Remove faccessat.
23285         * modules/renameat-tests (test_renameat_LDADD):
23286         * modules/renameat2-tests (test_renameat2_LDADD):
23287         Remove $(LIB_EACCESS).
23289         renameat2: new module
23290         Although the Linux syscall renameat2 is not in glibc (yet?), it is
23291         useful to have access to its RENAME_NOREPLACE flag.
23292         * MODULES.html.sh (func_all_modules): Add renameat2.
23293         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
23294         * modules/renameat2-tests, tests/test-renameat2.c: New files.
23295         * lib/renameat.c (renameat): Move most of the implementation
23296         to renameat2, and just call renameat2.
23297         * modules/renameat (Files): Remove lib/at-func2.c.
23298         (Depends-on): Depend only on renameat2.
23299         (Include): Remove <fcntl.h>.
23300         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
23301         since renameat (via renameat2) might use faccessat.
23303 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
23305         vc-list-files: Adjust the script to support git worktrees
23306         * build-aux/vc-list-files: Require existence, not directory.
23308 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
23310         doc: bring MODULES.html.sh up to date
23311         Somehow a few months ago we stopped updating MODULES.html.sh.
23312         I don’t recall explicitly deciding this, so I updated it now.
23313         Alternatively I suppose we could remove it.
23314         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
23315         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
23316         truncate, utime, utime-h, windows-stat-inodes,
23317         windows-stat-override, windows-stat-timespec, year2038.  Sort.
23319 2017-07-26  Jim Meyering  <meyering@fb.com>
23321         fprintftime: fix build-break caused by recent renaming
23322         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
23323         "strftime.c".
23324         * modules/fprintftime: Depend directly on nstrftime.
23326 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
23328         regex: work with GCC7's -Werror=implicit-fallthrough=
23329         * lib/regex_internal.h (FALLTHROUGH): New macro.
23330         * lib/regcomp.c (peek_token_bracket, parse_expression):
23331         * lib/regexec.c (check_node_accept): Use it.
23333 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23335         fts: simplify fts_build
23336         * lib/fts.c (fts_build): Simplify, and be lazier about
23337         calling leaf_optimization.
23339         fts: three levels of leaf optimization
23340         * lib/fts.c (enum leaf_optimization): New type with three values.
23341         (S_MAGIC_AFS): New macro.  Sort them.
23342         (leaf_optimization): Rename from leaf_optimization_applies, and
23343         return enum leaf_optimization instead of bool.  All uses changed.
23344         Add cases for unknown type and for AFS.
23345         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
23347         fts: cache dirent_inode_sort_may_be_useful too
23348         * lib/fts.c (struct dev_type): New struct.
23349         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
23350         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
23351         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
23352         Now takes FTSENT const *, not int.  All uses changed.  Use
23353         filesystem_type to cache.
23354         (link_count_optimize_ok): Remove.  Caller changed to use
23355         leaf_optimization_applies, which now uses shared cache.
23357         fts: introduce MIN_DIR_NLINK
23358         * lib/fts.c (MIN_DIR_NLINK): New constant.
23359         Use it instead of 2, whenever we are talking about link counts.
23361         fts: nlink_t signedness fixups
23362         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
23363         so that root need not be a special case later.
23364         (fts_read): Remove now-redundant test for fts_level.
23365         Do not assume that nlink_t is signed.
23366         (fts_build): Remove useless decrement of nlinks.
23367         (fts_stat): Avoid unlikely signed integer overflow later, if
23368         nlink_t is signed.
23370         fts-tests: new module
23371         * modules/fts-tests, tests/test-fts.c: New files.
23373 2017-07-23  Bruno Haible  <bruno@clisp.org>
23375         Rename module 'strftime' to 'nstrftime'.
23376         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
23377         * lib/nstrftime.c: Renamed from lib/strftime.c.
23378         * modules/nstrftime: Renamed from modules/strftime.
23379         (Files, Makefile.am): Update.
23380         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
23381         Fix comment.
23382         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
23383         (Files, Makefile.am): Update.
23384         * modules/strftime: New file, an obsolete indirection.
23385         * doc/posix-functions/strftime.texi: Update reference.
23386         * config/srclist.txt: Update info.
23387         * NEWS: Mention the change.
23389 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
23391         malloca: Silence a warning from clang's memory sanitizer.
23392         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
23393         (freea): Use it.
23395 2017-07-18  Bruno Haible  <bruno@clisp.org>
23397         host-cpu-c-abi: Fix detection of MIPS ABI.
23398         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
23399         ABI, not the CPU instruction set.
23401 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23403         explicit_bzero: new module
23404         The explicit_bzero function has been added to glibc.
23405         This module is intended to supports its use in GNU programs.
23406         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
23407         * m4/explicit_bzero.m4, modules/explicit_bzero:
23408         New files.
23409         * doc/gnulib.texi (Glibc string.h): Link to new doc.
23410         * lib/string.in.h (explicit_bzero): Declare.
23411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
23412         * modules/string (string.h): Substitute its vars.
23414 2017-07-16  Bruno Haible  <bruno@clisp.org>
23416         threadlib: Support static linking.
23417         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
23418         set gl_cv_have_weak to 'no'.
23420 2017-07-16  Bruno Haible  <bruno@clisp.org>
23422         unicase/locale-language: Fix link dependencies.
23423         * modules/unicase/locale-language (Link): New section.
23424         * modules/unicase/locale-language-tests (Makefile.am): Link
23425         test-locale-language program with $(LIBTHREAD).
23427 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23429         sys_socket: Add support for OpenVMS.
23430         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
23431         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
23433 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23435         sys_resource: Add support for OpenVMS.
23436         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
23437         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
23439 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23440             Bruno Haible  <bruno@clisp.org>
23442         math: Add support for OpenVMS.
23443         * lib/math.in.h [__VMS]: Include <fp.h>.
23444         * doc/posix-headers/math.texi: Mention OpenVMS issues.
23446 2017-07-15  Bruno Haible  <bruno@clisp.org>
23448         getdtablesize: Add minimal support for OpenVMS.
23449         Reported by John E. Malmberg <wb8tyw@qsl.net>.
23450         * modules/getdtablesize (Description): Fix.
23451         * lib/getdtablesize.c: Fix comment.
23452         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
23453         getdtablesize() function, even though the test fails.
23454         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
23455         limitation on OpenVMS.
23457 2017-07-13  Bruno Haible  <bruno@clisp.org>
23459         Revisit cross-compilation guesses.
23460         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
23462 2017-07-13  Bruno Haible  <bruno@clisp.org>
23464         Improve cross-compilation guesses for native Windows.
23465         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
23466         Windows.
23467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
23468         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
23469         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23470         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
23471         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
23472         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
23473         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23474         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23475         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23476         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23477         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23478         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
23479         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
23480         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
23481         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
23482         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23483         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
23484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
23485         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23486         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
23487         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
23488         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23489         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
23490         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
23491         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
23492         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
23493         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
23494         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23495         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23496         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
23497         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
23499         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
23500         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
23501         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
23502         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
23503         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
23504         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23505         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23506         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23507         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23508         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23509         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
23510         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
23511         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
23512         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
23513         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
23514         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
23515         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
23516         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
23517         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
23518         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
23519         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
23520         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
23521         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
23522         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
23523         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
23524         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
23525         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
23526         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
23527         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23528         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
23529         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
23530         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
23531         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23532         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23533         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
23534         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23535         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
23536         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
23537         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
23538         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
23539         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23540         * m4/regex.m4 (gl_REGEX): Likewise.
23541         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23542         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
23543         gl_FUNC_REMAINDERF_WORKS): Likewise.
23544         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
23545         gl_FUNC_REMAINDERL_WORKS): Likewise.
23546         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23547         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23548         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23549         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23550         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23551         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
23552         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23553         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23554         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
23555         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23556         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
23557         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
23558         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23559         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23560         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23561         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23562         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23563         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23564         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23565         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23566         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23567         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23568         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23569         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23570         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23571         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23572         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23573         Likewise.
23574         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23575         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
23576         Windows. Enable also on Autoconf 2.70.
23577         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23578         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23579         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23580         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
23581         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23582         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
23583         for native Windows.
23584         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23585         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
23587 2017-07-13  Bruno Haible  <bruno@clisp.org>
23589         Improve cross-compilation guesses for native Windows.
23590         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
23591         Windows.
23592         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
23593         memchr.m4.
23594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23596 2017-07-13  Bruno Haible  <bruno@clisp.org>
23598         Improve cross-compilation guesses for native Windows.
23599         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
23600         native Windows.
23601         (gl_FUNC_FFLUSH): Update accordingly.
23602         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
23603         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23605 2017-07-11  Bruno Haible  <bruno@clisp.org>
23607         More systematic m4 quoting and indentation.
23608         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
23609         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23610         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23611         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23612         * m4/host-os.m4 (gl_HOST_OS): Likewise.
23613         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
23614         gl_WINSIZE_IN_PTEM): Likewise.
23615         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
23616         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23617         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23618         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
23619         Correct indentation.
23620         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
23621         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23622         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
23623         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23624         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23625         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23627 2017-07-10  Bruno Haible  <bruno@clisp.org>
23629         round, roundf: Avoid compiler warning in configure test.
23630         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
23631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23633 2017-07-10  Bruno Haible  <bruno@clisp.org>
23635         getlogin tests: Avoid #ifdefs when sharing code between modules.
23636         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
23637         * modules/getlogin-tests (Files): Likewise. Remove
23638         tests/test-getlogin_r.c.
23639         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
23640         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
23641         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
23642         getlogin().
23644 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23646         getlogin: don’t assume one name per uid
23647         Problem reported by Wolfgang F. Muthmann (Bug#27640).
23648         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
23649         (ttyname): Remove test.
23650         * modules/getlogin_r-tests (ttyname): Remove test.
23651         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
23652         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
23653         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
23654         getlogin rather than getlogin_r.  This avoids code duplication.
23655         (main): Use isatty and fstat rather than ttyname and stat.
23656         Use getpwnam instead of getpwuid, to be portable to test platforms
23657         that have multiple login names for the same uid.
23659 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
23660             Bruno Haible  <bruno@clisp.org>
23662         glob: Fix more memory leaks.
23663         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
23664         returning.
23665         Reported by Tim Rühsen.
23667 2017-07-10  Bruno Haible  <bruno@clisp.org>
23669         Make sure $host and $host_os are defined when used.
23670         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
23671         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
23672         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
23673         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23674         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23675         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23676         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
23677         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
23678         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23679         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23680         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
23681         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
23682         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23683         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
23684         m4_ifdef block.
23686 2017-07-09  Bruno Haible  <bruno@clisp.org>
23688         *printf: Fix cross-compilation guess for Solaris.
23689         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
23690         2010-12-21.
23692 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23693             Bruno Haible  <bruno@clisp.org>
23695         vasnprintf: port to macOS 10.13
23696         Problem reported by comex in:
23697         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
23698         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
23700 2017-07-06  Bruno Haible  <bruno@clisp.org>
23702         imaxdiv tests: Fix logic.
23703         * tests/test-imaxdiv.c (main): Use == instead of =.
23704         Reported by Coverity.
23706 2017-07-06  Bruno Haible  <bruno@clisp.org>
23708         uninorm/filter: Fix use-after-free bug.
23709         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
23710         sortbuf == filter->sortbuf invariant.
23711         Reported by Coverity.
23713 2017-07-06  Bruno Haible  <bruno@clisp.org>
23715         glob: Fix more memory leaks.
23716         * lib/glob.c (glob): Free dirname before returning.
23717         Reported by Coverity and Tim Rühsen.
23719 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23721         parse-datetime: fix uninit var bug
23722         Reported by Bruno Haible in:
23723         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
23724         * lib/parse-datetime.y (parse_datetime2): Do not use
23725         uninitialized.
23727 2017-07-05  Bruno Haible  <bruno@clisp.org>
23729         doc: Update for MSVC 14.
23730         * doc/posix-headers/*.texi: Add info about MSVC 14.
23731         * doc/posix-functions/*.texi: Likewise.
23732         * doc/pastposix-functions/*.texi: Likewise.
23733         * doc/glibc-headers/*.texi: Likewise.
23734         * doc/glibc-functions/*.texi: Likewise.
23736 2017-07-05  Bruno Haible  <bruno@clisp.org>
23738         sched: Fix build failure on native Windows (regression from 2017-06-19).
23739         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
23741 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
23743         stdioext: Port to OpenVMS.
23744         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
23745         * lib/fpending.c (fpending): Remove non-working VMS specific code.
23746         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
23747         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
23748         * lib/fpurge.c (fpurge): Likewise.
23749         * lib/freadable.c (freadable): Likewise.
23750         * lib/freadahead.c (freadahead): Likewise.
23751         * lib/freading.c (freading): Likewise.
23752         * lib/freadptr.c (freadptr): Likewise.
23753         * lib/freadseek.c (freadseek): Likewise.
23754         * lib/fseeko.c (fseeko): Likewise.
23755         * lib/fseterr.c (fseterr): Likewise.
23756         * lib/fwritable.c (fwriteable): Likewise.
23757         * lib/fwriting.c (fwriting): Likewise.
23759 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
23761         glob: Declare variables at the very start of their scope.
23762         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
23763         its separate scope, so the functions will compile on Haiku.
23765 2017-07-01  Bruno Haible  <bruno@clisp.org>
23767         logbl: Work around a glibc bug on PowerPC64LE.
23768         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
23769         numbers.
23770         * doc/posix-functions/logbl.texi: Update.
23772 2017-06-29  Bruno Haible  <bruno@clisp.org>
23774         stat, fstat: Compile stat-w32.c only on platforms that need it.
23775         Suggested by Paul Eggert.
23776         * modules/stat (configure.ac): Request stat-w32.o only on native
23777         Windows.
23778         * modules/fstat (configure.ac): Likewise.
23780 2017-06-25  Bruno Haible  <bruno@clisp.org>
23782         stat: Improve last change.
23783         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
23785 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
23787         stat: port to xlc 12.01
23788         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
23789         12.01 complains "Compilation unit is empty."
23791 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23793         xalloc-oversized: port to icc
23794         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
23795         __builtin_mul_overflow if ICC is defined, as this results in
23796         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
23797         20170213.
23799 2017-06-19  Bruno Haible  <bruno@clisp.org>
23801         classpath: Avoid including config.h twice, as it produces warnings.
23802         Reported by John E. Malmberg <wb8tyw@gmail.com>.
23803         * lib/classpath.h: Conditionalize the include of config.h.
23805 2017-06-19  Bruno Haible  <bruno@clisp.org>
23806             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
23808         sched: Fix compilation failure on OpenVMS.
23809         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
23810         test whether <pthread.h> exists and defines struct sched_param.
23811         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
23813 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23815         diffseq: port to GCC 7 with --enable-gcc-warnings
23816         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
23817         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
23818         not complain about big_snake being defined but not used.
23820 2017-06-15  Bruno Haible  <bruno@clisp.org>
23822         gettext-h: Update theoretical condition for use of variable size arrays.
23823         Reported by Paul Eggert.
23824         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
23825         to include the theoretical condition for availability of variable size
23826         arrays, if we could trust the value of __STDC_VERSION__.
23828 2017-06-12  Bruno Haible  <bruno@clisp.org>
23830         Relicense some modules under LGPLv2+.
23831         Daiki Ueno's approval is in
23832         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
23833         * modules/uniwidth/base (License): Change to LGPLv2+.
23834         * modules/uniwidth/width (License): Likewise.
23836 2017-06-11  Bruno Haible  <bruno@clisp.org>
23838         localename: Fix test failure on DragonFly BSD.
23839         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
23840         like FreeBSD.
23842 2017-06-11  Bruno Haible  <bruno@clisp.org>
23844         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
23845         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
23846         * lib/float.in.h: Likewise.
23847         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
23849 2017-06-11  Bruno Haible  <bruno@clisp.org>
23851         gnulib-tool: Clean up after autotools.
23852         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
23853         useless directory left over by the Autotools.
23855 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23857         getopt-posix: port to glibc 2.25.90
23858         Problem reported by Daniel P. Berrange in:
23859         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
23860         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
23861         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
23862         #undef if __GETOPT_PREFIX is defined.
23864 2017-06-11  Bruno Haible  <bruno@clisp.org>
23866         strtod-obsolete: Fix license.
23867         * modules/strtod-obsolete (License): Change to LGPL.
23869 2017-06-10  Jim Meyering  <meyering@fb.com>
23871         maint: update to work with GCC7's -Werror=implicit-fallthrough=
23872         * lib/savewd.c (FALLTHROUGH): Define.
23873         (savewd_save, savewd_restore): Use this, rather than a comment,
23874         whenever one switch case falls through into the next.
23876 2017-06-08  Bruno Haible  <bruno@clisp.org>
23878         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
23879         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
23880         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
23881         case.
23883 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23885         doc: remove robots, add prereqs
23886         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
23887         builds.  Simon's robot site does not seem to be up, so remove
23888         mentions of it for now.
23890 2017-06-08  Bruno Haible  <bruno@clisp.org>
23892         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
23893         * gnulib-tool (func_symlink_target): New function, extracted from
23894         func_symlink.
23895         (func_symlink, func_symlink_if_changed): Use it.
23897 2017-06-08  Bruno Haible  <bruno@clisp.org>
23899         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
23900         * gnulib-tool (func_ln_s): Determine cp_src correctly.
23902 2017-06-07  Bruno Haible  <bruno@clisp.org>
23904         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
23905         Reported by John E. Malmberg <wb8tyw@gmail.com> in
23906         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
23907         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
23908         override, pass 2 arguments to getcwd, not 3.
23910 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23912         same-inode: port better to VMS 8.2 and later
23913         Problem reported by John E. Malmberg in:
23914         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
23915         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
23916         Use the usual POSIX definition.
23917         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
23919 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23921         error: fix POSIX violation for va_end
23922         Problem reported by Bruno Haible in:
23923         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
23924         * lib/error.c (error_tail): Do not call va_end here.
23925         (error, error_at_line): Call it here instead.
23927 2017-05-28  Bruno Haible  <bruno@clisp.org>
23929         c-strtod: Make it usable in C++ mode.
23930         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
23932 2017-05-25  Jim Meyering  <meyering@fb.com>
23934         quotearg: fix compilation failure due to FALLTHROUGH misuse
23935         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
23936         macro back to /* fall through */ comment.  The macro can apply only
23937         to a following case statement.  Reported by Assaf Gordon.
23939 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23941         intprops: port to recent icc
23942         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
23943         but does not support __builtin_add_overflow etc.
23944         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
23945         Define to 0.
23947 2017-05-23  Karl Berry  <karl@freefriends.org>
23949         * config/srclist.txt (iconv.m4): sync broken, comment out
23950         until (hopefully) the next gettext release.
23952 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
23954         Remove repeated words in comments.
23956 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23958         fallthrough: reinstate a FALLTHROUGH instance in quotearg
23959         quotearg.c: Reinstate this instance which is significant
23960         when the if branch is not taken.
23962 2017-05-21  Bruno Haible  <bruno@clisp.org>
23964         gnulib-tool: Add options to create hard links.
23965         * gnulib-tool (func_usage): Document options --hardlink,
23966         --local-hardlink, --more-hardlinks.
23967         (func_symlink): Renamed from func_ln.
23968         (func_symlink_if_changed): Renamed from func_ln_if_changed.
23969         (func_hardlink): New function.
23970         (copymode, lcopymode): New variables.
23971         (symbolic, lsymbolic): Remove variables.
23972         (Options): Implement options --hardlink, --local-hardlink,
23973         --more-hardlinks.
23974         (func_should_link): Renamed from func_should_symlink. Set copyaction.
23975         (func_add_file, func_update_file): Update invocation of
23976         func_should_link. Invoke func_hardlink when appropriate.
23977         (func_import): Update comments.
23978         (func_create_testdir): Update invocation of func_should_link. Invoke
23979         func_hardlink when appropriate.
23980         Finally, invoke 'git update-index --refresh' to mitigate the effects of
23981         the hard links on git.
23983 2017-05-20  Bruno Haible  <bruno@clisp.org>
23985         argp: Simplify bit manipulation.
23986         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
23987         on a signed integer type.
23989 2017-05-20  Bruno Haible  <bruno@clisp.org>
23991         Avoid wrong configure results with gcc -fsanitize=address.
23992         This completes the work done on 2016-02-06 on this topic.
23993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
23994         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23996         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23997         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
23998         returning.
23999         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
24000         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
24001         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24002         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24003         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
24004         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
24005         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
24006         free allocated memory before returning.
24007         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24008         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
24009         objects before returning.
24010         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
24011         returning.
24013 2017-05-20  Bruno Haible  <bruno@clisp.org>
24015         gnulib-tool: Don't create hard links between gnulib and its testdirs.
24016         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
24018 2017-05-20  Bruno Haible  <bruno@clisp.org>
24020         argp, tsearch tests: Fix file list.
24021         * modules/argp-tests (Files): Add tests/macros.h.
24022         * modules/tsearch-tests (Files): Likewise.
24024 2017-05-20  Bruno Haible  <bruno@clisp.org>
24026         getopt-posix tests: Remove redundant include.
24027         * tests/test-getopt.h: Don't include "macros.h". It's already included
24028         by tests/test-getopt-main.h.
24030 2017-05-19  Jim Meyering  <meyering@fb.com>
24032         dfa: two small simplifications
24033         * lib/dfa.c (build_state): Avoid repeating longer expressions.
24035 2017-05-18  Jim Meyering  <meyering@fb.com>
24037         fallthrough: update for GCC 7/8
24038         * lib/quotearg.c (FALLTHROUGH): New macro.
24039         Use it whenever one switch case falls through into the next,
24040         replacing "/* Fall through */" comments.  This exposed one
24041         instance of an unwarranted "fall through" comment: unwarranted
24042         because it preceded a "goto" label not a case statement.
24043         * lib/freopen-safer.c (freopen_safer): Likewise.
24044         * lib/fts.c (leaf_optimization_applies): Likewise.
24045         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
24046         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
24047         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
24048         tests/macros.h for the definition.
24049         * tests/test-argp.c (group1_parser): Likewise.
24050         * tests/test-getopt.h (getopt_loop): Likewise.
24052 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24054         argp: fix shift bug
24055         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
24056         behavior on shift overflow, caught by gcc -fsanitize=undefined.
24058         argp: fix pointer-subtraction bug
24059         * lib/argp-help.c (hol_append): Don’t subtract pointers to
24060         different arrays, as this can run afoul of -fcheck-pointer-bounds.
24061         See the thread containing Bruno Haible’s report in:
24062         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
24064 2017-05-19  Bruno Haible  <bruno@clisp.org>
24066         printf-posix tests: Avoid test failure with "gcc --coverage".
24067         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
24068         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
24069         than 5000000.
24070         * tests/test-fprintf-posix2.c (main): Likewise.
24072 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24074         closeout: don’t close stderr when sanitizing
24075         * NEWS: Document this.
24076         * lib/closeout.c (__has_feature): New macro, if not already defined.
24077         (SANITIZE_ADDRESS): New constant.
24078         (close_stdout): Don’t close stderr if sanitizing addresses.
24080 2017-05-19  Bruno Haible  <bruno@clisp.org>
24082         get-rusage-data tests: Avoid failure on Linux/glibc.
24083         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
24084         on glibc systems.
24086 2017-05-18  Bruno Haible  <bruno@clisp.org>
24088         localename: Include necessary header files on Cygwin.
24089         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
24090         where NL_LOCALE_NAME is defined.
24092 2017-05-18  Bruno Haible  <bruno@clisp.org>
24094         gettext: Update macros from gettext git.
24095         * m4/intldir.m4: Require Autoconf >= 2.60.
24096         * m4/progtest.m4: Fix typos in copyright notice.
24098 2017-05-18  Bruno Haible  <bruno@clisp.org>
24100         copy-file tests: Fix link error (regression from 2017-05-01).
24101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24102         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
24103         $(LIB_CLOCK_GETTIME).
24105 2017-05-18  Bruno Haible  <bruno@clisp.org>
24107         unicase/special-casing: Fix incompatibility with gperf-3.0.4
24108         (regression from 2017-02-13).
24109         * lib/unicase/special-casing.in.h: Renamed from
24110         lib/unicase/special-casing.h.
24111         * modules/unicase/special-casing (Files): Add
24112         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
24113         (Makefile.am): Add rule for generating unicase/special-casing.h.
24114         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
24115         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
24116         not "special-casing.h".
24117         * lib/unicase/u*.c: Likewise.
24119 2017-05-17  Bruno Haible  <bruno@clisp.org>
24121         README: Don't ask people to read a TeXinfo file.
24122         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
24123         * README: Tell people how to read the HTML formatted manual.
24125 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24127         parse-datetime: Fix memleak
24128         * lib/parse-datetime.y (parse_datetime2): Cleanup on
24129         localtime_rz() failure.
24131 2017-05-16  Bruno Haible  <bruno@clisp.org>
24133         javacomp: Fix handle leak.
24134         Found by Coverity.
24135         * lib/javacomp.c (get_classfile_version): Close fd before returning.
24137 2017-05-16  Bruno Haible  <bruno@clisp.org>
24139         relocate: Make it easier to reclaim allocated memory.
24140         * lib/relocatable.h (relocate2): New declaration/macro.
24141         * lib/relocatable.c (relocate2): New function.
24142         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
24143         relocate2 function.
24144         * lib/localcharset.c (relocate2): Define fallback.
24145         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
24146         allocated memory.
24147         * lib/javaversion.c (relocate2): Define fallback.
24148         (javaexec_version): Invoke relocate2 instead of relocate. Free the
24149         allocated memory.
24151 2017-05-16  Bruno Haible  <bruno@clisp.org>
24153         relocate: Simplify EMX specific code.
24154         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
24155         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
24157 2017-05-16  Bruno Haible  <bruno@clisp.org>
24159         sigpipe tests: Fix file list.
24160         * modules/sigpipe-tests (Files): Add tests/macros.h.
24162 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24164         manywarnings: update for GCC 7
24165         * build-aux/gcc-warning.spec:
24166         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24167         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
24168         requires a non-comment fallthrough attribute.  This is a bit
24169         cleaner than the comment versions.
24170         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
24171         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
24172         Use it whenever one switch case falls through into the next.
24173         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
24174         Use FALLTHROUGH macro.
24176 2017-05-15  Bruno Haible  <bruno@clisp.org>
24178         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
24179         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
24180         @ALLOCA@, not @LTALLOCA@.
24182 2017-05-15  Bruno Haible  <bruno@clisp.org>
24184         sys_select: Avoid "was expanded before it was required" warning.
24185         * modules/sys_select (configure.ac): Require, not invoke,
24186         gl_HEADER_SYS_SELECT.
24188 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24190         gnulib-tool: improve GNU Make debugging
24191         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
24192         Report autoconf diagnostics when it fails, in the output makefile.
24194 2017-05-14  Bruno Haible  <bruno@clisp.org>
24196         stat-time tests: Improve comment.
24197         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
24199 2017-05-14  Bruno Haible  <bruno@clisp.org>
24201         same-inode: Adapt for windows-stat-inodes.
24202         * lib/same-inode.h: Include <sys/types.h>.
24203         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
24204         * modules/same-inode (Depends-on): Add sys_types.
24206 2017-05-14  Bruno Haible  <bruno@clisp.org>
24208         windows-stat-inodes: New module.
24209         * m4/windows-stat-inodes.m4: New file.
24210         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
24211         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
24212         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
24213         (_GL_WINDOWS_STAT_INODES): New macro.
24214         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
24215         (GetFileInformationByHandleExFunc): New variable.
24216         (initialize): Initialize it.
24217         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
24218         st_ino appropriately.
24219         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
24220         a fallback, because it does not provide st_dev and st_ino values.
24221         * modules/fstat (Depends-on): Add 'verify'.
24222         * modules/windows-stat-inodes: New file.
24223         * doc/windows-stat-inodes.texi: New file.
24224         * doc/gnulib.texi: Include it.
24225         * doc/posix-headers/sys_stat.texi: Mention the new module.
24227 2017-05-14  Bruno Haible  <bruno@clisp.org>
24229         stat-time tests: Workaround for native Windows.
24230         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
24231         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
24232         New variables.
24233         (initialize_filenames): New function.
24234         (main): Invoke it.
24235         (cleanup, prepare_test): Update.
24237 2017-05-14  Bruno Haible  <bruno@clisp.org>
24239         stat-time: Adapt for windows-stat-timespec.
24240         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
24241         entire st_ctim field.
24243 2017-05-13  Jim Meyering  <meyering@fb.com>
24245         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
24246         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
24247         file that uses the assume macro, claiming that verify.h is unused.
24249 2017-05-13  Bruno Haible  <bruno@clisp.org>
24251         Use symbolic values for _WIN32_WINNT.
24252         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
24253         * lib/sethostname.c (_WIN32_WINNT): Likewise.
24255 2017-05-13  Bruno Haible  <bruno@clisp.org>
24257         year2038: New module.
24258         * m4/year2038.m4: New file.
24259         * modules/year2038: New file.
24260         * doc/year2038.texi: New file.
24261         * doc/gnulib.texi: Include it.
24263 2017-05-13  Bruno Haible  <bruno@clisp.org>
24265         largefile: Simplify.
24266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
24267         of _GL_WINDOWS_64_BIT_ST_SIZE.
24269 2017-05-13  Bruno Haible  <bruno@clisp.org>
24271         largefile: Improve and document.
24272         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
24273         the mingw headers already define 'stat' appropriately.
24274         * modules/largefile (Description): Clarify.
24275         * doc/largefile.texi: New file.
24276         * doc/gnulib.texi: Include it.
24277         * doc/posix-headers/sys_types.texi: Update.
24279 2017-05-13  Bruno Haible  <bruno@clisp.org>
24281         truncate: New module.
24282         * lib/unistd.in.h (truncate): New declaration.
24283         * lib/truncate.c: New file.
24284         * m4/truncate.m4: New file.
24285         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
24286         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
24287         REPLACE_TRUNCATE.
24288         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
24289         HAVE_TRUNCATE, REPLACE_TRUNCATE.
24290         * modules/truncate: New file.
24291         * tests/test-unistd-c++.cc (truncate): Test signature.
24292         * doc/posix-functions/truncate.texi: Mention the new module.
24294         * tests/test-truncate.c: New file.
24295         * modules/truncate-tests: New file.
24297 2017-05-13  Bruno Haible  <bruno@clisp.org>
24299         windows-stat-timespec: New module.
24300         * modules/windows-stat-timespec: New file.
24301         * m4/windows-stat-timespec.m4: New file.
24302         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
24303         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
24304         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
24305         fields st_atim, st_mtim, st_ctim.
24306         (st_atime, st_mtime, st_ctime): Define as macros.
24307         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
24308         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
24309         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
24310         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
24311         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
24312         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
24313         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
24314         FILETIME to 'struct timespec', not 'time_t'.
24315         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
24316         FILETIME to 'struct timespec', not 'time_t'.
24317         * lib/stat-time.h (STAT_TIMESPEC): Define also if
24318         _GL_WINDOWS_STAT_TIMESPEC.
24319         * doc/windows-stat-timespec.texi: New file.
24320         * doc/gnulib.texi: Include it.
24322 2017-05-13  Bruno Haible  <bruno@clisp.org>
24324         windows-stat-override: New module.
24325         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
24326         definition. Define GNULIB_defined_struct_stat.
24327         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
24328         link error if this symbol is used and the corresponding module is not
24329         in use.
24330         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
24331         GNULIB_OVERRIDES_STRUCT_STAT.
24332         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24333         GNULIB_OVERRIDES_STRUCT_STAT.
24334         * modules/sys_stat (Makefile.am): Substitute
24335         GNULIB_OVERRIDES_STRUCT_STAT.
24336         * modules/windows-stat-override: New file.
24338 2017-05-13  Bruno Haible  <bruno@clisp.org>
24340         fstat: Fix module dependency conditions.
24341         * modules/fstat (Depends-on): Fix typo.
24343 2017-05-13  Bruno Haible  <bruno@clisp.org>
24345         stat, fstat: Complete removal of old native Windows code.
24346         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
24347         * lib/fstat.c: Likewise.
24348         * lib/stat-w32.c: Likewise.
24350 2017-05-13  Bruno Haible  <bruno@clisp.org>
24352         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
24353         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
24355 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24357         getopt-posix: port to mingw
24358         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
24359         Problem reported by Daniel P. Berrage in:
24360         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
24362 2017-05-11  Bruno Haible  <bruno@clisp.org>
24364         gettimeofday: Increase precision on mingw.
24365         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
24366         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
24367         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
24368         GetSystemTimePreciseAsFileTime based implementation always.
24369         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
24370         mingw.
24372 2017-05-11  Bruno Haible  <bruno@clisp.org>
24374         poll: Fix confusion between SOCKETs and FDs on native Windows.
24375         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
24376         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
24378 2017-05-11  Bruno Haible  <bruno@clisp.org>
24380         doc: Clarify doc about socket functions on native Windows.
24381         This reworks doc that was added on 2008-09-29.
24382         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
24383         clearer wording.
24384         * doc/posix-functions/accept.texi: Use clearer wording.
24385         * doc/posix-functions/bind.texi: Likewise.
24386         * doc/posix-functions/connect.texi: Likewise.
24387         * doc/posix-functions/getpeername.texi: Likewise.
24388         * doc/posix-functions/getsockname.texi: Likewise.
24389         * doc/posix-functions/getsockopt.texi: Likewise.
24390         * doc/posix-functions/ioctl.texi: Likewise.
24391         * doc/posix-functions/listen.texi: Likewise.
24392         * doc/posix-functions/recv.texi: Likewise.
24393         * doc/posix-functions/recvfrom.texi: Likewise.
24394         * doc/posix-functions/send.texi: Likewise.
24395         * doc/posix-functions/sendto.texi: Likewise.
24396         * doc/posix-functions/setsockopt.texi: Likewise.
24397         * doc/posix-functions/shutdown.texi: Likewise.
24398         * doc/posix-functions/socket.texi: Likewise.
24400 2017-05-10  Bruno Haible  <bruno@clisp.org>
24402         poll: Fix link error on native Windows.
24403         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
24405 2017-05-10  Bruno Haible  <bruno@clisp.org>
24407         time: Fix missing initialization of HAVE_TIMEZONE_T.
24408         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
24409         here...
24410         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
24411         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
24412         gl_HEADER_SYS_TIME_H_DEFAULTS.
24413         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
24414         (configure.ac): Remove useless quoting.
24416 2017-05-10  Bruno Haible  <bruno@clisp.org>
24418         Implement a way to opt out from MSVC support, part 2.
24419         * modules/msvc-inval (Include): Document recommended idiom.
24420         * modules/msvc-nothrow (Include): Likewise.
24422         Implement a way to opt out from MSVC support.
24423         This is useful for Emacs.
24424         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
24425         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
24426         * lib/error.c: Likewise.
24427         * lib/fcntl.c: Likewise.
24428         * lib/flock.c: Likewise.
24429         * lib/fstat.c: Likewise.
24430         * lib/fsync.c: Likewise.
24431         * lib/ioctl.c: Likewise.
24432         * lib/isapipe.c: Likewise.
24433         * lib/lseek.c: Likewise.
24434         * lib/nonblocking.c: Likewise.
24435         * lib/poll.c: Likewise.
24436         * lib/select.c: Likewise.
24437         * lib/sockets.h: Likewise.
24438         * lib/sockets.c: Likewise.
24439         * lib/stdio-read.c: Likewise.
24440         * lib/stdio-write.c: Likewise.
24441         * lib/utimens.c: Likewise.
24442         * lib/w32sock.h: Likewise.
24443         * lib/w32spawn.h: Likewise.
24444         * tests/test-cloexec.c: Likewise.
24445         * tests/test-dup-safer.c: Likewise.
24446         * tests/test-dup2.c: Likewise.
24447         * tests/test-dup3.c: Likewise.
24448         * tests/test-fcntl.c: Likewise.
24449         * tests/test-pipe.c: Likewise.
24450         * tests/test-pipe2.c: Likewise.
24451         * lib/ftruncate.c: Likewise.
24452         (chsize_nothrow): Renamed from chsize.
24453         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
24454         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
24455         * lib/close.c: Likewise.
24456         * lib/dup.c: Likewise.
24457         * lib/fclose.c: Likewise.
24458         * lib/raise.c: Likewise.
24459         * tests/test-fgetc.c: Likewise.
24460         * tests/test-fputc.c: Likewise.
24461         * tests/test-fread.c: Likewise.
24462         * tests/test-fwrite.c: Likewise.
24463         * lib/getdtablesize.c: Likewise.
24464         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
24465         * lib/isatty.c: Don't include msvc-inval.h if
24466         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
24467         Include <io.h> as an alternative to msvc-nothrow.h.
24468         * lib/read.c: Likewise.
24469         * lib/write.c: Likewise.
24470         * lib/dup2.c: Likewise.
24471         (dup2_nothrow): New function.
24472         (ms_windows_dup2): Use it.
24473         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
24474         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
24475         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
24476         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
24477         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
24478         * m4/read.m4 (gl_FUNC_READ): Likewise.
24479         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
24480         * doc/windows-without-msvc.texi: New file.
24481         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
24482         section.
24484 2017-05-10  Bruno Haible  <bruno@clisp.org>
24486         wait-process: Adjust native Windows support.
24487         * lib/wait-process.c: Use the usual condition for recognizing a native
24488         Windows platform.
24490 2017-05-10  Bruno Haible  <bruno@clisp.org>
24492         doc: New chapter "Native Windows Support".
24493         * doc/gnulib.texi (Native Windows Support): New chapter.
24494         * doc/windows-libtool.texi: Small wording changes.
24495         * doc/windows-sockets.texi: Small wording and formatting changes.
24497 2017-05-10  Bruno Haible  <bruno@clisp.org>
24499         doc: Move section "Library version handling".
24500         * doc/gnulib.texi: Move section "Library version handling"
24501         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
24503 2017-05-10  Bruno Haible  <bruno@clisp.org>
24505         doc: Move section "Running self-tests under valgrind".
24506         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
24507         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
24509 2017-05-10  Bruno Haible  <bruno@clisp.org>
24511         doc: New chapter "Build Infrastructure Modules".
24512         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
24514 2017-05-10  Bruno Haible  <bruno@clisp.org>
24516         Prepare for reordering sections in the manual.
24517         * doc/gnulib.texi: Move several sections to separate files. Include
24518         these files.
24519         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
24520         * doc/obsolete.texi: Likewise.
24521         * doc/extra-tests.texi: Likewise.
24522         * doc/transversal.texi: Likewise.
24523         * doc/namespace.texi: Likewise.
24524         * doc/check-version.texi: Likewise.
24525         * doc/windows-sockets.texi: Likewise.
24526         * doc/windows-libtool.texi: Likewise.
24527         * doc/licenses-texi.texi: Likewise.
24528         * doc/build-automation.texi: Likewise.
24529         * doc/c-locale.texi: Likewise.
24531 2017-05-10  Bruno Haible  <bruno@clisp.org>
24533         Fix instructions how to update manual on www.gnu.org.
24534         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
24536 2017-05-09  Bruno Haible  <bruno@clisp.org>
24538         tzset: Expand comment about TZ problem on native Windows.
24539         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
24540         Paul Eggert.
24541         * lib/ctime.c (rpl_ctime): Likewise.
24542         * lib/localtime.c (rpl_localtime): Likewise.
24543         * lib/mktime.c (mktime): Likewise.
24544         * lib/strftime-fixes.c (rpl_strftime): Likewise.
24545         * lib/wcsftime.c (rpl_wcsftime): Likewise.
24547 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24549         intprops: don’t depend on ‘verify’
24550         Problem reported by Ævar Arnfjörð Bjarmason in:
24551         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
24552         * lib/intprops.h: Do not include verify.h, and move compile-time
24553         checks from here ...
24554         * tests/test-intprops.c (main): ... to here, if they’re not here
24555         already.  Check widths of other standard integer types.
24556         * modules/intprops (Depends-on): Remove ‘verify’.
24558 2017-05-07  Bruno Haible  <bruno@clisp.org>
24560         utimens: On native Windows, support 100ns resolution also if fd < 0.
24561         * lib/utime.in.h: Include <time.h>.
24562         (_gl_utimens_windows): New declaration.
24563         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
24564         (utime): Invoke it.
24565         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
24566         instead of utime.
24567         * modules/utime (Depends-on): Add 'time'.
24569 2017-05-07  Bruno Haible  <bruno@clisp.org>
24571         utimens: Improve error code on native Windows.
24572         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
24573         error code EACCES, not EINVAL.
24575 2017-05-07  Bruno Haible  <bruno@clisp.org>
24577         utime: Handle more Windows error codes.
24578         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
24579         Based on explanations by Billy O'Neal.
24581 2017-05-05  Bruno Haible  <bruno@clisp.org>
24583         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
24584         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
24585         union.
24586         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
24587         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
24588         value of cipher->IV.
24590 2017-05-05  Bruno Haible  <bruno@clisp.org>
24592         wctype-h-c++-tests: Update.
24593         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
24595 2017-05-05  Bruno Haible  <bruno@clisp.org>
24597         wchar-c++-tests: Update.
24598         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
24600 2017-05-05  Bruno Haible  <bruno@clisp.org>
24602         utime-h-c++-tests: New module.
24603         * tests/test-utime-h-c++.cc: New file.
24604         (utime): Declare, missing since 2017-04-30.
24605         * modules/utime-h-c++-tests: New file.
24607 2017-05-05  Bruno Haible  <bruno@clisp.org>
24609         unistd-c++-tests: Update.
24610         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
24611         (read): Declare, missing since 2011-04-15.
24612         (sethostname): Declare, missing since 2011-12-03.
24614 2017-05-05  Bruno Haible  <bruno@clisp.org>
24616         time-c++-tests: Update.
24617         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
24618         (localtime, gmtime): Declare, missing since 2017-04-30.
24619         (ctime): Declare, missing since 2017-04-30.
24620         (strftime): Declare, missing since 2017-04-30.
24621         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
24622         2015-07-24.
24624 2017-05-05  Bruno Haible  <bruno@clisp.org>
24626         sys_resource-c++-tests: New module.
24627         * tests/test-sys_resource-c++.cc: New file.
24628         (getrusage): Declare, missing since 2012-04-13.
24629         * modules/sys_resource-c++-tests: New file.
24631 2017-05-05  Bruno Haible  <bruno@clisp.org>
24633         strings-c++-tests: New module.
24634         * tests/test-strings-c++.cc: New file.
24635         (ffs): Declare, missing since 2011-07-12.
24636         * modules/strings-c++-tests: New file.
24638 2017-05-05  Bruno Haible  <bruno@clisp.org>
24640         string-c++-tests: Update.
24641         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
24642         (ffsll): Declare, missing since 2011-07-15.
24644 2017-05-05  Bruno Haible  <bruno@clisp.org>
24646         stdlib-c++-tests: Update.
24647         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
24648         2011-10-18.
24649         (ptsname_r): Declare, missing since 2011-11-07.
24650         (qsort_r): Declare, missing since 2014-08-29.
24651         (random, srandom, initstate, setstate): Declare, missing since
24652         2012-01-14.
24653         (secure_getenv): Declare, missing since 2013-02-05.
24655 2017-05-05  Bruno Haible  <bruno@clisp.org>
24657         stdio-c++-tests: Update.
24658         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
24660 2017-05-05  Bruno Haible  <bruno@clisp.org>
24662         signal-h-c++-tests: Update.
24663         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
24665 2017-05-05  Bruno Haible  <bruno@clisp.org>
24667         math-c++-tests: Update.
24668         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
24669         (fma): Declare, missing since 2011-10-17.
24670         (fmal): Declare, missing since 2011-10-17.
24672 2017-05-05  Bruno Haible  <bruno@clisp.org>
24674         locale-c++-tests: Update.
24675         * tests/test-locale-c++.cc (localeconv): Declare, missing since
24676         2012-03-25.
24678 2017-05-05  Bruno Haible  <bruno@clisp.org>
24680         inttypes-c++-tests: New module.
24681         * tests/test-inttypes-c++.cc: New file.
24682         (strtoimax): Declare, missing since 2012-01-05.
24683         (strtoumax): Declare, missing since 2012-01-05.
24684         * modules/inttypes-c++-tests: New file.
24686 2017-05-05  Bruno Haible  <bruno@clisp.org>
24688         dirent-c++-tests: Update.
24689         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
24690         (rewinddir): Declare, missing since 2011-09-13.
24691         (dirfd): Declare, missing since 2010-03-08.
24693 2017-05-04  Bruno Haible  <bruno@clisp.org>
24695         argp: Fix mistake in 2017-04-23 commit.
24696         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
24697         assume that strerror_r returns 'int', not 'char *'.
24699 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
24701         argp: Fix typo.
24702         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
24704 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24706         utimens: port to Emacs + MS-Windows
24707         Skip the new MS-Windows-specific code if Emacs.
24708         * lib/utimens.c [EMACS_CONFIGUATION]:
24709         Avoid new MS-Windows-specific code.
24710         (USE_SETFILETIME): New macro.
24711         (fdutimens): Use it.
24713 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24715         tzset: update doc for TZ problems on MS-Windows
24716         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
24717         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
24718         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
24719         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
24720         * doc/posix-functions/wcsftime.texi:
24721         Mention some issues with TZ under MS-Windows.
24723 2017-05-01  Bruno Haible  <bruno@clisp.org>
24725         copy-file: Fix build error on mingw.
24726         * modules/copy-file (Depends-on): Add 'close'.
24728 2017-05-01  Bruno Haible  <bruno@clisp.org>
24730         tzset: Work around TZ problem on native Windows.
24731         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
24732         Windows, set REPLACE_TZSET to 1.
24733         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
24734         invoke '_tzset' instead of 'tzset'.
24735         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
24737         * modules/time_rz (Depends-on): Add tzset.
24738         * lib/time_rz.c (tzset): Remove fallback definition.
24739         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
24741 2017-05-01  Bruno Haible  <bruno@clisp.org>
24743         mktime: Fix dependencies.
24744         * modules/mktime (Depends-on): Add 'time'.
24746 2017-05-01  Bruno Haible  <bruno@clisp.org>
24748         New module 'localtime-buffer', split off from module 'gettimeofday'.
24749         * lib/localtime-buffer.h: New file.
24750         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
24751         * lib/time.in.h (tzset): New declaration.
24752         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
24753         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
24754         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
24755         moved to lib/localtime-buffer.c or lib/tzset.c.
24756         * m4/localtime-buffer.m4: New file.
24757         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
24758         HAVE_TZSET, REPLACE_TZSET.
24759         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
24760         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
24761         gl_LOCALTIME_BUFFER_NEEDED.
24762         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
24763         since 2007-01-18.
24764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
24765         tzset.
24766         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
24767         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
24768         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
24769         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
24770         * modules/localtime-buffer: New file.
24771         * modules/time (Depends-on): Remove 'gettimeofday'.
24772         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
24773         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
24774         * modules/tzset (Description): Enable hyperlink to POSIX spec.
24775         (Files): Add lib/tzset.c.
24776         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
24777         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
24778         gl_TIME_MODULE_INDICATOR.
24779         * modules/gettimeofday (Depends-on): Add localtime-buffer.
24781 2017-05-01  Bruno Haible  <bruno@clisp.org>
24783         copy-file: Preserve sub-second time stamps.
24784         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
24785         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
24786         transport the time stamps from the original file to the destination
24787         file.
24788         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
24789         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
24790         utime-h.
24792 2017-05-01  Bruno Haible  <bruno@clisp.org>
24794         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
24795         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
24796         also on MSVC.
24797         Reported by Eli Zaretskii <eliz@gnu.org>.
24799 2017-05-01  Bruno Haible  <bruno@clisp.org>
24801         wchar: Fix compilation error with the original mingw.org mingw.
24802         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24803         <stddef.h> instead.
24804         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
24805         gl_WCTYPE_H.
24806         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
24807         gl_TYPE_WINT_T_PREREQ instead.
24808         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
24809         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
24810         Reported by Eli Zaretskii <eliz@gnu.org>.
24812 2017-04-30  Bruno Haible  <bruno@clisp.org>
24814         utimecmp: Add support for native Windows.
24815         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
24817 2017-04-30  Bruno Haible  <bruno@clisp.org>
24819         utimens: Add support for native Windows.
24820         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
24821         (fdutimens): Provide a native Windows implementation, like utime.c with
24822         added tv_nsec support.
24823         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
24824         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
24826 2017-04-30  Bruno Haible  <bruno@clisp.org>
24828         wcsftime: New module.
24829         * lib/wchar.in.h (wcsftime): New declaration.
24830         * lib/wcsftime.c: New file.
24831         * m4/wcsftime.m4: New file.
24832         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
24833         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
24834         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24835         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
24836         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24837         * modules/wcsftime: New file.
24838         * doc/posix-functions/wcsftime.texi: Mention the new module.
24840 2017-04-30  Bruno Haible  <bruno@clisp.org>
24842         strftime-fixes: New module.
24843         * lib/time.in.h (strftime): New declaration.
24844         * lib/strftime-fixes.c: New file.
24845         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
24846         (gl_FUNC_STRFTIME): Remove macro.
24847         * m4/strftime-fixes.m4: New file.
24848         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
24849         REPLACE_STRFTIME.
24850         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
24851         REPLACE_STRFTIME.
24852         * modules/strftime-fixes: New file.
24853         * doc/posix-functions/strftime.texi: Mention the new module.
24855 2017-04-30  Bruno Haible  <bruno@clisp.org>
24857         mktime: Work around TZ problem on native Windows.
24858         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
24859         from the native Windows workaround.
24860         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
24861         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
24862         'guessing no'.
24863         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
24864         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
24865         NEED_MKTIME_WINDOWS.
24866         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
24867         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
24868         NEED_MKTIME_INTERNAL.
24869         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
24870         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
24871         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
24872         not REPLACE_MKTIME.
24873         * doc/posix-functions/mktime.texi: Mention the native Windows
24874         workaround.
24876 2017-04-30  Bruno Haible  <bruno@clisp.org>
24878         localtime: New module.
24879         * lib/time.in.h (localtime): Declare also if requested by module
24880         'localtime'.
24881         * lib/localtime.c: New file.
24882         * m4/localtime.m4: New file.
24883         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
24884         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
24885         * modules/localtime: New file.
24886         * doc/posix-functions/localtime.texi: Mention the new module.
24888 2017-04-30  Bruno Haible  <bruno@clisp.org>
24890         ctime: New module.
24891         * lib/time.in.h (ctime): New declaration.
24892         * lib/ctime.c: New file.
24893         * m4/ctime.m4: New file.
24894         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
24895         REPLACE_CTIME.
24896         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
24897         * modules/ctime: New file.
24898         * doc/posix-functions/ctime.texi: Mention the new module.
24900 2017-04-30  Bruno Haible  <bruno@clisp.org>
24902         gettimeofday: Provide higher resolution on native Windows.
24903         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
24904         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
24905         (initialize): Initialize it.
24906         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
24907         'struct timeval'. Don't use _ftime().
24908         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
24909         <sys/timeb.h> and _ftime.
24911 2017-04-30  Bruno Haible  <bruno@clisp.org>
24913         Document the problem with the Cygwin environment variable TZ.
24914         * doc/posix-functions/tzset.texi: Add note about TZ.
24915         * doc/posix-functions/ctime.texi: Likewise.
24916         * doc/posix-functions/localtime.texi: Likewise.
24917         * doc/posix-functions/mktime.texi: Likewise.
24918         * doc/posix-functions/strftime.texi: Likewise.
24919         * doc/posix-functions/wcsftime.texi: Likewise.
24920         * doc/pastposix-functions/ftime.texi: Likewise.
24922 2017-04-30  Bruno Haible  <bruno@clisp.org>
24924         utime-tests: New module.
24925         * tests/test-utime.c: New file, based on tests/test-utimens.h.
24926         * tests/test-utimens-common.h: Include <sys/stat.h>.
24927         * modules/utime-tests: New file.
24929 2017-04-29  Bruno Haible  <bruno@clisp.org>
24931         utime: New module.
24932         * lib/utime.in.h: Add comment for snippets.
24933         (utime): New declaration.
24934         * lib/utime.c: New file.
24935         * m4/utime.m4: New file.
24936         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
24937         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
24938         REPLACE_UTIME.
24939         * modules/utime-h (Depends-on): Add snippets.
24940         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
24941         Insert snippets.
24942         * modules/utime: New file.
24943         * doc/posix-functions/utime.texi: Mention the new module.
24945 2017-04-29  Bruno Haible  <bruno@clisp.org>
24947         utime-h: Modernize handling of 'struct utimbuf'.
24948         * lib/utime.in.h: Include next <utime.h> if it exists.
24949         (utimbuf): Define to _utimbuf on native Windows.
24950         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
24951         Set UTIME_H on native Windows.
24952         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
24953         * modules/utime-h (Depends-on): Add include_next.
24954         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
24955         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
24957         * lib/utimens.c (utimbuf): Remove fallback definition.
24958         * m4/utimens.m4 (gl_UTIMENS): Don't require
24959         gl_CHECK_TYPE_STRUCT_UTIMBUF.
24960         * m4/utimbuf.m4: Remove file.
24961         * modules/utimens (Files): Remove m4/utimbuf.m4.
24963 2017-04-29  Bruno Haible  <bruno@clisp.org>
24965         Make use of module 'utime-h'.
24966         * modules/copy-file (Depends-on): Add utime-h.
24967         * lib/copy-file.c: Assume that <utime.h> exists.
24968         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
24970         * modules/utimens (Depends-on): Add utime-h.
24971         * lib/utimens.c: Assume that <utime.h> exists.
24973 2017-04-29  Bruno Haible  <bruno@clisp.org>
24975         utime-h: New module.
24976         * m4/utime_h.m4: New file.
24977         * lib/utime.in.h: New file.
24978         * modules/utime-h: New file.
24979         * doc/posix-headers/utime.texi: Mention the new module.
24981         * tests/test-utime-h.c: New file.
24982         * modules/utime-h-tests: New file.
24984 2017-04-30  Bruno Haible  <bruno@clisp.org>
24986         Fix a few typos.
24987         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
24988         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
24989         * doc/posix-functions/fstat.texi: Fix a plural typo.
24990         * doc/posix-functions/stat.texi: Likewise.
24991         * m4/include_next.m4: Update comments.
24993 2017-04-29  Bruno Haible  <bruno@clisp.org>
24995         error: Fix mistake in 2017-04-23 commit.
24996         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
24997         assume that strerror_r returns 'int', not 'char *'.
24999 2017-04-29  Bruno Haible  <bruno@clisp.org>
25001         stat: Fix time_t values and other problems on native Windows platforms.
25002         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
25003         implementations of stat().
25004         * lib/stat.c: Include filename.h instead of dosname.h. Include
25005         malloca.h, stat-w32.h.
25006         (is_unc_root): New function.
25007         (rpl_stat): New implementation for native Windows. Remove
25008         REPLACE_FUNC_STAT_DIR code.
25009         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
25010         Don't define REPLACE_FUNC_STAT_DIR.
25011         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
25012         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
25013         (Depends-on): Remove dosname. Add filename, malloca.
25014         (configure.ac): Also compile lib/stat-w32.c.
25016 2017-04-29  Bruno Haible  <bruno@clisp.org>
25018         fstat: Fix time_t values on native Windows platforms.
25019         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
25020         * lib/stat-w32.h: New file.
25021         * lib/stat-w32.c: New file.
25022         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
25023         stat-w32.h instead.
25024         (fstat_nothrow): Remove function.
25025         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
25026         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
25027         always.
25028         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
25029         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
25030         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
25031         (configure.ac): Also compile lib/stat-w32.c.
25033 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
25035         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
25036         Problem reported by Assaf Gordon and Gavin Smith in:
25037         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
25038         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
25039         #define this, too.
25041 2017-04-29  Bruno Haible  <bruno@clisp.org>
25043         strerror_r-posix: Fixes for MSVC 14.
25044         * lib/strerror_r.c: Include <stdarg.h>.
25045         (strerror_r): Provide error messages for errno values 100...140.
25046         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
25048 2017-04-28  Bruno Haible  <bruno@clisp.org>
25050         noreturn: New module.
25051         * lib/noreturn.h: New file.
25052         * modules/noreturn: New file.
25053         * tests/test-noreturn.c: New file.
25054         * modules/noreturn-tests: New file.
25055         * tests/test-noreturn-c++.cc: New file.
25056         * modules/noreturn-c++-tests: New file.
25058 2017-04-27  Bruno Haible  <bruno@clisp.org>
25060         wctype-h: Fix compilation error with the original mingw.org mingw.
25061         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
25062         HAVE_CRTDEFS_H.
25063         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
25064         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
25065         <stddef.h> instead.
25066         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
25068 2017-04-26  Pádraig Brady  <P@draigBrady.com>
25070         nap.h: Fix compilation on non windows platforms
25071         * tests/nap.h: Move misplaced endif.
25073 2017-04-26  Pádraig Brady  <P@draigBrady.com>
25074         and Paul Eggert  <eggert@cs.ucla.edu>
25076         time_rz: fix heap buffer overflow vulnerability
25077         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
25078         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
25079         whether there is enough buffer space available, thus avoiding
25080         the problematic promotion of signed to unsigned causing an invalid
25081         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
25082         the start of the buffer.
25083         * tests/test-parse-datetime.c (main): Add a test case written by
25084         Paul Eggert, which overwrites enough of the heap so that
25085         standard glibc will fail with "free(): invalid pointer"
25086         without the patch applied.
25088 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
25090         xalloc: add missing integer overflow check
25091         * lib/xalloc.h (x2nrealloc): Also check for multiplication
25092         overflow when P is null.
25094 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25096         parse-datetime: make it standalone
25097         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
25098         (_GL_ATTRIBUTE_FORMAT): New macro.
25099         These are needed to get './gnulib-tool --test parse-datetime' to work.
25101 2017-04-23  Bruno Haible  <bruno@clisp.org>
25103         nap.h: Port to native Windows.
25104         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
25105         use nap_fd instead. On native Windows, close and reopen nap_fd.
25106         (nap_works): Don't compare the ctimes, because on native Windows, these
25107         are the creation times.
25108         (nap): Update.
25110 2017-04-23  Bruno Haible  <bruno@clisp.org>
25112         nap.h: Fix logic.
25113         * tests/nap.h (nap): Avoid signed integer overflow in loop.
25115 2017-04-23  Bruno Haible  <bruno@clisp.org>
25117         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
25118         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
25119         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
25120         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
25121         * lib/argp-help.c (__argp_failure): Likewise.
25123 2017-04-23  Bruno Haible  <bruno@clisp.org>
25125         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
25126         * m4/strerror_r.m4: Revert changes since 2016-10-16.
25127         * lib/strerror_r.c: Likewise.
25129 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
25131         Target a C99 subset, not a C89 subset
25132         For many years Gnulib has targeted C89 and has resisted using C99
25133         features, as some Gnulib-using programs still wanted to target
25134         C89.  As this no longer seems to be the case, relax the porting
25135         requirements to allow some C99 features.  This is merely a change
25136         to the documentation, to give other Gnulib developers a chance to
25137         weigh in on the topic.
25138         * doc/extern-inline.texi (extern inline):
25139         * doc/gnulib-readme.texi (Portability guidelines):
25140         * doc/gnulib-tool.texi (Initial import):
25141         * doc/gnulib.texi (Header files):
25142         Modernize to talk about C99 and C11 instead of C89 and C99.
25143         * doc/gnulib-readme.texi (Portability guidelines):
25144         Now a section, not merely a subsection, so that it
25145         can be split up.  Modernize a bit.
25146         (C language versions, C99 features assumed)
25147         (C99 features avoided):
25148         New sections.
25150 2017-04-23  Bruno Haible  <bruno@clisp.org>
25152         doc: New section "Modules that modify the way other modules work".
25153         * doc/gnulib.texi (Modules that modify the way other modules work): New
25154         section.
25156 2017-04-23  Bruno Haible  <bruno@clisp.org>
25158         stat-time: Update comments.
25159         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
25160         * tests/test-utimens-common.h: Add reference regarding st_ctime on
25161         Windows.
25163 2017-04-01  Bruno Haible  <bruno@clisp.org>
25165         glob: Fix more memory leaks.
25166         * lib/glob.c (glob): Free allocated memory before returning.
25167         Reported by Coverity via Tim Rühsen.
25169 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
25171         poll: improve fast check for out-of-range NFD
25172         * lib/poll.c: Do not include intprops.h.
25173         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
25174         * modules/poll (Depends-on): Remove intprops.
25176         ftoastr: cite a newer paper
25177         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
25178         instead of Loitsch 2010.
25180 2017-04-22  Bruno Haible  <bruno@clisp.org>
25182         poll: Enable argument check also in the Windows implementation.
25183         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
25184         Reported by Paul Eggert.
25186 2017-04-22  Bruno Haible  <bruno@clisp.org>
25188         getlogin_r: Work around bug in Mac OS X 10.12.
25189         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
25190         bug.
25191         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
25192         given size minus 1, call getlogin_r a second time, on a larger buffer.
25193         * modules/getlogin_r (Depends-on): Add malloca.
25194         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
25196 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
25198         parse-datetime: fix %z and prefer signed int
25199         %z problem reported by Pádraig Brady in:
25200         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
25201         While fixing it, I decided to prefer signed ints to size_t, as
25202         they are less error-prone (e.g., ubsan catches overflow).
25203         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
25204         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
25205         counts, since signed integers make for better debugging.
25206         (date): Don’t assume %z works in printf formats.
25207         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
25208         sizes of buffers known to be small, e.g., because we’re using snprintf.
25209         (parse_datetime2): Simplify call to debug_mktime_not_ok.
25211 2017-04-22  Bruno Haible  <bruno@clisp.org>
25213         *printf: Work around rounding bug on Mac OS X.
25214         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
25215         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
25216         Mac OS X and FreeBSD.
25217         * doc/glibc-functions/*printf.texi: Likewise.
25219 2017-04-22  Bruno Haible  <bruno@clisp.org>
25221         vasnprintf tests: Avoid warnings.
25222         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
25223         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
25224         test.
25226 2017-04-22  Bruno Haible  <bruno@clisp.org>
25228         sys_file tests: Avoid warning.
25229         * tests/test-sys_file.c (main): Add a default clause to the switch
25230         statement.
25232 2017-04-22  Bruno Haible  <bruno@clisp.org>
25234         sethostname: Update doc.
25235         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
25236         Mac OS X.
25238 2017-04-22  Bruno Haible  <bruno@clisp.org>
25240         quotearg tests: Avoid warnings.
25241         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
25242         false.
25244 2017-04-22  Bruno Haible  <bruno@clisp.org>
25246         poll: Enable argument check.
25247         * lib/poll.c: Include intprops.h.
25248         (poll): Check value of nfd correctly.
25249         * modules/poll (Depends-on): Add intprops.
25251 2017-04-22  Bruno Haible  <bruno@clisp.org>
25253         get-rusage-data: Avoid warnings on Mac OS X.
25254         * lib/get-rusage-data.c: On Mac OS X, don't define
25255         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
25256         (get_rusage_data) [Mac OS X]: Just return 0.
25258 2017-04-22  Bruno Haible  <bruno@clisp.org>
25260         xbinary-io: Fix build error.
25261         * modules/xbinary-io (Depends-on): Add gettext-h.
25262         * lib/xbinary-io.c: Include gettext.h and define _().
25263         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
25264         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
25266 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
25268         parse-datetime: overflow and debug cleanups
25269         This long patch was triggered by this bug report from Ruediger Meier:
25270         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
25271         I fixed the bug he noted, then found some others nearby, and then
25272         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
25273         up some of the code to follow GNU standards while I was at it.
25274         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
25275         use c_isdigit.
25276         (EPOCH_YEAR): Remove; unused.
25277         (TM_YEAR_BASE): Now an enum rather than a macro.
25278         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
25279         time zone offset, since timezones now are in terms of seconds and
25280         not minutes.
25281         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
25282         appropriate.  Verify that intmax_t is wide enough.
25283         (time_overflow, time_zone_str): New functions, used to deal
25284         more reliably with overflow.
25285         (dbg_printf): Add printf attribute, to help catch integer width errors.
25286         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
25287         (%union, to_hour, yylex, parse_datetime2):
25288         Use intmax_t instead of long int and/or long_time_t.
25289         All uses changed.
25290         (DBGBUFSIZE): Move earlier.
25291         (relative_time, set_hhmmss, parser_control):
25292         Just use int for nanoseconds and for time zones; that’s wide enough.
25293         (parser_control): Use bool for members like year_seen that can
25294         be booleans instead of counters.  All uses changed.
25295         Remove debug_default_input_timezone; no longer needed.
25296         All uses removed.
25297         (apply_relative_time): Return a bool overflow flag.
25298         All uses changed to check for overflow.
25299         (apply_relative_time, zone, date, relunit, relunit_snumber)
25300         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
25301         Check for integer overflow portably.
25302         (str_days): Use just int for N, as it’s wide enough.
25303         Prefer 2D char arrays to arrays of char * when it looks like
25304         2D is a win on typical platforms.
25305         Prefer snprintf to strncpy/strncat, for simplicity;
25306         all buffers are smaller than INT_MAX so this is safe.
25307         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
25308         (debug_print_current_time): Don’t assume tv_nsec is of type long,
25309         as this is not true on x32.  Output "." before any nanoseconds.
25310         (debug_print_current_time, parse_datetime2):
25311         Output local zones using a more-consistent format.
25312         (debug_print_current_time, date, parse_datetime2):
25313         (main) [TEST]:
25314         Don’t assume time_t is the same width as long.
25315         (print_rel_part): New function, replacing ...
25316         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
25317         (debug_print_relative_time): Use bool for boolean.
25318         (local_zone): dsts_seen now counts only tDST instances.
25319         (date): Fix printf of size_t to use %z.  Do not assume numeric
25320         tokens have negative values merely because the context suggests
25321         a syntax with "-" separating tokens.
25322         (time_zone_hhmm): Return bool success indicator, which checks for
25323         overflow.  Store result into PC->time_zone instead.  All callers
25324         changed.
25325         (tm_year_str): New function.  Return a bool success indicator and
25326         store the result into a buffer.  All callers changed.  Output the
25327         numerically correct string even if adding 1900 to the year would
25328         overflow.
25329         (to_tm_year): New function, replacing the old to_year.  All
25330         callers changed.
25331         (tm_diff): Sync with glibc.
25332         (lookup_word): Use to_uchar instead of doing it by hand.
25333         (TZBUFSIZE): Now local to the only function that needs it.
25334         (debug_strfdatetime): Simplify now that time zones are int seconds.
25335         (debug_strfdate): Work even if tm_year + 1900 would overflow.
25336         (get_effective_timezone): Remove.  All uses removed.
25337         (parse_datetime2): Use fprintf in pieces instead of snprintfing
25338         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
25339         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
25340         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
25341         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
25342         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
25343         * modules/parse-datetime (Depends-on): Add inttypes.
25345 2017-04-21  Bruno Haible  <bruno@clisp.org>
25347         gettext-h: Avoid -Wundef warning.
25348         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
25349         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
25350         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
25352 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
25354         error: Avoid "function declaration isn't a prototype" warning.
25355         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
25357 2017-04-21  Bruno Haible  <bruno@clisp.org>
25359         vasnprintf: Fix for MSVC 14.
25360         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
25361         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
25362         of !HAVE_SNPRINTF_RETVAL_C99.
25364 2017-04-21  Bruno Haible  <bruno@clisp.org>
25366         mbrtowc tests: Fix test failures on MSVC 14.
25367         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
25368         behaviour for invalid input.
25370 2017-04-21  Bruno Haible  <bruno@clisp.org>
25372         mbsinit: Fix for MSVC 14.
25373         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
25374         implementation that is in sync with mbrtowc.c. On other platforms, use
25375         an adequate ad-hoc implementation.
25377 2017-04-21  Bruno Haible  <bruno@clisp.org>
25379         Fix test-mbrtowc5.sh failure on native Windows.
25380         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
25381         "C".
25383 2017-04-21  Bruno Haible  <bruno@clisp.org>
25385         Avoid accidental use of native Windows APIs on Cygwin.
25386         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
25387         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
25388         * lib/localename.c (WINDOWS_NATIVE): Likewise.
25390 2017-04-20  Bruno Haible  <bruno@clisp.org>
25392         Remove red warnings from the generated MODULES.html.
25393         * modules/fcntl (Description): Disambiguate function references.
25394         * modules/getcwd-lgpl (Description): Likewise.
25395         * modules/hostent (Description): Likewise.
25396         * modules/servent (Description): Likewise.
25397         * modules/tempname (Description): Likewise.
25399 2017-04-20  Bruno Haible  <bruno@clisp.org>
25401         verify tests: Fix spurious failure with parallel make.
25402         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
25403         EXTRA_PROGRAMS.
25404         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
25405         * tests/test-verify-try.c: New file.
25406         * modules/verify-tests (Files): Add it.
25407         (EXTRA_PROGRAMS): Add test-verify-try.
25408         (MOSTLYCLEANFILES): Update accordingly.
25409         Reported by Adam James Stewart <ajstewart@anl.gov>.
25411 2017-04-18  Bruno Haible  <bruno@clisp.org>
25413         vma-iter: Fix compilation error on Solaris 7.
25414         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
25415         like on IRIX, OSF/1.
25416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25418 2017-04-18  Bruno Haible  <bruno@clisp.org>
25420         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
25421         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
25422         included.
25423         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
25424         <sys/procfs.h>.
25425         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
25426         <sys/procfs.h> cannot be included.
25427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25429 2017-04-18  Bruno Haible  <bruno@clisp.org>
25431         getopt-gnu: Add comments.
25432         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
25433         * modules/getopt-gnu (configure.ac): Likewise.
25435 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
25437         regex: port better to Solaris 10
25438         Solaris 10 <locale.h> includes <libintl.h>, which #defines
25439         gettext, and this causes a double #define.
25440         Problem reported by Gavin Smith in:
25441         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
25442         * lib/regex_internal.h (gettext): #undef before #defining.
25444 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
25446         intprops: improve comments
25447         * lib/intprops.h: Improve and shorten commentary.
25448         For the record, if we ever run into a pedantic compiler that
25449         behaves differently from GCC when converting an out-of-range value
25450         to a signed integer, we can work around the problem with something
25451         like the following code, where UCT is the signed counterpart of T
25452         (UCT is sometimes narrower than UT) and all callers are changed
25453         accordingly:
25454         #if __SUNPRO_C <= 0x5120
25455         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
25456            ((t) ((ut) (a) op (ut) (b)))
25457         #else
25458         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
25459            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
25460             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
25461                + TYPE_MINIMUM (t)) \
25462             : (t) (uct) ((ut) (a) op (ut) (b)))
25463         #endif
25465 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
25467         intprops: try to avoid tickling similar bugs
25468         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
25469         needs to be the same width as T; it can be wider.
25470         Change callers so that UT is at least as wide as unsigned int,
25471         as I suspect that this is less likely to run into compiler bugs.
25473         intprops: port to Oracle Studio 12.3 x86
25474         Problem reported by Gavin Smith in:
25475         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
25476         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25477         Convert unsigned to signed via the usual rather than the standard way,
25478         to avoid a compiler bug in Oracle Studio 12.3 x86.
25480 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
25482         getopt: prefer - to _ in new file names
25483         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
25484         * lib/getopt-core.h: Rename from lib/getopt_core.h.
25485         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
25486         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
25487         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
25488         All uses changed.
25490         getopt: port recent getopt changes to macOS
25491         Problem reported by Harald Maier (Bug#26398).
25492         The macOS C compiler uses __nonnull for its own purposes and that
25493         clashes with glibc's __nonnull.
25494         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
25495         * lib/getopt_cdefs.in.h (__nonnull): Remove.
25496         * lib/getopt_core.h (getopt):
25497         * lib/getopt_ext.h (getopt_long, getopt_long_only):
25498         Use _GL_ARG_NONNULL, not __nonnull.
25499         * lib/unistd.in.h: Move snippet hooks to before where the getopt
25500         .h files are included, so that _GL_ARG_NONNULL is defined in time.
25501         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
25502         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
25504 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
25506         getopt-gnu: omit some duplicate code
25507         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
25508         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
25509         gnulib-tool already does this.
25510         * modules/getopt-gnu (configure.ac): Omit code duplicated from
25511         getopt-posix, which we depend on.
25513         getopt-posix: use angle-bracket include
25514         * lib/getopt1.c: Include <config.h>, not "config.h".
25516 2017-04-06  Zack Weinberg  <zackw@panix.com>
25518         getopt: annotate files with relationship to glibc
25520         As the final act in this patchset, adjust the message at the top of
25521         each file to indicate which files are synced with glibc.  (This has
25522         already been done for most of the headers.)
25524         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
25525         Mention in top-of-file boilerplate that these files are shared
25526         between glibc and gnulib.
25529         getopt: split up getopt.in.h and eliminate __need_getopt
25531         Over in glibc, all of the __need macros are being phased out in favor
25532         of small headers that declare only the necessary components, as this
25533         is much simpler and less prone to bugs.  As getopt is shared with
25534         glibc, gnulib needs to do the same for __need_getopt.
25536         __need_getopt is misnamed; what it really means is "we want only the
25537         getopt features specified in POSIX, not the GNU extensions".  glibc
25538         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
25539         these files can be shared verbatim with gnulib.  The portability
25540         wrapper, on the other hand, they have renounced altogether; glibc's
25541         getopt.h will no longer be shared with gnulib at all.  In exchange,
25542         certain glibc-specific quirks (having to do with __posix_getopt) no
25543         longer need appear in gnulib's headers at all.
25545         This patch merges getopt_core.h and getopt_ext.h from glibc, and
25546         splits up the current gnulib-side portability wrapper into three
25547         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
25548         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
25549         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
25550         unistd.in.h just use them.  All new files are clearly marked with
25551         whether they are shared with glibc.
25553         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
25554         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
25555         with glibc, and ...
25556         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
25557         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
25558         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
25559         instead of defining __need_getopt and including the full getopt.h.
25561         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
25562         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
25563         * modules/getopt-posix (Files): Add new headers and sort list.
25564         (Depends-on): No longer need snippet/arg-nonnull.
25565         (Makefile.am): Generate getopt_cdefs.h.
25568         getopt: better handling of ambiguous options
25570         glibc's getopt uses alloca to construct a linked list of possibilities
25571         for an "ambiguous" long option.  In gnulib, malloc should be used
25572         instead.  Providing for both cases complicates things a fair bit.
25574         This patch rewrites ambiguous-option handling to use a boolean vector
25575         instead of a linked list.  There is then only one allocation that
25576         might need freeing; in glibc it can honor __libc_use_alloca as usual,
25577         and in gnulib we define __libc_use_alloca to always be false, so we
25578         don't need ifdefs in the middle of the function.  This should also be
25579         slightly more efficient in the normal case of long options being fully
25580         spelled out -- I think most people aren't even aware they _can_
25581         sometimes abbreviate long options.
25583         One interesting consequence is that the list of possibilities is now
25584         printed in exactly the order they appear in the list of long options,
25585         instead of the first possibility being shuffled to the end.
25587         (The patch looks bigger than it really is because there's a fair bit
25588         of reindentation and code rearrangement.)
25590         * lib/getopt.c: When used standalone, define __libc_use_alloca
25591         as always false and alloca to abort if called.
25592         (process_long_option): Rewrite handling of ambiguous long options
25593         to use a single boolean vector, not a linked list; use
25594         __libc_use_alloca to decide whether to allocate this using alloca.
25597         getopt: refactor long-option handling
25599         There were two copies of the bulk of the code to handle long options.
25600         Now there is only one.
25602         This change temporarily removes the logic to avoid using alloca when
25603         standalone; the next patch in the series will restore it.
25605         * lib/getopt.c (process_long_option): New function split out
25606         from _getopt_internal_r.
25607         (_getopt_internal_r): Replace both copies of the long-option
25608         processing code with calls to process_long_option.
25611         getopt: tidy up _getopt_initialize a bit
25613         _getopt_data.__posixly_correct is completely redundant to
25614         _getopt_data.__ordering, and some work that logically belongs in
25615         _getopt_initialize was being done by _getopt_internal_r, making the
25616         code harder to understand.
25618         As a side effect, getenv will no longer be called if the first
25619         character of the options string is '+' or '-', which is probably a
25620         Good Thing.  (Perhaps we should have a flag character that
25621         specifically asks for the permutation behavior?)
25623         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
25624         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
25625         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
25628         getopt: merge from glibc: repetition reduction
25630         The definitions of the entry point functions 'getopt' and
25631         '__posix_getopt' can be made substantially less repetitive with a
25632         helper macro.
25634         While I was merging the const-correctness changes from gnulib into
25635         glibc I noticed there are still some unnecessary casts in
25636         _getopt_internal_r.
25638         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
25639         a macro.  Consistently cast 'argv' to 'char **' when calling
25640         _getopt_internal.
25641         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
25644         getopt: clean up error reporting
25646         getopt can print a whole bunch of error messages, and when used
25647         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
25648         cancellation point and getopt isn't, and also applying fprintf to a
25649         stream in wide-character mode is not allowed.  So every single error
25650         reporting case has an #ifdef _LIBC block in which it calls internal
25651         libc functions instead.  The counterpart patch series in glibc makes
25652         it possible to simplify all of that down to a set of #defines at the
25653         top of the file; core code is written as if it is safe to just call
25654         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
25655         call any *other* stdio functions.)
25657         * lib/getopt.c: When _LIBC is defined, define fprintf to
25658         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
25659         to _IO_funlockfile.  When neither _LIBC nor
25660         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
25661         funlockfile as no-ops.
25662         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
25663         standalone error-printing code can now be used for libc as well.
25664         Add an flockfile/funlockfile pair around one case where the error
25665         message is printed in several chunks.  Don't use fputc.
25668         getopt: fix fencepost error in ambiguous-W-option handling
25670         getopt_long contains an undocumented (AFAICT) feature in which, if you
25671         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
25672         treated as equivalent to '--foo'.  This is implemented with a partial
25673         second copy of the code for handling long options, and that code
25674         increments optind one too many times when recovering from an ambiguous
25675         abbreviated option, which can cause the main loop to walk past the end
25676         of argv and crash.
25678         I discovered this while writing a test case that tries to exercise all
25679         of getopt's error reporting paths; I wouldn't be surprised to learn
25680         that this feature is never used by real applications.
25682         * lib/getopt.c (_getopt_internal_r): Don't increment
25683         d->optind a second time when reporting ambiguous -W options.
25686         getopt: clean up getopt.c and getopt1.c file headers
25688         In getopt.c, there is no need to include wchar.h at all, and it is
25689         safe nowadays to assume that stdlib.h does declare getenv (several
25690         other gnulib modules make this assumption).
25692         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
25693         by using "" inclusions consistently, and there is no actual need to
25694         include stdlib.h (except in the #ifdef TEST block, where it should be
25695         unconditional), nor to provide a backup definition of NULL at all.
25697         * lib/getopt1.c: Simplify #ifdeffage at top of file.
25698         Move inclusion of stdlib.h to #ifdef TEST block and make
25699         unconditional.  Do not define NULL.
25700         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
25701         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
25702         * modules/getopt-gnu, modules/getopt-posix: Don't call
25703         gl_PREREQ_GETENV.
25706         getopt: harmonize comments with glibc
25708         The comments explaining how the behavior of 'getopt' varies depending
25709         on whether it's the standalone version and whether there are special
25710         characters at the beginning of the options string were inconsistent
25711         between gnulib and glibc, and also out of sync with the code.
25713         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
25716         getopt: remove USE_NONOPTION_FLAGS
25718         getopt includes code to parse an environment variable named
25719         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
25720         in decimal); but all of it has been #ifdefed out since 2001, with no
25721         official way to turn it back on.
25723         According to commentary in glibc's config.h.in, bash version 2.0
25724         set this environment variable to indicate argv elements that were
25725         the result of glob expansion and therefore should not be treated
25726         as options, but the feature was "disabled later" because "it
25727         caused problems".  According to bash's CHANGES file, "later" was
25728         release 2.01; it gives no more detail about what the problems
25729         were.
25731         Version 2.0 of bash was released on the last day of 1996, and version
25732         2.01 in June of 1997.  Twenty years later, I think it is safe to
25733         assume that this environment variable isn't coming back.
25735         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
25736         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
25737         __libc_argc and __libc_argv externs, which were only used by
25738         #ifdef USE_NONOPTION_FLAGS blocks.
25741         getopt: tabify, in preparation for merge with glibc
25743         glibc sticks to the GNU default of indenting with a mix of
25744         8-column tabs and spaces; make the gnulib copy match.
25746         getopt.h is not included because it is *not* going to be merged in its
25747         present form.
25749         * getopt.c, getopt1.c, getopt_int.h: Tabify.
25751 2017-04-02  Bruno Haible  <bruno@clisp.org>
25753         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
25754         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
25755         like it was done in modules/relocatable-lib on 2011-05-21 and in
25756         modules/relocatable-prog on 2011-08-15.
25757         Reported by Reuben Thomas <rrt@sc3d.org>.
25759 2017-03-31  Bruno Haible  <bruno@clisp.org>
25761         glob: Fix invalid free() call.
25762         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
25763         static storage to home_dir.
25764         Reported by Coverity via Tim Rühsen.
25766 2017-03-31  Bruno Haible  <bruno@clisp.org>
25768         glob: Fix memory leaks.
25769         * lib/glob.c (glob): Free allocated memory before returning.
25770         Reported by Coverity via Tim Rühsen.
25772 2017-03-31  Bruno Haible  <bruno@clisp.org>
25774         md5, sha1, sha256, sha512: Add comments regarding correctness.
25775         * lib/md5.h (buflen): Add comments regarding range.
25776         * lib/sha1.h (buflen): Likewise.
25777         * lib/sha256.h (buflen): Likewise.
25778         * lib/sha512.h (buflen): Likewise.
25779         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
25780         * lib/sha1.c (sha1_process_bytes): Likewise.
25781         * lib/sha256.c (sha256_process_bytes): Likewise.
25782         * lib/sha512.c (sha512_process_bytes): Likewise.
25783         Reported by Coverity via Tim Rühsen.
25785 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25787         getopt: merge from glibc
25788         This does not change anything substantial; it merely simplifies
25789         hypothetical merges back to glibc.
25790         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
25791         Change copyright notice to match what is in glibc.
25792         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
25793         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
25794         __open_memstream rather than open_memstream and __glibc_likely
25795         instead of __builtin_expect.
25796         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
25798 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25800         dfa: make [0-9] faster in non-C locales
25801         Problem reported by John P. Linderman (Bug#26193).
25802         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
25803         If both ends of the range are ASCII digits, do not worry about
25804         multi-character collating sequences and the like.  Be consistent
25805         about using isalpha as a precondition for setbit_case_fold_c.
25807 2017-03-19  Bruno Haible  <bruno@clisp.org>
25809         lock: Fix compilation error with HP-UX IA64 cc.
25810         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
25811         weak on non-glibc platforms.
25813 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25815         stdalign: tweak version# and test for HP-UX IA64
25816         Problems reported by Bruno Haible in:
25817         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
25818         * lib/stdalign.in.h (_Alignas):
25819         * m4/stdalign.m4 (gl_STDALIGN_H):
25820         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
25821         used octal (as that is how they document it), but it is decimal in
25822         practice now and the ancient implementations no longer matter.
25823         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
25825 2017-03-19  Bruno Haible  <bruno@clisp.org>
25827         vma-iter: Add support for Solaris.
25828         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
25829         approach.
25830         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
25831         * lib/get-rusage-as.c: Update comment about Solaris.
25832         * lib/get-rusage-data.c: Likewise.
25834 2017-03-19  Bruno Haible  <bruno@clisp.org>
25836         vma-iter: Prefer HP-UX specific API on HP-UX.
25837         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
25838         * lib/vma-iter.h: Update.
25839         Just in case HP-UX ever implements mquery().
25841 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25843         stdalign: restore previous behavior for HP-UX IA64
25844         See Bruno Haible's email in:
25845         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25846         which cites p 150 of a manual saying that 'aligned' works on Itanium.
25847         * lib/stdalign.in.h (_Alignas):
25848         Assume the '061200' applies to Itanium, not to PA-RISC.
25849         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
25851 2017-03-17  Bruno Haible  <bruno@clisp.org>
25853         stat-time, timespec: Support use of the header files in C++ mode.
25854         * lib/stat-time.h: Add "C" linkage declaration.
25855         * lib/timespec.h: Likewise.
25857 2017-03-17  Bruno Haible  <bruno@clisp.org>
25859         stdalign: Make it work with HP-UX cc.
25860         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
25861         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
25862         for HP-UX cc.
25864 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
25866         flexmember: try to detect HP-UX 11.31 cc bug
25867         Problem reported by Bruno Haible in:
25868         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25869         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25870         Attempt to detect bug in HP-UX 11.31 cc.
25872 2017-03-16  Bruno Haible  <bruno@clisp.org>
25874         stdint: Fix test compilation failure with HP-UX 11 cc.
25875         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
25876         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
25877         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
25878         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
25880 2017-03-14  Bruno Haible  <bruno@clisp.org>
25882         gnulib-tool: Don't produce a tests directory with only snippet .h files.
25883         * gnulib-tool (func_modules_transitive_closure_separately): If
25884         testsrelated_modules ends up with no "real" modules, aside from
25885         modules with applicability 'all', set it to empty.
25887 2017-03-14  Bruno Haible  <bruno@clisp.org>
25889         vma-iter: Add support for HP-UX.
25890         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
25891         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
25892         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
25893         * lib/get-rusage-as.c: Update comment about HP-UX.
25894         * lib/get-rusage-data.c: Likewise.
25895         (get_rusage_data): Use get_rusage_data_via_setrlimit.
25897 2017-03-14  Bruno Haible  <bruno@clisp.org>
25899         limits-h: Make it work with HP-UX cc.
25900         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
25901         defined.
25903 2017-03-14  Bruno Haible  <bruno@clisp.org>
25905         Fix test failures on DragonFlyBSD.
25906         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
25907         * tests/test-select.h (test_bad_fd): Likewise.
25908         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
25910 2017-03-14  Bruno Haible  <bruno@clisp.org>
25912         freadahead: Silence warning on DragonFlyBSD.
25913         * lib/freadahead.c (__sreadahead): Declare ourselves.
25915 2017-03-14  Bruno Haible  <bruno@clisp.org>
25917         vma-iter: Add comment about AIX.
25918         * lib/vma-iter.c: Add comment about why this module is not implemented
25919         on AIX.
25921 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25923         snippets: move unadjusted snippet sources to lib
25924         Problem reported by Michal Privoznik in:
25925         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
25926         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
25927         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
25928         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
25929         * lib/unused-parameter.h: Rename from
25930         build-aux/snippet/unused-parameter.h.
25931         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
25932         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
25933         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
25934         * modules/snippet/c++defs (Files:, CXXDEFS_H):
25935         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
25936         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
25937         Adjust to file renamings.
25939 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
25941         gnulib-tool: don't automatically distribute files from top/
25942         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
25943         not distribute top/README-release by default, don't distribute files
25944         from top/ unconditionally.
25945         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
25946         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
25948 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25950         gnulib-tool: fix typo in comment output
25951         * gnulib-tool (func_import): Fix typo with previous change.
25953         snippets: work around GNU Make 3.82 VPATH
25954         When using 'gnulib-tool --gnu-make' on Emacs, and building
25955         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
25956         an out-of-source (VPATH) build failed because the sans-copyright
25957         snippet file was not built before the file that used it.
25958         Presumably this is some sort of VPATH thing.  Work around the
25959         problem by using the original snippet, i.e., don’t bother to
25960         remove its copyright notice.
25961         * modules/snippet/_Noreturn, modules/snippet/link-warning:
25962         Don’t assume Automake in comments.  Omit long-incorrect comment.
25963         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
25964         (MOSTLYCLEANFILES):
25965         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
25966         (MOSTLYCLEANFILES):
25967         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
25968         (MOSTLYCLEANFILES):
25969         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
25970         (MOSTLYCLEANFILES):
25971         Remove.
25972         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
25973         * modules/snippet/c++defs (CXXDEFS_H):
25974         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
25975         * modules/snippet/warn-on-use (WARN_ON_USE_H):
25976         Don’t bother to remove the copyright notice; just use the
25977         original snippet as-is.
25979 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25981         gnulib-tool: minor --gnu-make fixups
25982         * gnulib-tool (func_emit_lib_Makefile_am):
25983         Remove useless code that was a blind alley during implementation.
25984         Problem reported by Thien-Thi Nguyen in:
25985         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
25986         (func_import): Note the "--gnu-make" option in the output comment.
25988 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25990         gnulib-tool: new option --gnu-make
25991         This is for applications like GNU Emacs that use GNU Make
25992         features instead of Automake.
25993         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
25994         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
25995         Do not assume Automake.
25996         * gnulib-tool (func_determine_path_separator)
25997         (func_modules_transitive_closure, func_update_file)
25998         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
25999         (func_import): Add support for --gnu-make.
26001 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
26003         gnulib-common.m4: avoid aclocal.m4 bloat
26004         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
26005         Hide AM_PROG_AR from aclocal, so that aclocal does not
26006         install irrelevant macro definitions into aclocal.m4.
26008 2017-03-10  Bruno Haible  <bruno@clisp.org>
26010         vma-iter: Let callers know about error.
26011         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
26012         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
26014 2017-03-05  Bruno Haible  <bruno@clisp.org>
26016         Fix value of LD for 64-bit compilers on AIX.
26017         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
26018         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
26020 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
26022         dtotimespec: simplify
26023         * lib/dtotimespec.c (dtotimespec): Simplify.
26025 2017-03-04  Bruno Haible  <bruno@clisp.org>
26027         test-calloc-gnu: Reenable test also for GCC 7.
26028         * tests/test-calloc-gnu.c (eight): New function.
26029         (main): Don't skip test; use eight() instead.
26031 2017-03-04  Jim Meyering  <meyering@fb.com>
26033         test-calloc-gnu: port to GCC7
26034         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
26035         that attempts to calloc more than SIZE_MAX bytes, because GCC7
26036         and newer would detect that at compilation time.
26038 2017-03-04  Bruno Haible  <bruno@clisp.org>
26040         tests: Avoid compiler warning about uses of null_ptr.
26041         * tests/null-ptr.h: New file.
26042         * tests/test-canonicalize.c: Include null-ptr.h.
26043         (null_ptr): Remove function.
26044         * tests/test-canonicalize-lgpl.c: Likewise.
26045         * tests/test-memmem.c: Likewise.
26046         * tests/test-ptsname_r.c: Likewise.
26047         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
26048         * modules/canonicalize-lgpl-tests: Likewise.
26049         * modules/memmem-tests: Likewise.
26050         * modules/ptsname_r-tests: Likewise.
26051         Reported by Jim Meyering.
26053 2017-03-03  Bruno Haible  <bruno@clisp.org>
26055         doc: Mention Mac OS X deficiencies regarding semaphores.
26056         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
26057         * doc/posix-functions/sem_destroy.texi: Likewise.
26058         * doc/posix-functions/sem_getvalue.texi: Likewise.
26060 2017-03-03  Bruno Haible  <bruno@clisp.org>
26062         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
26063         Reported by Assaf Gordon <assafgordon@gmail.com> via
26064         Pádraig Brady <P@draigBrady.com>.
26065         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
26066         semaphores.
26067         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
26068         (atomic_int_semaphore): New macro.
26070 2017-02-28  Bruno Haible  <bruno@clisp.org>
26072         perror tests: Tweak for z/OS.
26073         Reported by Daniel Richard G. <skunk@iskunk.org>.
26074         * tests/test-perror.sh: Don't fail z/OS style perror output.
26076 2017-02-26  Bruno Haible  <bruno@clisp.org>
26078         nproc: Refactor large function.
26079         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
26080         from num_processors.
26081         (num_processors): In this function, only deal with OMP.
26083 2017-02-26  Pádraig Brady  <P@draigBrady.com>
26085         nproc: adjust handling of OpenMP environment variables
26086         to match the return value from omp_get_num_threads(), i.e.:
26087          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
26088          - Treat 0 as an invalid value and ignore
26089         Also remove the call to omp_get_num_threads() because
26090         it's ineffective without the omp pragmas in place.
26091         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
26092         so that it can be ignored.
26093         (num_processors): Honor OMP_THREAD_LIMIT even without
26094         OMP_NUM_THREADS being set.  Also fix a typo in the environment
26095         variable being checked, from the previous recent commit.
26097 2017-02-26  Pádraig Brady  <P@draigBrady.com>
26099         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
26100         * lib/nproc.c (parse_omp_threads): A new function refactored
26101         from num_processors() to support parsing both of the
26102         above environment variables.
26103         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
26104         to accurately reflect the current OpenMP nesting level.
26105         Also support the OMP_THREAD_LIMIT environment variable
26106         to limit the max value determined from OMP_NUM_THREADS.
26107         * modules/nproc: Depend on minmax header.
26108         Suggested by Oliver Heimlich.
26110 2017-02-25  Bruno Haible  <bruno@clisp.org>
26112         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
26113         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
26115 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26117         ftoastr: port to -Wdouble-promotion
26118         Work around -Wdouble-promotion false alarm in recent GCCs.
26119         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
26120         (ftoastr_snprintf, FTOASTR): Use it.
26122 2017-02-21  Bruno Haible  <bruno@clisp.org>
26124         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
26125         Reported by Rene Saavedra <rennes@openmailbox.org> in
26126         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
26127         * lib/glthread/lock.h: On glibc systems without
26128         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
26129         implementation of rwlocks.
26130         * lib/glthread/lock.c: Likewise.
26132 2017-02-20  Bruno Haible  <bruno@clisp.org>
26134         lock tests: Fix build failure on z/OS.
26135         Reported by Daniel Richard G. <skunk@iskunk.org>.
26136         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
26137         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
26138         exist.
26140 2017-02-19  Bruno Haible  <bruno@clisp.org>
26142         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
26143         This helps when CC=clang.
26144         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
26145         of /usr/bin/gcc.
26147         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
26148         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
26150 2017-02-19  Bruno Haible  <bruno@clisp.org>
26152         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
26153         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
26154         --with-tests --single-configure is specified.
26156 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
26158         users.txt: Update links, use HTTPS where possible
26159         * users.txt: Updated to HTTPS where possible,
26160         fixed some links to new locations.
26162 2017-02-16  Bruno Haible  <bruno@clisp.org>
26164         xbinary-io: Fix inlining.
26165         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
26167 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26169         xbinary-io: rename from xsetmode
26170         This patch is taken from suggestions by Bruno Haible in:
26171         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
26172         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
26173         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
26174         not ENOTTY, when it is an inappropriate device.
26175         * lib/binary-io.h (SET_BINARY): Resurrect.
26176         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
26177         (xset_binary_mode_error): Rename from xsetmode_error.
26178         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
26179         (xset_binary_mode): Rename from xsetmode.
26180         All uses changed.
26181         * modules/xbinary-io: Rename from modules/xsetmode.
26182         Update file names.
26183         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
26184         * NEWS: Update to match revised behavior.
26186 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
26188         tests: Adjust to recent SET_BINARY change
26189         * tests/test-binary-io.c (main):
26190         * tests/test-binary-io.sh: Remove test for SET_BINARY.
26191         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
26192         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
26193         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
26195         xsetmode: new module
26196         This is to fix a problem noted by Eric Blake.
26197         Code was using xfreopen to change files to binary mode, but this
26198         fails for stdout when in append mode.  Such code should use
26199         xsetmode instead.
26200         * NEWS: Document incompatible changes to binary-io module.
26201         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
26202         New function.
26203         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
26204         (set_binary_mode): New function, which also checks for tty.
26205         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
26207 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26209         headers: fix begin-end typos
26210         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
26211         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
26213         selinux-h: port to PGI 16.10
26214         * lib/se-selinux.in.h: Don't assume that include_next skips over
26215         duplicate -I DIR options.
26217         argp: port to PGI 16.10
26218         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
26220 2017-02-13  Darshit Shah  <darnir@gnu.org>
26222         unicase: Update function protoype to match definition.
26223         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
26224         uses 'size_t' as the datatype for the 'len' parameter in the functions
26225         it generates. Update the prototype specified here to match the newly
26226         generated function.
26228 2017-02-12  Bruno Haible  <bruno@clisp.org>
26230         times test: Avoid gcc warnings on Linux/x32.
26231         * tests/test-times.c (main): Really cast printf arguments from clock_t
26232         to 'long int'.
26234 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26236         glob: port better to emscripten
26237         Problem reported by Bruno Haible in:
26238         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
26239         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
26241 2017-02-11  Bruno Haible  <bruno@clisp.org>
26243         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
26244         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
26245         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
26246         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
26247         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
26248         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
26249         Distinguish hppa64 from hppa.
26251 2017-02-10  Bruno Haible  <bruno@clisp.org>
26253         search: Don't assume that tsearch() exists if 'VISIT' is defined.
26254         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
26255         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
26256         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
26258 2017-02-09  Bruno Haible  <bruno@clisp.org>
26260         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
26261         * doc/gnulib.texi (Libtool and Windows): Recommend
26262         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
26263         Reported by Reuben Thomas <rrt@sc3d.org>.
26265 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
26267         stddef-tests: port to SIZE_MAX <= INT_MAX
26268         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
26269         Do not assume that INT_MAX < SIZE_MAX.
26271 2017-02-01  Bruno Haible  <bruno@clisp.org>
26273         lock tests: Fix link error.
26274         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
26275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26277 2017-01-31  Bruno Haible  <bruno@clisp.org>
26279         lock: Fix link error (regression from 2017-01-05).
26280         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
26281         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
26282         pthread_rwlockattr_destroy weak.
26283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26285 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26287         Port to PGI 16.10 x86-64
26288         This patch fixes one real bug in gl_anylinked_list2.h, along with
26289         some minor glitches that are not bugs.  It does not silence PGI’s
26290         thousands of bogus warnings when compiling test-intprops.c.
26291         Fortunately, the warnings do not cause a failure.
26292         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
26293         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
26294         My goodness, PGI goes back a long ways - this predates C89!
26295         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
26296         For example, ASYNCSAFE (const void *) should expand to
26297         ‘const void *volatile’, not to ‘volatile const void *’.
26298         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
26299         * lib/verify.h (verify) [!__GNUC__]:
26300         Use shorter albeit meaningless string to bypass silly compiler limits.
26301         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
26302         * tests/nan.h (NaNf, NaNd, NaNl):
26303         Use static functions to avoid misguided compiler diagnostics.
26304         Is there some reason we don’t use static functions on all platforms?
26306 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26308         parse-datetime: handle timezones reentrantly
26309         This API change was prompted by a report by Pádraig Brady in:
26310         https://bug.debian.org/851934#10
26311         To help fix the bug, make parse_datetime2 more reentrant.
26312         * NEWS: Document this incompatible change.
26313         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
26314         Add two arguments, the timezone and the timezone name.
26315         All callers changed.  If TZ="..." is specified, use it for
26316         calculating defaults.
26317         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
26318         this code should be usable in a library.
26319         (mktime_ok, get_effective_timezone):
26320         Accept timezone arg too.  All callers changed.
26321         (get_tz): Remove.
26322         (get_effective_timezone): Check for failures.
26324 2017-01-20  Eric Blake  <eblake@redhat.com>
26326         localename: port to cygwin 2.6
26327         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
26328         Cygwin.
26329         * modules/localename (Depends-on): Add extensions, since
26330         NL_LOCALE_NAME() is not visible without it.
26332 2017-01-17  Pádraig Brady  <P@draigBrady.com>
26334         parse-datetime: fix dependence on AC_PROG_SED
26335         * modules/parse-datetime: Use `sed` directly like all other modules.
26336         Reported by J William Piggott
26338 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26340         intprops: update doc URLs
26341         * doc/intprops.texi (Integer Range Overflow): Update URLs.
26343 2017-01-16  Bruno Haible  <bruno@clisp.org>
26345         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
26346         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
26347         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
26348         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
26349         distinguish s390 and s390x.
26350         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
26351         * NEWS: Mention the change regarding 'armel'.
26353 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26355         localeinfo: case_folded_counterparts and WEOF
26356         * NEWS: Document this.
26357         * lib/localeinfo.c (case_folded_counterparts):
26358         First arg is now wint_t, not wchar_t.  This generalizes the
26359         function to also work on WEOF, where it returns 0.
26361         dfa: port to gcc -fsanitize=undefined
26362         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
26363         as this runs afoul of gcc -fsanitize=undefined.
26365 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
26367         strftime: %z is -00 if unknown
26368         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
26369         the caller's responsibility to set 'negative_number'.  All uses changed.
26370         (__strftime_internal): Put '-' before a zero UTC offset if the time
26371         zone abbreviation starts with "-", which is the recently-introduced
26372         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
26373         * tests/test-strftime.c: Test for this.
26375 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26377         dfa: port to older GCC
26378         Problem reported by Assaf Gordon in:
26379         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
26380         * modules/c99: New module.  This merely attempts to use the latest
26381         C version, which should be enough to solve this particular problem.
26382         The idea is to document which Gnulib modules assume C99 or later.
26383         * modules/dfa (Depends-on): Add it.
26385 2017-01-10  Bruno Haible  <bruno@clisp.org>
26387         Update DEPENDENCIES.
26388         * DEPENDENCIES: List only https URLs. Update recommended version for
26389         autoconf, automake, gperf.
26391 2017-01-10  Jim Meyering  <meyering@fb.com>
26393         maint.mk: enforce spelling of "timestamp" (i.e., no space)
26394         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
26395         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
26397 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26399         dfa: minor simplification with emptyset
26400         * lib/dfa.c (build_state): Simplify by using emptyset.
26402 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26404         dfa: shrink constraints from 4 bits to 3
26405         * lib/dfa.c (newline_constraint, letter_constraint)
26406         (other_constraint, prev_newline_dependent)
26407         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
26408         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
26409         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
26410         Constraints need only 3 bits, not 4.  Using smaller integers
26411         shrinks the code a bit and makes grep a tad faster on x86-64.
26413         dfa: omit unnecessary ptrdiff_t check
26414         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
26415         overflow, since xnmalloc does that now.
26417         dfa: omit unnecessary allocation
26418         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
26419         an all-zero follow set works just fine.
26421         dfa: omit unused local
26422         * lib/dfa.c (build_state): Fix up recent change.
26424         maint: remove stray .texi files
26425         Although these were superseded by other files like
26426         doc/posix-functions/ctime.texi, the old files were not removed.
26427         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
26429 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
26431         getprogname: fix port to IRIX
26432         * lib/getprogname.c (getprogname) [__sgi]:
26433         Don't dump core if malloc returns NULL.
26435         dfa: fix reallocation bug when matching newlines
26436         Problem reported for sed by S. Gilles (Bug#25390).
26437         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
26438         (dfastate): Reallocate before moving any newline transition ...
26439         (build_state): ... instead of reallocating here, where it is too late.
26441 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
26443         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
26444         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
26446 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
26448         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
26449         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
26451 2017-01-07  Bruno Haible  <bruno@clisp.org>
26453         stdioext: Port to Minix 3.2 and newer.
26454         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
26455         * lib/fseeko.c (fseeko): Likewise.
26456         Reported by Nelson Beebe via Paul Eggert.
26458 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
26460         getprogname: port to IRIX
26461         * lib/getprogname.c (getprogname): Port to IRIX.
26462         Based on an idea by Bastien Roucariès at:
26463         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
26464         via code from Bruno Haible at:
26465         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26467         localename-tests: port to NetBSD 7
26468         Problem reported by Nelson H. F. Beebe.
26469         * tests/test-localename.c:
26470         Test newlocale and uselocale only if both exist.
26472         glob, intprops, xalloc: work around Clang bug
26473         Work around LLVM bug 16404, which is still not fixed.
26474         https://llvm.org/bugs/show_bug.cgi?id=16404
26475         Problem reported by Nelson H. F. Beebe.
26476         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
26477         Remove.
26478         * lib/glob.c (size_add_wrapv):
26479         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
26480         * lib/xalloc-oversized.h (xalloc_oversized):
26481         Do not use overflow builtins if Clang.
26483         dfa: fix 'return' typo
26484         Problem reported by Nelson H. F. Beebe.
26485         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
26487 2017-01-05  Pádraig Brady  <P@draigBrady.com>
26489         parse-datetime: fix generated paths for coverage files
26490         * modules/parse-datetime: Adjust the paths for parse-datetime.y
26491         within parse-datetime.c, so that gcc generates appropriate .gcno
26492         files, allowing lcov to proceed without error.  Previously it
26493         would error trying to find "lib/lib/parse-datetime.y".
26495 2017-01-05  Pádraig Brady  <P@draigBrady.com>
26497         maint.mk: support parallel execution of coverage
26498         * top/maint.mk (coverage): Run dependencies serially,
26499         thus supporting parallel processing of each one,
26500         particularly build-coverage, which builds and runs tests.
26502 2017-01-05  Bruno Haible  <bruno@clisp.org>
26504         lock tests: Prefer semaphore over mutex.
26505         * tests/test-lock.c (USE_SEMAPHORE): New constant.
26506         (struct atomic_int, init_atomic_int, get_atomic_int_value,
26507         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
26508         Suggested by Torvald Riegel <triegel@redhat.com>.
26510 2017-01-05  Bruno Haible  <bruno@clisp.org>
26512         lock: Provide guarantee to avoid writer starvation for rwlocks.
26513         The rationale is: 1) Read-preferring read-write locks are prone to
26514         writer starvation if the number of reader threads multiplied by the
26515         percentage of time they have the lock held is too high. 2) Write-
26516         preferring read-write locks are the only reliable way to avoid this.
26517         3) There have been reports of 'test-lock' hanging on glibc systems
26518         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
26519         and glibc indeed implements read-preferring rwlocks by default, see
26520         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
26521         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
26522         * m4/pthread_rwlock_rdlock.m4: New file.
26523         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
26524         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
26525         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
26526         of rwlock initialization on glibc systems without
26527         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
26528         of rwlocks altogether on non-glibc systems without
26529         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
26530         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
26531         * lib/glthread/lock.c [USE_POSIX_THREADS]
26532         (glthread_rwlock_init_for_glibc): New function.
26533         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
26534         comment.
26535         [USE_PTH_THREADS]: New implementation of rwlocks.
26536         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
26537         readers.
26538         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
26539         (Depends-on): Add 'extensions'.
26540         * tests/test-rwlock1.c: New file.
26541         * lock-tests (Files): Add it.
26542         (Depends-on): Add usleep.
26543         (Makefile.am): Add test-rwlock1 to the tests.
26545 2017-01-05  Bruno Haible  <bruno@clisp.org>
26547         thread: Fix pth port.
26548         * lib/glthread/thread.h (pth_init): Declare weak.
26549         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
26550         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
26551         function.
26553 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
26555         parse-datetime: fix debug message on lone year number
26556         Input dates such as
26557           date -d "Apr 11 22:59:00 2011"
26558         are parsed as date (Apr 11, with default year 2016), then time, then a
26559         number (2011). Based on the combination of previously seen tokens,
26560         'digits_to_date_time' determines 2011 to be a year value.
26561         This fixes the debug messages to correctly show the updated year.
26562         Before:
26563             $ date --debug -d 'Apr 11 22:59:00 2011'
26564             date: parsed date part: (Y-M-D) 2016-04-11
26565             date: parsed time part: 22:59:00
26566             date: parsed number part: today/this/now
26567         After:
26568             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
26569             date: parsed date part: (Y-M-D) 2016-04-11
26570             date: parsed time part: 22:59:00
26571             date: parsed number part: year: 2011
26572         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
26573         'debug_year_seen' member fields.
26574         (digits_to_date_time): Update 'year_seen' as needed.
26575         (debug_print_current_time): Inform about year updates.
26576         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
26578         parse-datetime: fix local timezone debug messages
26579         "Local timezones" are strings that affect only DST relative to the
26580         default timezone. The debug messages in parse-datetime.y printed
26581         wrong information when encountering local timezones.
26582         Examples:
26583         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
26584              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
26585              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
26586         When the default timezone relates to the zone strings, EET/EEST are
26587         parsed as local timezones (tLOCAL_ZONE), and only change the DST
26588         value (0/1, respectively):
26589              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
26590              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
26591         * lib/parse-datetime.y (debug_print_current_time): If local timezone
26592         was seen, inform about DST change, don't print actual timezone.
26593         (debug_strfdatetime): If local timezone was seen, use default timezone
26594         (and adjust as needed) instead of using incorrect timezone.
26595         (parse_datetime2): Use correct time-zone source string, and adjust
26596         default timezone as needed.
26598         parse-datetime: add debug warning about DST changes
26599         Incorrect date arithmetic due to daylight saving time (DST) are a
26600         common (false) bug report in coreutils.
26601         Detect two such cases and print a warning:
26602         1. year/month/day adjustments (performed on 'struct tm'),
26603            where 'mktime' returns a different isdst value.
26604         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
26605            where the result of 'localtime(3)' on the value will return a
26606            different isdst value.
26607         Note: DST changes could be harmless or unnoticeable.
26608         Examples (with 'TZ=America/New_York'):
26609         Unnoticeable: result is 2016-Dec-14
26610            $ date -d '2016-06-15 EDT + 6 months' +%b
26611            Dec
26612         Unnoticeable: result is 2016-Dec-15 11:00:00
26613            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
26614            2016-12-15
26615         This is unexpected:
26616            $ date -d '2016-06-01 EDT + 6 months' +%F
26617            2016-11-30
26618         The new debug warnings will show:
26619            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
26620            ...
26621            date: warning: daylight saving time changed after date adjustment
26622            ...
26623         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
26624         print an appropriate warning message.
26626         parse-datetime: add debug warning about date arithmetic
26627         Date arithmetic are done directly on the fields of 'struct tm',
26628         which can result in invalid dates. Normalization with 'mktime(3)'
26629         will then produce a different date - which might cause unexpected
26630         results.
26631         Examples:
26632           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
26633           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
26634         Note that date normalization is not inherently wrong and not rejected,
26635         as it has legitimate uses:
26636           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
26637         If the user asked to adjust months but 'mday' changed,
26638         or user asked to adjust years but 'month' changed - warn about it.
26639             $ ./src/date --debug -d '2016-10-31 - 1 month'
26640             ...
26641             date: warning: when adding relative months/years, \
26642                            it is recommended to specify the 15th of the month
26643             ...
26644             date: warning: month/year adjustment resulted in shifted dates:
26645             date:      adjusted Y M D: 2016 09 31
26646             date:    normalized Y M D: 2010 10 01
26647             ...
26648         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
26649         a warning message. Improve recommendation of when to use 15 of the
26650         month or noon for date arithmetic.
26652         parse-datetime: fix debug message of relative part after timezone
26653         Relative part (e.g '+8 days') after a timezone string was not
26654         reported (was only reported after a timezone number). Due to the
26655         parser's structure, timezone strings with numbers were handled
26656         separately.
26657         before:
26658              # Timezone number + relative part: OK
26659              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
26660              ...
26661              date: parsed relative part: -8 day(s)
26662              # Timezone string + relative part: missing
26663              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
26664              [ missing message ]
26665         After: messages are printed in both cases.
26666         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
26668         parse-datetime: fix incorrect debug message on lone number
26669         A lone number is an absolute value, not a relative time part.
26670         before:
26671            $ date --debug -d '20130101'
26672            date: parsed number part: today/this/now
26673         After:
26674            $ ./src/date --debug -d '20130101'
26675            date: parsed number part: (Y-M-D) 2013-01-01
26676         * lib/parse-datetime.y ('item'/'number' tokens): Call
26677         'debug_print_current_time' instead of 'debug_print_relative_time'.
26679 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
26681         doc: modernize for C11 etc.
26682         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
26683         for C11, MinGW, etc.  This responds to Paul Smith's question in:
26684         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
26686         dfa: prefer functions to FETCH_WC macro
26687         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
26688         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
26689         wint_t result into DFA->lex.wctok instead of to a separate arg.
26690         All callers changed.  Move more local decls closer to where
26691         they're used.
26693         dfa: narrow more local var scopes
26694         * lib/dfa.c: Move more local decls to be more local.
26696         dfa: remove duplicate assignment
26697         Problem reported by Bruno Haible in:
26698         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
26699         * lib/dfa.c (parse_bracket_exp): Simplify.
26701 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26703         dfa: simplify constraint-dependency checking
26704         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
26705         (prev_other_constraint): Remove.
26706         (prev_newline_dependent, prev_letter_dependent):
26707         Simplify, to avoid an unnecessary bitwise AND operation.
26709         dfa: prefer functions and constants to macros
26710         * lib/dfa.c: Prefer constants to macros where either will do.
26711         (streq, isasciidigit, newline_constraint)
26712         (letter_constraint, other_constraint, succeeds_in_context)
26713         (prev_newline_constraint, prev_letter_constraint)
26714         (prev_other_constraint, prev_newline_dependent)
26715         (prev_letter_dependent, accepting, accepts_in_context):
26716         Now static functions instead of function-like macros.
26717         Use lower-case names accordingly.  All uses changed.
26719         dfa: narrow more local var scopes
26720         * lib/dfa.c: Move some more local decls down to nearer where
26721         they're needed.
26723 2016-12-31  Jim Meyering  <meyering@fb.com>
26725         dfa: narrow the scope of many local variables
26726         * lib/dfa.c: Now that we are no longer constrained to c89, move
26727         declarations of many variables (often indices) "down" into the
26728         scope(s) where used or to the point of definition.  This is a
26729         no-semantic-change diff.
26731 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26733         version-etc: new year
26734         * build-aux/gendocs.sh (version):
26735         * doc/gendocs_template:
26736         * doc/gendocs_template_min:
26737         * doc/gnulib.texi:
26738         * lib/version-etc.c (COPYRIGHT_YEAR):
26739         Update copyright dates by hand in templates and the like.
26740         * all files: Run 'make update-copyright'.
26742 2016-12-31  Eric Blake  <eblake@redhat.com>
26744         do-release-commit-and-tag: avoid shell syntax error
26745         * build-aux/do-release-commit-and-tag (curr_br): $branch can
26746         contain spaces when rebasing.
26748         maint.mk: hoist gnulib_dir definition earlier
26749         * top/maint.mk (gnulib_dir): Move near top of file.
26751 2016-12-31  Jim Meyering  <meyering@fb.com>
26753         maint.mk: do not always evaluate intprops-related shell
26754         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
26755         using gnulib_dir undefined (gnulib_dir is defined later in the
26756         file, which will be fixed separately), and besides, there is no
26757         need to incur the cost of this shell invocation for every single
26758         use of this .mk file.  Reported by Eric Blake in
26759         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
26761 2016-12-30  Jim Meyering  <meyering@fb.com>
26763         maint.mk: improve sc_prohibit_intprops_without_use
26764         * top/maint.mk (_intprops_names): Don't hard-code the list of
26765         symbol names.  Instead, derive it on the fly.
26767 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26769         dfa: shorten sbit, success
26770         * lib/dfa.c (struct regex_syntax.sbit):
26771         (struct dfa.success): Use char, not int, for array elements, since
26772         they are all in the range 0..7.
26774         dfa: simplify multibyte_prop etc.
26775         This follows up on a change made when dfa.c was in grep, namely grep
26776         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
26777         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
26778         That earlier simplification allows for some more simplification
26779         and trimming down here.
26780         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
26781         (struct lexer_state): New mamber brack.
26782         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
26783         since they must be in the range 0..3 now.
26784         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
26785         the brack member now supersedes them.
26786         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
26787         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
26788         (dfaparse): Remove unnecessary initializations of already-0 storage.
26789         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
26790         (dfassbuild): No need to clear sup->mbcsets.
26792         dfa: minor performance tweak
26793         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
26795         dfa: wrap charclass inside a struct
26796         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
26797         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
26798         about 5% faster, where list.txt is generated by 'aspell dump
26799         master | head -n 100000 >list.txt'.  See Bug#22239.
26800         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
26801         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
26802         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
26803         Adjust to this, e.g., by using charclass * rather than charclass.
26804         All callers changed as needed.
26805         (copyset): Remove.  All uses changed to simple assignment.
26806         (parse_bracket_exp): Use zeroset instead of memset.
26808 2016-12-30  Jim Meyering  <meyering@fb.com>
26810         maint.mk: update list of intprops.h symbol names
26811         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
26812         This avoids a false failure of the sc_prohibit_intprops_without_use
26813         rule in grep.
26815 2016-12-29  Eric Blake  <eblake@redhat.com>
26817         getopt: fix parallel test failure
26818         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
26819         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
26820         * tests/test-getopt-main.h (main): Use different file names
26821         in case test-getopt-gnu and test-getopt-posix run in parallel.
26823 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26825         xalloc: x2nrealloc check for ptrdiff_t overflow
26826         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
26827         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
26829 2016-12-24  Bruno Haible  <bruno@clisp.org>
26831         lock test: Fix performance problem on multi-core machines.
26832         * tests/test-lock.c (USE_VOLATILE): New macro.
26833         (struct atomic_int): New type.
26834         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
26835         functions.
26836         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
26837         as 'struct atomic_int'.
26838         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
26839         reclock_checker_thread, test_recursive_lock): Use the new functions.
26840         Reported by Eric Blake in
26841         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
26842         and by Pádraig Brady in
26843         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
26845 2016-12-19  Bruno Haible  <bruno@clisp.org>
26847         vma-iter: Fix endless loop on 64-bit Windows.
26848         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
26849         'unsigned long'.
26851 2016-12-19  Bruno Haible  <bruno@clisp.org>
26853         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
26854         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
26855         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
26856         Invoke gt_TYPE_WINT_T instead.
26857         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
26858         * modules/stdint (Files): Add m4/wint_t.m4.
26859         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26860         * modules/wctype-h (Makefile.am): Likewise.
26861         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
26862         not only on MSVC.
26863         * lib/wctype.in.h (wint_t): Likewise.
26865 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26867         getopt-posix-tests: fix Makefile typo
26868         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
26869         Fix typo: the last ‘_’ was missing in the name.
26870         I suspect that the typo explains this build failure:
26871         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
26872         although I can’t reproduce the problem on Solaris 10 sparc.
26874 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26876         dfa: improve worst-case 'replace' performance
26877         See my note in Bug#22357#71.
26878         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
26879         (merge_constrained): New function, which is like
26880         the old 'merge' function, except with a new argument C2.
26881         Simplify the body by avoiding the need for different sections
26882         of code depending on whether one input is exhausted.
26883         (merge): Use the new function.
26884         (delete): Return the constraint of the deleted position,
26885         not the entire position.  Caller changed.
26886         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
26888 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26890         dfa: performance improvement for removal of epsilon closure
26891         See Bug#22357#32.
26892         * lib/dfa.c (delete): Use binary search to find deleted index.
26893         (replace): New function.  It replaces a position with the followed set.
26894         (epsclosure): Replace it with a new algorithm.  Update caller.
26896 2016-12-18  Bruno Haible  <bruno@clisp.org>
26898         Split tests for getopt-posix and getopt-gnu.
26899         * tests/test-getopt-posix.c: New file.
26900         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
26901         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
26902         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
26903         GNULIB_TEST_GETOPT_GNU.
26904         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
26905         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
26906         (Makefile.am): Test test-getopt-posix instead of test-getopt.
26907         * modules/getopt-gnu-tests: New file.
26908         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
26910 2016-12-18  Bruno Haible  <bruno@clisp.org>
26912         posix-modules: Add options for specific platforms.
26913         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
26914         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
26915         Invoke func_tmpdir. Filter out the excludes.
26917 2016-12-18  Bruno Haible  <bruno@clisp.org>
26919         getopt: Fix link error for users of getopt() in <unistd.h>.
26920         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
26921         __need_getopt is defined. Undefine all macros before defining them.
26922         * modules/getopt (Include): Clarify that including <unistd.h> is also
26923         OK.
26924         * tests/test-getopt.c: Add comment.
26926 2016-12-17  Bruno Haible  <bruno@clisp.org>
26928         getaddrinfo tests: Avoid compilation error on MSVC.
26929         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
26930         getaddrinfo on native Windows.
26932 2016-12-17  Bruno Haible  <bruno@clisp.org>
26934         getlogin, getlogin_r: Fix link errors on MSVC.
26935         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
26936         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
26937         (Link): New section.
26938         * modules/getlogin_r (Files): Add m4/getlogin.m4.
26939         (configure.ac): Require gl_LIB_GETLOGIN.
26940         (Link): New section.
26941         * NEWS: Mention the new link requirements.
26942         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
26943         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
26945 2016-12-17  Bruno Haible  <bruno@clisp.org>
26947         Un-deprecate the 'progname' module.
26948         * NEWS: Describe the appropriate use-cases of 'progname' versus
26949         'getprogname'. Based on discussion summary at
26950         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
26952 2016-12-17  Bruno Haible  <bruno@clisp.org>
26954         Reorganize NEWS a bit.
26955         * NEWS: Move some not so important changes away from section
26956         "Important Notes".
26958 2016-12-17  Bruno Haible  <bruno@clisp.org>
26960         tanhf: Avoid redefinition error on MSVC.
26961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
26962         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
26963         may be defined as an inline function.
26964         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
26965         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
26967 2016-12-17  Bruno Haible  <bruno@clisp.org>
26969         tanf: Avoid redefinition error on MSVC.
26970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
26971         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
26972         may be defined as an inline function.
26973         * modules/math (Makefile.am): Substitute REPLACE_TANF.
26974         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
26976 2016-12-17  Bruno Haible  <bruno@clisp.org>
26978         sqrtf: Avoid redefinition error on MSVC.
26979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
26980         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
26981         may be defined as an inline function.
26982         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
26983         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
26985 2016-12-17  Bruno Haible  <bruno@clisp.org>
26987         sinhf: Avoid redefinition error on MSVC.
26988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
26989         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
26990         may be defined as an inline function.
26991         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
26992         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
26994 2016-12-17  Bruno Haible  <bruno@clisp.org>
26996         sinf: Avoid redefinition error on MSVC.
26997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
26998         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
26999         may be defined as an inline function.
27000         * modules/math (Makefile.am): Substitute REPLACE_SINF.
27001         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
27003 2016-12-17  Bruno Haible  <bruno@clisp.org>
27005         logf: Avoid redefinition error on MSVC.
27006         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
27007         may be defined as an inline function.
27009 2016-12-17  Bruno Haible  <bruno@clisp.org>
27011         log10l: Avoid redefinition error on MSVC.
27012         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
27013         may be defined as an inline function.
27015 2016-12-17  Bruno Haible  <bruno@clisp.org>
27017         log10f: Avoid redefinition error on MSVC.
27018         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
27019         may be defined as an inline function.
27021 2016-12-17  Bruno Haible  <bruno@clisp.org>
27023         hypotl: Avoid redefinition error on MSVC.
27024         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
27025         may be defined as an inline function.
27027 2016-12-17  Bruno Haible  <bruno@clisp.org>
27029         hypotf: Avoid redefinition error on MSVC.
27030         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
27031         may be defined as an inline function.
27033 2016-12-17  Bruno Haible  <bruno@clisp.org>
27035         fmodl: Avoid redefinition error on MSVC.
27036         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
27037         may be defined as an inline function.
27039 2016-12-17  Bruno Haible  <bruno@clisp.org>
27041         fmodf: Avoid redefinition error on MSVC.
27042         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
27043         may be defined as an inline function.
27045 2016-12-17  Bruno Haible  <bruno@clisp.org>
27047         expf: Avoid redefinition error on MSVC.
27048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
27049         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
27050         may be defined as an inline function.
27051         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
27052         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
27054 2016-12-17  Bruno Haible  <bruno@clisp.org>
27056         coshf: Avoid redefinition error on MSVC.
27057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
27058         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
27059         may be defined as an inline function.
27060         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
27061         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
27063 2016-12-17  Bruno Haible  <bruno@clisp.org>
27065         cosf: Avoid redefinition error on MSVC.
27066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
27067         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
27068         may be defined as an inline function.
27069         * modules/math (Makefile.am): Substitute REPLACE_COSF.
27070         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
27072 2016-12-17  Bruno Haible  <bruno@clisp.org>
27074         atan2f: Avoid redefinition error on MSVC.
27075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
27076         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
27077         may be defined as an inline function.
27078         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
27079         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
27081 2016-12-17  Bruno Haible  <bruno@clisp.org>
27083         atanf: Avoid redefinition error on MSVC.
27084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
27085         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
27086         may be defined as an inline function.
27087         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
27088         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
27090 2016-12-17  Bruno Haible  <bruno@clisp.org>
27092         asinf: Avoid redefinition error on MSVC.
27093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
27094         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
27095         may be defined as an inline function.
27096         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
27097         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
27099 2016-12-17  Bruno Haible  <bruno@clisp.org>
27101         acosf: Avoid redefinition error on MSVC.
27102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
27103         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
27104         may be defined as an inline function.
27105         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
27106         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
27108 2016-12-17  Bruno Haible  <bruno@clisp.org>
27110         Avoid redefinition errors on MSVC.
27111         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
27112         the function may be defined as an inline function.
27113         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
27114         the function may be defined as an inline function.
27116 2016-12-17  Bruno Haible  <bruno@clisp.org>
27118         Avoid redefinition errors on MSVC.
27119         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
27120         * lib/unistd.in.h: Include <stdio.h> when necessary.
27122 2016-12-17  Bruno Haible  <bruno@clisp.org>
27124         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
27125         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
27126         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
27127         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
27128         WINT_MAX.
27130 2016-12-17  Bruno Haible  <bruno@clisp.org>
27132         Avoid autoconf warning.
27133         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
27134         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
27136 2016-12-17  Bruno Haible  <bruno@clisp.org>
27138         fpending: Revert workaround against Emacs bug.
27139         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
27140         The Emacs bug is fixed by Eli Zaretskii in
27141         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
27143 2016-12-17  Bruno Haible  <bruno@clisp.org>
27145         getlogin_r tests: Port to mingw.
27146         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
27147         regression introduced on 2014-05-19.
27149 2016-12-17  Bruno Haible  <bruno@clisp.org>
27151         getlogin: Port to newer mingw.
27152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
27153         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
27154         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
27155         HAVE_GETLOGIN.
27156         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
27157         HAVE_GETLOGIN.
27158         * doc/posix-functions/getlogin.texi: Mention the issue.
27159         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
27160         regression introduced on 2014-05-14.
27162 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27164         builtin-expect: improve port to IBM XL C
27165         Problem reported for z/OS by Daniel Richard G. in:
27166         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
27167         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
27168         Test for <builtins.h> directly.
27170         builtin-expect: port to IBM XL C
27171         Problem reported for z/OS by Daniel Richard G. in:
27172         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
27173         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
27174         Also allow __builtin_expect defined via a standard include file.
27176         regex: fix dependency
27177         Problem reported by Bruno Haible in:
27178         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
27179         * modules/regex: Depend on builtin-expect.
27181         builtin-expect: new module
27182         Fix fnmatch to use it.
27183         Problem reported for z/OS by Daniel Richard G.
27184         * lib/fnmatch.c (__builtin_expect):
27185         * lib/glob.c (__builtin_expect):
27186         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
27187         * lib/memmem.c (__builtin_expect) [!_LIBC]:
27188         * lib/scandir.c (__builtin_expect):
27189         * lib/strstr.c (__builtin_expect) [!_LIBC]:
27190         Remove macro; config.h now does this.
27191         * lib/gl_anytreehash_list1.h (add_to_bucket):
27192         * lib/regex_internal.h (BE):
27193         Assume __builtin_expect.
27194         * m4/builtin-expect.m4, modules/builtin-expect: New files.
27195         * modules/avltreehash-list, modules/fnmatch, modules/glob:
27196         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
27197         * modules/scandir, modules/strstr-simple:
27198         Depend on builtin-expect.
27200 2016-12-15  Bruno Haible  <bruno@clisp.org>
27202         init.sh: Add possibility to not delete temporary files.
27203         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
27204         to yes, don't erase the temporary directory.
27206 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27208         regex: fix integer-overflow bug in never-used code
27209         Problem reported by Clément Pit–Claudel in:
27210         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
27211         * lib/regex_internal.h: Include intprops.h.
27212         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
27213         behavior on integer overflow.
27214         * modules/regex (Depends-on): Add intprops.
27216         fpending: fix port to MinGW on Emacs
27217         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
27218         Problem reported by Eli Zaretskii in:
27219         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
27220         Is Plan 9 still a valid porting target, anyway?
27222 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
27224         safe-alloc: use xalloc-oversized
27225         * lib/safe-alloc.c: Include xalloc-oversized.h.
27226         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
27227         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
27229         xalloc: do not exceed PTRDIFF_MAX
27230         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
27231         xalloc_oversized check, since objects larger than PTRDIFF_MAX
27232         bytes have pointer-subtraction problems.
27234         malloca: do not exceed PTRDIFF_MAX
27235         * lib/malloca.h: Include xalloc-oversized.
27236         (nmalloca): Use xalloc_oversized instead of rolling our own.
27237         * modules/malloca (Depends-on):
27238         * modules/relocatable-prog-wrapper (Depends-on):
27239         Add xalloc-oversized.
27241         quotearg: pacify GCC better
27242         * modules/quotearg (Depends-on): Add minmax, stdint.
27243         * lib/quotearg.c: Include minmax.h, stdint.h.
27244         (nslots): Now int, as there seems little point to going to extra
27245         work merely to support the INT_MAX slot, which nobody ever uses.
27246         (quotearg_n_options): Redo size-overflow checks to pacify GCC
27247         and to catch (mostly-theoretical) ptrdiff_t problems too.
27248         This can be done via one comparison.
27250 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
27252         xalloc-oversized: check for PTRDIFF_MAX too
27253         This avoids undefined behavior when subtracting pointers to
27254         objects containing more than PTRDIFF_MAX bytes.
27255         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
27256         Also return 1 if the result would exceed PTRDIFF_MAX>
27257         * modules/xalloc-oversized (Depends-on):
27258         Add stdint.
27260         dfa: fix glitches in previous commit
27261         Sorry, I don't know how I managed to commit the wrong version.
27262         * lib/dfa.c (MIN): Move up.
27263         (xpalloc): Now static.
27265         dfa: fix some unlikely integer overflows
27266         I found these while reviewing the recent Coverity-related fix.
27267         This patch changes part of dfa.c to prefer ptrdiff_t instead of
27268         size_t for object counts.  Using ptrdiff_t is the style typically
27269         used in Emacs; although it wastes a sign bit as sizes can never be
27270         negative, it makes -fsanitize=undefined more likely to catch
27271         integer overflows in index calculation, and nowadays the upside is
27272         typically more important than the downside.  Although perhaps the
27273         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
27274         of dfa.c already does, since it uses state_num which is signed),
27275         that is a bigger change and is not needed to fix the bugs I found.
27276         * lib/dfa.c: Include stdint.h and intprops.h.
27277         (TOKEN_MAX): New macro.
27278         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
27279         (charclass_index, parse_bracket_exp, addtok, insert, merge)
27280         (realloc_trans_if_necessary, free_mbdata):
27281         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
27282         This is safe because xpalloc checks that the sizes do not exceed
27283         either SIZE_MAX or PTRDIFF_MAX.
27284         (xpalloc): New function, mostly taken from Emacs.
27285         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
27286         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
27287         (charclass_index): Check for integer overflow in computing
27288         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
27289         added to it later.
27290         (alloc_position_set): Check for integer overflow.  On typical
27291         platforms this check has zero overhead, since the constant
27292         expression is false.
27293         (realloc_trans_if_necessary):
27294         Remove assertion, which I hope Coverity no longer needs.
27296         * modules/dfa (Depends-on): Add intprops, stdint.
27298 2016-12-12  Jim Meyering  <meyering@fb.com>
27300         dfa: add an assertion to avoid coverity false positive
27301         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
27302         warned that "newalloc1 - 2" could overflow.
27304 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
27306         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
27307         * dfa.h (DFA_CASE_FOLD): Remove.
27308         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
27310 2016-12-13  John W. Eaton  <gnu@jweaton.org>
27312         link: fix test to declare use of rename()
27313         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
27314         -Werror=implicit-function-declaration
27316 2016-12-12  Bruno Haible  <bruno@clisp.org>
27318         fpending: Port to native Windows with MSVC.
27319         * lib/fpending.c: Include stdio-impl.h.
27320         (__fpending): Include all known implementations. Err out if it's not
27321         ported.
27322         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
27323         * modules/fpending (Files): Add lib/stdio-impl.h.
27324         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
27326 2016-12-12  Bruno Haible  <bruno@clisp.org>
27328         stdioext: Port to native Windows with MSVC.
27329         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
27330         (struct _gl_real_FILE): New type.
27331         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
27332         Windows.
27333         * lib/fbufmode.c (fbufmode): Add code for native Windows.
27334         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
27335         other SystemV derived implementations.
27336         * lib/fpurge.c (fpurge): Likewise.
27337         * lib/freadable.c (freadable): Likewise.
27338         * lib/freadahead.c (freadahead): Likewise.
27339         * lib/freading.c (freading): Likewise.
27340         * lib/freadptr.c (freadptr): Likewise.
27341         * lib/freadseek.c (freadptrinc): Likewise.
27342         * lib/fseeko.c (fseeko): Likewise.
27343         * lib/fseterr.c (fseterr): Likewise.
27344         * lib/fwritable.c (fwritable): Likewise.
27345         * lib/fwriting.c (fwriting): Likewise.
27346         Reported by Gisle Vanem <gvanem@yahoo.no>.
27348 2016-12-11  Jim Meyering  <meyering@fb.com>
27350         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
27351         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
27352         to work with most shells, but not with the one provided by many
27353         Solaris 10 systems, so running configure with such a /bin/sh evokes
27354         e.g., "./configure: syntax error at line 33602: `(' unexpected".
27355         Reported by Assaf Gordon in
27356         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
27358 2016-12-10  Bruno Haible  <bruno@clisp.org>
27360         threadlib: Optimize out runtime test on Solaris >= 10.
27361         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
27362         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
27363         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
27365 2016-12-10  Bruno Haible  <bruno@clisp.org>
27367         stdint: Update doc about Solaris 9.
27368         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
27370 2016-12-09  Bruno Haible  <bruno@clisp.org>
27372         c-ctype tests: Fix link error on Solaris 9.
27373         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
27374         Reported at <https://savannah.gnu.org/bugs/?46827>.
27376 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27378         dfa: fix performance bug that recomputes trans
27379         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
27380         25 on-demand changes.  The bug caused build_state to reset all
27381         d->trans elements to -2 even when d->trans was already non-null.
27382         Use C99 style decls after statements in this function.
27384         same-inode: port to MinGW
27385         Here st_ino is always 0, so change the definition of SAME_INODE so
27386         that 1 means the two files are the same, 0 with st_ino != 0 means
27387         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
27388         reported by Bruno Haible (Bug#25146).
27389         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
27390         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
27392 2016-12-04  Bruno Haible  <bruno@clisp.org>
27394         javacomp-script: Support Java 7 and 8.
27395         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
27396         target-version 1.7, 1.8.
27398 2016-12-02  Daiki Ueno  <ueno@gnu.org>
27400         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
27401         GPLv2" rewriting.
27403 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
27405         * gnulib-tool (func_import): Adhere to the license guideline when
27406         rewriting the license text to "LGPLv3+ or GPLv2":
27407         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
27409 2016-12-02  Bruno Haible  <bruno@clisp.org>
27411         localcharset: Avoid theoretical buffer overrun.
27412         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
27413         return value from setlocale if it would lead to a buffer overrun.
27415 2016-12-01  Bruno Haible  <bruno@clisp.org>
27417         Relicense some modules under LGPLv2+.
27418         Kevin Cernekee's approval is in
27419         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
27420         * modules/fseterr (License): Change to LGPLv2+.
27421         * modules/mbchar (License): Likewise.
27422         * modules/mbiter (License): Likewise.
27423         * modules/mbsnlen (License): Likewise.
27424         * modules/wcwidth (License): Likewise.
27426 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27428         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
27429         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
27430         OS/2 kLIBC.
27432 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27434         alphasort, scandir: Port to OS/2 kLIBC
27435         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
27436         declaration.
27437         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
27439 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27441         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
27442         * lib/relocatable.c (relocate): Do not touch pathname if it is started
27443         with '/@unixroot'.
27445 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27447         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
27448         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
27449         OS/2 kLIBC unless TCPV40HDRS is defined.
27451 2016-11-29  Jim Meyering  <meyering@fb.com>
27453         dfa: avoid new infinite loop
27454         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
27455         * lib/dfa.c (dfastate): When constructing a new state table, we could
27456         initially declare that we had found a match, and later find that
27457         constraints eliminate that possibility, yet continue to use the
27458         now stale "matched" indicator.  That would lead to an infinite loop.
27459         The solution is to update "matched" when necessary.
27460         Introduced by commit v0.1-983-g403adf1.
27462 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27464         dfa: avoid match middle in multibyte character
27465         * lib/dfa.c (transit_state): If fails in matching single byte characters
27466         on a state including period expression in non-UTF8 multibyte locales,
27467         skip trailing bytes.
27468         (dfa_supported): Revert previous change.
27470 2016-11-27  Jim Meyering  <meyering@fb.com>
27472         dfa: avoid false match in non-UTF8 multibyte locales
27473         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
27474         as "not supported" so that callers will resort to using regex-based
27475         matcher.  This will surely hurt performance, but correctness trumps
27476         performance here, and the affected locales are less and less relevant,
27477         these days.  See grep's bug report https://bugs.gnu.org/24975.
27479 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
27481         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
27482         * lib/ptsname_r.c: Include the appropriate headers.
27483         [__sun]: Delete sys/sysmacros.h include.
27484         [_AIX || __osf__]: Likewise.
27485         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
27487 2016-11-27  Pádraig Brady  <P@draigBrady.com>
27489         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
27490         * lib/md4.c (md4_process_bytes): The existing define is made internal
27491         in recent versions of glibc, so also use this new public define.
27492         * lib/md5.c (md5_process_bytes): Likewise.
27493         * lib/sha1.c (sha1_process_bytes): Likewise.
27494         * lib/sha256.c (sha256_process_bytes): Likewise.
27495         * lib/sha512.c (sha512_process_bytes): Likewise.
27497 2016-11-27  Pádraig Brady  <P@draigBrady.com>
27499         maint: use a more standard return from mbrtowc test
27500         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
27501         from the test program as this often indicates an
27502         unhandled case in the test program.
27503         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
27504         (gl_MBRTOWC_SANITYCHECK): Likewise.
27505         (gl_MBRTOWC_NULL_ARG2): Likewise.
27506         (gl_MBRTOWC_NUL_RETVAL): Likewise.
27508 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
27510         freopen: work around glibc bug with closed fd
27511         Work around glibc bug#15589, where freopen mishandles the case
27512         where stdin etc. are already closed.
27513         * doc/posix-functions/freopen.texi (freopen): Document the bug.
27514         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
27515         instead of __need_FILE, as the latter does not work with glibc.
27516         Include <fcntl.h>, for open flags.
27517         (rpl_freopen): Work around glibc bug.
27518         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
27519         * modules/freopen (Depends-on): Add fcntl-h.
27520         * tests/test-freopen.c (main): Test for bug.
27522 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27524         fnmatch: fix typo introduced on 2016-08-17
27525         This fixes the port to non-GCC compilers that lack __builtin_expect.
27526         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
27528         dfa: simplify with new function fillset
27529         * lib/dfa.c (fillset): New function.
27530         Use it for clarity when applicable.
27532         dfa: fix glitches with on-demand states
27533         Also, adjust commentary to better match new code.
27534         Some of these glitches predate the recent change.
27535         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
27536         only non-initial states.
27537         (dfastate): Rename locals to better match new roles.
27538         Move them into nested scopes if this is easy.
27539         Omit unnecessary calls to zeroset.
27540         Simplify test for whether to throw in the positions of state 0.
27541         Omit C99-ism (decl after statement) since Gawk still wants C89.
27542         (build_state): Omit unnecessary test and assignment.
27543         Fix some confusion that counted transition tables inaccurately
27544         and could cause a memory leak.
27545         (dfaexec_main): Redo to make it clearer to the compiler that
27546         -1 and -2 are the only negative state numbers here.
27548 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27550         dfa: addition of new state on demand
27551         * src/dfa.c (dfastate): Add argument UC, the current input character.
27552         Fill only a group including the character in transition table.
27553         (realloc_trans_if_necessary): Add the dummy state which means that a
27554         transition table is assigned but the next state is not assigned.
27555         (build_state): Return the next state.  All callers updated.
27556         (transit_state_singlebyte): If we get the dummy state,
27557         fill the transition table.
27558         (dfaexec_main): Handle the dummy state.
27559         (free_mbdata, dfafree): Consider the dummy state.
27561 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27563         srclist: sync with released gettext
27564         * config/srclist.txt: Set "release" option to the files under
27565         $GETTEXT.
27567 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27569         srclist: add "release" option
27570         * config/srclist.txt: Change the format so that the first column
27571         of each line points to the top-level directory of the source
27572         archive.
27573         * config/srclist-update: Accept "release" option that checks files
27574         from the most recently tagged revision in the source archive.
27576 2016-11-21  Bruno Haible  <bruno@clisp.org>
27578         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
27579         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27580         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
27581         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
27582         Inline and remove member function 'rpl ()' of the wrapper struct.
27584 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27586         dfa: fix logic typo
27587         Problem reported by Stephane Chazelas (Bug#24973).
27588         * lib/dfa.c (using_simple_locale): Fix typo that caused some
27589         non-simple locales like fr_FR to be treated as simple.
27591 2016-11-20  Jim Meyering  <meyering@fb.com>
27593         fix test driver leaks: exclude, malloc, realloc
27594         * tests/test-exclude.c (main): Fix trivial leak.
27595         * tests/test-malloc-gnu.c (main): Likewise.
27596         * tests/test-realloc-gnu.c (main): Likewise.
27597         With these changes, grep's tests are now leak free.
27598         I.e., running them with ASAN elicits no failure:
27599           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
27600             AM_LDFLAGS='-fsanitize=address -static-libasan' check
27602 2016-11-11  Bruno Haible  <bruno@clisp.org>
27604         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
27605         * modules/libunistring: (License): Change from LGPL to
27606         "LGPLv3+ or GPLv2".
27607         * modules/libunistring-optional: Likewise.
27608         * modules/unicase/*: Likewise.
27609         * modules/uniconv/*: Likewise.
27610         * modules/unictype/*: Likewise.
27611         * modules/unigbrk/*: Likewise.
27612         * modules/unilbrk/*: Likewise.
27613         * modules/uniname/*: Likewise.
27614         * modules/uninorm/*: Likewise.
27615         * modules/unistdio/*: Likewise.
27616         * modules/unistr/*: Likewise.
27617         * modules/uniwbrk/*: Likewise.
27618         * modules/uniwidth/*: Likewise.
27620 2016-11-12  Bruno Haible  <bruno@clisp.org>
27622         Relicense some modules under LGPLv2+.
27623         Paul Eggert's approval is in
27624         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
27625         Eric Blake's approval is in
27626         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
27627         Ludovic Courtès's approval is in
27628         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
27629         * modules/isnand-nolibm (License): Change to LGPLv2+.
27630         * modules/isnanf-nolibm (License): Likewise.
27631         * modules/isnanl-nolibm (License): Likewise.
27633 2016-11-19  Bruno Haible  <bruno@clisp.org>
27635         Relicense some modules under LGPLv2+.
27636         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
27637         modules/vasnprintf.
27638         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
27639         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
27640         All other significant changes to the files in lib/ of these modules
27641         are from me.
27642         * modules/memcmp2 (License): Change to LGPLv2+.
27643         * modules/amemxfrm (License): Likewise.
27644         * modules/fpieee (License): Likewise.
27645         * modules/fpucw (License): Likewise.
27646         * modules/frexp-nolibm (License): Likewise.
27647         * modules/frexpl-nolibm (License): Likewise.
27648         * modules/printf-frexp (License): Likewise.
27649         * modules/printf-frexpl (License): Likewise.
27650         * modules/printf-safe (License): Likewise.
27651         * modules/signbit (License): Likewise.
27653 2016-11-17  Bruno Haible  <bruno@clisp.org>
27655         Enable Unicode decoder safety unconditionally.
27656         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
27657         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
27658         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27659         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27660         * lib/unistr/u8-prev.c (u8_prev): Likewise.
27661         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
27662         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
27663         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
27664         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
27665         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
27666         * lib/unistr/u16-prev.c (u16_prev): Likewise.
27667         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
27668         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
27669         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
27670         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
27671         * lib/unistr/u32-prev.c (u32_prev): Likewise.
27672         * lib/unistr/u32-next.c (u32_next): Likewise.
27673         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
27674         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
27675         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27676         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
27677         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
27678         CONFIG_UNICODE_SAFETY tests unconditionally.
27679         * tests/unistr/test-u32-mblen.c (main): Likewise.
27680         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
27681         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
27682         * tests/unistr/test-u32-next.c (main): Likewise.
27683         * tests/unistr/test-u32-strmblen.c (main): Likewise.
27684         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
27685         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
27686         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
27687         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
27688         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27689         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
27690         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
27691         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
27692         * lib/unistr/u16-check.c (u16_check): Update comment.
27693         * NEWS: Mention the changes that callers should be aware of.
27695 2016-11-19  Bruno Haible  <bruno@clisp.org>
27697         relocatable-prog-wrapper: Fix breakage on Cygwin.
27698         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
27699         (Depends-on): Remove intprops.
27700         * lib/relocwrapper.c: Update dependency tree.
27701         (strerror): Undefine.
27702         * build-aux/install-reloc (func_create_wrapper): Do not compile
27703         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
27705 2016-11-19  Bruno Haible  <bruno@clisp.org>
27707         strerror: Make it compile in C++ mode.
27708         * lib/strerror.c (strerror): Ignore the return value of memcpy().
27710 2016-11-15  Pedro Alves  <palves@redhat.com>
27712         sys_time: add gnulib::timeval for C++
27713         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
27714         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
27715         timeval macro.
27717 2016-11-14  Pedro Alves  <palves@redhat.com>
27719         snippet/c++defs: fix real-floating arg functions in C++ mode
27720         Also, define isfinite, isinf, isnan, signbit in the gnulib
27721         namespace instead of in the global namespace.
27722         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
27723         (_GL_END_NAMESPACE): New.
27724         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
27725         (isfinite, isinf, isnan, signbit) [__cplusplus &&
27726         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
27727         instead of in the global namespace.
27728         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
27729         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
27730         of in the global namespace.
27732 2016-11-13  Jim Meyering  <meyering@fb.com>
27734         strftime: don't use __THROW
27735         Each use of __THROW would provoke this from gcc-7-to-be:
27737           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
27738             on unit local functions [-Wattributes]
27739           static int iso_week_days (int, int) __THROW;
27740           ^~~~~~
27741         * lib/strftime.c (__THROW): Don't define.
27742         Remove each use of __THROW.
27743         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
27744         (tm_diff, iso_week_days, __strftime_internal): Likewise.
27746 2016-11-14  Paul Eggert  <eggert@union>
27748         obstack: port to gcc -fcheck-pointer-bounds
27749         Problem found by 'make check' failure on bleeding-edge coreutils
27750         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
27751         6.2.0-5ubuntu12), configured via "./configure
27752         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
27753         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
27754         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
27755         New macro, copied from fts_.h.
27756         (struct _obstack_chunk.contents): Use it.
27758 2016-11-14  Eric Blake  <eblake@redhat.com>
27760         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
27761         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
27762         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
27764 2016-11-14  Pádraig Brady  <P@draigBrady.com>
27766         strptime: fix compile error in recent change
27767         * lib/strptime.c (__strptime_internal): Fix ported code.
27769 2016-11-11  Bruno Haible  <bruno@clisp.org>
27771         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
27772         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
27773         (func_import): Extend determination of license_incompatibilities.
27774         (func_create_testdir): Extend table of license compatibility. Handle
27775         also the licenses GPLv3+, GPL, LGPLv3+.
27777 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27779         strftime: tune %q
27780         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
27782         Merge strftime.c changes from glibc
27783         This incorporates:
27784         2007-10-16 [BZ #5184] Add tzset_called argument
27785         2008-06-13 [BZ #6612] pass reference to tzset_called around
27786         2009-10-30 Implement Burmese language locale for Myanmar
27787         2010-01-09 Add support for XPG7 testing
27788         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
27789         2015-10-20 Convert miscellaneous function definitions to prototype style
27790         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
27791         it anyway and this lessens the difference between gnulib and glibc.
27792         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
27793         (__THROW): Define if standard headers do not.
27794         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
27795         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
27796         Declare with __THROW.
27797         (__strftime_internal): Rename from strftime_case_. Add arg for
27798         whether tzset is called.  All uses changed.  Call tzset at most
27799         once.  Allow %OC, for Burmese.
27800         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
27801         Don't assume values are in range.
27803 2016-11-12  Eric Blake  <eblake@redhat.com>
27805         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
27806         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
27807         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
27808         different value.
27810 2006-11-12  Pedro Alves  <palves@redhat.com>
27812         Fix gnulib C++ namespace support and std::frexp
27813         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
27814         _GL_CXXALIASWARN.
27816 2006-11-12  Pedro Alves  <palves@redhat.com>
27818         GNULIB_NAMESPACE::func need not pull in rpl_func
27819         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27820         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
27821         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
27822         struct instead of a function pointer.
27824 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
27826         manywarnings: fix -Wno-missing-field-initializers detection
27827         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
27828         to be independent of -Wunused-variable.  I.E. ensure the latter
27829         warning doesn't occur so that detection of the former is accurate.
27831 2016-11-05  Pádraig Brady  <pbrady@fb.com>
27833         strftime,strptime: support %q to represent the quarter
27834         * lib/strftime.c (strftime_case_): Add %q case.
27835         * lib/strptime.c (__strptime_internal): Likewise.
27836         * tests/test-strftime.c (quarter_test): A new test case.
27838 2016-11-03  Eric Blake  <eblake@redhat.com>
27840         bootstrap: Fix get_version() for AIX 5.3
27841         * build-aux/bootstrap (get_version): Factor out sed script, since
27842         indented comments choke AIX 5.3 sed.
27843         Reported-by: Michael Felt <aixtools@gmail.com>
27845 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27847         intprops: port to older XL C
27848         Problem reported by Alexander Samoilov in:
27849         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
27850         http://savannah.nongnu.org/bugs/?49448
27851         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
27852         Define to 1 only for XL C 12.1 or later, since this bug
27853         occurs in XL C for AIX 6.0 but not in 12.1.
27855 2016-11-02  Pádraig Brady  <P@draigBrady.com>
27857         backupfile: initialize default suffix within the implementation
27858         * lib/backupfile.c (find_backup_file_name): Initialize the
27859         global variable here, to simplify usage, and to only call
27860         getenv() when needed.
27862 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27864         futimens: remove FIXME for old Linux kernels
27865         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
27866         this in 2012" FIXME, like that for utimensat.
27868         utimensat: remove FIXME for old Linux kernels
27869         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
27870         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
27871         this in 2012" FIXME, by assuming the file system bug is absent
27872         unless demonstrated to be present.  We no longer need to worry
27873         about Linux kernel 2.6.32 when building with newer kernels.
27875 2016-10-16  Bruno Haible  <bruno@clisp.org>
27877         qsort_r: Fix macrology for platforms that lack the function.
27878         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
27879         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
27880         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
27881         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
27882         not exist.
27883         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
27884         the function exists.
27885         * modules/qsort_r: Add comments.
27887 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27889         sys_types: fix Texinfo typos
27890         * doc/glibc-functions/gnu_dev_major.texi:
27891         * doc/glibc-functions/gnu_dev_makedev.texi:
27892         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
27894 2016-10-26  John David Anglin  <dave.anglin@bell.net>
27896         getprogname: port to HP-UX
27897         See Bug#24805.
27898         * lib/getprogname.c (getprogname) [__hpux]: Port.
27899         * tests/test-getprogname.c (STREQ) [__hpux]:
27900         Special-case for HP-UX limitations on program name length.
27902 2016-10-20  Bruno Haible  <bruno@clisp.org>
27904         Update doc about target platforms.
27905         * doc/gnulib-intro.texi (Target Platforms): Update list.
27907 2016-10-15  Bruno Haible  <bruno@clisp.org>
27909         opendir, readdir, closedir: Relicense under LGPLv2+.
27910         * modules/opendir (License): Change to LGPLv2+.
27911         * modules/readdir (License): Likewise.
27912         * modules/closedir (License): Likewise.
27914 2016-10-16  Bruno Haible  <bruno@clisp.org>
27916         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
27917         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
27918         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
27919         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
27920         HAVE_DECL_STRERROR_R.
27922 2016-10-16  Bruno Haible  <bruno@clisp.org>
27924         Make the 'argp' module work without the 'error' module.
27925         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
27927 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27929         diffseq: restore TOO_EXPENSIVE heuristic
27930         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
27931         (Bug#24715).  The simplest solution is to restore the
27932         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
27933         using a higher threshold to avoid Bug#16848 on smaller files.
27934         * lib/diffseq.h (struct context): Restore member too_expensive.
27935         (struct partition): Restore members lo_minimal, hi_minimal.
27936         (diag, compareseq): Restore arg find_minimal.  All uses changed.
27937         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
27938         1993 to make 'diff' run faster (but not as well) on large inputs,
27939         but use a threshold of 4096 instead of the old 256.
27940         * lib/fstrcmp.c (strcmp_bounded):
27941         * lib/git-merge-changelog.c (compute_differences):
27942         Adjust to diffseq.h changes.
27944 2016-10-22  Bruno Haible  <bruno@clisp.org>
27946         iconv: Avoid compilation error when bootstrapping GNU libiconv.
27947         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
27948         declaration yet, define ICONV_CONST to empty.
27950 2016-10-15  Bruno Haible  <bruno@clisp.org>
27952         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
27953         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
27954         module.
27956 2016-10-16  Bruno Haible  <bruno@clisp.org>
27958         system-quote tests: Avoid compiler warning on AIX.
27959         * tests/test-system-quote-child.c (fopen): Redefine like the system's
27960         <stdio.h> does.
27962 2016-10-16  Bruno Haible  <bruno@clisp.org>
27964         Fix some "gcc -Wall" warnings.
27965         * tests/test-ffsl.c (main): Use variable x, not i.
27966         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
27967         freopen.
27968         * tests/test-sethostname1.c (main): Explicitly ignore the return value
27969         of sethostname.
27971 2016-10-16  Bruno Haible  <bruno@clisp.org>
27973         gnulib-tool: Make --create-testdir on all modules work again.
27974         * gnulib-tool (func_create_testdir): Don't include the
27975         non-recursive-gnulib-prefix-hack module.
27977 2016-10-21  Daiki Ueno  <ueno@gnu.org>
27979         libunistring: change the maintainer to 'all'
27980         * modules/gen-uni-tables, modules/libunistring:
27981         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
27982         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
27983         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
27984         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
27985         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
27986         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
27987         * modules/uniwidth/*: Change the maintainer to 'all'.
27989 2016-10-16  Bruno Haible  <bruno@clisp.org>
27991         Simplify "configure: checking ..." messages.
27992         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
27993         AC_MSG_NOTICE.
27994         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27996 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27998         quotearg-tests: pacify gcc -Wall
27999         Problem reported by Bruno Haible in:
28000         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
28001         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
28002         * tests/test-quotearg.h: ... from here.
28004 2016-10-20  Pádraig Brady  <P@draigBrady.com>
28006         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
28007         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
28008         Needed on Centos <= 4.
28010 2016-10-20  Jim Meyering  <meyering@fb.com>
28012         printf.m4: fix a bug in detecting printf %j support
28013         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
28014         uintmax_t is defined in neither stdint.h nor inttypes.h.
28015         Before, this macro might have mistakenly set
28016         gl_cv_func_printf_sizes_c99=yes on such a system.
28017         Spotted by Zev Weiss.
28019 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
28021         sched: substitute HAVE_SYS_CDEFS_H too
28022         Problem reported by Tom G. Christensen in:
28023         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
28024         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
28025         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
28027 2016-10-19  Pádraig Brady  <P@draigBrady.com>
28029         quotearg: never write beyond the returned length
28030         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
28031         scan of the string when we initially encounter a single quote when
28032         shell quoting, so that if we then switch to a more concise quoting method
28033         we will not have written beyond that returned length.
28034         This is significant for sh-quote, which has separate routines
28035         to determine the length and do the actual quoting.
28036         * tests/test-quotearg.h: Reinstate the buffer bounds checking
28037         now that we never write more than the returned length.
28039 2016-10-18  Bruno Haible  <bruno@clisp.org>
28041         getprogname tests: Avoid failure in packages that use libtool.
28042         * tests/test-getprogname.c (main): Strip "lt-" prefix.
28043         Based on a patch by Jim Meyering.
28045 2016-10-16  Bruno Haible  <bruno@clisp.org>
28047         getprogname: Fix test failure on Cygwin. Comments.
28048         * lib/getprogname.h: Add comments.
28049         * lib/getprogname.c: Add comments. Fix #elif indentation.
28050         * tests/test-getprogname.c (main): On Cygwin, expect a result without
28051         ".exe" suffix.
28053 2016-10-16  Bruno Haible  <bruno@clisp.org>
28055         Make sure the libunistring detection rejects older versions with a
28056         known bug.
28057         * modules/unistr/u8-strtok (configure.ac): Bump required version.
28058         * modules/unistr/u16-strtok (configure.ac): Likewise.
28059         * modules/unistr/u32-strtok (configure.ac): Likewise.
28061 2016-10-18  Bruno Haible  <bruno@clisp.org>
28063         sh-quote, system-quote: revert regression of unit test.
28064         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
28065         * tests/test-system-quote-main.c (check_one): Likewise.
28067 2016-10-16  Pádraig Brady  <P@draigBrady.com>
28069         quotearg: fix stale tests
28070         * tests/test-quotearg.c [locale_results]: Add the missing str7
28071         entries to the expected results.
28072         * tests/test-system-quote-main.c (check_one): Don't enforce that we
28073         don't write beyond the returned length, since that's no longer the
28074         case if we switch to a more concise quoting style.
28075         * tests/test-sh-quote.c (check_one): Likewise.
28076         (main): Adjust for the new more concise quoting style.
28077         Reported by Bruno Haible.
28079 2016-10-16  Jim Meyering  <meyering@fb.com>
28081         non-recursive-gnulib-prefix-hack: fix inconsequential typo
28082         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
28083         to "$1".  This macro is always invoked with $1 == lib.
28084         Spotted by Bruno Haible
28086 2016-10-16  Bruno Haible  <bruno@clisp.org>
28088         Fix a test crash.
28089         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
28090         fails.
28092 2016-10-16  Pádraig Brady  <P@draigBrady.com>
28094         test-limits-h: suppress -Woverlength-strings
28095         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
28097 2016-10-15  Bruno Haible  <bruno@clisp.org>
28099         gettime, timespec, utimens: Relicense under LGPL.
28100         * modules/gettime (License): Change to LGPL.
28101         * modules/timespec (License): Likewise.
28102         * modules/utimens (License): Likewise.
28104 2016-10-14  Bruno Haible  <bruno@clisp.org>
28105             Pádraig Brady  <P@draigBrady.com>
28107         canonicalize-lgpl: Support the case path_max > INT_MAX.
28108         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
28109         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
28111 2016-10-13  Jim Meyering  <meyering@fb.com>
28113         getprogname: IBM z/OS: avoid NULL-dereference
28114         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
28115         upon strdup failure.
28117 2016-10-12  Jim Meyering  <meyering@fb.com>
28119         test-stdint: use _GL_VERIFY rather than "verify" for some tests
28120         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
28121         and an abbreviated diagnostic rather than verify with the full one,
28122         because the full-length strings would evoke warnings from gcc with
28123         -Woverlength-strings.
28125 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28127         stdint: port SIZE_MAX to glibc s390
28128         Problem reported by Eric Blake in:
28129         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
28130         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
28131         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
28132         correct type, if possible.
28134 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
28136         getprogname: port to IBM z/OS
28137         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
28139 2016-10-11  Jim Meyering  <meyering@fb.com>
28141         maint: remove stray space after "." in AC_DEFINE comment.
28142         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
28143         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28145 2016-10-05  Jim Meyering  <meyering@fb.com>
28147         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
28148         * lib/long-options.c (parse_long_options): Add a break statement
28149         to avoid this new warning/failure:
28150         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
28151           --create-testdir --dir=/t/x --with-tests --test long-options
28152         ../../gllib/long-options.c: In function 'parse_long_options':
28153         ../../gllib/long-options.c:66:12: error: this statement may \
28154           fall through [-Werror=implicit-fallthrough]
28155                    (*usage_func) (EXIT_SUCCESS);
28156                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
28158 2016-10-05  Jim Meyering  <meyering@fb.com>
28160         utimecmp: avoid new GCC 7 warning from -Wbool-operation
28161         Testing this module would fail when using GCC 7 like this:
28162         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
28163           --dir=/tmp/x --with-tests --test utimecmp
28164         ../../gllib/utimecmp.c: In function ‘utimecmp’:
28165         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
28166           [-Werror=bool-operation]
28167                          time_t s = src_s & ~ (res == 2 * BILLION);
28168                                             ^
28169         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
28170           [-Werror=bool-operation]
28171                src_s &= ~ (res == 2 * BILLION);
28172                         ^
28173         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
28174         Instead, make it explicit that we intend to apply it to 0 or 1.
28176 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
28178         dfa: save memory for states
28179         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
28180         states if dfa has a lot of caches.
28182 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
28184         wchar, wctype-h: fix for MinGW 3.22.2
28185         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
28186         special invocation, to fix issues with MinGW 3.22.2 wchar.h
28187         when included from <string.h>.
28188         * lib/wctype.in.h [__MINGW32__]: Add special invocation
28189         convention for MinGW 3.22.2, to solve issues with their
28190         wctype.h when included from <ctype.h>.
28192 2016-10-05  Jim Meyering  <meyering@fb.com>
28194         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
28195         * lib/long-options.c (parse_long_options): Add a break statement
28196         to avoid this new warning/failure:
28197         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
28198           --create-testdir --dir=/t/x --with-tests --test long-options
28199         ../../gllib/long-options.c: In function ‘parse_long_options’:
28200         ../../gllib/long-options.c:66:12: error: this statement may \
28201           fall through [-Werror=implicit-fallthrough]
28202                    (*usage_func) (EXIT_SUCCESS);
28203                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
28205         utimecmp: avoid new GCC 7 warning from -Wbool-operation
28206         Testing this module would fail when using GCC 7 like this:
28207         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
28208           --dir=/tmp/x --with-tests --test utimecmp
28209         ../../gllib/utimecmp.c: In function ‘utimecmp’:
28210         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
28211           [-Werror=bool-operation]
28212                          time_t s = src_s & ~ (res == 2 * BILLION);
28213                                             ^
28214         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
28215           [-Werror=bool-operation]
28216                src_s &= ~ (res == 2 * BILLION);
28217                         ^
28218         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
28219         Instead, make it explicit that we intend to apply it to 0 or 1.
28221 2016-10-03  Pádraig Brady  <P@draigBrady.com>
28223         quotearg: minimize shell quoting using double quotes
28224         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
28225         quote in encountered then use double quotes (c style quoting)
28226         when possible, as it simplifies the quoting.
28227         * tests/test-quotearg-simple.c: Add test cases.
28228         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
28229         for the fact we now may write beyond the returned length.
28231 2016-10-02  Jim Meyering  <meyering@fb.com>
28233         vasnprintf.c: avoid spurious warning from GCC 7
28234         The presence of cpp directives renders this "FALLTHROUGH" comment
28235         ineffective, so does not suppress the -Wimplicit-fallthrough warning
28236         from GCC 7 built from git on 2016-10-02.
28237         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
28238         directives, so that it takes effect once again.  This is clearly
28239         not a proper change, and I will revert it once this bug is fixed:
28240         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
28242 2016-10-01  Jim Meyering  <meyering@fb.com>
28244         getprogname: correct the test for a __progname variable
28245         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
28246         and AC_LINK_IFELSE to check for a global __progname.  If found,
28247         define HAVE_VAR___PROGNAME.
28248         * lib/getprogname.c (getprogname): Reflect the new name of the
28249         feature- checked preprocessor symbol:
28250         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
28252 2016-09-28  Jim Meyering  <meyering@fb.com>
28254         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
28255         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
28256         fall-through case with a /* fallthrough */ comment.
28258         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
28259         * lib/dfa.c (dfassbuild): Mark the end of this case with a
28260         /* fallthrough */ comment.
28262         getprogname: avoid __progname vs program_invocation_short_name pitfall
28263         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
28264         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
28265         not with Fedora 24's glibc-2.23.1-10.
28266         * lib/getprogname.c (__progname): Move this declaration down...
28267         (getprogname): ... into the #elif block where used, and make it
28268         explicitly "extern".
28270         getprogname: port to OpenBSD 5.1
28271         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
28272         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
28273         * modules/getprogname (configure.ac): Move most of this code...
28274         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
28275         increment serial number, and add a test for __progname.
28276         https://bugs.gnu.org/24562
28277         Reported by Nelson H. F. Beebe.
28279 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28281         sched: port to GCC 6.2.1 on macOS Sierra
28282         Problem reported by Denis Davydov in:
28283         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
28284         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
28285         Include <sys/cdefs.h> before <sched.h>.
28286         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
28287         so that we needn’t worry about the sched.h include bug here.
28288         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
28289         and include it before <sched.h> if it exists, when
28290         checking for <sched.h>.
28292         tests/init.sh: port Alpine fix to AIX 7.1
28293         * tests/init.sh (compare_): When attempting to use diff -U3,
28294         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
28295         diff -u not outputting a space after leading '+', as the users
28296         of 'compare' should not be that picky about its output format.
28297         In the AIX 7.1 case, return with diff exit status (or with 2 if
28298         trouble), instead of some random nonzero exit status.
28299         * tests/test-init.sh (test_compare): Remove space after leading
28300         '+', so that AIX 7.1 'diff' passes the test.
28302 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28304         nl_langinfo: pacify GCC
28305         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
28306         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
28308         stdint: also set GL_GENERATE_LIMITS_H
28309         Problem reported by Jim Meyering in:
28310         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
28311         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
28313         limits-h, stdint: Don't assume extensions, fix typo
28314         * m4/limits-h.m4 (gl_LIMITS_H):
28315         * m4/stdint.m4 (gl_STDINT_H):
28316         Don't assume AC_USE_SYSTEM_EXTENSIONS.
28317         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
28318         reported by Jim Meyering in:
28319         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
28321 2016-09-21  Jim Meyering  <meyering@fb.com>
28323         getprogname: port to AIX
28324         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
28325         and strdup to obtain a short program name string.  Using code from
28326         Bruno Haible and an idea from Bastien ROUCARIÈS, in
28327         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
28328         Assaf Gordon reported that this new file would fail to compile on
28329         AIX-7.1 32bit.
28331 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28333         extensions: fix typo in comment
28334         * m4/extensions.m4: Sync from Autoconf master.
28336         stdint: support new _WIDTH macros
28337         * doc/posix-headers/stdint.texi: Document this.
28338         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
28339         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
28340         support for INTMAX_WIDTH, etc. as well as for support for just C99.
28341         * modules/stdint (Depends-on): Add limits-h.
28342         (Makefile.am): Substitute HAVE_C99_STDINT_H.
28343         * modules/stdint-tests (Depends-on): Add extensions, so that
28344         INTMAX_MAX etc. are defined.
28345         * tests/test-stdint.c: Verify the new macros.
28347         limits-h: new module
28348         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
28349         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
28350         * doc/posix-headers/limits.texi: Document new module.
28351         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
28352         * modules/limit-h-tests, tests/test-limits-h.c: New files.
28354         stdio: don't redefine __USE_MINGW_ANSI_STDIO
28355         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
28356         if it is already defined.  Apparently GNU Emacs relies on this.  See:
28357         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
28359 2016-09-15  Eric Blake  <eblake@redhat.com>
28361         sys_types: avoid glibc 2.25 warnings about major()
28362         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
28363         older autoconf.
28364         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
28365         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
28366         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
28367         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
28369         mountlist: include sysmacros.h for glibc
28370         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
28371         AC_HEADER_MAJOR.
28372         * lib/mountlist.c (includes): Use correct headers.
28374 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28376         extensions: port to more ISO C TSes
28377         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
28378         master, to add support for more recent ISO C TRs and TSes.
28380 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28382         intprops: new macro TYPE_WIDTH
28383         * lib/intprops.h (TYPE_WIDTH): New macro.
28384         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
28385         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
28386         * lib/parse-datetime.y (parse_datetime2):
28387         Use it.
28389         extensions: port to recent ISO C TRs
28390         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28391         Sync from Autoconf master, to add support for recent ISO C TRs.
28392         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
28393         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
28394         the MinGW option is not an extension.
28396 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
28398         dfa: port to Solaris 9
28399         Problems reported by Tom G. Christensen in:
28400         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
28401         * modules/dfa (Depends-on): Add isblank.
28402         * modules/dfa-tests (dfa_match_aux_LDADD):
28403         Rename from test_stat_LDADD, to fix typo.
28404         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
28406 2016-09-10  Jim Meyering  <meyering@fb.com>
28408         strverscmp: avoid link failure on OS X
28409         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
28410         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
28412 2016-08-16  Jim Meyering  <meyering@fb.com>
28414         dfa: new module, importing grep's DFA matcher
28415         Since grep's DFA matcher is now being used by two gnulib-enabled
28416         projects, grep and sed, it makes sense to version-control its
28417         sources and unit tests in one place: here.
28418         * modules/dfa: New module.
28419         * modules/dfa-tests: New file.
28420         * lib/dfa.c: New file, from grep.
28421         * lib/dfa.h: Likewise.
28422         * lib/localeinfo.c: Likewise.
28423         * lib/localeinfo.h: Likewise.
28424         * tests/dfa-match-aux.c: Likewise.
28425         * tests/dfa-invalid-char-class.sh: Likewise.
28426         * tests/dfa-match.sh: Likewise, with minor changes.
28427         * MODULES.html.sh (Misc): Add "dfa" to this list.
28429 2016-09-09  Jim Meyering  <meyering@fb.com>
28431         getprogname-tests: don't depend on assert-h
28432         * modules/getprogname-tests (Depends-on): Remove assert-h.
28433         It was not needed, and in fact would cause build failure for
28434         coreutils on some systems.  Reported by Assaf Gordon in https:
28435         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
28437 2016-09-07  Jim Meyering  <meyering@fb.com>
28439         getprogname-tests: work also when EXEEXT is nonempty
28440         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
28441         * tests/test-getprogname.c (main): Use it.
28442         Suggested by Gisle Vanem.
28444 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
28446         getprogname: fix errors in previous change
28447         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
28448         s/program_invocation_name/base/
28449         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
28451 2016-09-08  Pádraig Brady  <P@draigBrady.com>
28453         parse-datetime: restrict debug output to input string
28454         * lib/parse-datetime.y (parse_datetime2): If we parse
28455         all of the input but determine it's invalid, ensure
28456         we don't output the now invalid input pointer.
28457         This issue was seen with `date -d 'now +1'`.
28459 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
28461         flexmember: new macro FLEXALIGNOF
28462         * lib/flexmember.h: Include <stddef.h>, for offsetof.
28463         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
28464         this macro.  Update comments.
28466 2016-09-07  Jim Meyering  <meyering@fb.com>
28468         getprogname: port to systems with __argv (mingw, msvc)
28469         * lib/getprogname.c (getprogname): Include "dirname.h" and use
28470         last_component: more general than open coding it with hard-coded "/".
28471         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
28472         * modules/getprogname (Depends-on): Add dirname-lgpl.
28473         (configure.ac): Check for __argv in <stdlib.h>.
28474         * modules/getprogname-tests: New file.
28475         * tests/test-getprogname.c: New file.
28476         Suggested by Gisle Vanem in
28477         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
28479 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
28481         flexmember: port better to GCC + valgrind
28482         With a char[] flexible array member in a struct with nontrivial
28483         alignment, GCC-generated code can access past the end of the
28484         array, because GCC assumes there are padding bytes to get the
28485         struct aligned.  So the common idiom of malloc (offsetof (struct
28486         s, m), n) does not properly allocate an n-byte trailing member, as
28487         malloc’s argument should be the next multiple of alignof (struct s).
28488         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
28489         Although C11 apparently permits this GCC optimization (i.e., there
28490         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
28491         See the thread containing:
28492         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
28493         * lib/flexmember.h: New file.
28494         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
28495         * lib/localename.c, lib/time_rz.c:
28496         Include flexmember.h.
28497         * lib/fnmatch_loop.c (struct patternlist):
28498         * lib/localename.c (struct hash_node):
28499         Use FLEXIBLE_ARRAY_MEMBER.
28500         * lib/fnmatch_loop.c (EXT):
28501         * lib/fts.c (fts_alloc):
28502         * lib/glob.c (glob_in_dir):
28503         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
28504         * lib/localename.c (gl_lock_define_initialized):
28505         * lib/time_rz.c (tzalloc):
28506         Use FLEXSIZEOF instead of offsetof.
28507         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28508         Check that the size of the struct can be taken.
28509         * modules/flexmember (Files): Add lib/flexmember.h.
28510         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
28511         Add flexmember.
28513 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28515         getprogname: port to Solaris 10
28516         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
28517         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
28518         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
28520         stdalign: correct mistake in alignof doc
28521         Problem reported by Joseph Myers in:
28522         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
28523         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
28524         alignof(S) where S is a structure containing a flexible array
28525         member.  The Gnulib substitute does not support this, but C11 does.
28527 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28529         main.mk: remove sc_program_name, since there is no more need to
28530         use set_program_name in tools (getprogname is enough for most
28531         of the cases).
28532         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
28533         * top/maint.mk (sc_program_name): Remove.
28535 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28537         Port tests away from progname, since modules that need the
28538         program name already depend on getprogname.
28539         * modules/acl-tests (Depends-on): Remove progname.
28540         * modules/argmatch (Depends-on): Likewise.
28541         * modules/argmatch-tests (Depends-on): Likewise.
28542         * modules/argp-tests (Depends-on): Likewise.
28543         * modules/argp-version-etc-tests (Depends-on): Likewise.
28544         * modules/array-list-tests (Depends-on): Likewise.
28545         * modules/array-oset-tests (Depends-on): Likewise.
28546         * modules/avltree-list-tests (Depends-on): Likewise.
28547         * modules/avltree-oset-tests (Depends-on): Likewise.
28548         * modules/avltreehash-list-tests (Depends-on): Likewise.
28549         * modules/carray-list-tests (Depends-on): Likewise.
28550         * modules/copy-file-tests (Depends-on): Likewise.
28551         * modules/exclude-tests (Depends-on): Likewise.
28552         * modules/fchownat-tests (Depends-on): Likewise.
28553         * modules/fdopendir-tests (Depends-on): Likewise.
28554         * modules/filenamecat-tests (Depends-on): Likewise.
28555         * modules/fstatat-tests (Depends-on): Likewise.
28556         * modules/fstrcmp-tests (Depends-on): Likewise.
28557         * modules/linked-list-tests (Depends-on): Likewise.
28558         * modules/linkedhash-list-tests (Depends-on): Likewise.
28559         * modules/mkdirat-tests (Depends-on): Likewise.
28560         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
28561         * modules/nonblocking-socket-tests (Depends-on): Likewise.
28562         * modules/obstack-printf-tests (Depends-on): Likewise.
28563         * modules/openat-tests (Depends-on): Likewise.
28564         * modules/parse-datetime-tests (Depends-on): Likewise.
28565         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
28566         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
28567         * modules/quotearg-simple-tests (Depends-on): Likewise.
28568         * modules/quotearg-tests (Depends-on): Likewise.
28569         * modules/rbtree-list-tests (Depends-on): Likewise.
28570         * modules/rbtree-oset-tests (Depends-on): Likewise.
28571         * modules/rbtreehash-list-tests (Depends-on): Likewise.
28572         * modules/spawn-pipe-tests (Depends-on): Likewise.
28573         * modules/system-quote-tests (Depends-on): Likewise.
28574         * modules/uniname/uniname-tests (Depends-on): Likewise.
28575         * modules/uninorm/nfc-tests (Depends-on): Likewise.
28576         * modules/uninorm/nfd-tests (Depends-on): Likewise.
28577         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
28578         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
28579         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
28580         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
28581         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
28582         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
28583         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
28584         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
28585         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
28586         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
28587         * modules/unlinkat-tests (Depends-on): Likewise.
28588         * modules/version-etc-tests (Depends-on): Likewise.
28589         * modules/xalloc-die-tests (Depends-on): Likewise.
28590         * modules/xmemdup0-tests (Depends-on): Likewise.
28591         * modules/xprintf-posix-tests (Depends-on): Likewise.
28592         * modules/xvasprintf-tests (Depends-on): Likewise.
28593         * tests/test-argmatch.c: Do not include progname.h.
28594         (main) Stop calling set_program_name.
28595         * tests/test-argp-version-etc.c: Likewise.
28596         * tests/test-argp.c: Likewise.
28597         * tests/test-argv-iter.c: Likewise.
28598         * tests/test-array_list.c: Likewise.
28599         * tests/test-array_oset.c: Likewise.
28600         * tests/test-avltree_list.c: Likewise.
28601         * tests/test-avltree_oset.c: Likewise.
28602         * tests/test-avltreehash_list.c: Likewise.
28603         * tests/test-carray_list.c: Likewise.
28604         * tests/test-copy-acl.c: Likewise.
28605         * tests/test-copy-file.c: Likewise.
28606         * tests/test-exclude.c: Likewise.
28607         * tests/test-fchownat.c: Likewise.
28608         * tests/test-fdopendir.c: Likewise.
28609         * tests/test-filenamecat.c: Likewise.
28610         * tests/test-fstatat.c: Likewise.
28611         * tests/test-fstrcmp.c: Likewise.
28612         * tests/test-linked_list.c: Likewise.
28613         * tests/test-linkedhash_list.c: Likewise.
28614         * tests/test-mkdirat.c: Likewise.
28615         * tests/test-nonblocking-pipe-main.c: Likewise.
28616         * tests/test-nonblocking-socket-main.c: Likewise.
28617         * tests/test-obstack-printf.c: Likewise.
28618         * tests/test-openat.c: Likewise.
28619         * tests/test-parse-datetime.c: Likewise.
28620         * tests/test-pipe-filter-gi1.c: Likewise.
28621         * tests/test-pipe-filter-gi2-main.c: Likewise.
28622         * tests/test-pipe-filter-ii1.c: Likewise.
28623         * tests/test-pipe-filter-ii2-main.c: Likewise.
28624         * tests/test-quotearg-simple.c: Likewise.
28625         * tests/test-quotearg.c: Likewise.
28626         * tests/test-rbtree_list.c: Likewise.
28627         * tests/test-rbtree_oset.c: Likewise.
28628         * tests/test-rbtreehash_list.c: Likewise.
28629         * tests/test-sameacls.c: Likewise.
28630         * tests/test-set-mode-acl.c: Likewise.
28631         * tests/test-spawn-pipe-main.c: Likewise.
28632         * tests/test-system-quote-main.c: Likewise.
28633         * tests/test-unlinkat.c: Likewise.
28634         * tests/test-version-etc.c: Likewise.
28635         * tests/test-xalloc-die.c: Likewise.
28636         * tests/test-xfprintf-posix.c: Likewise.
28637         * tests/test-xmemdup0.c: Likewise.
28638         * tests/test-xprintf-posix.c: Likewise.
28639         * tests/test-xvasprintf.c: Likewise.
28640         * tests/uniname/test-uninames.c: Likewise.
28641         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28642         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28643         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28644         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28645         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28646         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28647         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28648         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28649         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28650         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28651         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28652         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28653         * tests/test-c-stack.c: (program_name): Do not define.
28654         (main): Do not set program_name.
28655         * tests/test-closein.c: Likewise.
28656         * tests/test-xstrtol.c: Likewise.
28657         * tests/test-yesno.c: Likewise.
28659 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28661         Port modules to use getprogname explicitly, instead of requiring
28662         progname to be used (or program_name to be provided).
28663         * lib/argmatch.c: Do not include progname.h.
28664         [TEST] (program_name): Do not define.
28665         [TEST] (main): Call getprogname instead of using program_name.
28666         * lib/c-stack.c: Do not include progname.h.
28667         (program_name): Do not define.
28668         (die): Call getprogname instead of using program_name.
28669         * lib/chdir-long.c: Do not include progname.h.
28670         [TEST_CHDIR] (main): Do not set program_name.
28671         * lib/error.c [!_LIBC]: Include progname.h.
28672         [!_LIBC] (program_name): Define using getprogname.
28673         * lib/euidaccess.c: Do not include progname.h.
28674         [TEST] (main): Do not set program_name.
28675         * lib/git-merge-changelog.c: Include getprogname.h instead of
28676         progname.h.
28677         (usage): Call getprogname instead of using program_name.
28678         (main): Likewise.  Stop calling set_program_name.
28679         * lib/group-member.c: Do not include progname.h.
28680         [TEST] (main): Do not set program_name.
28681         * modules/argmatch (Depends-on): Add getprogname.
28682         * modules/c-stack (Depends-on): Likewise.
28683         * modules/error (Depends-on): Likewise.
28684         * modules/git-merge-changelog (Depends-on): Likewise.
28685         Also remove progname.
28687 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
28689         * NEWS: Document the deprecation of the 'progname' module.
28691 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28693         getprogname: new module
28694         This provides a LGPL module for getting the name of the current
28695         program, using the same API found on *BSD systems.
28696         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
28697         * modules/getprogname: New files.
28698         * MODULES.html.sh (Misc): Add getprogname.
28700 2016-09-02  Jim Meyering  <meyering@fb.com>
28702         manywarnings: add -fno-common
28703         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
28704         to the list.  Quoting the manual, "Compiling with -fno-common is
28705         useful on targets for which it provides better performance, or if
28706         you wish to verify that the program will work on other systems that
28707         always treat uninitialized variable declarations this way [putting
28708         it in the data section]."  If diffutils had been using this sooner,
28709         it would have prevented this duplicate declaration issue:
28710         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
28712 2016-08-31  Simon Josefsson  <simon@josefsson.org>
28714         parse-datetime: Fix typo.
28715         * lib/parse-datetime.y (parse_datetime2): Fix typo.
28717 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28719         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
28720         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
28721         GCC 5 and 6 that have __builtin_sub_overflow but not
28722         __builtin_sub_overflow_p.  With the recent changes, these
28723         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
28724         implementation than with INT_SUBTRACT_OVERFLOW implementation,
28725         since the former needs just one runtime comparison whereas the
28726         latter needs two.
28728         strverscmp: sync with glibc
28729         Although this doesn't exactly synchronize with glibc
28730         byte-for-byte, it makes the code behave the same as glibc.
28731         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
28732         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
28733         difference shouldn't matter in practical use.  All uses changed
28734         back to isdigit.
28735         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
28736         (next_state): Now unsigned char array; redo elements.
28737         (result_type): Now signed char array; redo elements.
28738         (__strverscmp): Fix glibc bug 9913 by using new states.
28739         * tests/test-strverscmp.c (main): Test glibc bug 9913.
28741 2016-08-29  Jim Meyering  <meyering@fb.com>
28743         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
28744         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
28745         similarly to how it was done to intprops.h.
28747 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28749         intprops.h: port recent changes to GCC 6.2.0
28750         * lib/intprops.h (__has_builtin): Move earlier.
28751         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
28752         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
28753         the last argument can be null.  All uses changed.
28754         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
28755         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28756         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
28757         and it's not clear which GCC versions it works for.
28758         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
28759         its definiens.
28761         intprops.h: use __typeof__ with GCC 7
28762         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
28763         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
28764         This avoids computing the expression's value (which might overflow!).
28766 2016-08-29  Jim Meyering  <meyering@fb.com>
28768         intprops.h, xalloc-oversized.h: work with gcc 7
28769         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
28770         __builtin_mul_overflow each accept a NULL pointer as the third
28771         argument.  However in gcc 7, that is no longer accepted.
28772         Instead, one must use the "_p"-suffixed names, with which, the
28773         third parameter is no longer a pointer.
28774         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
28775         the definition: not true for gcc 7 and subsequent.
28776         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
28777         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28778         Provide new definitions for gcc 7 and subsequent.
28779         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
28780         that works with gcc-7.
28782         intprops.h: fix missing-backslash problems
28783         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
28784         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
28786 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28788         intprops: fix paren typo on old platforms
28789         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
28790         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
28791         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
28792         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
28793         && !defined LLONG_MAX]:
28794         Remove stray paren.
28796         intprops: port to OpenVMS
28797         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
28798         * doc/posix-headers/limits.texi: Document the problem.
28799         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
28800         Define if not already defined.
28802 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
28804         parse-datetime: improve debug implementation
28805         Follow-up to commit 12ad79069 ("add optional debug printing").
28806         Improve parse-datetime's debug implementation: remove macros,
28807         replace global debug flag variable with a function parameter,
28808         use nstrftime for formatting.
28809         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
28810         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
28811         (parse_datetime2): New function, accepts 'flags' parameter, supporting
28812         debug flag. Existing interface 'parse_datetime' left unmodified.
28813         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
28814         (struct parser_control): add 'parse_datetime_debug' member variable.
28815         (parse_datetime): Call new function 'parse_datetime2' without debug.
28816         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
28817         pc.parse_datetime_debug variable as needed.
28818         (to_year): Accept new flags parameter, instead of using global variable.
28819         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
28820         use struct 'debug' variable instead of global variable.
28821         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
28822         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
28823         correspnding functions directly instead of using macros.
28824         * modules/parse-datetime: Add gnulib's strftime module.
28826 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
28828         c-strcase-tests: port to EBCDIC
28829         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
28830         which assume ASCII encoding semantics to run only in ASCII
28831         mode, as they fail in EBCDIC.
28833         sigpipe-tests: fix typo
28834         * tests/test-sigpipe.sh: C, not B.
28836 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28838         canonicalize-lgpl: fix errno after malloca fails
28839         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
28840         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
28841         * lib/canonicalize-lgpl.c (__realpath):
28842         Don't assume malloca sets errno on failure.
28844 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28846         strtod: port errno handling to z/OS
28847         * lib/strtod.c (strtod): Save and restore errno more reliably.
28849 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28851         strtod: port to z/OS
28852         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28853         implementation.
28855 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28857         strtod: port to z/OS
28858         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28859         implementation.
28861         regex, string: rename to avoid '__string'
28862         * lib/regex.h, lib/string.in.h: Do not use the identifier
28863         '__string', as it is effectively reserved by string.h on z/OS.
28865         c-strcase-tests, wcwidth-tests: depend on c-ctype
28866         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
28867         Add c-ctype.
28869 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28871         thread: port to z/OS
28872         * lib/glthread/thread.c, lib/glthread/thread.h:
28873         Rudimentary gl_thread support for z/OS.
28875         maint: port tests to z/OS errno behavior
28876         * tests/test-nonblocking-reader.h:
28877         * tests/test-nonblocking-writer.h:
28878         Accommodate z/OS errno code preferences. (I believe this should
28879         still be within spec; IBM is good at following the letter if not
28880         the spirit of such things.)
28882         maint: preprocessor changes to support z/OS
28883         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
28884         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
28885         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
28886         * tests/test-nonblocking-pipe.h:
28888         fclose, strstr-simple, wchar: port to z/OS
28889         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
28890         Changes to the Autoconf M4 code to support z/OS.  Note that
28891         fclose() is broken in a different way on z/OS than it is on other
28892         systems, thus the special-case in fclose.m4.
28894         iconv_open-utf-tests, iconv-tests: port to EBCDIC
28895         * tests/test-iconv-utf.c, tests/test-iconv.c:
28896         Added appropriately conditional #pragmas so that the test strings
28897         in test-iconv-utf.c are correctly interpreted in ASCII instead of
28898         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
28899         addressed in a more portable way by simply rewriting all the ASCII
28900         literal characters as octal escapes, but then you would lose the
28901         partial readability that the strings have now. Also, iconv_open()
28902         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
28904         c-strcase-tests, wcwidth-tests: port to EBCDIC
28905         * tests/test-c-strcasecmp.c: Include c-ctype.h.
28906         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
28907         * tests/test-wcwidth.c: Likewise.
28909 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28911         stdbool: don't require _Bool for C++
28912         Problem reported by David Seifert in:
28913         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
28914         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
28915         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
28916         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
28917         stricter about checking that bool and _Bool are compatible in C.
28919 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28921         getdelim: remove dependency on realloc-posix
28922         * lib/canonicalize-lgpl.c (alloc_failed)
28923         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
28924         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
28925         Use __set_errno where needed, for consistency.
28926         * lib/getdelim.c (alloc_failed): New function.
28927         (getdelim): Use it.
28929 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
28931         parse-datetime: add optional debug printing
28932         Print parsing information, warnings, and errors to stderr.
28933         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
28934         * lib/parse-datetime.y:
28935         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
28936         (PROGRESS*): Same as DEBUG, for progress reporting.
28937         (dbg_printf): Print message to stderr, with 'date' prefix.
28938         (struct parser_control): Add 'debug_*_seen' variables.
28939         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
28940         (debug_print_current_time, debug_print_relateive_time): Prints the
28941         current/relative date/time value of parser_control.
28942         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
28943         (to_year): Warn about 2-digit year parsing.
28944         (yylex):   Warn about unrecognized words.
28945         (get_effective_timezone): Returns current timezone in minutes.
28946         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
28947         clearly and unambigiously as possible.
28948         (debug_mktime_not_ok): Print detailed information about failed
28949         date/time values.
28950         (parse_datetime): Add DEBUG messages for failures, warnings. Add
28951         PROGRESS messages for status messages.
28952         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
28954 2016-08-06  Jim Meyering  <meyering@fb.com>
28956         tests/init.sh: exclude dash with bad "local" semantics
28957         * tests/init.sh (gl_shell_test_script_): Add a function to
28958         eliminate a shell like "dash" (unlike bash, zsh) that has
28959         surprising/risky "local var='...'" semantics.  Inspired by
28960         the problem and discussion in https://bugs.gnu.org/24116#11.
28962 2016-08-02  Ján Tomko  <jtomko@redhat.com>
28964         maint.mk: expand the prohibit_doubled_word regex
28965         This check has a static list of words that are checked for
28966         repetitions.  Expand it before running the perl script to
28967         avoid using expensive captures.  This decreases the cost
28968         for libvirt from 1.66s to 0.66s.
28969         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
28970         (sc_prohibit_doubled_word): Use it.
28972 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28974         useless-if-before-free: skip non-matching lines early
28975         * build-aux/useless-if-before-free: First match each line with the
28976         simple/quick /\bif\b/ and reject if there is no match. This often
28977         saves the cost of the much more involved regular expression.
28978         For libvirt, this decreases the cost from 1.44s to 1.02s.
28980 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28982         maint.mk: speed up sc_po_check
28983         sc_po_check would skip files based on their names, or on the
28984         existence of files with derived names. Rewrite it to use perl
28985         instead of shell to make the check faster.
28986         * top/maint.mk (perl_translatable_files_list_): Define.
28987         (sc_po_check): Use it.
28989 2016-07-30  Ján Tomko  <jtomko@redhat.com>
28991         maint.mk: speed up require_config_h_first
28992         Instead of spawning three processes per file,
28993         rewrite the check in perl and run it once for all the files.
28994         * top/maint.mk (perl_config_h_first_): Define.
28995         (sc_require_config_h_first): Use it in place of shell code.
28997 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28999         maint.mk: speed up sc_po_check
29000         sc_po_check would skip files based on their names, or on the
29001         existence of files with derived names. Rewrite it to use perl
29002         instead of shell to make the check faster.
29003         * top/maint.mk (perl_translatable_files_list_): Define.
29004         (sc_po_check): Use it.
29006 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29008         obstack: pacify GCC 6 with -Wnull-dereference
29009         Problem reported by Assaf Gordon in:
29010         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
29011         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
29012         Declare with __attribute_noreturn__.
29013         * lib/obstack.h (__attribute_noreturn__): New macro.
29015 2016-07-13  Eric Blake  <eblake@redhat.com>
29017         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
29018         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
29019         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
29021 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
29023         doc: mention glibc SSIZE_MAX buglet
29024         * doc/posix-headers/limits.texi (limits.h): Document the bug.
29026 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
29028         printf-posix: Fix mingw build
29029         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
29030         expression for detecting C symbol prefixes but forgot to qoute square
29031         brackets in the command line arguments for grep.  That way when
29032         building with mingw the condition was false although it ought to be
29033         true instead.  In particular scenarios this led to the following
29034         compile error:
29036             Cannot export rpl_printf: symbol not found
29037             Cannot export rpl_scanf: symbol not found
29038             collect2: error: ld returned 1 exit status
29040         Fix this by properly quoting square brackets.
29042 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29044         mktime: call tzset as per POSIX
29045         Problem reported by Ludovic Courtès in:
29046         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
29047         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
29048         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
29050 2016-06-26  Pádraig Brady  <P@draigBrady.com>
29052         fts: handle readdir() errors
29053         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
29054         but also upon error when it will also set errno.  Therefore
29055         flag the error case from readdir().  We treat the case where
29056         no items are read the same as if the dir can't be accessed,
29057         i.e. by setting fts_errno to FTS_DNR.
29059 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
29061         intprops: port better to GCC 7
29062         GCC 7 __builtin_add_overflow supports a new usage form, where the
29063         last argument is a null pointer, and which merely returns 1 if an
29064         overflow would occur.  This is a constant expression if all
29065         arguments are constants, and should generate faster code when code
29066         needs to be generated.
29067         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
29068         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
29069         Use builtin operations if available.
29070         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
29071         operations are available, as it's almost surely faster.
29073 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29075         intprops-test: port to GCC 6
29076         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
29077         since the bug is not fixed in GCC 6.1.
29079 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29081         xalloc-oversized: port to GCC 7; fewer warnings
29082         GCC 7 will have a better way to deal with integer overflow.
29083         Plus, fix a warnings problem reported by Tim Ruehsen in:
29084         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
29085         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
29086         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
29087         For GCC 5, use __xalloc_oversized if both args are constants,
29088         or if pedantic.
29090 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
29092         regex: port to Sun C
29093         Reported by Daiki Ueno.
29094         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
29095         __restrict, in prototype.  This fixes a problem I introduced in
29096         the 2016-02-19 merge from glibc.
29098 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29100         stdbool: Restore __bool_true_false_are_defined check
29101         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
29102         __bool_true_false_are_defined is still defined, even with C++11.
29104 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
29106         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
29107         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
29109 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29111         Use GCC_LINT, not lint
29112         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
29113         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
29114         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
29115         Document problem with lint and _Noreturn.
29116         * lib/diffseq.h (IF_LINT, IF_LINT2):
29117         * lib/fts.c (sccsid):
29118         * lib/getndelim2.c (IF_LINT):
29119         * lib/gl_anylinked_list2.h (gl_linked_iterator)
29120         (gl_linked_iterator_from_to):
29121         * lib/gl_anytree_list2.h (gl_tree_iterator)
29122         (gl_tree_iterator_from_to):
29123         * lib/gl_anytree_oset.h (gl_tree_iterator):
29124         * lib/gl_array_list.c (gl_array_iterator)
29125         (gl_array_iterator_from_to):
29126         * lib/gl_array_oset.c (gl_array_iterator):
29127         * lib/gl_carray_list.c (gl_carray_iterator)
29128         (gl_carray_iterator_from_to):
29129         * lib/idcache.c:
29130         * lib/inet_ntop.c (IF_LINT):
29131         * lib/regcomp.c (build_charclass_op, create_tree):
29132         * lib/regex_internal.c (re_acquire_state)
29133         (re_acquire_state_context):
29134         * lib/trigl.c (rcsid):
29135         * lib/trim.c (IF_LINT):
29136         * lib/vasnprintf.c (IF_LINT):
29137         * lib/verify.h (assume):
29138         Treat GCC_LINT like lint.
29140 2016-05-29  Bruno Haible  <bruno@clisp.org>
29142         secure_getenv: Port to many more platforms.
29143         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
29144         functions.
29145         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
29146         for non-BSD Unix platforms and for native Windows.
29147         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
29148         Prompted by a request from Nikos Mavrogiannopoulos.
29150 2016-05-27  Eric Blake  <eblake@redhat.com>
29152         canonicalize: Fix broken probe for realpath.
29153         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
29154         in logic introduced in 54615b95.
29156 2016-05-26  Eric Blake  <eblake@redhat.com>
29158         unsetenv: relax to LGPLv2+
29159         * modules/unsetenv (License): Match setenv license.
29161 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
29163         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
29164         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
29165         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
29166         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
29167         (commonarg, dirargs, dirs, infoarg, generate_ascii)
29168         (generate_html, generate_info, generate_tex, outdir)
29169         (source_extra, split, srcfile, texarg): Move above 'version'.
29170         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
29172 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29174         manywarnings: update for GCC 6.1
29175         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
29176         Add GCC 6.1 options that apply to C.
29177         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
29178         do not apply to C, are obsolescent, etc.
29180 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
29182         glob: size_t overflow checks
29183         * lib/glob.c (__has_builtin): New macro.
29184         (size_add_wrapv, glob_use_alloca): New static functions.
29185         (glob, glob_in_dir): Check for size_t overflow in several places,
29186         and fix some size_t checks that were not quite right.
29188         glob: don't assume INT_MAX < SIZE_MAX
29189         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
29190         latter is not portable to (probably theoretical) hosts where
29191         SIZE_MAX <= INT_MAX.
29193 2016-05-09  Bruno Haible  <bruno@clisp.org>
29195         Fix undefined behaviour in gettext.h.
29196         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
29197         pointer's value after the storage it points to has been freed.
29198         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
29199         Spotted by Coverity.
29201 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
29203         git-version-gen: avoid undefined shift
29204         Problem reported by Mosè Giordano in:
29205         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
29206         * build-aux/git-version-gen: Avoid undefined behavior if invoked
29207         with --prefix or --fallback but without a later argument.  While
29208         we're at it, omit unnecessary quotes.
29210 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
29212         glob: merge glibc changes into lib/glob.c
29213         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
29214         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
29215         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
29216           struct dirent [BZ #19779]
29217         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
29218           callback gl_readdir
29219         2015-10-20 Convert miscellaneous function definitions to prototype style
29220         2015-10-20 Convert 113 more function definitions to prototype style
29221           (files with assertions)
29222         2015-06-12 Fix getlogin_r namespace (bug 18527).
29223         2014-02-10 Use glibc_likely instead __builtin_expect.
29224         2013-10-20 When glob pattern contains a trailing slash match only
29225           directories. Fixes bug 10278.
29226         2013-09-04 glob: silence -Wattribute warnings
29227         2013-06-07 Avoid use of "register" as optimization hint.
29228         2012-09-25 Use size_t instead of int for internal variables in glob
29229           (bug 14621)
29230         2011-07-20 Check for overflows in expressions
29231         2011-05-28 Remove unused variable
29232         2011-05-22 Add a few more alloca size checks
29233         2010-03-27 Whitespace fixes
29234         2010-03-27 Fix one more issue with the glob patch
29235         2010-03-24 Fix glob with empty pattern
29236         2008-05-27 Remove useless more "if" tests before "free"
29237         * modules/glob (Depends-on): Add stdint.
29239 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
29241         mktime: port to stricter signed overflow checking
29242         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
29243         (long_int): Require width for INT_MAX * 3 * (seconds per year),
29244         instead of merely for INT_MAX * 2.  In practice platforms that
29245         do the latter also do the former.
29246         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
29247         (shr): New static function, replacing SHR.  All uses changed.
29248         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
29249         and TIME_T_MAX.  All uses changed.
29250         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
29251         Use long_int, not time_t.
29252         (long_int_avg): New static function, replacing time_t_avg.
29253         All uses changed.  Round toward positive infinity, as that
29254         generates slightly better code.
29255         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
29256         by INT_ADD_WRAPV.
29257         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
29258         (convert_time): New static function.
29259         (ranged_convert): Use it
29260         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
29261         Use simpler test for loop exit.
29262         (__mktime_internal): Store negative of guessed offset, to simplify
29263         overflow checking.  Remove no-longer-needed test for small time_t
29264         overflows.
29266         mktime: speed up DEBUG_MKTIME benchmarks
29267         Call tzset just once, at the start, rather than for every test
29268         case.  This lets us measure the CPU cost of mktime as opposed to
29269         that of tzset.  This is relevant when TZ is not set and glibc is
29270         being used.  This speeds up tests by a factor of 40 on my Fedora
29271         23 x86-64 platform.
29272         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
29273         to call tzset and as a sanity check.  Later on, use localtime_r
29274         instead of localtime.
29276         mktime: resurrect DEBUG_MKTIME testing
29277         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
29278         Include <string.h>, for strcmp.
29280         mktime: simplify DEBUG_MKTIME
29281         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
29282         Simplify later usage accordingly.
29284         Port mktime_internal offset to unsigned time_t
29285         This avoids some assumptions about wraparound arithmetic on
29286         signed integer overflow.
29287         * lib/mktime-internal.h (mktime_offset_t): New type.
29288         (mktime_internal): Use it in decl.
29289         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
29291         * lib/mktime.c (__mktime_internal, localtime_offset):
29292         * lib/timegm.c (timegm): Use it.
29293         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
29294         (gl_FUNC_MKTIME): Require it.
29296 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29298         xstrtol: prohibit monstrosities like "1bB"
29299         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
29300         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
29301         "B" only if the first suffix needs a base.
29302         * tests/test-xstrtol.sh: Test this.
29304 2016-04-21  Pádraig Brady  <P@draigBrady.com>
29306         xstrtod: reinstate setting of *result upon ERANGE
29307         * lib/xstrtod.c (XSTRTOD): The user may decide to use
29308         the returned limits upon ERANGE, so allow and document that.
29310 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
29312         xstrtod: modify *result only if no errors
29313         * lib/xstrtod.c (XSTRTOD).
29315 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
29317         btowc: document problems in C locale
29318         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
29319         with mbrtowc.  See: http://bugs.gnu.org/23269#32
29321 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
29323         mktime: improve integer overflow checking
29324         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
29325         (WRAPV): Remove; no longer needed.
29326         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
29327         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
29328         Remove.  Use intprops.h defns instead.
29329         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
29330         Use bool for Boolean, for clarity.
29331         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
29332         detect integer overflow.
29333         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
29335         intprops: check two's complement assumption
29336         Suggested by Eric Blake in:
29337         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
29338         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
29339         short, int, long, and (if available) long long are two's complement.
29340         * modules/intprops (Depends-on): Add 'verify'.
29342         intprops, mktime, strtol: assume two's complement
29343         These macros were not portable to every conforming C11 ones'
29344         complement platform.  It's not worth the hassle of porting to some
29345         platforms that use ones' complement or signed magnitude, as such
29346         platforms are almost purely theoretical nowadays and porting even
29347         to some of them makes the code harder to review for little
29348         practical benefit.  Problem reported by Florian Weimer in:
29349         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
29350         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
29351         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
29352         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
29353         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
29354         (TYPE_SIGNED_MAGNITUDE):
29355         Remove.  All uses rewritten to assume two's complement, which is
29356         all we can reasonably test nowadays anyway.
29357         * top/maint.mk (_intprops_names): Remove the removed macros.
29359 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
29361         stdint: port to strict C11 left shift
29362         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
29363         Pacify clang -Wshift-negative-value, which should be an issue only
29364         on clang setups where stdint.h does not conform to C11 or to C++11.
29365         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
29367 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29369         mbrtowc: work around glibc bug#19932
29370         Fix mbrtowc so that it never returns -1 in the C locale,
29371         as this conflicts with a future version of POSIX
29372         http://austingroupbugs.net/view.php?id=663#c2738
29373         and causes problems with GNU grep: http://bugs.gnu.org/23234
29374         See glibc bug 19932:
29375         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
29376         * doc/posix-functions/mbrlen.texi (mbrlen):
29377         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29378         Document the glibc bug.
29379         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
29380         Include hard-locale.h, locale.h.
29381         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
29382         if the bug is possible.
29383         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
29384         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
29385         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
29386         * modules/mbrtowc (Depends-on): Add hard-locale.
29387         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
29388         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
29389         * tests/test-mbrtowc5.sh: New file.
29391 2016-04-03  Pedro Alves  <palves@redhat.com>
29393         stdint: detect good enough pre-C++11 stdint.h in C++ mode
29394         When gnulib is configured in C++ mode for a system with a working C99
29395         implementation of stdint.h that predates C++11, gnulib ends up
29396         substituting stdint.h anyway.  This works on most targets, but on e.g.,
29397         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
29398         MinGW is LLP64.  Instead of trying to detect the right types, detect
29399         good-enough-pre-C++11 stdint.h and in such case define
29400         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
29401         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
29402         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
29403         conforms to C99.  If it does, check whether it hides symbols
29404         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
29405         does, define those macros in config.h.
29407 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29409         argp: merge changes from glibc
29410         Among other things, this should fix problems found by a Coverity
29411         scan and reported by Andrei Borzenkov:
29412         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
29413         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
29414         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
29415         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
29416         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
29417         * lib/argp.h:
29418         Merge changes from glibc.
29419         * tests/test-argp-2.sh: Adjust to match new behavior.
29421 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
29423         stddef: support configuring with g++
29424         Problem reported by Ángel González in:
29425         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
29426         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
29427         Do not define if _GCC_MAX_ALIGN_T is defined.
29429 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29431         test-framework-sh: minor cleanups
29432         * tests/init.sh (testdir_prefix_): Output a trailing newline,
29433         since strictly speaking POSIX requires this.
29434         (setup_): Do not use the variable 'fail', as that makes the
29435         trace output harder to read ('fail' is typically used by
29436         tests to mean the test failed).  Treat // portably.
29437         Check that new directory is not merely a sibling of the tmp dir.
29438         Avoid unnecessary invocation of tr.
29440         test-framework-sh: revert port to NetBSD 7.0
29441         It was a false alarm; I misinterpreted Assaf Gordon's report.
29442         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
29443         Restore.
29444         (test_dir_): Adjust to mktempd_ change.
29445         (mktempd_): Restore 2nd arg.  Use -t again.
29446         (base_template_, template_, nx_): Resurrect old code.
29448         Port better to Alpine Linux
29449         Its diff implementation does not support -c, but does support -U3.
29450         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
29451         * tests/init.sh (diff_opt_): New var.
29452         (compare_): Prefer diff -U3 to diff -c to plain diff.
29454 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29456         test-framework-sh: port to NetBSD 7.0
29457         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
29458         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
29459         Remove.  All uses removed.
29460         (test_dir_): Adjust to mktempd_ change.
29461         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
29462         (base_template_, template_, nx_): Simplify by hardcoding.
29464 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29466         gitlog-to-changelog: suppress ignored chatter
29467         * build-aux/gitlog-to-changelog: Do not warn about skipping
29468         an SHA if it would have been ignored anyway.
29470 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
29472         setlocale: add "sv" to Windows language table
29473         * lib/setlocale.c (language_table) [W32]: Add "sv".
29474         Reported in <https://savannah.gnu.org/bugs/?44588>.
29476 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
29478         sys_select: port to new Cygwin
29479         Problem reported by Ken Brown in:
29480         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
29481         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
29482         diagnostics.
29484 2016-03-17  Jim Meyering  <meyering@fb.com>
29486         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
29487         * tests/test-userspec.c (main): Remove unnecessary braces and fix
29488         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
29489           test-userspec.c:176:9: error: statement is indented as if it were \
29490             guarded by... [-Werror=misleading-indentation]
29491                    {
29492                    ^
29493           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
29494                  if (!diag && !T[i].result)
29495                  ^~
29497 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29499         time_rz: port to clang -Wunused-const-variable
29500         * lib/time_rz.c (TZ): Remove.  All uses removed.
29502         std-gnu11: improve clang support
29503         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
29504         2016-03-15 Also try clang
29505         2016-03-15 Port C11 and C++11 testing to clang
29507         select: port more to Intel 2016.1.150 compiler
29508         Problem reported by Balázs Hajgató in:
29509         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
29510         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
29512 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
29514         select: try to port to 2016.1.150 compiler
29515         Problem reported by Balázs Hajgató in:
29516         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
29517         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
29518         POSIX specifies 'restrict'.
29520 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
29522         localename-tests: memory allocation fixes
29523         * tests/test-localename.c (test_locale_name)
29524         (test_locale_name_thread): Don't call freelocale on a locale
29525         that was the base of a successful newlocale, as that
29526         results in a double free.  Problem reported by Assaf Gordon.
29527         (test_locale_name_thread): Free saved names after use, to pacify
29528         gcc -fsanitize=address.
29530 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29532         intprops: make .h file license match module
29533         * lib/intprops.h: Change the license wording to match glibc format.
29534         This is what is in modules/intprops anyway.  See:
29535         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
29537 2016-03-08  Eric Blake  <eblake@redhat.com>
29539         acl: fix missing return on Cygwin
29540         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
29541         fall off end of function. Fixes http://bugs.gnu.org/22949
29543 2016-03-05  Bruno Haible  <bruno@clisp.org>
29545         extern-inline: port to PGI CC
29546         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
29547         keyword 'inline'.
29548         Reported by Adam James Stewart in:
29549         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
29551 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29553         signbit: port back to pre-C++11 GCC
29554         * lib/math.in.h (signbit): Do previous change only if
29555         __cplusplus < 201103.  See Jonathan Wakely in:
29556         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
29558 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
29560         mountlist: recognize autofs-mounted remote file systems, too
29561         Originally reported at: https://bugzilla.redhat.com/1309247
29562         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
29563         "-hosts" because it is used by autofs to mount remote file systems.
29565 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
29567         signbit: port to C++ with GCC 6
29568         * lib/math.in.h (signbit) [__cplusplus]:
29569         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
29570         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
29572         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
29574         regex: make it closer to libc
29575         Make Idx a signed type, rather than possibly unsigned.
29576         The unsignedness was not really buying us anything, since the code
29577         overflows for other reasons before getting to PTRDIFF_MAX.  Making
29578         it signed allows us to use -1 and -2 with abandon, like libc does,
29579         thus lessening the number of differences between gnulib and libc.
29580         Also, it should help avoid gratuitous warnings like the one
29581         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
29582         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
29585         regex: merge patches from libc
29587         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
29588         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
29589         Convert miscellaneous function definitions to prototype style.
29590         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
29591         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
29592         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
29593         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
29594         (re_search_internal):
29595         Convert to prototype-style function definition.
29596         Use internal_function for internal functions.
29598 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
29600         stdalign: port to older HP and IBM cc
29601         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
29602         C compilers, by checking their version numbers.  These version
29603         numbers appear in MariaDB and in Qt code that dates way back and
29604         that conditiionally uses the 'aligned' attribute.
29606 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29608         stdalign: port to clang 3.7.0
29609         Problem reported by Herbert J. Skuhra in:
29610         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
29611         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
29612         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
29613         https://llvm.org/bugs/show_bug.cgi?id=26547
29615 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
29617         readdir_r: now obsolescent
29618         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
29619         * lib/mountlist.c (read_file_system_list): Add a FIXME.
29621 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
29623         misc: port better to gcc -fsanitize=address
29624         Without these patches, ./configure CFLAGS='-fsanitize=address'
29625         would compute incorrect values.  This patch fixes some (but not all)
29626         test failures with recent glibc, with this configuration.
29627         * m4/acl.m4 (gl_ACL_GET_FILE):
29628         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
29629         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
29630         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
29631         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
29632         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29633         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29634         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
29635         * m4/getline.m4 (gl_FUNC_GETLINE):
29636         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
29637         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
29638         * m4/regex.m4 (gl_REGEX):
29639         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29640         * tests/test-calloc-gnu.c (main):
29641         * tests/test-duplocale.c (main):
29642         * tests/test-getgroups.c (main):
29643         * tests/test-getline.c (main):
29644         * tests/test-inttostr.c (main):
29645         * tests/test-localename.c (test_locale_name)
29646         (test_locale_name_thread, test_locale_name_environ)
29647         (test_locale_name_default):
29648         * tests/test-regex.c (main):
29649         * tests/test-setlocale1.c (main):
29650         * tests/test-stat.h (test_stat_func):
29651         Free heap-allocated storage before exiting.
29652         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
29653         Don't match *_foo symbols inserted by AddressSanitizer.
29654         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
29656 2016-02-02  Jim Meyering  <meyering@fb.com>
29658         verify-tests: also remove stray test-verify.Tpo
29659         * modules/verify-tests (Makefile.am): Arrange for "make clean"
29660         to remove the test-verify.Tpo file that is left behind by
29661         the automake-generated rule upon compilation failure.
29662         Otherwise, that .Tpo file would cause a failed "make distcheck"
29663         at least for grep.
29665 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
29667         std-gnu11: new module
29668         This makes it easier for applications to prefer C11 and C++11
29669         to older variants, when compiling C and C++ code.
29670         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
29671         a nontrivial chunk of GPLed Autoconf source code.
29672         * COPYING: Mention the m4/*.m4 copyright situation.
29673         * MODULES.html.sh (std-gnu11): New module.
29674         * m4/std-gnu11.m4, modules/std-gnu11: New files.
29676 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
29678         get-permissions, strftime: fix grammar in comments
29679         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
29680         some grammar fixes Alan Mackenzie made to GNU Emacs.
29682 2016-01-25  Daiki Ueno  <ueno@gnu.org>
29684         gettext: mark as obsolete
29685         Suggested by Paul Eggert in:
29686         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
29687         * modules/gettext (Status): Mark as obsolete.
29688         (Notice): Suggest to use 'gettext-h' instead.
29689         * modules/gettext-h (Description): Suggest GNU gettext, instead of
29690         the 'gettext' module.
29692 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29694         gnulib-tool: don't give up on ln -s so easily
29695         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
29696         because an earlier one failed.  The targets could be on different
29697         file systems.  Problem reported by KO Myung-Hun in:
29698         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
29700         closedir: fix OS/2-related typos
29701         Problem reported by KO Myung-Hun in:
29702         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
29703         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
29704         in the last couple of changes.
29706 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
29708         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
29709         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
29710         copying a directory.
29712 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29714         regex: treat [x] as x if x is a unibyte encoding error
29715         Problem reported by Aharon Robbins in:
29716         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
29717         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
29718         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
29720         closedir, dirfd, opendir: port to OpenSolaris 5.10
29721         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
29722         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29723         * m4/opendir.m4 (gl_FUNC_OPENDIR):
29724         Don't use ${word##pat} substitution, as it doesn't work in
29725         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
29726         http://bugs.gnu.org/22443#11
29728 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29730         bootstrap: use American spelling
29731         * build-aux/bootstrap: Honor American spelling.
29733 2016-01-22  Karl Berry  <karl@freefriends.org>
29735         * doc/posix-functions/localtime.texi,
29736         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
29738 2016-01-21  Bruno Haible  <bruno@clisp.org>
29740         hash-pjw-bare: fix comment
29741         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
29743         wcwidth: Replace also on OpenBSD 5.8
29744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
29745         * doc/posix-functions/wcwidth.texi: Update.
29747 2016-01-20  Pádraig Brady  <P@draigBrady.com>
29749         gnu-web-doc-update: fix addition of new files
29750         If there were already added (emnpty) dirs,
29751         then cvs aborts the add with the message:
29752           cvs [add aborted]: there is a version in <./dirname> already
29753         * build-aux/gnu-web-doc-update: Add directories separately
29754         to the addition of files, to avoid the above issue
29755         impacting the addition of files.
29757 2016-01-19  Daiki Ueno  <ueno@gnu.org>
29759         utimens-tests: avoid pulling gettext .m4 files
29760         Although this is not the right fix to the original problem:
29761         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
29762         it makes it possible again for consumer projects to use arbitrary
29763         version of gettext, through the steps described at:
29764         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
29765         See here for details:
29766         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
29767         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
29768         'gettext'.
29769         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
29770         'gettext'.
29772 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29774         regex: pacify static checkers
29775         Problem and draft fix reported by Aharon Robbins in:
29776         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29777         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
29778         Clear memory to pacify static checkers.
29780         regex: fix [ diagnostic
29781         Problem and fix reported by Aharon Robbins in:
29782         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29783         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
29785         regex: fix memory leaks
29786         Problem and draft fix reported by Aharon Robbins in:
29787         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29788         * lib/regcomp.c (build_range_exp, build_charclass_op)
29789         * lib/regex_internal.c (re_dfa_add_node):
29790         Fix memory leak on failure.
29792 2016-01-18  Pádraig Brady  <P@draigBrady.com>
29794         fts: don't unconditionally use leaf optimization for NFS
29795         NFS st_nlink are not accurate on all implementations,
29796         leading to aborts() if that assumption is made.
29797         See <https://bugzilla.redhat.com/1299169>
29798         * lib/fts.c (leaf_optimization_applies): Remove NFS from
29799         the white list, and document the issue.
29801 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29802             KO Myung-Hun  <komh@chollian.net>
29804         gnulib-tool: don't assume ln -s works
29805         * gnulib-tool (func_ln_s): New function.
29806         (func_ln): Use it.
29808 2016-01-15  KO Myung-Hun  <komh@chollian.net>
29810         utimes: detect utimes() correctly on OS/2 kLIBC
29811         utimes() of OS/2 kLIBC has some limitations.
29812         1. OS/2 itself supports a file date since 1980 year in local time.
29813         2. OS/2 itself supports only even seconds for a file time.
29814         3. utimes() of OS/2 kLIBC does not work on an opened file.
29815         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
29816         * doc/posix-functions/utimes.texi: Document the above limitations of
29817         utimes() on OS/2 kLIBC.
29819 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29820             KO Myung-Hun  <komh@chollian.net>
29822         openat_proc_name: port to OS/2 kLIBC
29823         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
29824         instead of /proc/self/fd.
29825         * lib/openat-proc.c (openat_proc_name):
29826         Don't assume file name length is less than INT_MAX.
29827         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
29829 2016-01-14  KO Myung-Hun  <komh@chollian.net>
29831         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
29832         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
29833         definitions of intptr_t and uintptr_t (which use int and unsigned)
29834         to avoid clashes with declarations of system functions like sbrk.
29835         * lib/stdint.in.h (intptr_t, uintptr_t): Check
29836         _INTPTR_T_DECLARED before defining them.
29838         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
29839         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
29840         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
29841         Declare on kLIBC.
29842         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
29843         fd associated with dirp.
29844         (_gl_register_dirp_fd): New. Register fd associated with dirp to
29845         dirp_fd_list.
29846         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
29847         (dirfd): Implemented for kLIBC.
29848         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
29849         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
29850         succeeds.
29851         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
29852         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29853         (REPLACE_DIRFD): Define to 1 if replaced.
29854         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
29855         * modules/closedir (Depends-on): Add dirfd.
29856         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
29857         condition.
29858         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
29859         * modules/opendir (Depends-on): Add dirfd.
29861         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
29862         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
29863         * lib/dup.c (dup_nothrow): New.
29864         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
29865         (klibc_dup2): New.
29866         * lib/fcntl.c (klibc_fcntl): New.
29867         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
29868         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
29869         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
29870         fd.
29872         pipe_filter_ii_execute: port to OS/2 kLIBC
29873         Pipes on kLIBC do not support O_NONBLOCK like Win32.
29874         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
29875         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
29876         Reuse Win32 code on OS/2 kLIBC.
29877         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
29878         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
29880         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
29881         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
29882         static inline function.  The implementation of wcwidth in wcwidth.c
29883         causes a "conflicting types" error.
29884         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
29886         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
29887         spawn() on OS/2 kLIBC is not silly like one on Windows
29888         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
29889         empty string on OS/2 kLIBC.
29891         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
29892         On OS/2 kLIBC, select() works only on sockets.
29893         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
29895         binary-io: don't put fd in binary mode if it is a console on EMX
29896         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
29897         a console on EMX.
29899 2016-01-15  Pádraig Brady  <P@draigBrady.com>
29901         doc: mention unfixed issues with unsupported localtime() values
29902         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
29903         returns nonsense for localtime(2^56).
29904         * doc/posix-functions/localtime_r.texi: Likewise.
29906 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29908         doc: mention setlocale() issues on OpenBSD
29909         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
29910         never fails, and the need to check categories individually.
29912 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29914         sig2str: list all signals on FreeBSD >= 7
29915         FreeBSD >= 7 is contravening POSIX by not defining NSIG
29916         to the maximal statically defined signal value.
29917         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
29918         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
29919         where available, even when NSIG is defined.
29921 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
29923         acl-permissions: port to USE_ACL==0 platforms
29924         I ran into this problem when building bleeding-edge GNU Emacs
29925         with gcc -fsanitize=address on Fedora 23.  On this platform
29926         the ACL library does not pass the 'configure' test and Emacs
29927         then does not build due in part to what appear to be typos in the
29928         ACL part of Gnulib.
29929         * lib/acl-internal.c (free_permission_context):
29930         * lib/acl-internal.h (struct permission_context):
29931         Test whether USE_ACL is nonzero, not whether it is defined.
29933 2016-01-12  Martin Sebor  <msebor@redhat.com>
29935         mktime: rename macro to avoid glibc clash
29936         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
29937         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
29939 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29941         Port "$@" to OpenIndiana ksh93
29942         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
29943         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
29944         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
29945         bug long-dead shells, so remove the workaround.
29946         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
29947         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29948         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
29949         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
29950         Use "$@" instead of ${1+"$@"}.
29952         Port Universal Time settings to strict POSIX
29953         * build-aux/announce-gen, build-aux/bootstrap:
29954         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
29955         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29956         * build-aux/gnupload, build-aux/mkinstalldirs:
29957         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
29958         * build-aux/update-copyright, build-aux/useless-if-before-free:
29959         * build-aux/vc-list-files, tests/test-strftime.c:
29960         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
29961         but POSIX says the behavior of TZ="UTC" is undefined.
29963 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
29965         msvc-inval: fix problem with unset shell var
29966         Problem reported by Karl Berry in:
29967         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
29968         * modules/msvc-inval (Depends-on):
29969         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
29970         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
29972 2016-01-01  Pádraig Brady  <P@draigBrady.com>
29974         tests: for compare_(), use cmp -s where available
29975         * tests/init.sh (compare_): Only fall back to cmp without
29976         the POSIX defined -s option, where this is not available.
29978 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29980         version-etc: new year
29981         * build-aux/gendocs.sh (version):
29982         * doc/gendocs_template:
29983         * doc/gendocs_template_min:
29984         * doc/gnulib.texi:
29985         * lib/version-etc.c (COPYRIGHT_YEAR):
29986         Update copyright dates by hand in templates and the like.
29987         * all files: Run 'make update-copyright'.
29989 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
29991         human: fix output buffer overrun by 1
29992         * lib/human.c (human_readable): Fix off-by-one typo in buffer
29993         calculation that could lead to a one-byte buffer overrun.
29995 2015-12-28  Daiki Ueno  <ueno@gnu.org>
29997         maint: fix operator precedence in mbrtowc test
29998         This is a fix for test breakage introduced by commit 45228d96; the
29999         equality expression must be parenthesized when negated with '!',
30000         otherwise we always get:
30002           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
30004         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
30005         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
30007 2015-12-23  James Youngman  <jay@gnu.org>
30009         regexprops-generic: update from regex.h
30010         * doc/regexprops-generic.texi: update by running the regexprops binary
30011         from findutils (the command line is 'regexprops "Regular Expressions"
30012         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
30013         gnulib with GNU grep had made this document out-of-date.
30015 2015-12-23  Pádraig Brady  <P@draigBrady.com>
30017         strftime-tests: avoid false failure on OS X
30018         * tests/test-strftime.c (struct localtime_rz_test): Add an
30019         ahistorical member which is used to warn rather than fail
30020         when tm_isdst isn't set for such entries.  This is the case for
30021         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
30023 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
30025         fts: ensure leaf optimization is used for NFS
30026         NFS provides usable dirent.d_type but not necessarily for all entries
30027         of large directories.  See <https://bugzilla.redhat.com/1252549>
30028         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
30030 2015-12-20  Pádraig Brady  <P@draigBrady.com>
30032         fts: enable leaf optimization for XFS
30033         XFS provides usable dirent.d_type only for DT_DIR,
30034         but the noleaf optimization still applies.
30035         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
30037 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30039         intprops: comment fix
30040         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
30041         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
30043         intprops-test: work around GCC bug 68971
30044         Problem reported by Pádraig Brady in:
30045         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
30046         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
30047         (main): Add a case that better tests 64-bit long in this area.
30049 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
30051         gnulib-tool: allow multiple --local-dir usage
30052         * gnulib-tool: Use --local-dir to construct compound
30053         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
30054         PATH_SEPARATOR early.
30055         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
30056         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
30057         func_determine_path_separator because that needs to be detected
30058         earlier now.
30059         (func_determine_path_separator): New function.
30060         (func_path_foreach, func_path_foreach_inner): New functions.
30061         (func_path_prepend, func_path_append): Likewise.
30062         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
30063         (func_lookup_file, func_all_modules): Use new functions to work
30064         with local_gnulib_path.
30065         (func_modules_in_dir, func_exists_module): New callbacks for
30066         func_path_foreach.
30067         (func_exists_module, func_get_tests_module): Likewise.
30068         (func_is_local_file, func_should_symlink): New helper methods.
30069         (func_add_file, func_update_file): Use new func_should_symlink
30070         instead, DRY.
30071         (func_reconstruct_cached_local_gnulib_path): New helper.
30072         (func_reconstruct_cached_dir): New callback.
30073         (func_import): The cached_local_gnulib_dir renamed to
30074         cached_local_gnulib_path similarly to local_gnulib_dir.
30075         Use new func_reconstruct_cached_local_gnulib_path.
30076         (func_count_relative_local_gnulib_path): New sub-method.
30077         (func_create_testdir): Use func_should_symlink, DRY.
30078         (func_create_megatestdir): Use new functions to work with
30079         local_gnulib_path correctly.
30080         (func_append_local_dir): New helper.
30082 2015-12-08  Pádraig Brady  <P@draigBrady.com>
30084         fix freadptr to work with ungetc on all uClibc configs
30085         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
30086         where GNU coreutils cut(1) generates invalid output on uClibc
30087         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
30088         * lib/freadptr.c (freadptr): Return NULL if there are
30089         ungotten chars.  In this case freadseek() will iterate
30090         again to process the ungotten character.
30092 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
30094         xalloc-oversized: improve performance with GCC 5
30095         * lib/xalloc-oversized.h (xalloc_oversized):
30096         Improve performance with GCC 5 by using __builtin_mul_overflow.
30098 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30100         intprops: new public macro EXPR_SIGNED
30101         Emacs can use this macro, so make it public.
30102         * doc/intprops.texi (Arithmetic Type Properties): Rename from
30103         'Integer Type Determination', since some of these macros apply
30104         to non-integer types.  Clarify what kinds of constant expressions
30105         these macros return.  Say when the arguments can be non-integers.
30106         Mention newly published macro EXPR_SIGNED.
30107         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
30108         make it public.  All uses changed.
30110         intprops: fix typo in clang port
30111         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
30112         '__builtin_add_overflow' that is not caught by compiler.
30114 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
30116         test-timespec: fix typo in previous change
30117         * tests/test-timespec.c (main): Fix typo that reduced test quality.
30119         timespec-sub: fix overflow bug; add tests
30120         * lib/timespec-add.c (timespec_add):
30121         * lib/timespec-sub.c (timespec_sub):
30122         Work even if time_t is narrower than int (a theoretical
30123         possibility).  Redo code for a bit more clarity.
30124         * lib/timespec-sub.c (timespec_sub):
30125         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
30126         * modules/timespec-tests, tests/test-timespec.c: New files.
30128         intprops-test: suppress -Woverlength-strings
30129         Problem reported by Pádraig Brady in:
30130         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
30131         It is not worth the hassle to port this test to compilers that
30132         cannot handle long strings in diagnostics.
30133         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
30135 2015-11-03  Pádraig Brady  <P@draigBrady.com>
30137         quotearg: add quotearg_n_style_colon()
30138         This quotes with default options of the specified style,
30139         but with quoting enabled for instances of ':'.
30140         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
30141         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
30143 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
30145         intprops: revise _WRAPV macros, revert _OVERFLOW
30146         The incompatible changes to the _OVERFLOW macros were too much of
30147         a hassle in practice, so revert them.  Instead, change the new
30148         _WRAPV macros to make them closer in behavior to GCC 5's new
30149         builtin_add_overflow etc. functions.  No other software was using
30150         these newly-added macros yet, so this should be OK.
30151         * NEWS: Revert previous change, since the incompatible change
30152         has been reverted, and nobody used the incompatible version.
30153         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
30154         Document revised behavior.
30155         (Integer Range Overflow): Adjust example to match above revisions.
30156         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
30157         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
30158         these can be used in integer constant expressions again.
30159         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
30160         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
30161         needed.
30162         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
30163         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
30164         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
30165         Remove, as they did not seem that useful.
30166         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
30167         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
30168         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
30169         Support new semantics.
30170         (__has_builtin): New macro, if not alreay defined.
30171         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
30172         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
30173         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
30174         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
30175         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
30176         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
30177         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
30178         New macros.
30179         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
30181 2015-11-03  Jim Meyering  <meyering@fb.com>
30183         intprops: add parentheses for when OP has precedence lower than "-"
30184         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
30185         "a OP b" must be parenthesized for when OP is like "<<", which has
30186         lower precedence than the following "-". Reported by Pádraig Brady.
30188 2015-11-03  Pádraig Brady  <P@draigBrady.com>
30190         quotearg: constify get_quoting_style parameters
30191         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
30192         * lib/quotearg.c (get_quoting_style): Likewise.
30194 2015-11-02  Pádraig Brady  <P@draigBrady.com>
30196         quotearg: add support for $'' shell escaping
30197         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
30198         items and descriptions.
30199         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
30200         above types by quoting like "shell", but using $'...' syntax
30201         for non printable characters, which should provide unambiguous
30202         printable output for any input.
30203         * tests/test-quotearg-simple.c: Update accordingly.
30205 2015-11-02  Pádraig Brady  <P@draigBrady.com>
30207         maint: use a more standard return from mbrtowc test
30208         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
30209         from the test program as this is non standard and often
30210         indicates an unhandled case in the test program.
30211         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
30213 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30215         intprops: add WRAPV and const flavors for GCC 5
30216         If available, use GCC 5's builtin functions for efficient integer
30217         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
30218         and safely compute the low-order bits of the correct answer.
30219         A downside of these efficient functions is that they cannot be
30220         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
30221         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
30222         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
30223         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
30224         Document the changes.
30225         (Wraparound Arithmetic): New section.
30226         (Integer Range Overflow):
30227         Put this subsection last, since it's least useful.
30228         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
30229         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
30230         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
30231         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
30232         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
30233         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
30234         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
30235         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
30236         New macros.
30237         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
30238         Generate calls to GCC builtins if available, for speed.
30239         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
30240         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
30241         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
30242         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
30243         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
30244         (CHECK_QUOTIENT, CHECK_REMAINDER):
30245         Test WRAPV and CONST flavors (when available) too.
30247 2015-10-30  Pádraig Brady  <P@draigBrady.com>
30249         doc: use extended timezone format in iso-8601 example
30250         * doc/parse-datetime.texi: The standard states that extended format
30251         is to be used consistently throughout.
30252         Note that lib/parse-datetime.y can handle either tz format.
30254 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
30256         stdalign: port to Sun C 5.9
30257         * doc/posix-headers/stdalign.texi: Document this.
30258         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
30259         __attribute__ ((__aligned__ (...))).
30261 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
30263         time_rz: fix comment about tzalloc
30264         * lib/time_rz.c (tzalloc): Fix comment.
30266 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30268         stdalign: work around pre-4.9 GCC x86 bug
30269         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
30270         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
30271         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
30273 2015-10-18  Pádraig Brady  <P@draigBrady.com>
30275         maint.mk: sc_tight_scope: remove extraneous expressions
30276         * top/maint.mk (tight_scope): This is not really required since
30277         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
30278         that matches all nm entries.  But it does remove extraneous entries
30279         that may be confusing or cause issue in future maintenance.
30281 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30283         time_rz: return NULL if localtime_r fails
30284         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
30285         while still attempting to pacify bleeding-edge GCC.
30287         fts: port to C11 alignof
30288         * doc/posix-headers/stdalign.texi (stdalign.h):
30289         Document the C11 restriction.
30290         * lib/fts.c: Include stddef.h, for max_align_t.
30291         (fts_alloc): Align using max_align_t, not FTSENT.
30292         * modules/fts (Depends-on): Add stddef.
30294 2015-10-18  Jim Meyering  <meyering@fb.com>
30296         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
30297         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
30298         would see this:
30300         lib/time_rz.c: In function 'localtime_rz':
30301         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
30302           [-Werror=nonnull]
30303                    if (tm && !save_abbr (tz, tm))
30304                        ^
30306         That was complaining about "tm" because it is a parameter that was
30307         declared with the __nonnull__ attribute.
30308         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
30309         result of localtime_r.
30311 2015-10-17  Jim Meyering  <meyering@fb.com>
30313         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
30314         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
30315         name-extraction regexp mistakenly used \S+, and would mistakenly
30316         extract "*F" from "extern int *F()" rather than the desired "F".
30317         Use \w+ instead.
30319 2015-10-17  Jim Meyering  <meyering@fb.com>
30321         maint.mk: sc_tight_scope: factor and support OS X
30322         * top/maint.mk (_gl_tight_scope): Address three issues:
30323         - factor out four instances of code that wraps a string in "^...$"
30324         - allow nm-reported symbol names to have an optional leading "_"
30325         - add "main" to the list of ignored variable names, because on os x,
30326         "main" has nm-reported type "S" in the variable-checking section.
30328 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
30330         safe-alloc-tests: fix typo in license header
30331         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
30333 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
30335         copy-file: fix mem leak in error case
30336         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
30337         upon error opening or performing I/O to the src and dest files.
30339 2015-10-15  Mike Frysinger  <vapier@chromium.org>
30341         localename: control langinfo.h inclusion
30342         This header is only used to work around buggy behavior in old
30343         versions of glibc, so do not include it all the time.  Otherwise
30344         we get build failures on systems that do not provide langinfo.h.
30345         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
30346         in the source later on.
30347         The patch was originally submitted to gettext as:
30348         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
30350 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30352         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
30353         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
30354         * lib/u64.c, lib/unistd.c:
30355         Append 'typedef int dummy;', to pacify compilers that are picky
30356         about empty translation units.
30358 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
30360         accept4-tests: fix to avoid non portable flags
30361         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
30362         as they are the only documented ones, and passing others may trigger
30363         EINVAL (seen on FreeBSD 10.1-RELEASE).
30364         * doc/glibc-functions/accept4.texi: Mention that we don't provide
30365         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
30367 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
30369         gnulib-tool: fix tests of 'extensions' module
30370         This complements f8fe25fab60e3c687a124 commit.
30371         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
30372         emitting of initial gl_EARLY macros.
30373         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
30374         replaced with func_emit_pre_early_macros call.
30376 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30378         unicase/locale-language: fix typo in utf-8 cookie
30379         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
30380         Problem reported by Zbigniew Jędrzejewski-Szmek.
30382 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30384         xalloc: do not worry about GCC 5 warning on 32 bit
30385         * lib/xalloc.h: Revert previous change.
30386         I found a better way to fix this in coreutils.
30388 2015-10-02  Pádraig Brady  <P@draigBrady.com>
30390         xalloc: avoid GCC 5.1 warning on 32 bit
30391         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
30392         xalloc_oversized(), which was seen to give this warning
30393         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
30394         when simplifying conditional".
30396 2015-10-02  Daiki Ueno  <ueno@gnu.org>
30398         uniname/uniname-tests: avoid compiler warnings
30399         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
30400         unused local variables.
30401         (test_alias_lookup): Fix alias name display in failure cases.
30403 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30405         c-ctype: do not worry about EBCDIC + char signed
30406         Drop support for EBCDIC with char being signed, as this breaks too
30407         many programs.  Problem reported by Ben Pfaff in:
30408         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
30409         * lib/c-ctype.h: Verify that we are not using EBCDIC with
30410         char being signed.
30411         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
30412         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
30413         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
30414         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
30415         * tests/test-c-ctype.c (test_all):
30416         Simplify by assuming standard char values cannot be negative.
30417         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
30419 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30421         c-ctype: port better to z/OS EBCDIC
30422         Problems reported by Daniel Richard G. in:
30423         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
30424         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
30425         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
30426         (_C_CTYPE_OTHER_CNTRL): New macro.
30427         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
30428         from SCHAR_MIN, as the functions are defined only from values
30429         promoted from char or from unsigned char, not necessarily from
30430         signed char.
30432 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
30434         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
30436         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
30437         and ARFLAGS variables.  Doing this unconditionally could break
30438         later Automake's AM_PROG_AR invocation (at least it's
30439         AC_CHECK_TOOLS call to detect correct 'ar' binary).
30441         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
30442         Amsterdam Compiler Kit, so make the previous code to have effects
30443         only on ACK, and rather automatically call the Automake's
30444         AM_PROG_AR as soon as possible to decide other cases.
30446         References:
30447         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
30449         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
30450         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
30451         is possible, keep setting AR/ARFLAGS to reasonable defaults.
30452         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
30453         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
30454         'extensions' module is used.
30455         * modules/extensions (configure.ac-early): Remove as this snippet
30456         is added to gnulib-comp.m4 earlier anyway.
30458 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30460         sockets: MS Windows initalization fixes
30461         Problem reported by Test User in:
30462         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
30463         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
30464         Correct the endianness.
30465         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
30466         number mismatch, not just on <.  Cleanup before any such failure.
30468 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30470         gc: fix detection of installed libgcrypt version
30471         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
30472         at least as recent as 1.4.4.  The previously used macro is not
30473         available now, since modules were removed in version 1.6.0.
30475 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30477         c-ctype: rewrite to use inline functions
30478         This simplifies maintenance, since it makes for just one
30479         implementation of each function, letting the compiler have the fun
30480         of optimization.  In practice this works well nowadays with GCC.
30481         E.g., c_isascii might need only three instructions even though the
30482         source code lists every ASCII character individually in a large
30483         switch statement.
30484         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
30485         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
30486         * NEWS: Document the API change.
30487         * lib/c-ctype.c: Drastically simplify, since this now just expands
30488         inline functions.
30489         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30490         (C_CTYPE_INLINE): New macro.
30491         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
30492         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
30493         Verify that either ASCII or EBCDIC is being used.
30494         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
30495         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
30496         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
30497         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
30498         New private macros.
30499         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
30500         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
30501         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
30502         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
30503         (c_tolower, c_toupper): When converting, return the unsigned char,
30504         as that is what z/OS does.
30505         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
30506         of some c-ctype.h macros.
30507         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
30508         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
30509         c_tolower promotion to be compatible with z/OS.
30511 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
30513         gitlog-to-changelog: trim only trailing whitespaces
30514         This is fix for --format regression introduced by commit
30515         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
30516         doubled %n string) had no effect anymore.  This format
30517         specification has been used e.g. by GNU paxuitils (commit
30518         edfd8bcc3).
30520         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
30521         newlines in commmit messages.
30523 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30525         Test that c_iscntrl agrees with iscntrl, etc.
30526         Suggested by Daniel Richard G. in:
30527         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
30528         * modules/c-ctype-tests (Depends-on): Add ctype.
30529         * tests/test-c-ctype.c: Include <ctype.h>.
30530         (NCHARS): New constant.
30531         (test_agree_with_C_locale): New function.
30532         (main): Use it.
30533         (test_all): Use named constants.
30535         c-ctype: improve c_isascii testing
30536         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
30537         Add a test to count the number of ASCII characters.
30539 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30541         savewd: remove SAVEWD_CHDIR_READABLE
30542         It was problematic in the light of file systems that ignore umask.
30543         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
30544         * NEWS: Document this.
30545         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
30546         successful, -1 (setting errno) on failure, rather than something
30547         more complicated than that.
30548         * lib/mkdir-p.c (make_dir_parents):
30549         Do not use SAVEWD_CHDIR_READABLE.
30550         * lib/savewd.c (savewd_chdir):
30551         Remove support for SAVEWD_CHDIR_READABLE.
30552         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
30554         c-ctype: port better to EBCDIC
30555         Problems reported by Daniel Richard G. in
30556         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
30557         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
30558         Include "verify.h".
30559         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
30560         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
30561         Define as enum constants with value false, if not defined, so that
30562         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
30563         code more portable, as both branches of the 'if' are compiled on
30564         all platforms.
30565         (C_CTYPE_EBCDIC): New constant.
30566         Verify that the character set is either ASCII or EBCDIC.
30567         (to_char): New static function.
30568         (c_isascii, c_iscntrl):
30569         Assume standard control-character assignments for EBCDIC.
30570         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
30571         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
30572         Rewrite to use 'if' instead of 'ifdef'.
30573         Use to_char if non-ASCII.  Prefer <= to >=.
30574         Prefer true and false to 1 and 0, for booleans.
30575         (c_iscntrl): Use 'if', not 'ifdef'.
30576         * modules/c-ctype (Depends-on): Add verify.
30577         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
30578         (to_char): New function.
30579         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
30581 2015-09-21  Pádraig Brady  <P@draigBrady.com>
30583         nanosleep: fix return code for interrupted replacement
30584         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
30585         that we return -1 in the case the call is interrupted by a signal,
30586         rather than the current value of 1.
30587         Diagnosed and tested by Daniel Richard G.
30589 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30591         Diagnose ERE '()|\1'
30592         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
30593         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
30594         track of the set of previously-completed subexpressions available
30595         before the first alternative, and restore this set just before
30596         parsing each subsequent alternative.  This lets us diagnose the
30597         invalid back-reference in the ERE '()|\1'.
30599         regex: merge patches from libc
30601         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
30602         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
30603         * lib/regex_internal.h:
30604         Include <libc-lock.h> instead of <bits/libc-lock.h>.
30606         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30607         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
30608         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
30609         wcscoll.
30610         * lib/regexec.c (check_node_accept_bytes): Likewise.
30612         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30613         Fix regex wcrtomb namespace (bug 18496).
30614         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
30615         instead of wcrtomb.
30617         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30618         Fix regex wctype namespace (bug 18495).
30619         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
30620         instead of towlower.
30621         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
30622         instead of iswlower.  Call __towupper instead of towupper.
30623         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
30624         instead of iswalnum.
30626         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
30627         * lib/regcomp.c (parse_bracket_exp): Initialize type to
30628         COLL_SYM in a couple of places to avoid uninitialized variable
30629         wanings on tilegx gcc 4.8.2.
30631         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30632         * lib/regex_internal.h: Remove NOT_IN_libc.
30634         2014-11-17  Andreas Schwab  <schwab@suse.de>
30635         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
30637         2014-09-11  Roland McGrath  <roland@hack.frob.com>
30638         Move findidx nested functions to top-level.
30639         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
30640         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
30641         Pass new arguments to findidx.
30642         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
30643         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
30644         Don't #include it inside the function.  Pass new arguments to findidx.
30645         * lib/regex_internal.h:
30646         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
30647         (re_string_elem_size_at): Don't #include it inside the function.
30648         Pass new arguments to findidx.
30650         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30651         Check if DEBUG is defined in regex_internal.c
30652         * lib/regex_internal.c: Check if DEBUG is defined and is set.
30654 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
30656         ceill: detect buggy OpenBSD implementation
30657         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
30658         which returns zero for small values.  Discussed here:
30659         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
30661 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
30663         mountlist: add me_mntroot field on Linux machines
30664         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
30665         mount_entry so Linux machines based on /proc/self/mountinfo can
30666         distinguish between bind mounts and original mounts.  In reality bind
30667         mounts aren't treated differently than mountroot=/ mounts by the
30668         kernel, but the user often wants these bind mounts distinguished.
30669         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
30670         More details at https://pad.lv/1432871
30672 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
30674         doc: Describe to use multiple instances of gnulib
30675         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
30676         instances of gnulib with different modules can be used, for example one
30677         for a lib and another one for associated tools.
30679 2015-09-01  Pádraig Brady  <P@draigBrady.com>
30681         base32: mark function as __attribute__ const
30682         * lib/base32.h (isbase32): Mark __attribute__ const as
30683         suggested by GCC, and consistent with the base64 module.
30685 2015-08-20  Daiki Ueno  <ueno@gnu.org>
30687         gnulib-tool: don't transform binary files with sed
30688         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
30689         .mo and .class files.
30690         Reported by Denis Denisov.
30692 2015-08-10  Daiki Ueno  <ueno@gnu.org>
30694         gperf: respect silent rules
30695         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
30696         V_GPERF_0 for silent rules.
30697         * modules/iconv_open (Makefile.am): Use V_GPERF.
30698         * modules/unicase/locale-language (Makefile.am): Likewise.
30699         * modules/unicase/special-casing (Makefile.am): Likewise.
30700         * modules/unictype/category-byname (Makefile.am): Likewise.
30701         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
30702         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
30703         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
30704         * modules/unictype/property-byname (Makefile.am): Likewise.
30705         * modules/unictype/scripts (Makefile.am): Likewise.
30706         * modules/uninorm/composition (Makefile.am): Likewise.
30708 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30710         Improve port of stdalign to C++11
30711         Problem reported by Sundaram in:
30712         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
30713         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
30714         (__alignas_is_defined): Define if C++11 or newer.
30716 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
30718         pmccabe2html: fix gawk regex escaping
30719         * build-aux/pmccabe2html: Add one more backslash to properly
30720         escape the gsub replacement value.  Fixes this error:
30721         gawk: ./build-aux/pmccabe2html:425: \
30722         warning: escape sequence `\&' treated as plain `&'
30724 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
30726         time_rz: port to pedantic memcpy
30727         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
30728         that reject memcpy (..., NULL, 0).
30730 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
30732         time_rz: port better to MinGW
30733         Don't change tzname, as this makes MinGW dump core (Bug#21020).
30734         Instead, store the tzname copy in the struct tm_zone object.
30735         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
30736         * lib/strftime.c [!_LIBC]:
30737         * lib/time_rz.c: Include time-internal.h.
30738         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
30739         name from *TZ rather than from TZNAME, doable because *TZ now has
30740         a tzname_copy member.
30741         * lib/time-internal.h: New file, with contents taken from
30742         lib/time_rz.c.  It's separate because strftime.c now accesses
30743         struct tm_zone members.
30744         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30745         New member tzname_copy.
30746         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
30747         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30748         Initialize tzname_copy member.
30749         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
30750         in tzname_copy member.
30751         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
30752         (restore_tzname): Remove; no longer needed.  All calls removed.
30753         * modules/time_rz (Files): Add lib/time-internal.h.
30755         time: port __need_time_t to MinGW
30756         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
30757         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
30759 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30761         strftime: fix newly-introduced bug on Solaris
30762         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
30763         consistently at the start, rather than doing some of the setup at
30764         the start and some in the %Z format spec.  This is cleaner, and
30765         works better with time_rz on platforms like Solaris where struct
30766         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
30767         mktime_z and localtime_rz can mess up the tzname cache.
30769         test-strftime: test for Solaris bug
30770         * modules/strftime-tests (Depends-on): Add strerror.
30771         * tests/test-strftime.c: Include <errno.h>.
30772         (posixtm_test): New function, containing the old 'main'.
30773         (struct tzalloc_test, struct localtime_rz_test): New types.
30774         (TZ, LT): New static vars.
30775         (tzalloc_test): New function.
30776         (main): Rewrite in terms of posixtm_test and tzalloc_test.
30778         time_rz: port to Solaris etc.
30779         Works around a tzname problem on platforms like Solaris that have
30780         tzname but not tm_zone, by setting tzname at the appropriate time
30781         and restoring it later.
30782         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
30783         New static vars.
30784         (save_abbr) [HAVE_TZNAME]: Set them.
30785         (revert_tz) [HAVE_TZNAME]: Clear or use them.
30786         (restore_tzname): New function.
30787         (localtime_rz, mktime_z): Use it.
30789         time_rz: now LGPL
30790         * modules/time_rz (License): Now LGPL, because strftime depends on it.
30792         time_rz: make a constant 'const'
30793         * lib/time_rz.c (local_tz): Now const.
30795         time_rz: fix off-by-one typo
30796         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
30798 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
30800         fprintftime, strftime: use timezone_t args
30801         * NEWS: Document the change.
30802         * lib/fprintftime.h (fprintftime):
30803         * lib/strftime.c (extra_args) [my_strftime]:
30804         * lib/strftime.h (nstrftime):
30805         Time zone arg is now of type timezone_t, not int.
30806         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
30807         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
30808         (my_strftime) [emacs && !my_strftime]:
30809         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
30810         Remove; Emacs doesn't need this any more.
30811         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
30812         fprintftime and nstrftime to call tzset.
30813         (ut) [!my_strftime]: Remove, replacing with ...
30814         (tz) [!my_stftime]: ... this new macro.  All uses changed.
30815         (strftime_case_): Use localtime_rz and mktime_z instead
30816         of localtime_r and mktime.
30817         * modules/fprintftime (Depends-on): Add time_rz.
30818         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
30819         * tests/test-strftime.c (main): Adjust to new nstrftime API.
30821         time_rz: new module
30822         * MODULES.html.sh: Add time_rz.
30823         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
30824         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
30825         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
30826         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
30827         New var HAVE_TIMEZONE_T (default 0).
30828         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30829         New var GNULIB_TIME_RZ (default 0).
30830         * modules/time (time.h): Substitute the new vars.
30832         flexmember: license is now unlimited
30833         * modules/flexmember (License): Change to unlimited,
30834         since its only source file gives an unlimited license.
30836 2015-07-15  Eric Blake  <eblake@redhat.com>
30838         maint: update copyright paper procedures
30839         * config/srclist.txt: Drop outdated files.
30840         * doc/Copyright/conditions.txt: Update to latest.
30841         * doc/Copyright/assign.changes.manual: Delete.
30842         * doc/Copyright/assign.future.manual: Likewise.
30843         * doc/Copyright/assign.manual: Likewise.
30844         * doc/Copyright/assign.translation.manual: Likewise.
30845         * doc/Copyright/disclaim.changes.manual: Likewise.
30846         * doc/Copyright/disclaim.manual: Likewise.
30847         * doc/Copyright/disclaim.program: Likewise.
30849 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30851         localename: fix link error on Illumos
30852         Illumos defines __sun, but does not have getlocalename_l nor the
30853         equivalent.  This partially reverts commit 387c214.
30854         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
30855         available, as well as uselocale.
30856         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
30857         use getlocalename_l if it is not available.
30859 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30861         unistr/uN-strtok-tests: avoid a trivial leak
30862         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
30863         input and delim after the multibyte delimiter tests.
30865 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30867         file-has-acl, acl-permissions: fix HP-UX typos
30868         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
30869         * lib/file-has-acl.c (file_has_acl):
30870         * lib/set-permissions.c (context_acl_from_mode)
30871         (context_aclv_from_mode, set_acls):
30872         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
30873         They were introduced by the recent ACL changes.
30875         regex: match current GNU grep behavior
30876         These symbols have not matched GNU grep behavior for quite some time.
30877         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
30878         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
30879         Change to match current GNU behavior.
30880         Simplify by expressing it as differences from POSIX BREs and EREs.
30881         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
30883 2015-07-03  Jim Meyering  <meyering@fb.com>
30885         set-permissions.c: adjust acl_from_mode's cpp guard
30886         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
30887         directives identical to those guarding the sole use.
30888         Otherwise, on some systems, we'd get a warning about
30889         the function being defined but not used.
30890         Also, filter through cppi to correct misleading indentation
30891         of cpp directives.
30893 2015-07-03  Pádraig Brady  <P@draigBrady.com>
30895         tests: restrict shells to those that support 'local'
30896         The local keyword is very widely supported and used
30897         in tests in coreutils and grep at least.  Therefore
30898         restrict to testing with shells that support it.
30899         This mainly excludes /bin/sh on Solaris.
30900         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
30902 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
30903         and Daiki Ueno  <ueno@gnu.org>
30905         unistr/uN-strtok: handle multibyte delimiters
30906         Previously, uN_strtok moved PTR to the next unit to the token end.
30907         When DELIM contained a multibyte character, the new position could
30908         be a middle of a multibyte character.
30909         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
30910         after the token.
30911         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
30912         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
30913         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
30914         * modules/unistr/u8-strtok (Depends-on): Depend on
30915         unistr/u8-strmblen.
30916         * modules/unistr/u16-strtok (Depends-on): Depend on
30917         unistr/u16-strmblen.
30918         * modules/unistr/u32-strtok (Depends-on): Depend on
30919         unistr/u32-strmblen.
30920         * tests/unistr/test-u-strtok.h: New file.
30921         * tests/unistr/test-u8-strtok.c: New file.
30922         * tests/unistr/test-u16-strtok.c: New file.
30923         * tests/unistr/test-u32-strtok.c: New file.
30924         * modules/unistr/u8-strtok-tests: New file.
30925         * modules/unistr/u32-strtok-tests: New file.
30926         * modules/unistr/u16-strtok-tests: New file.
30928 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
30930         update-copyright: fix test failure with perl >= 5.22 (trivial)
30931         * build-aux/update-copyright: Escape a literal left curly bracket,
30932         required with perl >= 5.22
30934 2015-07-02  Daiki Ueno  <ueno@gnu.org>
30936         u{16,32}-strstr-tests: relax timeout condition
30937         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
30938         tests can take longer than 5 seconds to complete.
30939         Reported by Dagobert Michelsen in:
30940         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
30941         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
30942         seconds to 10 seconds.
30943         * tests/unistr/test-u32-strstr.c (main): Likewise.
30945 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30947         gnulib-common.m4: change the ARFLAGS default to 'cr'
30948         In some GNU/Linux distributions people started to compile 'ar'
30949         binary with --enable-deterministic-archives (binutils project).
30950         That, however, in combination with previous autotools long time
30951         working default AR{_,}FLAGS=cru causes warnings on such
30952         installations:
30953         ar: `u' modifier ignored since `D' is the default (see `U')
30954         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
30955         set already.
30957 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30959         selinux-h: avoid double free after *getfilecon()
30960         Originally reported by Ben Shelton on bug-tar:
30961         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
30962         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
30963         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
30964         param should be freed by freecon(3) (regardless the return value).
30966 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
30968         fix pty related tests issues on Windows (trivial)
30969         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
30970         however it's still present in tests/ subdirectory of the final project.
30971         Therefore avoid it to pass `make check`.
30972         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
30973         will just return -ENOSYS, so avoid this non applicable test allowing
30974         the build to proceed.
30976 2015-07-01  Pádraig Brady  <P@draigBrady.com>
30978         acl: fix definition of acl_from_mode on FreeBSD
30979         This was causing basic coreutils copy operations to fail
30980         with ENOTSUP or ENOENT error messages.
30981         * lib/acl-internal.h (acl_from_mode): Only define when
30982         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
30983         of acl_from_mode() defined in lib/set-permissions.c to
30984         be used on FreeBSD at least.
30985         * lib/set-permissions.c: Fix up comment spelling,
30986         and a redundant variable assignment; noticed in passing.
30988 2015-06-30  Pádraig Brady  <P@draigBrady.com>
30990         readutmp: port to FreeBSD >= 9
30991         * lib/readutmp.h: Map utmpxname() to setutxdb().
30992         With that coreutils who(1) and pinky(1) tests pass.
30994 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30996         mgetgroups: port to strict OS X
30997         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
30998         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
30999         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
31000         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
31002 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
31004         mgetgroups: port to strict OS X
31005         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
31006         Document the getgrouplist problem.
31007         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
31008         New macro.
31009         (mgetgroups): Use it.
31010         * m4/mgetgroups.m4 (gl_MGETGROUPS):
31011         Check for OS X signature for getgrouplist.
31013 2015-06-29  Jim Meyering  <meyering@fb.com>
31015         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
31016         It started like this when building coreutils' latest on OS X,
31017         invoking ./configure with a nonempty --cache=.cache:
31019           lib/linkat.c:46:42: error: operator '||' has no right operand
31020           lib/linkat.c: In function 'rpl_linkat':
31021           lib/linkat.c:330:27: error: #if with no expression
31023         Here's linkat.c's line 46:
31025           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
31027         Here's some context:
31029           $ grep linkat_nofoll .cache
31030           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
31031           $ grep LINKAT_SYM lib/config.h
31032           #define LINKAT_SYMLINK_NOTSUP
31034         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
31035         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
31036         but that violates a tenet of AC_CACHE_CHECK: it must
31037         have no side effect other than setting its cache variable.
31039         What happens is that when the cache is set, we'd skip the
31040         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
31041         defined to whatever value it happened to have in configure's
31042         environment.  In my case, it was not defined, so this later code:
31044           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
31045             [Define to 1 if linkat can create hardlinks to symlinks])
31047         would emit code with an empty RHS.
31049         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
31050         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
31052 2015-06-28  Jim Meyering  <meyering@fb.com>
31054         mountlist: avoid an unused-label warning on OS X
31055         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
31056         Building on OS X, I saw a warning about the "free_then_fail" label
31057         being unused.  Give it the _GL_UNUSED_LABEL attribute.
31059         error.c: correct printf-style format: %d -> %u
31060         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
31061         rather than %d, to match the type of "line_number", unsigned int.
31063 2015-06-25  Pádraig Brady  <P@draigBrady.com>
31065         fts: avoid reading beyond the heap allocation
31066         GCC 5.1.1 with -O2 and -fsanitize=address reports
31067         a read of size 4 from a heap object of size 3 is indeed invalid,
31068         though this may be due to incorrect padding assumptions by GCC, see:
31069         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
31070         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
31071         * modules/fts: Depend on stdalign.
31073 2015-06-24  Pádraig Brady  <P@draigBrady.com>
31075         savedir: avoid undefined behavior in qsort call
31076         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
31077         "runtime error: null pointer passed as argument 1,
31078          which is declared to never be null"
31079         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
31081 2015-06-24  Pádraig Brady  <P@draigBrady.com>
31083         userspec: avoid undefined behavior in gettext call
31084         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
31085         "runtime error: null pointer passed as argument 2,
31086          which is declared to never be null"
31087         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
31089 2015-06-20  Glenn Morris  <rgm@gnu.org>
31091         gitlog-to-changelog: improve gitmerge.el commits
31092         Let the Emacs ChangeLog generation process exclude "skipped"
31093         messages from merge commits (Bug#20717).
31094         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
31096 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31098         wchar: fix MinGW compilation warnings
31099         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
31100         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
31101         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
31103 2015-06-20  Daiki Ueno  <ueno@gnu.org>
31105         uniname/uniname-tests: use pristine data files
31106         For copyright and maintenance reasons, use the data files from UCD
31107         without modification.
31108         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
31109         (getfield): Remove.
31110         (aliases_count): New global variable.
31111         (fill_names): Skip comments and empty lines in the input.  Don't
31112         use getfield.
31113         (fill_aliases): Likewise.
31114         (main): Change the expected command line arguments to:
31115         NAMES... ["--" ALIASES...].
31116         * tests/uniname/test-uninames.sh: Adjust to the change in
31117         test-uninames.c.
31118         * tests/uniname/UnicodeDataNames.txt: Remove.
31119         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
31120         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
31121         file from Unicode 8.0.0.
31123 2015-06-19  Pádraig Brady  <P@draigBrady.com>
31125         linked-list, linkedhash-list: avoid compiler warnings
31126         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31127         -Werror=suggest-attribute=pure (from GCC 5.1.1).
31129 2015-06-19  Daiki Ueno  <ueno@gnu.org>
31131         libunistring: bump minimum version to 0.9.6
31132         * all modules depending on updated Unicode data: Regenerate.
31133         The modules are listed by a script that does:
31134         - for each file listed by: git show --oneline --name-only 705f4efc
31135           - deduce the containing modules, based on "Files:"
31136         - deduce the modules which depend on the containing modules, based
31137           on "Depends-on:"
31139 2015-06-18  Daiki Ueno  <ueno@gnu.org>
31141         uniname/uniname: update to Unicode 8.0.0
31142         * lib/uniname/uninames.h: Regenerate.
31143         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
31144         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
31146 2015-06-18  Daiki Ueno  <ueno@gnu.org>
31148         libunistring: update to Unicode 8.0.0
31149         * lib/gen-uni-tables.c (SIZEOF): New macro.
31150         (output_numeric): Increase the maximum number of fractions from
31151         128 to 160.  Increase the level3 value width from 7 bits to 8
31152         bits.  Use SIZEOF instead of a hard-coded integer.
31153         (output_blocks): Decrease the cut-off threshold from 0x30000 to
31154         0x28000.
31155         (fill_blocks): Increase the maximum number of blocks from 256 to
31156         384.  Use SIZEOF instead of a hard-coded integer.
31157         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
31158         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
31159         value width.
31160         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
31161         a new case added to LBP22.
31162         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
31163         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
31164         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
31165         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
31166         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
31167         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31168         lib/uniwidth/width.c.
31169         * all generated files under lib/uni* and tests/uni*: Regenerate.
31171 2015-06-16  Pádraig Brady  <P@draigBrady.com>
31173         gnu-web-doc-update: add --mirror to remove stale files
31174         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
31175         out of date files from the CVS server.  Since this is usually
31176         appropriate, a prompt is given when the option is not specified,
31177         along with the `cvs remove` command that would be run.
31179 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31181         acl-permissions: pacify -Wsuggest-attribute=const
31182         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
31183         * lib/acl-internal.h (free_permission_context):
31184         Declare with attribute const if ! (defined USE_ACL &&
31185         (HAVE_ACL_GET_FILE || defined GETACL)).
31187         fsync: document AIX misbehavior
31188         * doc/posix-functions/fsync.texi (fsync):
31189         Document failure on AIX with read-only file descriptor.
31191 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
31193         stdio: Don't redefine gets when using C++
31194         * lib/stdio.in.h (gets): Disable warning on C++.
31196 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
31198         acl-permissions: port to AIX, C89 HP-UX
31199         Problems reported by Michael Felt.
31200         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
31201         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
31202         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
31203         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
31204         Add cast for AIX, whose system calls are declared to accept
31205         char * even though the arguments are really char const *.
31206         * lib/get-permissions.c (get_permissions):
31207         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
31208         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
31209         that broke a build.
31210         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
31211         Rework types to pacify xlc.
31213 2015-06-03  Pádraig Brady  <P@draigBrady.com>
31215         vasprintf-posix: avoid compiling vasnprintf where possible
31216         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
31217         module where not required.  For example on a GNU/Linux system
31218         when gnulib-tool is run with the --conditional-dependencies option.
31220 2015-06-02  Pádraig Brady  <P@draigBrady.com>
31222         file-has-acl: fix build on Mac OS X 10
31223         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
31224         which has an incompatible 6 parameter getxattr() call.
31225         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
31226         call on Mac OS X >= 10.4.
31227         * doc/glibc-functions/fgetxattr.texi: Likewise.
31228         * lib/file-has-acl.c: Revert to more complete combined check.
31229         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
31230         Reported by Jack Howarth.
31232 2015-06-02  Pádraig Brady  <P@draigBrady.com>
31234         prefix-gnulib-mk: remove no longer needed special case
31235         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
31236         continued lib_SOURCES lines are no longer present,
31237         so special case handling of such entries is not required.
31239 2015-06-01  Pádraig Brady  <P@draigBrady.com>
31241         acl: don't depend on the deprecated qacl module
31242         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
31244 2015-06-01  Pádraig Brady  <P@draigBrady.com>
31246         gnulib-tool: concatenate lib_SOURCES to a single line
31247         * gnulib-tool: Refactor the line merging sed logic,
31248         and use that to output a single lib_SOURCES line for each module.
31249         gnulib using projects often postprocess this output to prepend
31250         subdir paths to each item, and having a single line simplifies this
31251         processing allowing better decoupling from the gnulib-tool output.
31253 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
31255         pthread_sigmask: discount system version if a simple macro (trivial)
31256         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
31257         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
31258         function to ensure it's available.
31260 2015-05-31  Pádraig Brady  <P@draigBrady.com>
31262         readlinkat: avoid OS X 10.10 trailing slash bug
31263         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
31264         has this bug.
31265         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
31266         that OS X 10.10 has this function.
31267         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
31268         as done for readlink().
31269         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
31270         trailing slash bug, and assume readlinkat() has the same issue.
31271         Also fix a typo where $gl_cv_decl_readlink_works was tested,
31272         rather than the correct $gl_cv_decl_readlinkat_works.
31274 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
31276         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
31277         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
31278         module rewrite.
31280         acl-permissions: Fix build on Solaris and Cygwin
31281         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
31282         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
31283         ace_entries variables have moved into struct permission_context but
31284         they were still accessed as local variables here.
31286 2015-05-29  Pádraig Brady  <P@draigBrady.com>
31288         linkat: avoid OS X 10.10 trailing slash with symlink bug
31289         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
31290         causes the symlink to be dereferenced, and if it points
31291         to a non existent file, that file will be created as
31292         a hard link to "path1".
31293         This fixes a test failure in test-linkat.c.
31294         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
31295         this case.  The existing workaround in linkat.c for
31296         trailing slash issues, suffices for this case.
31297         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
31298         the list of platforms with trailing slash issues.
31300 2015-05-28  Pádraig Brady  <P@draigBrady.com>
31302         unlinkat: handle ignoring of ".." on Darwin 14
31303         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
31304         on Mac OS X 10.10, where it ignores paths with a trailing "..",
31305         so handle in the same manner.
31306         * m4/unlinkat.m4: Comment on this Darwin issue.
31307         * doc/posix-functions/unlink.texi: Update the latest version
31308         where the issue was seen.
31309         * doc/posix-functions/unlinkat.texi: Mention this issue.
31310         Fixes a test failure in test-unlinkat.c.
31312 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31314         qacl: split into qcopy-acl and qset-acl
31315         Emacs needs the former, but not the latter.
31316         * modules/acl-permissions: New file, containing most of the old qacl.
31317         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
31318         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
31319         * modules/qcopy-acl, modules/qset-acl: New files.
31320         * MODULES.html.sh (File system functions):
31321         Mention the new modules, and mention qacl while we're at it.
31323 2015-05-27  Glenn Morris  <rgm@gnu.org>
31325         gitlog-to-changelog: new option --ignore-line
31326         (This patch is imported from the GNU Emacs master.)
31327         This option ignores individual commit lines matching a pattern.
31328         * build-aux/gitlog-to-changelog: Add --ignore-line option.
31330 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
31332         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
31333         Implement get_permissions and set_permissions primitives for getting all
31334         the permissions of a file, storing them, and later setting them. (In the
31335         minimal case, the permissions consist only of a file mode.) Reimplement
31336         qset_acl and qcopy_acl based on these new primitives: this avoids code
31337         duplication and makes error handling more consistent.
31338         The Solaris and Cygwin code still uses duplicate code paths for setting
31339         a file mode while making sure that no acls exist and setting an explicit
31340         acl; this is no worse than before, but could be cleaned up.  The AIX
31341         code still doesn't read ACLs, it only makes sure that acls don't get in
31342         the way when setting a file mode.
31343         * lib/acl-internal.h (struct permission_context): New data structure.
31344         (get_permissions, set_permissions, free_permission_context): Declare.
31345         * lib/acl-internal.c (free_permission_context): New helper function.
31346         * lib/get-permissions.c (get_permissions): New helper function split off
31347         from qcopy_acl.
31348         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
31349         AIX, set a file's permissions based only on a file mode.
31350         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
31351         other platforms construct a temporary acl from the file mode and set
31352         that acl in the same way as setting an acl read from the source file.
31353         This should help avoid code duplication and inconsistent / buggy
31354         behavior.
31355         (set_acls): New helper function Split off from qcopy_acl.
31356         (chmod_or_fchmod): Moved here from qset-acl.c.
31357         (set_permissions): New helper function.
31358         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
31359         set_permissions.
31360         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
31361         * modules/qacl: Add get-permissions.c and set-permissions.c.
31363         file-has-acl: Split feature tests again (Bug#20667)
31364         * lib/file-has-acl.c: Instead of testing for
31365         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
31366         define them when needed.
31367         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
31368         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
31370 2015-05-27  Pádraig Brady  <P@draigBrady.com>
31372         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
31373         This avoids a conflict with "FORTIFY_SOURCE" variants
31374         of the string functions when they're replaced on NetBSD-6.0.1
31375         and Darwin-14.3.0 at least.
31376         * lib/string.in.h: Avoid including our "lib/string.h" while
31377         including the system <string.h>.
31379 2015-05-26  Eric Blake  <eblake@redhat.com>
31381         stdio: limit __gnu_printf__ witness to gcc 4.4+
31382         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
31383         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
31385         error: use correct printf attributes on mingw
31386         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
31388         inttypes: force correct mingw PRIdMAX even without <stdio.h>
31389         * modules/inttypes (Depends-on): Require extensions, so that mingw
31390         always uses GNU style inttypes.
31391         * lib/inttypes.in.h: On mingw, include <stdio.h>.
31393         stdio: fix probe on mingw under gcc 5.1
31394         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
31395         around new gcc preprocessor rules.
31397 2015-05-07  Glenn Morris  <rgm@gnu.org>
31399         gitlog-to-changelog: parse "Tiny-change"
31400         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
31401         "Copyright-paperwork-exempt".  (Bug#20324)
31403 2015-05-06  Pádraig Brady  <P@draigBrady.com>
31405         doc: document glibc posix_fallocate() issues
31406         * doc/posix-functions/posix_fallocate.texi: Mention the
31407         glibc efficiency problems and issues with NFS.
31409 2015-05-05  Karl Berry  <karl@freefriends.org>
31411         * build-aux/gendocs.sh (usage): document new css default
31412         for HTML (--htmlarg).
31414 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31416         extern-inline: no need for workaround in GCC 5.1
31417         * doc/extern-inline.texi (extern inline):
31418         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31419         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
31420         around these bugs in GCC 5.1 and later.  Maybe in a decade or
31421         two we can remove these workarounds.
31423 2015-04-28  Pádraig Brady  <P@draigBrady.com>
31425         eealloc, pagealign_alloc, xalloc: avoid clang warnings
31426         Avoid [-Wunknown-attributes] warnings like:
31427         warning: unknown attribute '__alloc_size__' ignored
31428         * lib/xalloc.h: Don't use the __alloc_size__  attribute
31429         with clang, as support has been fully removed as of clang 3.5:
31430         https://github.com/llvm-mirror/clang/commit/c047507a
31431         * lib/eealloc.h: Likewise.
31432         * lib/pagealign_alloc.h: Likewise.
31434 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31436         tests: pacify GCC 5.1's stricter printf checking
31437         * tests/test-dirname.c (main):
31438         * tests/test-getaddrinfo.c (simple):
31439         * tests/test-getlogin.c (main):
31440         * tests/test-getndelim2.c (main):
31441         * tests/test-inttostr.c (CK):
31442         * tests/test-md5.c (main):
31443         * tests/test-read-file.c (main):
31444         * tests/test-sha1.c (main):
31445         Fix mismatches between printf format and value signedness.
31446         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
31447         Remove, as CAST_VAL always returned a value of type uintmax_t.
31449         fts: port to GCC 5.1 with --enable-gcc-warnings
31450         Without this fix, GCC 5.1 (correctly) warns about a subscript
31451         error on the fts_name component of FTSENT.  It's actually a
31452         flexible member, so define it that way on C99 or later hosts.
31453         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
31454         structure that now has a flexible array member.
31455         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
31456         (FTSENT): fts_name is now flexible on C99-or-later platforms.
31457         * modules/fts (Depends-on): Add flexmember.
31459 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
31461         file-has-acl: port to CentOS 6
31462         Problem reported by Tom G. Christensen in:
31463         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
31464         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
31465         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
31466         HAVE_GETXATTR.
31467         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
31468         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
31469         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
31470         file-has-acl.c actually needs.
31472 2015-04-26  Pádraig Brady  <P@draigBrady.com>
31474         file-has-acl: always return false when ACLs aren't supported
31475         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
31476         change the GNU/Linux getxattr path, to transform "not supported"
31477         errors to a false return rather than an error.  This is handled
31478         within file_has_acl() due to the platform specific tests to
31479         determine if ACLs are not supported.
31481 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
31483         gettext: propagate po/Makefile.in.in too
31484         * build-aux/po/Makefile.in.in: Copy from latest gettext.
31485         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
31486         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
31487         between Makefile.in.in and the gettext-runtime m4 files.
31489 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
31491         file-has-acl: new module, split from acl
31492         And add a new module file-has-acl-tests to match.
31493         I ran into a problem with the recent changes to the acl module,
31494         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
31495         When using the fixed version with Emacs, I discovered that
31496         file-has-acl wasn't separated out well enough for Emacs (e.g., it
31497         had multiple libraries, but needed only one), so I fixed that too.
31498         * NEWS: Document this incompatible change.
31499         * modules/file-has-acl, modules/file-has-acl-tests: New files.
31500         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
31501         Initialize gl_need_lib_has_acl.
31502         (gl_FUNC_ACL): Require it.
31503         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
31504         Move the file-has-acl.c-relevant stuff to ...
31505         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
31506         use_xattrs = 0' typo, and omit some needless work.  Set
31507         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
31508         when gl_FUNC_ACL is called.
31509         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
31510         (Link): Remove $(LIB_HAS_ACL).
31511         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
31512         (check_PROGRAMS): Move stuff relevant to file-has-acl to
31513         modules/file-has-acl-tests.
31514         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
31516         manywarnings: add GCC 5.1 warnings
31517         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
31518         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
31519         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
31520         -Wsuggest-override, -Wuse-without-only.  Change
31521         -Wnormalized=... operands to match 5.1.
31522         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
31523         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
31524         -Wdiscarded-qualifiers, -Wformat-signedness,
31525         -Wincompatible-pointer-types, -Wint-conversion,
31526         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
31527         -Wshift-count-negative, -Wshift-count-overflow,
31528         -Wsizeof-array-argument, -Wsuggest-final-methods,
31529         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
31530         and add -Warray-bounds=2 as a special case.
31532 2015-04-21  Simon Josefsson  <simon@josefsson.org>
31534         doc: update FDL template to match FDL examples.
31535         * doc/alloca-opt.texi:
31536         * doc/alloca.texi:
31537         * doc/c-ctype.texi:
31538         * doc/c-strcase.texi:
31539         * doc/c-strcaseeq.texi:
31540         * doc/c-strcasestr.texi:
31541         * doc/c-strstr.texi:
31542         * doc/c-strtod.texi:
31543         * doc/c-strtold.texi:
31544         * doc/ctime.texi:
31545         * doc/error.texi:
31546         * doc/gcd.texi:
31547         * doc/gnulib-tool.texi:
31548         * doc/inet_ntoa.texi:
31549         * doc/intprops.texi:
31550         * doc/lib-symbol-visibility.texi:
31551         * doc/maintain.texi:
31552         * doc/parse-datetime.texi:
31553         * doc/quote.texi:
31554         * doc/regexprops-generic.texi:
31555         * doc/standards.texi: Remove spurious 'with' in FDL license
31556         template.
31558 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
31560         lstat: fix cross-compilation 'ln -s' problem
31561         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
31562         Have the test program call 'symlink' rather than a separate
31563         script run 'ln -s'; this is more likely to work in
31564         cross-compilation environments.  Reported by Pavel Fedin in:
31565         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
31567 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
31569         gendocs.sh: default to a common CSS style sheet for HTML output
31570         * build-aux/gendocs.sh (htmlarg): Change default value.
31572 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
31574         gnulib-tool: output bold attribute more portably
31575         * gnulib-tool (func_show_module_list): Change hexadecimal
31576         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
31577         encoded numbers as arguments to `printf' is not portable,
31578         and is not claimed by POSIX.  This is the case with FreeBSD.
31580 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
31582         qacl: Simplify HP-UX acl_nontrivial check
31583         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
31584         acl_nontrivial. Check if the acl has at most three entries instead (it must
31585         have exactly three entries according to the HP-UX documentation). Ignore
31586         uids and gids as long as an entry is either for a user (i.e., the owner),
31587         a group (i.e., the owning group), or others.
31588         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
31589         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
31591 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
31593         acl: On Linux, check for acls without libacl
31594         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
31595         library function to check for the presence of acls, avoiding a library.
31596         * lib/file-has-acl.c: Include xattr headers if we have them.
31597         (file_has_acl): On Linux, use getxattr().
31598         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
31599         file_has_acl(). Check for xattr headers and getxattr().
31601 2015-04-14  Ángel González  <keisial@gmail.com>
31603         tempname: avoid unused parameter warnings (trivial)
31604         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
31605         (try_nocreate): Likewise.
31607 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
31609         fseeko: fix build failure on NetBSD >= 6 (trivial)
31610         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
31611         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
31613 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31615         gitlog-to-changelog: port to MS-Windows
31616         * build-aux/gitlog-to-changelog (git_dir_option):
31617         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
31618         MS-Windows Perl.  Reported by Eli Zaretskii in:
31619         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
31621 2015-04-07  Karl Berry  <karl@gnu.org>
31623         gendocs: new option --tex for passing args to texi2dvi.
31624         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
31625         (TEXI2DVI): cut to just command name.
31626         (usage): mention new option, and update copyright.
31627         <generate_tex>: use it.
31629 2015-04-07  Karl Berry  <karl@gnu.org>
31631         * config/srclistvars.sh (GETTEXT): new definition.
31632         * config/srclist.txt: use it for gettext .m4 files.
31633         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
31634         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
31635         and continuing into April.
31637 2015-04-07  Daiki Ueno  <ueno@gnu.org>
31639         uniname/uniname-tests: fix failure due to alias
31640         Reported by Jack Howarth in:
31641         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
31642         * tests/uniname/test-uninames.c (name_has_alias): New function.
31643         (test_inverse_lookup): Exclude character name with valid alias,
31644         from randomly generated character names.
31645         (main): Fill unicode_aliases before calling test functions.
31647 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
31649         hash: remove deprecated hash_insert0 function
31650         * lib/hash.h (hash_insert0): Remove deprecated function.
31651         * lib/hash.c (hash_insert0): Likewise.
31653 2015-04-02  Pádraig Brady  <P@draigBrady.com>
31655         mountlist: remove dependency on libmount
31656         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
31657         directly, rather than depending on libmount, which has many
31658         dependencies due to its dependence on libselinux, as detailed at:
31659         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
31660         Note we restrict this to __linux__ as that's probably where this
31661         interface will remain.  If ever porting, it would be best
31662         to first pull the makedev() wrapper from coreutils to a gnulib module.
31663         Note also we don't add a getline dependency to the mountlist module,
31664         as all Linux versions are sufficient.
31666 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31668         stddef: port to pre-C11 GCC on x86
31669         On this platform, max_align_t should have an alignment of 8 even
31670         though the storage alignments of double, long, etc. max out at 4.
31671         Inspired by a comment of Andreas Schwab's here:
31672         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
31673         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
31674         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
31675         * tests/test-stddef.c: Test __alignof__ too, if available.
31677 2015-03-24  Pádraig Brady  <P@draigBrady.com>
31679         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
31680         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
31682 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
31684         yesno: make EOL optional in ENABLE_NLS case also (trival)
31685         * lib/yesno.c (yesno): Check for EOL before replacing.
31686         * tests/test-yesno.sh: Add a test case (test along with gettext).
31688 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
31690         fdopendir-tests: test it does not close its arg
31691         * tests/test-fdopendir.c (main): Test that fdopendir does not
31692         close its argument.  From a suggestion by David Grayson in:
31693         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
31695 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
31697         gitlog-to-changelog: trim trailing white space
31698         * build-aux/gitlog-to-changelog (main):
31699         Trim trailing white space from commit message lines.
31700         This is helpful for processing the GNU Emacs repository,
31701         which dates back to 1985 and contains a lot of such lines.
31703         gitlog-to-changelog: new option --ignore-matching
31704         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
31705         Support new option --ignore-matching=PAT, which ignores all
31706         commit messages whose first line matches PAT.
31708 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31710         fdopendir: port better to MinGW
31711         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
31712         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
31713         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
31714         * modules/fdopendir (Depends-on): Add dirfd.
31716 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31718         fdopendir: fix typo in comment
31719         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
31721 2015-03-09  Eric Blake  <eblake@redhat.com>
31723         error: document all entry points provided
31724         * doc/glibc-functions/error_print_progname.texi
31725         (error_print_progname): Mention the error module.
31726         * doc/glibc-functions/error_at_line.texi (error_at_line):
31727         Likewise.
31728         * doc/glibc-functions/error_message_count.texi
31729         (error_message_count): Likewise.
31730         * doc/glibc-functions/error_one_per_line.texi
31731         (error_one_per_line): Likewise.
31733 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
31735         vasnprintf: pacify clang 3.5.0
31736         Problem reported by Werner Lemberg in:
31737         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
31738         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
31739         The casts aren't needed, since the characters in question are ASCII.
31741 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31743         glob, etc.: port to MSVC v18 on MS-Windows 8.1
31744         * lib/dirent--.h (GNULIB_defined_opendir):
31745         * lib/dirent.in.h (GNULIB_defined_opendir)
31746         (GNULIB_defined_closedir):
31747         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
31748         #undef only if Gnulib defined it.
31750         poll: port to MSVC v18 on MS-Windows 8.1
31751         Problem reported by Gisle Vanem in:
31752         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
31753         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
31754         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
31755         Add sys_socket.
31757 2015-02-24  Pádraig Brady  <P@draigBrady.com>
31759         tests: support stderr verification with returns_()
31760         * tests/init.sh (returns_): Disable tracing for this wrapper
31761         function, so that stderr of the wrapped command is unchanged,
31762         allowing for verification of the contents.
31764 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
31766         passfd: avoid valgrind uninitalised data warning
31767         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
31768         to include just the fd we've initialized, rather than including
31769         the extra space used for alignment.
31771 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
31773         uniwbrk/u32-wordbreaks-tests: fix copyright
31774         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
31776         dup2: doc and test for Android bug
31777         Reported by Kevin Cernekee in:
31778         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
31779         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31780         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
31782 2015-02-23  Kevin Cernekee  <cernekee@google.com>
31784         Replace dup2() on Android
31785         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
31786         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
31787         fails.  Using rpl_dup2() fixes this because it has an explicit test
31788         for this condition.
31790 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
31792         Android doesn't define RLIM_SAVED_*
31793         Portability problem reported by Kevin Cernekee in:
31794         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
31795         * doc/posix-headers/sys_resource.texi (sys/resource.h):
31796         Mention the portability problem.
31797         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
31798         Define if not defined.
31799         * m4/dup2.m4 (gl_FUNC_DUP2):
31800         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31801         Likewise.
31803 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31805         vasnprintf-posix-tests: use consistent test
31806         * tests/test-vasnprintf-posix.c (test_function):
31807         Use "<" in assert instead of "<=", for consistency with other tests.
31809 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31811         printf, isinf, etc.: noncanonical != NaN
31812         Do not require that isinf, printf, etc. treat noncanonical
31813         values as NaNs.  Instead, require only that they do not crash.
31814         Problem reported by Joseph Myers in:
31815         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
31816         * doc/posix-functions/dprintf.texi (dprintf):
31817         * doc/posix-functions/fprintf.texi (fprintf):
31818         * doc/posix-functions/isfinite.texi (isfinite):
31819         * doc/posix-functions/isinf.texi (isinf):
31820         * doc/posix-functions/isnan.texi (isnan):
31821         * doc/posix-functions/printf.texi (printf):
31822         * doc/posix-functions/snprintf.texi (snprintf):
31823         * doc/posix-functions/sprintf.texi (sprintf):
31824         * doc/posix-functions/vdprintf.texi (vdprintf):
31825         * doc/posix-functions/vfprintf.texi (vfprintf):
31826         * doc/posix-functions/vprintf.texi (vprintf):
31827         * doc/posix-functions/vsnprintf.texi (vsnprintf):
31828         * doc/posix-functions/vsprintf.texi (vsprintf):
31829         Document this.
31830         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
31831         * m4/isinf.m4 (gl_ISINFL_WORKS):
31832         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
31833         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
31834         * tests/test-isfinite.c (test_isfinitel):
31835         * tests/test-isinf.c (test_isinfl):
31836         * tests/test-isnan.c (test_long_double):
31837         * tests/test-isnanl.h (main):
31838         * tests/test-snprintf-posix.h (test_function):
31839         * tests/test-sprintf-posix.h (test_function):
31840         * tests/test-vasnprintf-posix.c (test_function):
31841         * tests/test-vasprintf-posix.c (test_function):
31842         Test only that noncanonical values do not cause crashes, not that
31843         they are treated as NaNs.  In some cases this means a larger
31844         output buffer is needed.
31846 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
31848         fts: remove redundant close() (trivial)
31849         * lib/fts.c (fts_read): Remove redundant call to close().
31850         Spotted by coverity.
31852 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31854         getdtablesize: port better for Android
31855         Problem reported by Kevin Cernekee in:
31856         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
31857         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
31858         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
31859         Instead, just use getrlimit, taking care to avoid Cygwin bug.
31861         poll: fixes for large fds
31862         * lib/poll.c (poll): Don't check directly for NFD too large.
31863         Don't rely on undefined behavior in FD_SET when an arg exceeds
31864         FD_SETSIZE.  Always set revents afterwards, even if to zero.
31865         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
31866         as that makes the test a bit stricter.
31868 2015-02-19  Kevin Cernekee  <cernekee@google.com>
31870         fcntl: Fix cross compiling
31871         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
31872         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
31874 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31876         dup2, fcntl: cross-compile better for Android
31877         Problem reported by Kevin Cernekee in:
31878         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
31879         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
31880         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
31881         there's little need to cross-compile for older kernels nowadays.
31882         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
31883         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
31885 2015-02-18  Pádraig Brady  <P@draigBrady.com>
31887         getopt: don't crash on memory exhaustion
31888         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
31889         memory exhaustion.  In the _LIBC case we use alloca() as is
31890         already done in glibc, so we don't need to consider the separate
31891         error path in that awkward case.  Also fix a memory leak when
31892         ambiguous options are present.
31893         Reported by Tobias Stoeckmann
31895 2015-02-17  Mike Miller  <mtmiller@ieee.org>
31897         tempname: allow compilation with C++ (trivial)
31898         * lib/tempname.h [C++]: Specify extern "C" linkage.
31899         * lib/tempname.h (try_tempname):
31900         * lib/tempname.c (__try_tempname, __gen_tempname):
31901         Rename 'try' to 'tryfunc'.
31903 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
31905         dup2, fcntl: port to AIX
31906         * m4/dup2.m4 (gl_FUNC_DUP2):
31907         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31908         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
31909         The former works on AIX 7.1 but the latter does not.
31910         Also, this may work better with Android; see:
31911         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
31913 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
31915         getdtablesize, dup2, fcntl: port to Android
31916         Problem reported by Kevin Cernekee in:
31917         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
31918         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
31919         Mention that getdtablesize doesn't work on Android.
31920         * lib/getdtablesize.c: Use getrlimit substitute only if
31921         getdtablesize is declared.  This should suffice for Cygwin
31922         while not breaking Android.
31923         * m4/dup2.m4 (gl_FUNC_DUP2):
31924         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31925         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
31926         standardized but the latter is not, and sysconf works on Android.
31927         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
31928         Also check that getdtablesize is declared.
31929         This removes the need for a special case for Android.
31931 2015-02-16  Kevin Cernekee  <cernekee@google.com>
31933         localename: Implement gl_locale_name_thread_unsafe for Android
31934         * lib/localename.c: Android API level >= 21 supports two hardcoded
31935         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
31936         the internal __locale_t struct.
31938 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
31940         fts: avoid crash when a cycle is added while traversing
31941         This could be triggered by auto-mounting a recursive bind mount.
31942         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
31943         * lib/fts.c (fts_read): Avoid removing the original hash table item
31944         when leaving a directory that caused a cycle, and preserve the FTS_DC
31945         flag.
31947 2015-02-16  Daiki Ueno  <ueno@gnu.org>
31949         uniname/uniname: support character alias
31950         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
31951         Generate one-way mapping from aliases to codepoints in the
31952         generated tables.  Special case variation selectors to reduce
31953         table size.
31954         * lib/uniname/uniname.c (unicode_character_name): Special case
31955         variation selectors.
31956         (unicode_name_character): Special case variation selectors and
31957         their aliases.
31958         * lib/uniname/uninames.h: Regenerate.
31959         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
31960         * modules/uniname/uniname-tests (Files): Add
31961         tests/uniname/NameAliases.txt.
31962         * tests/uniname/test-uninames.c: Mark as static.
31963         (ALIASLEN): Define.
31964         (struct unicode_alias): New struct.
31965         (unicode_aliases): New variable.
31966         (fill_aliases): New function.
31967         (test_alias_lookup): New test function.
31968         (main): Run the 'test_alias_lookup' test if the second argument is
31969         given.
31970         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
31971         second argument.
31973 2015-02-11  Kevin Cernekee  <cernekee@google.com>
31975         Fix FILE struct compatibility with Android API level >= 21
31976         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
31977         __sferror.  Recent versions of Bionic's stdio.h no longer define
31978         __sferror.
31979         * lib/fbufmode.c: Likewise.
31980         * lib/fflush.c: Likewise.
31981         * lib/fpurge.c: Likewise.
31982         * lib/freadable.c: Likewise.
31983         * lib/freadahead.c: Likewise.
31984         * lib/freading.c: Likewise.
31985         * lib/freadptr.c: Likewise.
31986         * lib/freadseek.c: Likewise.
31987         * lib/fseeko.c: Likewise.
31988         * lib/fseterr.c: Likewise.
31989         * lib/fwritable.c: Likewise.
31991         Assume unbroken ungetc() on Android
31992         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
31993         test case passed when running on an Android host, and the code
31994         hasn't really changed since 2009.
31996         getdtablesize: Fix Android build
31997         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
31998         versions have this symbol in the .so library (at least 32-bit
31999         platforms) but are missing the declaration in the header file,
32000         causing the m4 logic to guess incorrectly.
32002         localename: Fix Android build
32003         * modules/localename (Depends-on): Add langinfo.
32005         getugroups: Fix Android build
32006         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
32007         functions.
32009         euidaccess: Fix Android build
32010         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
32011         AT_EACCESS gets declared.
32013         linkat_nofollow: Add fallback case for cross compiling
32014         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
32016         net_if: Handle content-free <net/if.h> system headers
32017         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
32018         struct if_nameindex.  If not, enable the replacement header.
32020         signal_h: Fix Android build
32021         * lib/signal.in.h: Add Android to the list of platforms that declare
32022         pthread_sigmask() in <pthread.h> instead of <signal.h>.
32024         duplocale: Fix Android build of duplocale-tests
32025         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
32026         is included by test-duplocale.c (but not by duplocale.c).
32027         * modules/duplocale-tests (configure.ac): Check for monetary.h.
32028         * tests/test-duplocale.c: Skip test if monetary.h is absent.
32029         * doc/posix-headers/monetary.texi: Add Android to the list of
32030         platforms missing monetary.h.
32032 2015-02-11  Pádraig Brady  <P@draigBrady.com>
32034         tests: avoid recent -Werror=unused-variable regression in test-locale
32035         * tests/test-locale.c (main): Reference the variable to avoid the
32036         "unused variable" warning.
32038 2015-02-11  Pádraig Brady  <P@draigBrady.com>
32040         maint: various whitespace cleanups in tempname
32041         * lib/tempname.c: Normalize spacing and line length.
32042         * lib/tempname.h: Likewise.
32043         * modules/tempname: Likewise.
32045 2015-02-11  Pádraig Brady  <P@draigBrady.com>
32047         tests: provide returns_() to simplify exit status checking
32048         * tests/init.sh (returns_): A new function for use in tests,
32049         to allow for easier checking of return values, where you expect
32050         a command to exit with failure status.  By checking for a particular
32051         exit code, you don't hide any crashes for example.
32053 2015-02-11  Pádraig Brady  <P@draigBrady.com>
32055         mountlist: only use libmount when specified
32056         There are currently many shared libs dependencies introduced by
32057         libmount with associated runtime and virt mem overhead.
32058         Therefore don't enable by default.
32059         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
32061 2015-02-08  Daiki Ueno  <ueno@gnu.org>
32063         uniname/unimame-tests: don't link with -lunistring
32064         * modules/uniname/uniname-tests (Makefile.am): Don't link against
32065         $(LIBUNISTRING).  Document the rationale why we need to
32066         conditionalize the test.
32068 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32070         fstrcmp: don't assume strlen < INT_MAX
32071         * lib/fstrcmp.c: Include stddef.h and stdint.h.
32072         (uintptr_t): Remove, as we're now assuming stdint.
32073         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
32074         Prefer ptrdiff_t to int when the value could exceed INT_MAX
32075         if the input string is long.
32076         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
32077         uintptr_t to size_t when the underlying value is a pointer casted
32078         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
32079         * modules/fstrcmp (Depends-on): Add stdint.
32081         diffseq: prefer ptrdiff_t to ssize_t
32082         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
32083         ptrdiff_t is the natural type for signed indexes.
32084         On a few older platforms, ssize_t is narrower than size_t.
32086         xalloc: fix typo that suppressed warnings
32087         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
32088         This typo, introduced a couple of years ago, mistakenly suppressed
32089         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
32090         -Wmissing-declarations warnings.
32092         full-read: fix license notice typo
32093         * lib/full-read.h: Remove a stray line in the license notice.
32094         Reported by Sam Ellis in: http://bugs.gnu.org/19808
32096         crypto/gc: fix a -Wswitch warning
32097         Reported by Bruce Korb in:
32098         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
32099         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
32101 2015-02-03  Pádraig Brady  <P@draigBrady.com>
32103         gnulib-tool: fix handling of patch(1) diagnostics
32104         * gnulib-tool: Send diagnostics from patch(1) to stderr,
32105         as otherwise gnulib-tool will reparse that output and attempt
32106         to lookup modules.
32108 2015-02-03  Pádraig Brady  <P@draigBrady.com>
32110         bootstrap: exit immediately upon gnulib-tool failure
32111         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
32112         This was noticed when gnulib-tool exited early due to failure
32113         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
32114         but various confusing errors were then given as the build proceeded.
32116 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
32118         symlinkat: include all required header files
32119         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
32120         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
32121         Reported at https://savannah.gnu.org/bugs/index.php?44151
32122         and by Jack Howarth.
32124 2015-01-29  Pádraig Brady  <P@draigBrady.com>
32126         localename: support Solaris 12 and illumos
32127         * lib/localename.c (gl_locale_name_thread_unsafe): call
32128         getlocalename_l() on newer __sun platforms.
32129         Reported by Alexander Pyhalov.
32130         Fix suggested by Rich Burridge.
32132 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
32134         locale: fix tests on illumos (trivial)
32135         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
32136         so move from global scope to main().
32138 2015-01-24  Daiki Ueno  <ueno@gnu.org>
32140         unictype: avoid undefined left-shift behavior
32141         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
32142         gcc's -fsanitize=shift and running its tests triggered:
32143           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
32144             places cannot be represented in type 'int'
32145         Cast LHS to 'unsigned int' after integer promotion.
32146         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
32147         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
32149 2015-01-20  Daiki Ueno  <ueno@gnu.org>
32151         libunistring: bump version of unitypes dependants
32152         Due to the header file search order, all the headers which depend
32153         on unitypes.h need to be generated, when the preinstalled
32154         libunistring is older.
32155         * modules/unicase/base (configure.ac): Bump minimum version to
32156         0.9.4.
32157         * modules/uniconv/base (configure.ac): Likewise.
32158         * modules/unilbrk/base (configure.ac): Likewise.
32159         * modules/uninorm/base (configure.ac): Likewise.
32160         * modules/unistdio/base (configure.ac): Likewise.
32161         * modules/unistr/base (configure.ac): Likewise.
32162         * modules/uniwbrk/base (configure.ac): Likewise.
32163         * modules/uniwidth/base (configure.ac): Likewise.
32165 2015-01-20  Daiki Ueno  <ueno@gnu.org>
32167         unictype/category-none: fix link with libunistring
32168         Since _UC_CATEGORY_NONE is not a public symbol, it will be
32169         prefixed with "libstring_" when compiled as part of libunistring.
32170         To avoid undefined symbol at link time, increase the minimum
32171         version when the dependant modules are updated.
32172         * modules/unictype/category-none (configure.ac): Bump minimum
32173         version to 0.9.5.
32175 2015-01-20  Daiki Ueno  <ueno@gnu.org>
32177         unitypes: fix build with installed libunistring
32178         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
32179         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
32180         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
32182 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32184         time: port to MinGW32 3.21
32185         Problem reported by Eli Zaretskii in:
32186         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
32187         * lib/time.in.h:
32188         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
32189         * modules/time (Depends-on):
32190         Fall back on unistd.h if the other include files don't define
32191         struct timespec.
32193         update-copyright: apply to self
32194         * build-aux/update-copyright: Fix copyright date.  How ironic!
32196 2015-01-15  Daiki Ueno  <ueno@gnu.org>
32198         libunistring: update to Unicode 7.0.0
32199         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
32200         Manichaean names.
32201         * lib/unictype/joininggroup_name.h: Likewise.
32202         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
32203         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
32204         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
32205         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
32206         (fill_arabicshaping, joining_group_as_c_identifier): Support those
32207         enum values.
32208         (is_property_alphabetic): Accept newly added characters to
32209         cuneiform numeric signs.
32210         (is_property_default_ignorable_code_point): Reject U+0605.
32211         (FIELDLEN): Increase from 120 to 160.
32212         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
32213         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
32214         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
32215         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
32216         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
32217         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
32218         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
32219         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
32220         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
32221         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
32222         U+1E8D0..U+1E8D6.
32223         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
32224         * tests/uniwidth/test-uc_width2.sh: Same updates as in
32225         lib/uniwidth/width.c.
32226         * all generated files under lib/uni* and tests/uni*: Regenerate.
32228 2015-01-14  Daiki Ueno  <ueno@gnu.org>
32230         libunistring: update to Unicode 6.3.0
32231         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
32232         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
32233         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
32234         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
32235         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
32236         Update WB5, WB9, WB10, WB13a, and WB13b.
32237         * tests/uniwbrk/test-uc-wordbreaks.c
32238         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
32239         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
32240         (UC_BIDI_PDI): New enumeration values.
32241         (bidi_category_byname): Support those enum values.
32242         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
32243         dedicated property assigned.
32244         (is_property_case_ignorable): Check 0x0027.
32245         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
32246         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
32247         (output_wbp): Support those enum values.
32248         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
32249         (UC_BIDI_PDI): New enumeration values.
32250         * lib/unictype/bidi_byname.gperf: Add those property names.
32251         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
32252         U+180E, U+1A1B, and U+2066..U+2069.
32253         * tests/uniwidth/test-uc_width2.sh: Same updates as in
32254         lib/uniwidth/width.c.
32255         * all generated files under lib/uni* and tests/uni*: Regenerate.
32257 2015-01-14  Daiki Ueno  <ueno@gnu.org>
32259         libunistring: update to Unicode 6.2.0
32260         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
32261         (unilbrk_table): Adjust table size.
32262         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
32263         for LBP_RI.
32264         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
32265         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
32266         Normalize table index skipping ignored properties.
32267         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
32268         WBP_EXTEND and WBP_FORMAT, which are now computed without using
32269         the table.
32270         * lib/uniwbrk/wbrktable.h: Adjust table size.
32271         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
32272         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
32273         Support rule GB8a.
32274         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
32275         * tests/unigbrk/test-uc-is-grapheme-break.c
32276         (graphemebreakproperty_to_string): Support GBP_RI.
32277         * tests/uniwbrk/test-uc-wordbreaks.c
32278         (wordbreakproperty_to_string): Support WBP_RI.
32279         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
32280         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
32281         (output_lbp): Support LBP_RI.  Adjust some characters changed from
32282         LBP_AL to LBP_ID.
32283         (output_lbp): Support LBP_RI.
32284         (WBP_RI): New enumeration value.
32285         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
32286         (output_wbp): Support WBP_RI.
32287         (GBP_RI): New enumeration value.
32288         (output_gbp_test, fill_org_gbp): Support GBP_RI.
32289         * all generated files under lib/uni* and tests/uni*: Regenerate.
32291 2015-01-14  Daiki Ueno  <ueno@gnu.org>
32293         libunistring: update to Unicode 6.1.0
32294         * lib/gen-uni-tables.c (output_joining_group): Switch to
32295         3-level table to accommodate joining groups defined with higher
32296         codepoint value.  Since there are only 88 groups defined in
32297         Unicode 7.0.0, use 7-bit packed format for level3 entries.
32298         (get_lbp): Update for Unicode 6.1.0.
32299         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
32300         3-level table.
32301         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
32302         joining group name.
32303         * lib/unictype/joininggroup_name.h: Likewise.
32304         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
32305         (unilbrk_table): Adjust table size.
32306         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
32307         for LBP_HL.
32308         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
32309         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
32310         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
32311         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
32312         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
32313         U+302E..U+302F.
32314         * tests/uniwidth/test-uc_width2.sh: Same updates as in
32315         lib/uniwidth/width.c.
32316         * all generated files under lib/uni* and tests/uni*: Regenerate.
32317         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
32319 2015-01-15  Daiki Ueno  <ueno@gnu.org>
32321         uniwbrk/u32-wordbreaks-tests: add conformance test
32322         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
32323         tests/uniwbrk/test-uc-wordbreaks.c,
32324         tests/uniwbrk/test-uc-wordbreaks.sh, and
32325         tests/uniwbrk/WordBreakTest.txt.
32326         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
32327         test-uc-wordbreaks to $(check_PROGRAMS), and define
32328         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
32329         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
32330         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
32332 2015-01-15  Daiki Ueno  <ueno@gnu.org>
32334         uniwbrk: ignore Extended/Format characters at BOL not BOS
32335         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
32336         characters if the previous character property is one of
32337         WBP_NEWLINE, WBP_CR, and WBP_LF.
32339 2015-01-11  Jim Meyering  <meyering@fb.com>
32341         test-strstr.c: avoid a trivial leak
32342         * tests/test-strstr.c (main): Free haystack.
32344         update-copyright: recognize groff's \(co marker
32345         * build-aux/update-copyright (circle_c_re): Also accept
32346         uses of \(co, as found in gzip.1.
32348 2015-01-08  Pádraig Brady  <P@draigBrady.com>
32350         maint.mk: fix compatibility with OS X nm
32351         * top/maint.mk (_gl_tight_scope): Use the -g option to
32352         show exported items rather than the -e option which is
32353         ignored on all platforms except OS X where it gives an error.
32354         Reported by Assaf Gordon.
32356 2015-01-07  KO Myung-Hun  <komh@chollian.net>
32358         localcharset: improve charset detection on OS/2
32359         Use system codepage when appropriate.  Map OS/2 codepages to
32360         GNU canonical charset names if possible.
32361         * lib/config.charset: Don't output aliases if "$os" is os2*.
32362         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
32363         result for OS/2.
32364         (locale_charset) [OS2]: Use system codepage if codeset is omitted
32365         from the locale name which is neither "C" nor "POSIX".
32367 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32369         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
32370         This reverts the last patch but one, as it shouldn't be needed now
32371         that the typo is fixed.
32372         * lib/count-leading-zeros.h (count_leading_zeros_ll):
32373         * lib/count-trailing-zeros.h:
32374         * lib/count-one-bits.h:
32375         Go back to using 64-bit intrinsics.
32377         count-leading-zeros: fix pragma typos
32378         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
32379         Fix typos in declaration of intrinsics when _MSC_VER.
32381 2015-01-06  Pádraig Brady  <P@draigBrady.com>
32383         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
32384         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
32385         intrinsics in this case.
32386         * lib/count-trailing-zeros.h: Likewise.
32387         * lib/count-one-bits.h: Likewise.
32389 2015-01-06  Daiki Ueno  <ueno@gnu.org>
32391         uniname/uniname: update to Unicode 7.0.0
32392         To accommodate new characters added since Unicode 5.1.0, this
32393         changes the internal representation of codepoint ranges.
32394         Previously, we grouped codepoint ranges by manually assigned 4-bit
32395         tag, which only allowed 16 groups.  This removes the limitation by
32396         switching to binary search on a table.  For the detail rationale
32397         and the benchmark results, see:
32398         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
32399         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
32400         to INDEX, as it no longer represents a codepoint.
32401         (range): New struct.
32402         (main): Switch to intervals list from a bit-pattern based
32403         classification.
32404         * lib/uniname/uninames.h: Regenerate.
32405         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
32406         * modules/uniname/base (configure.ac): Bump minimum version to
32407         0.9.5.
32408         * modules/uniname/uniname (configure.ac): Bump minimum version to
32409         0.9.5.
32411 2015-01-05  Eric Blake  <eblake@redhat.com>
32413         doc: update INSTALL from autoconf
32414         * doc/install.texi: Resync from autoconf.
32415         * doc/INSTALL: Reflect recent autoconf update.
32416         * doc/INSTALL.ISO: Likewise.
32417         * doc/INSTALL.UTF-8: Likewise.
32419         stdio: fix use of PRIdMAX on modern mingw
32420         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
32421         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
32422         to work with modern mingw.
32424 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
32426         pthread: detect git mingw builds with only partial pollution
32427         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
32428         pollution, as seen temporarily in Fedora 21.
32430 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32432         lib-symbol-versions: cache script check
32433         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
32434         Cache the check for linker version scripts.
32435         From a suggestion by Christophe Curis in:
32436         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
32438 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
32440         maint: fix grammar nits in propername (trivial change)
32441         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
32442         and use an adequate verb and tense.
32444 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
32446         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32447         * module/gendocs: Add 'doc/gendocs_template_min'.
32449         * build-aux/gendocs.sh: Change email addresses and upstream URLs
32450         from to Gnulib's.
32451         (scripturl, templateurl): Adjust accordingly.
32453 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32455         gendocs: copyright date and version fix
32456         Reported by Karl Berry in:
32457         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
32458         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
32459         Fix copyright date.
32460         * build-aux/gendocs.sh (scriptversion): Update.
32462 2015-01-01  Karl Berry  <karl@gnu.org>
32464         * doc/install.texi,
32465         * build-aux/mdate-sh,
32466         * build-aux/depcomp,
32467         * build-aux/config.guess,
32468         * build-aux/config.sub,
32469         * build-aux/ar-lib,
32470         * build-aux/compile: revert copyright updates (some from last
32471         year) in slaved files.
32473 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32475         version-etc: new year
32476         * doc/gnulib.texi:
32477         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
32478         * all files: Run 'make update-copyright'.
32480 2014-12-30  Pádraig Brady  <P@draigBrady.com>
32482         xstrtol: ensure errno is reset
32483         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
32484         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
32486         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
32488 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32490         utimens: fix dependency typo
32491         * modules/utimens (Depends-on): Remove 'assure'.
32492         This bug was introduced in the recent 'assure' patch.
32494 2014-12-22  Eric Blake  <eblake@redhat.com>
32496         docs: mention why libgen.h is bad
32497         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
32499 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32501         assure: new module
32502         This works better than 'assert' when compiling with -DNDEBUG,
32503         as it avoids some compiler diagnostics in that case.
32504         Reported by Norihiro Tanaka in:
32505         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
32506         * MODULES.html.sh (func_all_modules): Add 'assure'.
32507         * lib/assure.h, modules/assure: New files.
32508         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
32509         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
32510         Prefer 'assure' to 'assert'.
32511         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
32512         * modules/chdir-long, modules/cycle-check, modules/fchdir:
32513         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
32514         Depend on 'assure'.
32516 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
32518         stdalign: port better to HP compilers
32519         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
32520         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
32522         stdalign: work around Apple GCC 4.0 bug
32523         Reported by David Fang in:
32524         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
32525         * lib/stdalign.in.h (_Alignas):
32526         * m4/stdalign.m4 (gl_STDALIGN_H):
32527         Do not use aligned attribute with GCC 4.0 on Apple.
32529 2014-12-16  Pádraig Brady  <P@draigBrady.com>
32531         getcwd: fix test failure on OS X 10.9
32532         * m4/getcwd-path-max.m4: Avoid the replacement if it
32533         won't be effective due to the PATH_MAX limitation of lstat().
32534         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
32535         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
32536         for this case for use in tests, and also exclude this
32537         case when setting REPLACE_GETCWD.
32538         * tests/test-getcwd.c (test_long_name): Restrict the
32539         tested path length so that lstat() will not be passed
32540         a path greater than PATH_MAX.
32541         Also key a test condition on HAVE_OPENAT_SUPPORT rather
32542         than AT_FDCWD, since the latter is set unconditionally
32543         since Sep 2009 in commit 52c658e9.
32545 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
32547         parse-datetime: avoid a compiler warning with byacc (trivial)
32548         * lib/parse-datetime.y (yylex): Use the same prototype in the
32549         function definition as the declaration, to avoid a -Wstrict-prototypes
32550         warning seen when using byacc.
32552 2014-12-12  Daiki Ueno  <ueno@gnu.org>
32554         unicase/locale-language-tests: fix LOCALE_FR test
32555         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
32556         a French locale with traditional encoding.
32557         Reported by umerqayam in:
32558         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
32560 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32562         stddef: support C11's max_align_t
32563         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
32564         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
32565         Do not undef, as that might cause max_align_t to be defined twice.
32566         Instead, change use to check for _GL_STDDEF_WINT_T too.
32567         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
32568         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
32569         Check for max_align_t.
32570         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
32571         * modules/stddef-tests (Depends-on): Add stdalign.
32572         * tests/test-stddef.c: Test max_align_t.
32574 2014-12-11  Daiki Ueno  <ueno@gnu.org>
32576         unistd: fix iOS check conditional
32577         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
32578         as 0 or 1 in <TargetConditionals.h>, and the previous check always
32579         yielded true on non-iOS environment.
32580         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
32581         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
32582         they are defined.
32584 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
32586         posixtm: avoid compiler warning in a better way
32587         * lib/posixtm.c (IF_LINT): Remove.
32588         (year, posix_time_parse):
32589         Return true (not 0) if successful.  All callers changed.
32590         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
32592 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32594         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
32595         started with '/' on EMX.
32597 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32599         freopen: workaround freopen() on OS/2 kLIBC
32600         * lib/freopen.c (rpl_freopen): Workaround.
32601         * m4/freopen.m4: Add os2* case.
32603         get_shared_library_fullname: port to EMX
32604         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
32605         on EMX, respectively.
32606         (_DLL_InitTerm): New on EMX.
32607         (get_shared_library_fullname): Implement on EMX.
32609         find_executable: port to EMX
32610         * lib/progreloc.c (find_executable): Implement on EMX.
32612         sched: check struct sched_param in spawn.h as well
32613         * lib/sched.in.h: Include spawn.h on kLIBC.
32614         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
32616 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
32618         bootstrap: Allow perl modules in $buildreq
32619         * build-aux/bootstrap: Add case for perl modules.
32621 2014-12-08  Pádraig Brady  <P@draigBrady.com>
32623         apply _GL_ATTRIBUTE_PURE to some inline functions
32624         clang 3.4.2 flagged these inline functions as pure
32625         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
32626         * lib/sig-handler.h (get_handler): Likewise.
32627         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
32628         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
32630 2014-12-06  Pádraig Brady  <P@draigBrady.com>
32632         vasnprintf: fix potential use after free
32633         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
32634         flagged by clang-analyzer 3.4.2.
32636 2014-12-05  Pádraig Brady  <P@draigBrady.com>
32638         filevercmp, posixtm: avoid compiler warnings with -O3
32639         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
32640         * lib/posixtm.c: (IF_LINT): Define.
32641         (posix_time_parse): Use it to void a "may be used uninitialized"
32642         warning, seen only with -O3.
32644 2014-12-05  Bruno Haible  <bruno@clisp.org>
32646         Fix LDBL80_WORDS macro on big endian platforms.
32647         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
32648         LDBL80_WORDS macro.
32649         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32650         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32651         * tests/test-isfinite.c (test_isfinitel): Likewise.
32652         * tests/test-isinf.c (test_isinfl): Likewise.
32653         * tests/test-isnan.c (test_long_double): Likewise.
32654         * tests/test-isnanl.h (main): Likewise.
32655         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
32656         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
32657         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
32658         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
32659         Reported by Pádraig Brady.
32661 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
32663         git-version-gen: do not print new line characters
32664         * build-aux/git-version-gen: Use printf instead of echo and tr.
32666         gnulib-tool: recognize x:* as an absolute path
32667         * gnulib-tool (func_gnulib_dir): Add ?:* case.
32668         (func_relconcat): Likewise.
32670 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
32672         argp: avoid extraneous translation and mem leak with empty pre doc
32673         * lib/argp-help.c (argp_doc): Never translate the empty string,
32674         when "\v" is the first or last character of the string, as that
32675         has a reserved meaning to return the header info from a po file.
32676         This also fixes a small memory leak in the !post case.
32677         The issue can be seen with this command for example:
32678         LC_MESSAGES=en_US grub2-mknetdir --help
32680 2014-11-27  Daiki Ueno  <ueno@gnu.org>
32682         uniname/uniname-tests: skip if system's libunistring is used
32683         * modules/uniname/uniname-tests (Makefile.am): Skip test if
32684         uniname/uniname module is not compiled.
32686 2014-11-27  Pádraig Brady  <P@draigBrady.com>
32688         printf: fix configure check on big endian systems
32689         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
32691 2014-11-22  Daiki Ueno  <ueno@gnu.org>
32693         pipe-filter-gi, pipe-filter-ii: port to AIX
32694         On AIX 7.1, 'select' is defined as static and cannot be referred
32695         to from inline function.
32696         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
32697         the definition...
32698         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
32699         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
32701 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32703         gitlog-to-changelog: add --until
32704         * build-aux/gitlog-to-changelog: Support new --until option.
32705         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
32707 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
32709         extern-inline: update commentary about GCC bugs
32710         * m4/extern-inline.m4: Add another GCC bug number to comments.
32712 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32714         gen-uni-tables: untabify
32715         * lib/gen-uni-tables.c: Untabify.
32717 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32719         gen-uni-tables: check out-of-range values added to 3-level tables
32720         * lib/gen-uni-tables.c (output_category, output_bidi_category)
32721         (output_joining_type, output_ident_category): Check out-of-range
32722         values added to 3-level tables.
32724 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32726         gen-uni-tables: utilize 'assert'
32727         * lib/gen-uni-tables.c: Include <assert.h>.
32728         (output_category, output_combclass, output_decimal_digit_test)
32729         (output_decimal_digit, output_digit_test, output_digit)
32730         (output_numeric, get_mirror_value, fill_properties)
32731         (fill_property30, is_property_alphabetic)
32732         (is_property_default_ignorable_code_point)
32733         (is_property_uppercase, is_property_lowercase)
32734         (is_property_cased, is_property_case_ignorable)
32735         (is_property_changes_when_lowercased, is_property_iso_control)
32736         (is_property_math, fill_arabicshaping, output_joining_group)
32737         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
32738         (output_wbp, fill_org_gbp, get_decomposition)
32739         (output_decomposition, fill_composition_exclusions)
32740         (debug_output_composition_tables, output_composition_tables)
32741         (redistribute_casefolding_rules, output_casing_rules): Use
32742         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
32743         reporting.
32745 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32747         gen-uni-tables: cosmetic improvements
32748         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
32749         variables specification.
32750         (is_outdigit): Remove unused function.
32752 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
32754         fcntl-h-tests: port to PA-RISC GNU/Linux
32755         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
32757 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32759         fts: port to C89
32760         Problem reported for MSVC 16 by Gisle Vanem in:
32761         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
32762         * lib/fts.c (fts_build): Avoid declaration before statement.
32764 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32766         unistd: port to iOS
32767         Problem reported by André Klitzing in:
32768         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
32769         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
32771 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32773         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
32774         Problem reported by Alan Modra in:
32775         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
32776         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
32777         Always cast the function arg, reverting this part of the previous
32778         change.
32780 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
32782         obstack: avoid potentially-nonportable function casts
32783         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
32784         Remove, replacing with ...
32785         (call_chunkfun, call_freefun): New static functions.
32786         All uses changed.  Avoid potentially-nonportable casts.
32787         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
32788         (_obstack_begin_worker): Omit last two args, since they
32789         rely on potentially-nonportable casts.  All callers changed.
32790         * lib/obstack.h (_OBSTACK_CAST): New macro.
32791         Use it everywhere the old API used a potentially-nonportable cast.
32792         The new API doesn't cast.
32793         (struct obstack): Use unions rather than requiring
32794         potentially-nonportable casts.
32795         (obstack_chunkfun, obstack_freefun): Return void.
32797 2014-11-03  Alan Modra  <amodra@gmail.com>
32799         obstack: fix macro return values
32800         * lib/obstack.h (obstack_next_free): Return void *.
32801         (obstack_1grow_fast, obstack_blank_fast): Return void.
32802         For __GNUC__ macros:
32803         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
32804         For !__GNUC__ macros:
32805         (obstack_make_room, obstack_grow, obstack_grow0)
32806         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
32808 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32810         obstack: do not assume system-supplied obstack is size_t safe
32811         * m4/obstack.m4: New file.
32812         * modules/obstack (Files): Add it.
32814         obstack: port to platforms that #define __alignof__
32815         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
32816         not if !_LIBC.  We don't know of any platforms that #define
32817         __alignof__, but it might be useful in tests.  Conversely,
32818         glibc assumes GCC.
32820 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32822         linkat: don't unconditionally replace on GNU/Linux
32823         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
32824         was redundant for a few reasons.  It was present to support compiling
32825         on new systems but running on the old narrow window of Linux 2.6.1[67].
32826         It setup and cleaned up test files which weren't actually used.
32827         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
32828         implicit in the following check.
32830 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32832         linkat: wrap to handle symlinks on OS X 10.10
32833         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
32834         but not usable because it doesn't support creating hardlinks
32835         to symlinks.  Therefore add a generic test for this capability
32836         and fallback to our emulation if linkat() fails with ENOTSUP.
32838 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32840         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
32841         * doc/posix-functions/open.texi (open):
32842         * doc/posix-functions/openat.texi (openat):
32843         Document that these functions do not set errno to ELOOP when
32844         a symlink is opened with O_NOFOLLOW.
32846 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32848         obstack: add NEWS entry for recent incompatible changes
32849         * NEWS: Describe recent changes.
32851 2014-10-30  Pádraig Brady  <P@draigBrady.com>
32853         mountlist: don't use libmount to decide on dummy/remote
32854         * lib/mountlist.c (read_file_system_list): Don't use the libmount
32855         routines to determine whether a file system is dummy or remote,
32856         as they're not currently compatible.  For example the remoteness
32857         is determined on file system type (for which the list seems incomplete),
32858         rather than simply checking for a ':' in the device name.
32859         Also libmount currently determines that 'tmpfs' is a dummy file system
32860         even though it has associated storage.
32862 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32864         obstack: prefer __alignof__ to alignof
32865         This is for portability to pre-4.7 GCC when compiling glibc.
32866         See Joseph S. Myers in:
32867         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
32868         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
32869         New macro, defined by including and using <alignof.h>.
32870         (MAX): New macro.
32871         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
32872         Do not use enums as they are not portable to some broken compilers.
32873         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
32875         obstack: prefer alignof to calculating alignments by hand
32876         * lib/obstack.c: Include <stdalign.h>.
32877         (struct fooalign): Remove.
32878         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
32879         * modules/obstack (Depends-on): Add stdalign.
32881 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
32883         obstack: use size_t alignments and check for overflow
32884         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
32885         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
32886         * lib/obstack.h (struct obstack.alignment_mask):
32887         Use _OBSTACK_SIZE_T, not int, for alignments.
32888         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
32889         overflows, e.g., when adding the alignment.
32891 2014-10-29  Alan Modra  <amodra@gmail.com>
32893         obstack: 64-bit obstack support, part 3
32894         This finally enables full 64-bit obstack support.  The glibc
32895         shared library specific code is removed from obstack.c too, and
32896         the error handling code conditionally compiled under control of
32897         another macro, _OBSTACK_NO_ERROR_HANDLER.
32898         * lib/obstack.h: Include string.h earlier.
32899         (_OBSTACK_INTERFACE_VERSION): Define.
32900         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
32901         * lib/obstack.c: Don't include shlib-compat.h.
32902         (OBSTACK_INTERFACE_VERSION): Delete.
32903         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
32904         glibc code is compatible with version 2.  Don't include stdio.h for
32905         __GNU_LIBRARY.
32906         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
32907         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
32908         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
32909         glibc shared library specific source.
32911         obstack: 64-bit obstack support, part 2
32912         This gets us 4G obstack support, without changing ABI
32913         compatibility, apart from possibly introducing some
32914         signed/unsigned comparison warnings in code that uses obstack.h.
32915         a) Replace "int" size parameters, return values, and macro local vars
32916            with _OBSTACK_SIZE_T, an "unsigned int" for now.
32917         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
32918         c) Make all obstack macros checking available room use obstack_room.
32919            "next_free + desired > chunk_limit" may wrap the lhs for chunks
32920            allocated near the top of memory.
32921         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
32922         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
32923         in place of "int" size parameters, return values and local vars.
32924         (_CHUNK_SIZE_T): Define.
32925         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
32926         union use an _OBSTACK_SIZE_T integer type.
32927         For __GNUC__ versions of the following macros...
32928         (obstack_room): Rename local var.
32929         (obstack_make_room): Use obstack_room.
32930         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32931         obstack_int_grow, obstack_blank): Likewise.
32932         (obstack_finish): Use unsigned comparison when comparing aligned
32933         next_free against chunk_limit.
32934         (obstack_free): Cast OBJ to remove possible const qualifier.
32935         For !__GNUC__ versions of the following macros...
32936         (obstack_make_room): Use obstack_room.
32937         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32938         obstack_int_grow, obstack_blank): Likewise.
32939         (obstack_finish): Use unsigned comparision when comparing aligned
32940         next_free against chunk_limit.
32941         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
32942         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
32943         _OBSTACK_SIZE_T.
32944         (_obstack_begin, _obstack_begin_1): Likewise.
32945         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
32946         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
32948         obstack: 64-bit obstack support, part 1
32949         a) Correct calls to alloc function, to use a size_t arg.  "long" is
32950            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
32951            and "size_t" 64 bits.
32952         b) Consolidate _obstack_begin and _obstack_begin1 code.
32953         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
32954         use "size_t" rather than "long".
32955         (_obstack_begin, _obstack_begin1): Likewise.
32956         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
32957         obstack_chunkfun): Update alloc function casts.
32958         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
32959         (chunkfun_type, freefun_type): New typdefs.
32960         (_obstack_begin_worker): Split out from ..
32961         (_obstack_begin, _obstack_begin_1): ..here.
32963         obstack: tidy part 2
32964         a) Don't be concerned about "not polluting the namespace with stddef.h
32965            symbols" in obstack.h, since gnulib string.h includes stddef.h
32966            anyway, and it seems unlikely that anyone would care.
32967         b) Don't roll our own slow memcpy in _obstack_newchunk.
32968         c) Rename obstack_free to _obstack_free.  This makes the naming
32969            consistent with other obstack functions and obviates the need for
32970            __obstack_free.  Ancient obstack.c defined both obstack_free and
32971            _obstack_free.  We continue to do that for _LIBC via an alias.
32972         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
32973            is clever, but nowadays gcc warns on undefined macros.  You'll get
32974            an undefined macro warning if simulating an old gcc with -U__GNUC__
32975            -U__GNUC_MINOR__ -D__GNUC__=1.
32976         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
32977         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
32978         (__obstack_free): Delete, update refs.
32979         (_obstack_free): Rename from obstack_free.
32980         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
32981         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
32982         * lib/obstack.c: Don't include stddef.h.
32983         (COPYING_UNIT): Delete.
32984         (_obstack_begin): Formatting fix.
32985         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
32986         (_obstack_free): Rename from __obstack_free, update alias.  Move
32987         undef of obstack_free to where it is needed.
32989         obstack: tidy part 1
32990         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
32991            to me, and result in overlong lines after later patches.
32992         b) Move error handling code, to avoid a forward declaration and to
32993            simplify later patches in this series.
32994         * lib/obstack.h (struct obstack <temp>): Rename fields of union
32995         and update all uses.
32996         * lib/obstack.c: Include stdlib.h earlier.
32997         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
32998         in file.
32999         (print_and_abort): Remove now redundant forward declaration.
33001 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33003         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
33004         Without this change, in bleeding-edge fileutils Autoconf complains
33005         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
33006         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
33007         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
33008         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
33010 2014-10-24  Daiki Ueno  <ueno@gnu.org>
33012         iconv: avoid false detection of non-working iconv
33013         The INBUF arguments of iconv can be either 'const char **'
33014         or 'char **'.  If CC is g++, the difference causes a compile error
33015         and thus leads to a false detection of non-working iconv.
33016         Reported by Eli Zaretskii and Werner LEMBERG in:
33017         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
33018         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
33019         iconv.  Bump serial number.
33021 2014-10-23  Pádraig Brady  <P@draigBrady.com>
33023         bootstrap: print more diagnostics for missing programs
33024         * build-aux/bootstrap: only suppress stderr when checking for
33025         alternative program names.  This supports programs issuing non
33026         standard error messages.
33028 2014-10-23  Pádraig Brady  <P@draigBrady.com>
33030         bootstrap: only update the gnulib submodule
33031         * build-aux/bootstrap: Restrict the "submodule update" command
33032         to the gnulib path.
33034 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
33036         symlinkat: port to AIX 7.1
33037         * doc/posix-functions/symlinkat.texi (symlinkat):
33038         Mention AIX porting problem.
33039         * lib/symlinkat.c: Always include errno.h.
33040         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
33041         * lib/unistd.in.h (symlinkat): Add replacement machinery.
33042         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
33043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
33044         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
33045         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
33046         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
33048         readlinkat: port to AIX 7.1
33049         * doc/posix-functions/readlink.texi (readlink):
33050         * doc/posix-functions/readlinkat.texi (readlinkat):
33051         Mention AIX porting problem.
33052         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
33053         New function.
33054         * lib/unistd.in.h (readlinkat): Add replacement machinery.
33055         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
33056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
33057         * modules/readlinkat (configure.ac): Also compile replacement
33058         if REPLACE_READLINKAT.
33059         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
33061 2014-10-12  Karl Berry  <karl@gnu.org>
33063         * doc/posix-functions/dirname.texi: remove spurious {.
33065 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
33067         basename, dirname: Improve documentation.
33068         * doc/posix-functions/basename.texi: Mention dirname module and
33069         base_name() function.
33070         * doc/posix-functions/dirname.texi: Mention dir_name() and
33071         mdir_name() functions.
33072         Suggested by Werner LEMBERG <wl@gnu.org>.
33074 2014-09-24  Jim Meyering  <meyering@fb.com>
33076         exclude: declare exclude_patopts static
33077         * lib/exclude.c (exclude_patopts): Declare static,
33078         to avoid triggering a -Wmissing-prototypes warning.
33079         The alternative (declaring it in the .h file) would
33080         require publicizing the private "struct patopts".
33082 2014-09-21  Werner Lemberg  <wl@gnu.org>
33084         dirname: support compilation with C++
33085         * lib/dirname.h: Add necessary C linkage declarations.
33087 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33089         qsort_r: include <config.h>
33090         Problem reported by Tom G. Christensen in:
33091         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
33092         * lib/qsort.c [!_LIBC]: Include <config.h> first.
33094 2014-09-16  Dylan Cali  <calid1984@gmail.com>
33096         avltree-list: avoid compiler warnings (trivial)
33097         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
33098         -Werror=suggest-attribute=pure.
33099         * lib/gl_array_list.c: Likewise.
33100         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
33101         declaration to avoid -Werror=missing-prototypes.  This is not added
33102         to a header as only exported for tests.  Add (void) to the
33103         check_invariants() call to indicate we're discarding the result
33104         in this context which avoids -Werror=unused-value.  Note we don't
33105         use ignore_value here to avoid a dependency as we know we'll not
33106         be adding __attribute__((warn_unused_result)) to check_invariants().
33107         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
33109 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
33111         qsort_r: new module, for GNU-style qsort_r
33112         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
33114 2014-09-15  Werner LEMBERG  <wl@gnu.org>
33116         strerror_r-posix: support compilation with C++
33117         * lib/strerror_r.c: Add necessary C linkage declarations.
33119 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
33121         fcntl-h: fix compilation with Intel C++ compiler (trivial)
33122         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
33124 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
33126         mountlist: use /proc/self/mountinfo when available
33127         Use libmount to propagate device IDs provided by Linux in
33128         /proc/self/mountinfo.  This will give more accurate output when
33129         using df in chroot'ed environments as the device IDs are not
33130         determined by stat() which may be inaccurate within the chroot.
33131         * lib/mountlist.c (read_file_system_list): Use the libmount routines
33132         from util-linux to parse "/proc/self/mountinfo" or fall back to
33133         standard getmntent() processing.
33134         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
33135         getmntent() is used, as is the case on GNU/Linux.
33137 2014-09-07  Eric Wong  <normalperson@yhbt.net>
33139         users.txt: add cmogstored
33140         cmogstored has used gnulib since the beginning in 2012 to support
33141         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
33143 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
33145         Trivial change.
33146         * gnulib-tool: Use same options as build-aux/bootstrap to download
33147         PO files.
33149 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
33151         Trivial change.
33152         * gnulib-tool: Fallback to wget when rsync of PO files fails.
33154 2014-09-04  Eric Blake  <eblake@redhat.com>
33156         maintainer-makefile: add syntax check for useless ';;'
33157         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
33159 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
33161         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
33162         Problem reported by Assaf Gordon in:
33163         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
33164         Apparently Ubuntu is doing some fancy link-time optimization
33165         that doesn't work with -lpthread but does work with -pthread.
33166         Work around the bug by preferring -pthread to -lpthread.
33167         * m4/pthread.m4 (gl_PTHREAD_CHECK):
33168         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
33169         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33170         Treat -pthread like -lpthread.
33172 2014-09-04  Eric Blake  <eblake@redhat.com>
33174         error: drop spurious semicolon
33175         * lib/error.c (__error_at_line): Fix ';;'.
33177 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
33179         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
33180         * m4/gnulib-common.m4 (AC_C_RESTRICT):
33181         Override AC_C_RESTRICT unconditionally.
33182         Update from autoconf, incorporating:
33183         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
33184         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
33186 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33188         manywarnings: add GCC 4.9 warnings
33189         Also, make it easier to maintain this in the future.
33190         * build-aux/gcc-warning.spec: Add -Wabi-tag,
33191         -Wconditionally-supported, -Wdelete-incomplete,
33192         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
33193         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
33194         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
33195         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
33196         only for older GCC versions that need them.  Handle
33197         -Wnormalized=nfc specially, so that the 'comm' command used
33198         for maintenance doesn't get confused.
33200 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33202         vasnprintf: fix bugs in width computation
33203         * lib/vasnprintf.c (VASNPRINTF):
33204         Rework previous change, which introduced a bug,
33205         to avoid the warning in a different way.
33206         Avoid undefined behavior if the width arg is less than -INT_MAX.
33207         Avoid unnecessary use of HAS_WIDTH local.
33209 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
33211         vasnprintf: Avoid signed/unsigned comparison warning.
33212         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
33213         compare end addr of generated string w/ maximum end addr.
33215 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33217         parse-datetime: Avoid pointer difference.
33218         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
33219         instead of calculating difference of pointers.  This removes an
33220         annoying warning, devoid of any use.
33222 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33224         qsort_r: new module, for GNU-style qsort_r
33225         This works even on FreeBSD, which has an incompatible qsort_r API.
33226         * MODULES.html.sh: Add it.
33227         * doc/glibc-functions/qsort_r.texi: It's now supported.
33228         * lib/qsort.c: New file, taken from glibc with minor changes
33229         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
33230         removed.
33231         * lib/qsort_r.c: New file, compiled only on FreeBSD.
33232         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
33233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
33234         * modules/qsort_r, modules/qsort_r-tests: New files.
33235         * modules/stdlib (Makefile): Set up its defaults.
33236         * tests/test-qsort_r.c: New file.
33238 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33240         vla: new module
33241         GNU RCS can use this, mostly for documentation I expect.  See:
33242         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
33243         * MODULES.html.sh: Add vla.
33244         * lib/vla.h, modules/vla: New files.
33246 2014-08-07  Daiki Ueno  <ueno@gnu.org>
33248         localename: make gl_locale_name_thread really thread-safe on Windows
33249         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
33250         "glthread/lock.h".
33251         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
33252         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
33254 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
33256         getpass: don't assume struct termios
33257         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
33258         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
33259         * lib/getpass.c (getpass): Port to systems lacking struct termios.
33261         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
33262         Problem reported by Jonas 'Sortie' Termansen in:
33263         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
33264         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
33265         Implement via sysconf for platforms that lack getdtablesize.
33267         vararrays: modernize AC_C_VARARRAYS for C11
33268         This backports a change I recently made to Autoconf.
33269         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
33270         VLAs are not supported, as this is what C11 does.  The old macro
33271         HAVE_C_VARARRAYS is still defined if they are supported, but is
33272         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
33274 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
33276         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
33277         * build-aux/install-reloc (func_create_wrapper): Also wrap
33278         strerror-override, stat, stat.
33280 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33282         sys_select: fix FD_ZERO problem on Solaris 10
33283         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
33284         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
33285         to expand to an expression that invoked memset without necessarily
33286         including <string.h>.  The problem was that the first include
33287         defined _SYS_TIME_H, causing the second include to short-circuit.
33288         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
33289         Also, fix what appears to be a cut-and-paste typo, by replacing
33290         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
33291         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
33293         accept: document Solaris 10 type glitch
33294         * doc/posix-functions/accept.texi (accept): Mention that
33295         Solaris 10 'accept' takes void * last arg, not socklen_t *.
33297 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
33299         extern-inline: port to FreeBSD, DragonFly
33300         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
33301         is present if either __DragonFly__ or __FreeBSD__ is defined.
33302         FreeBSD problem reported by Andrey Borzenkov in:
33303         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
33304         Also, worry about __APPLE__ only if __MACH__ is also defined,
33305         as this is more consistent with the rest of gnulib.
33306         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
33307         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
33309 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
33311         regex: Make #if/#ifdef usage consistent for DEBUG
33312         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
33313         of the inconsistent usage of #if and #ifdef as that works with
33314         both Glibc and Gnulib's style.
33316 2014-07-31  Eric Blake  <eblake@redhat.com>
33318         openat-die: use _Noreturn markup
33319         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
33320         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
33321         _Noreturn.
33323 2014-07-30  Eric Blake  <eblake@redhat.com>
33325         test-open: port to cygwin, which lacks Fortify
33326         * tests/test-open.h (ALWAYS_INLINE): New macro.
33327         (__always_inline): Don't abuse internal symbol on non-glibc.
33329 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
33331         localename: Enforce declarations before statements.
33332         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
33333         first statement.
33335 2014-07-18  Jim Meyering  <meyering@fb.com>
33337         test-userspec: don't look up numeric user names
33338         * tests/test-userspec.c: I found a system for which getpwnam("0")
33339         returned a pointer to a non-root user's entry, and that made the
33340         test fail.
33341         (T): Prefix each numeric input with "+", to inhibit lookup.
33343 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
33345         localcharset, localename: MS-Windows support for non-default locales
33346         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
33347         falling back on the default system codepage, try extracting
33348         the codepage from what 'setlocale' returns.  This allows to
33349         take into account changes of the codeset due to non-default
33350         locale set by a previous call to 'setlocale'.
33351         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
33352         Define if not already defined.
33353         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
33354         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
33355         current locale by calling 'setlocale', then converting the
33356         locale name into LCID by calling 'get_lcid'.  This allows to
33357         take into account changes in the current locale from the
33358         default one, in contrast to GetThreadLocale.
33360 2014-07-14  Daiki Ueno  <ueno@gnu.org>
33362         announce-gen: avoid failure when Digest::SHA is installed
33363         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
33364         Digest::SHA1->new in print_checksums fails.
33365         * build-aux/announce-gen (digest_classes): New associative array
33366         for available message digest implementations.
33367         (print_locations): Use it.
33369 2014-07-13  Pádraig Brady  <P@draigBrady.com>
33371         gettext: revert "update macros to version 0.19"
33372         This reverts commit 9b9370ca, as it currently requires that
33373         developers of any project that explicitly uses the gettext module
33374         or implicitly uses it through the utimens-tests or
33375         futimens-tests modules, use gettext >= 0.19.
33376         However there are some stability and availablity issues with
33377         that version at present.  We can reinstate this soon, when stability
33378         is addressed and packages are more readily available.
33380 2014-07-12  Jim Meyering  <meyering@fb.com>
33382         regex: don't deref NULL upon heap allocation failure
33383         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
33384         failure in one more place.
33385         To trigger the segfault, configure grep -with-included-regex,
33386         build it, and run these commands:
33387         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
33388         I discovered this while replying to a private report from
33389         Jens Schleusener about excessive memory consumption by grep
33390         when using a regular expression like the one above.
33392 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
33394         regex: fix memory leak in compiler
33395         Fix by Andreas Schwab in:
33396         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
33397         * lib/regcomp.c (parse_reg_exp): Deallocate partially
33398         constructed tree before returning error.
33400 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
33402         announce-gen: avoid perl warnings
33403         * build-aux/announce-gen: add two minor checks to avoid
33404         "use of uninitialized value" warnings when command-line parameters are
33405         missing.
33407 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
33409         localename: avoid -Wsuggest-attribute={const,pure} warnings
33410         * lib/localename.c (string_has): Tag internal function as pure.
33411         * lib/localename.h (gl_locale_name_default): Tag extern declaration
33412         as const when appropriate.
33414 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
33416         nl_langinfo: Fix last change.
33417         * lib/nl_langinfo.c (includes): Drop redundant include.
33419 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33421         error: Fix -Wundef warnings in glibc
33422         * lib/error.c [_LIBC]: Define default macros for
33423         glibc.
33424         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
33425         Check _LIBC before STRERROR_R_CHAR_P.
33427         error: Sync from glibc master
33428         * lib/error.c [_LIBC]: Remove INTUSE usage.
33429         (error_tail): Remove unused macro ALLOCA_LIMIT.
33430         Fix potential buffer overflow.  Fix potential NULL dereference
33431         in strcmp.
33433 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
33435         nl_langinfo: fix build under mingw
33436         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
33438 2014-07-09  Andrew D Warshall  <warshall@99main.com>
33440         mountlist: do not classify a bind-mounted dir entry as "dummy"
33441         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
33442         1-argument getmntent() (instead of assuming absence).
33444 2014-07-08  Eric Blake  <eblake@redhat.com>
33446         maint.mk: less syntax-check noise when SIGPIPE is ignored
33447         * top/maint.mk (_sc_header_without_use)
33448         (sc_require_config_h_first): Parse full list.
33450 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
33451             Paul Eggert  <eggert@cs.ucla.edu>
33453         nl_langinfo: CODESET on MS-Windows and more items from localeconv
33454         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
33455         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
33456         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
33457         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
33458         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
33459         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
33460         Include <stdio.h> if Microsoft Windows.
33461         Include <time.h> if !REPLACE_NL_LANGINFO.
33462         (ctype_codeset): New function, taken from rpl_nl_langinfo,
33463         and with improvements for Microsoft Windows.
33464         (rpl_nl_langinfo): Use it.
33465         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
33466         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
33467         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
33468         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
33469         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
33470         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
33471         corresponding values returned by 'localeconv'.  Compute the values
33472         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
33473         'strftime' with a suitable struct tm value.
33475 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33477         Bruno Haible has stepped down as maintainer.
33478         See Karl Berry in:
33479         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
33480         Daiki Ueno has volunteered to maintain libunistring; see:
33481         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
33482         * modules/gen-uni-tables, modules/libunistring:
33483         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
33484         * modules/unicase/base, modules/unicase/cased:
33485         * modules/unicase/empty-prefix-context:
33486         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
33487         * modules/unicase/locale-language, modules/unicase/special-casing:
33488         * modules/unicase/tocasefold, modules/unicase/tolower:
33489         * modules/unicase/totitle, modules/unicase/toupper:
33490         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
33491         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
33492         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
33493         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
33494         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
33495         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
33496         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
33497         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
33498         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
33499         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
33500         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
33501         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
33502         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
33503         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
33504         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
33505         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
33506         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
33507         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
33508         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
33509         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
33510         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
33511         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
33512         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
33513         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
33514         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
33515         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
33516         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
33517         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
33518         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
33519         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
33520         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
33521         * modules/unicase/ulc-casexfrm, modules/unicodeio:
33522         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
33523         * modules/uniconv/u16-conv-to-enc:
33524         * modules/uniconv/u16-strconv-from-enc:
33525         * modules/uniconv/u16-strconv-from-locale:
33526         * modules/uniconv/u16-strconv-to-enc:
33527         * modules/uniconv/u16-strconv-to-locale:
33528         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
33529         * modules/uniconv/u32-strconv-from-enc:
33530         * modules/uniconv/u32-strconv-from-locale:
33531         * modules/uniconv/u32-strconv-to-enc:
33532         * modules/uniconv/u32-strconv-to-locale:
33533         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
33534         * modules/uniconv/u8-strconv-from-enc:
33535         * modules/uniconv/u8-strconv-from-locale:
33536         * modules/uniconv/u8-strconv-to-enc:
33537         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
33538         * modules/unictype/bidicategory-all:
33539         * modules/unictype/bidicategory-byname:
33540         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
33541         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
33542         * modules/unictype/bidiclass-byname:
33543         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
33544         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
33545         * modules/unictype/block-all, modules/unictype/block-list:
33546         * modules/unictype/block-of, modules/unictype/block-test:
33547         * modules/unictype/category-C, modules/unictype/category-Cc:
33548         * modules/unictype/category-Cf, modules/unictype/category-Cn:
33549         * modules/unictype/category-Co, modules/unictype/category-Cs:
33550         * modules/unictype/category-L, modules/unictype/category-LC:
33551         * modules/unictype/category-Ll, modules/unictype/category-Lm:
33552         * modules/unictype/category-Lo, modules/unictype/category-Lt:
33553         * modules/unictype/category-Lu, modules/unictype/category-M:
33554         * modules/unictype/category-Mc, modules/unictype/category-Me:
33555         * modules/unictype/category-Mn, modules/unictype/category-N:
33556         * modules/unictype/category-Nd, modules/unictype/category-Nl:
33557         * modules/unictype/category-No, modules/unictype/category-P:
33558         * modules/unictype/category-Pc, modules/unictype/category-Pd:
33559         * modules/unictype/category-Pe, modules/unictype/category-Pf:
33560         * modules/unictype/category-Pi, modules/unictype/category-Po:
33561         * modules/unictype/category-Ps, modules/unictype/category-S:
33562         * modules/unictype/category-Sc, modules/unictype/category-Sk:
33563         * modules/unictype/category-Sm, modules/unictype/category-So:
33564         * modules/unictype/category-Z, modules/unictype/category-Zl:
33565         * modules/unictype/category-Zp, modules/unictype/category-Zs:
33566         * modules/unictype/category-all, modules/unictype/category-and:
33567         * modules/unictype/category-and-not, modules/unictype/category-byname:
33568         * modules/unictype/category-longname, modules/unictype/category-name:
33569         * modules/unictype/category-none, modules/unictype/category-of:
33570         * modules/unictype/category-or, modules/unictype/category-test:
33571         * modules/unictype/category-test-withtable:
33572         * modules/unictype/combining-class:
33573         * modules/unictype/combining-class-all:
33574         * modules/unictype/combining-class-byname:
33575         * modules/unictype/combining-class-longname:
33576         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
33577         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
33578         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
33579         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
33580         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
33581         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
33582         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
33583         * modules/unictype/digit, modules/unictype/joininggroup-all:
33584         * modules/unictype/joininggroup-byname:
33585         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
33586         * modules/unictype/joiningtype-all:
33587         * modules/unictype/joiningtype-byname:
33588         * modules/unictype/joiningtype-longname:
33589         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
33590         * modules/unictype/mirror, modules/unictype/numeric:
33591         * modules/unictype/property-all, modules/unictype/property-alphabetic:
33592         * modules/unictype/property-ascii-hex-digit:
33593         * modules/unictype/property-bidi-arabic-digit:
33594         * modules/unictype/property-bidi-arabic-right-to-left:
33595         * modules/unictype/property-bidi-block-separator:
33596         * modules/unictype/property-bidi-boundary-neutral:
33597         * modules/unictype/property-bidi-common-separator:
33598         * modules/unictype/property-bidi-control:
33599         * modules/unictype/property-bidi-embedding-or-override:
33600         * modules/unictype/property-bidi-eur-num-separator:
33601         * modules/unictype/property-bidi-eur-num-terminator:
33602         * modules/unictype/property-bidi-european-digit:
33603         * modules/unictype/property-bidi-hebrew-right-to-left:
33604         * modules/unictype/property-bidi-left-to-right:
33605         * modules/unictype/property-bidi-non-spacing-mark:
33606         * modules/unictype/property-bidi-other-neutral:
33607         * modules/unictype/property-bidi-pdf:
33608         * modules/unictype/property-bidi-segment-separator:
33609         * modules/unictype/property-bidi-whitespace:
33610         * modules/unictype/property-byname:
33611         * modules/unictype/property-case-ignorable:
33612         * modules/unictype/property-cased:
33613         * modules/unictype/property-changes-when-casefolded:
33614         * modules/unictype/property-changes-when-casemapped:
33615         * modules/unictype/property-changes-when-lowercased:
33616         * modules/unictype/property-changes-when-titlecased:
33617         * modules/unictype/property-changes-when-uppercased:
33618         * modules/unictype/property-combining:
33619         * modules/unictype/property-composite:
33620         * modules/unictype/property-currency-symbol:
33621         * modules/unictype/property-dash:
33622         * modules/unictype/property-decimal-digit:
33623         * modules/unictype/property-default-ignorable-code-point:
33624         * modules/unictype/property-deprecated:
33625         * modules/unictype/property-diacritic:
33626         * modules/unictype/property-extender:
33627         * modules/unictype/property-format-control:
33628         * modules/unictype/property-grapheme-base:
33629         * modules/unictype/property-grapheme-extend:
33630         * modules/unictype/property-grapheme-link:
33631         * modules/unictype/property-hex-digit:
33632         * modules/unictype/property-hyphen:
33633         * modules/unictype/property-id-continue:
33634         * modules/unictype/property-id-start:
33635         * modules/unictype/property-ideographic:
33636         * modules/unictype/property-ids-binary-operator:
33637         * modules/unictype/property-ids-trinary-operator:
33638         * modules/unictype/property-ignorable-control:
33639         * modules/unictype/property-iso-control:
33640         * modules/unictype/property-join-control:
33641         * modules/unictype/property-left-of-pair:
33642         * modules/unictype/property-line-separator:
33643         * modules/unictype/property-logical-order-exception:
33644         * modules/unictype/property-lowercase, modules/unictype/property-math:
33645         * modules/unictype/property-non-break:
33646         * modules/unictype/property-not-a-character:
33647         * modules/unictype/property-numeric:
33648         * modules/unictype/property-other-alphabetic:
33649         * modules/unictype/property-other-default-ignorable-code-point:
33650         * modules/unictype/property-other-grapheme-extend:
33651         * modules/unictype/property-other-id-continue:
33652         * modules/unictype/property-other-id-start:
33653         * modules/unictype/property-other-lowercase:
33654         * modules/unictype/property-other-math:
33655         * modules/unictype/property-other-uppercase:
33656         * modules/unictype/property-paired-punctuation:
33657         * modules/unictype/property-paragraph-separator:
33658         * modules/unictype/property-pattern-syntax:
33659         * modules/unictype/property-pattern-white-space:
33660         * modules/unictype/property-private-use:
33661         * modules/unictype/property-punctuation:
33662         * modules/unictype/property-quotation-mark:
33663         * modules/unictype/property-radical:
33664         * modules/unictype/property-sentence-terminal:
33665         * modules/unictype/property-soft-dotted:
33666         * modules/unictype/property-space:
33667         * modules/unictype/property-terminal-punctuation:
33668         * modules/unictype/property-test, modules/unictype/property-titlecase:
33669         * modules/unictype/property-unassigned-code-value:
33670         * modules/unictype/property-unified-ideograph:
33671         * modules/unictype/property-uppercase:
33672         * modules/unictype/property-variation-selector:
33673         * modules/unictype/property-white-space:
33674         * modules/unictype/property-xid-continue:
33675         * modules/unictype/property-xid-start:
33676         * modules/unictype/property-zero-width, modules/unictype/scripts:
33677         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
33678         * modules/unictype/syntax-c-whitespace:
33679         * modules/unictype/syntax-java-ident:
33680         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
33681         * modules/unigbrk/u16-grapheme-breaks:
33682         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
33683         * modules/unigbrk/u32-grapheme-breaks:
33684         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
33685         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
33686         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
33687         * modules/unigbrk/uc-is-grapheme-break:
33688         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
33689         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
33690         * modules/unilbrk/u16-width-linebreaks:
33691         * modules/unilbrk/u32-possible-linebreaks:
33692         * modules/unilbrk/u32-width-linebreaks:
33693         * modules/unilbrk/u8-possible-linebreaks:
33694         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
33695         * modules/unilbrk/ulc-possible-linebreaks:
33696         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
33697         * modules/uniname/uniname, modules/uninorm/base:
33698         * modules/uninorm/canonical-decomposition:
33699         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
33700         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
33701         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
33702         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
33703         * modules/uninorm/nfkc, modules/uninorm/nfkd:
33704         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
33705         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
33706         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
33707         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
33708         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
33709         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
33710         * modules/unistdio/base, modules/unistdio/u-printf-args:
33711         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
33712         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
33713         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
33714         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
33715         * modules/unistdio/u16-u16-sprintf:
33716         * modules/unistdio/u16-u16-vasnprintf:
33717         * modules/unistdio/u16-u16-vasprintf:
33718         * modules/unistdio/u16-u16-vsnprintf:
33719         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
33720         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
33721         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
33722         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
33723         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
33724         * modules/unistdio/u32-u32-asnprintf:
33725         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
33726         * modules/unistdio/u32-u32-sprintf:
33727         * modules/unistdio/u32-u32-vasnprintf:
33728         * modules/unistdio/u32-u32-vasprintf:
33729         * modules/unistdio/u32-u32-vsnprintf:
33730         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
33731         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
33732         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
33733         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
33734         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
33735         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
33736         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
33737         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
33738         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
33739         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
33740         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
33741         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
33742         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
33743         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
33744         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
33745         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
33746         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
33747         * modules/unistr/u16-check, modules/unistr/u16-chr:
33748         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
33749         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
33750         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
33751         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
33752         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
33753         * modules/unistr/u16-move, modules/unistr/u16-next:
33754         * modules/unistr/u16-prev, modules/unistr/u16-set:
33755         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
33756         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
33757         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
33758         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
33759         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
33760         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
33761         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
33762         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
33763         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
33764         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
33765         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
33766         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
33767         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
33768         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
33769         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
33770         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
33771         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
33772         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
33773         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
33774         * modules/unistr/u32-next, modules/unistr/u32-prev:
33775         * modules/unistr/u32-set, modules/unistr/u32-startswith:
33776         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
33777         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
33778         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
33779         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
33780         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
33781         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
33782         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
33783         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
33784         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
33785         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
33786         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
33787         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
33788         * modules/unistr/u8-check, modules/unistr/u8-chr:
33789         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
33790         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
33791         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
33792         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
33793         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
33794         * modules/unistr/u8-next, modules/unistr/u8-prev:
33795         * modules/unistr/u8-set, modules/unistr/u8-startswith:
33796         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
33797         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
33798         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
33799         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
33800         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
33801         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
33802         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
33803         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
33804         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
33805         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
33806         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
33807         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
33808         * modules/uniwbrk/base, modules/uniwbrk/table:
33809         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
33810         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
33811         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
33812         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
33813         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
33814         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
33815         * modules/uniwidth/width, modules/utf16-ucs4:
33816         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
33817         * modules/utf8-ucs4-unsafe:
33818         Change maintainer from Bruno Haible to Daiki Ueno.
33819         This is my guess at the libunistring modules; please feel free
33820         to fix if I guessed incorrectly.
33821         * modules/accept4, modules/acl, modules/acos, modules/acosf:
33822         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
33823         * modules/areadlink, modules/array-list, modules/array-mergesort:
33824         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
33825         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
33826         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
33827         * modules/binary-io, modules/bison-i18n, modules/btowc:
33828         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
33829         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
33830         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
33831         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
33832         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
33833         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
33834         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
33835         * modules/closedir, modules/concat-filename, modules/copy-file:
33836         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
33837         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
33838         * modules/csharpcomp-script, modules/csharpexec:
33839         * modules/csharpexec-script, modules/ctype, modules/diffseq:
33840         * modules/dprintf, modules/dprintf-posix, modules/dup:
33841         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
33842         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
33843         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
33844         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
33845         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
33846         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
33847         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
33848         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
33849         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
33850         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
33851         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
33852         * modules/findprog, modules/findprog-lgpl, modules/floor:
33853         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
33854         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
33855         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
33856         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
33857         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
33858         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
33859         * modules/freadable, modules/freadahead, modules/freadptr:
33860         * modules/freadseek, modules/freopen, modules/frexp:
33861         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
33862         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
33863         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
33864         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
33865         * modules/ftello, modules/full-read, modules/full-write:
33866         * modules/fwritable, modules/fwriteerror, modules/gcd:
33867         * modules/get-rusage-as, modules/get-rusage-data:
33868         * modules/getdtablesize, modules/getrusage, modules/gettext:
33869         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
33870         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
33871         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
33872         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
33873         * modules/iconv, modules/iconv-h, modules/iconv_open:
33874         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
33875         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
33876         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
33877         * modules/integer_length_ll, modules/ioctl, modules/isatty:
33878         * modules/isblank, modules/isnand, modules/isnand-nolibm:
33879         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
33880         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
33881         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
33882         * modules/javaexec, modules/javaexec-script, modules/javaversion:
33883         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
33884         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
33885         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
33886         * modules/lib-symbol-visibility, modules/libsigsegv:
33887         * modules/linked-list, modules/linkedhash-list, modules/list:
33888         * modules/localcharset, modules/locale, modules/localeconv:
33889         * modules/localename, modules/lock, modules/log, modules/log-ieee:
33890         * modules/log10, modules/log10-ieee, modules/log10f:
33891         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
33892         * modules/log1p, modules/log1p-ieee, modules/log1pf:
33893         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
33894         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
33895         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
33896         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
33897         * modules/logf, modules/logf-ieee, modules/login_tty:
33898         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
33899         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
33900         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
33901         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
33902         * modules/mbscspn, modules/mbsinit, modules/mbslen:
33903         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
33904         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
33905         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
33906         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
33907         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
33908         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
33909         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
33910         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
33911         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
33912         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
33913         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
33914         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
33915         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
33916         * modules/posix_spawn, modules/posix_spawn-internal:
33917         * modules/posix_spawn_file_actions_addclose:
33918         * modules/posix_spawn_file_actions_adddup2:
33919         * modules/posix_spawn_file_actions_addopen:
33920         * modules/posix_spawn_file_actions_destroy:
33921         * modules/posix_spawn_file_actions_init:
33922         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
33923         * modules/posix_spawnattr_getpgroup:
33924         * modules/posix_spawnattr_getschedparam:
33925         * modules/posix_spawnattr_getschedpolicy:
33926         * modules/posix_spawnattr_getsigdefault:
33927         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
33928         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
33929         * modules/posix_spawnattr_setschedparam:
33930         * modules/posix_spawnattr_setschedpolicy:
33931         * modules/posix_spawnattr_setsigdefault:
33932         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
33933         * modules/pow, modules/powf, modules/printf-frexp:
33934         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
33935         * modules/progname, modules/propername, modules/pselect:
33936         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
33937         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
33938         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
33939         * modules/read, modules/readdir, modules/readlink:
33940         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
33941         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
33942         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
33943         * modules/relocatable-script, modules/remainder:
33944         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
33945         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
33946         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
33947         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
33948         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
33949         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
33950         * modules/setlocale, modules/sh-quote, modules/shutdown:
33951         * modules/signal, modules/signbit, modules/sigpipe:
33952         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
33953         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
33954         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
33955         * modules/snippet/link-warning, modules/snippet/unused-parameter:
33956         * modules/snprintf, modules/snprintf-posix, modules/spawn:
33957         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
33958         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
33959         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
33960         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
33961         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
33962         * modules/streq, modules/strerror_r-posix, modules/striconv:
33963         * modules/striconveh, modules/striconveha, modules/strncat:
33964         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
33965         * modules/sublist, modules/sys_resource, modules/sys_utsname:
33966         * modules/sys_wait, modules/system-posix, modules/system-quote:
33967         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
33968         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
33969         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
33970         * modules/truncf, modules/truncf-ieee, modules/truncl:
33971         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
33972         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
33973         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
33974         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
33975         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
33976         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
33977         * modules/wait-process, modules/waitpid, modules/wcpcpy:
33978         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
33979         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
33980         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
33981         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
33982         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
33983         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
33984         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
33985         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
33986         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
33987         * modules/write, modules/xconcat-filename, modules/xlist:
33988         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
33989         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
33990         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
33991         * modules/y0, modules/y1, modules/yn:
33992         Remove Bruno Haible as maintainer; if he's the sole maintainer,
33993         change the maintainer to 'all'.  Let's hope someone volunteers.
33995 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
33997         mktime: merge #if/#ifdef usage from glibc
33998         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
33999         as that works with both Glibc's and Gnulib's style.
34000         See thread starting at Siddhesh Poyarekar's bug report at:
34001         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
34003 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
34005         git-version-gen: improve option descriptions
34006         * build-aux/git-version-gen: Mention that --prefix and --fallback
34007         have a mandatory argument.
34009 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
34011         regex: fix memory leak in compiler
34012         Fix by Andreas Schwab in:
34013         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
34014         * lib/regcomp.c (parse_expression): Deallocate partially
34015         constructed tree before returning error.
34017         regex: merge patch from libc
34018         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
34019         Combine __USE_BSD and __USE_SVID into __USE_MISC.
34020         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
34022 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
34024         acl: port to gcc -Wredundant-decls
34025         From a request by Dmitry Antipov in:
34026         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
34027         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
34028         "#ifndef _GL_ACL_H".
34030 2014-06-11  Bruce Korb  <bkorb@gnu.org>
34031         Jim Meyering  <meyering@fb.com>
34033         parse-duration: eliminate 68-year duration limit
34034         * lib/parse-duration.c: Include "intprops.h".
34035         (TIME_MAX): Rename to MAX_DURATION and define to
34036         TYPE_MAXIMUM(time_t).
34037         * modules/parse-duration (Depends-on): Add intprops.
34038         Reported by Jonas 'Sortie' Termansen.
34040 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
34042         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
34043         * modules/pthread (Depends-on): Add 'extensions', as it defines
34044         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
34045         (configure.ac-early): New section.
34046         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
34047         it is no longer needed.
34049 2014-06-14  Pádraig Brady  <P@draigBrady.com>
34051         pthread: define thread-safe macros on some platforms
34052         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
34053         for thread-safe operation on some platforms.
34055 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
34057         regex: don't be multithreaded if USE_UNLOCKED_IO.
34058         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
34059         * lib/regex_internal.h: Do not use multithreaded version if
34060         USE_UNLOCKED_IO is defined.  This is a hack, but it works
34061         around a porting bug with coreutils 8.22 on AIX 7.1.
34063 2014-06-11  Daiki Ueno  <ueno@gnu.org>
34065         gettext: update macros to version 0.19
34066         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
34067         depend on gl_EXTERN_INLINE and drop support for older Bison
34068         versions.
34070 2014-06-10  Pádraig Brady  <P@draigBrady.com>
34072         select,poll: fix console handle check on windows 8
34073         lib/poll.c (IsConsoleHandle): Change from testing the lower
34074         2 bits of the handle to the more expensive but accurate syscall.
34075         lib/select.c: Likewise.
34077 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
34079         select: fix waiting on anonymous pipes on MS-Windows
34080         * lib/select.c (rpl_select): Fall back to polling when select()
34081         indicates there is nothing to check, while due to the timeout not
34082         expiring, activity is indicated on one of the handles.
34083         Also clear the TIMEOUT argument if the timer does expire.
34085 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
34087         times: fix to return non constant value on MS-Windows
34088         * lib/times.c (times): Don't use the process creation time,
34089         rather clock() which on windows returns the number of
34090         clock ticks since the process started.
34092 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
34094         isatty: fix to work on windows 8
34095         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
34096         2 bits of the handle to the more expensive but accurate syscall.
34098 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
34100         maint: fix typo in fdl.texi
34101         * doc/fdl.texi: Fix typo (missing '@').
34102         Somehow this was in fdl.texi but not fdl-1.3.texi.
34104 2014-06-06  Ben Walton  <bdwalton@gmail.com>
34106         mountlist: avoid hasmntopt const type warning on solaris
34107         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
34108         with char * instead of const char *.  Passing the constant string
34109         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
34110         to avoid the warning.
34112 2014-06-04  Eric Blake  <eblake@redhat.com>
34114         maintainer-makefile: delete obsolete code
34115         * top/maint.mk (build_aux): Drop old code, as threatened.
34117         maintainer-makefile: avoid spurious error messages
34118         * top/maint.mk (syntax-check): Guard definition and use of
34119         $(shell) by whether Makefile is present.
34121 2014-06-03  Ben Walton  <bdwalton@gmail.com>
34123         rename: avoid unused-but-set-variable compiler warning
34124         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
34125         it is possible that dst_exists may be set but not used.  Mark it with
34126         the unused attribute to avoid compiler warnings.
34128 2014-06-02  Ben Walton  <bdwalton@gmail.com>
34130         rename: mark a label as potentially unused
34131         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
34132         by marking the out label as potentially unused.
34133         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
34135 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
34137         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
34138         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
34140 2014-06-02  Ben Walton  <bdwalton@gmail.com>
34142         acl: apply pure attribute to two functions
34143         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
34144         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
34146 2014-06-01  Pádraig Brady  <P@draigBrady.com>
34148         gnulib-common.m4: add _GL_UNUSED_LABEL
34149         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
34150         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
34152 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
34154         dup2, fcntl, fcntl-h: port to AIX 7.1
34155         This fixes some porting problems discovered when testing the latest
34156         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
34157         in grep but it could be important for other applications.
34158         * doc/posix-functions/dup2.texi:
34159         * doc/posix-functions/fcntl.texi:
34160         * doc/posix-headers/fcntl.texi:
34161         Document AIX bugs.
34162         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
34163         Define to 0 if outside 'int' range.
34164         * m4/dup2.m4 (gl_FUNC_DUP2):
34165         * m4/fcntl.m4 (gl_FUNC_FCNTL):
34166         Check for getdtablesize.  If it's available, test a value just
34167         outside its range instead of testing 1000000.  When cross-compiling,
34168         guess that AIX will fail this improved test.
34170 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34172         printf, config.rpath: Port to FreeBSD 10.
34173         Problem reported by Tijl Coosemans in:
34174         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
34175         * build-aux/config.rpath (hardcode_libdir_flag_spec)
34176         (hardcode_direct): Simplify FreeBSD configuration.
34177         (library_names_spec): Don't mishandle FreeBSD 10+.
34178         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
34179         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
34180         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
34181         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
34182         Don't mishandle FreeBSD 10+ when cross-compiling.
34184         ftoastr: work around compiler bug in IBM xlc 12.1
34185         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
34186         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
34187         around a compiler bug in IBM xlc 12.1.0.0: it complains
34188         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
34189         _GL_FLT_PREC_BOUND.'
34191 2014-05-30  Kieran Colford  <colfordk@gmail.com>
34193         valgrind-tests: fixed misleading help message
34194         * m4/valgrind-tests.m4: The help message generated by configure
34195         implied that valgrind was disabled by default, which it wasn't.
34196         Adjusted the help message using s/enable/disable/ to clarify.
34198 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
34200         isfinite, isinf, isnan tests: fix for little-endian PowerPC
34201         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
34202         first double of a PowerPC "double double" pair.
34203         * tests/test-isinf.c (test_isinfl): Likewise.
34204         * tests/test-isnan.c (test_long_double): Likewise.
34205         * tests/test-isnanl.h (main): Likewise.
34206         * tests/test-signbit.c (test_signbitl): Likewise.
34208 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34210         exclude-tests: port to AIX 7.1
34211         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
34212         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
34213         the regex code uses locks.
34215 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
34217         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
34218         Without this fix, Emacs would sometimes call sigprocmask instead
34219         of pthread_sigmask, which is a no-no in multithreaded applications.
34220         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
34221         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34222         Suppress check for pthread_sigmask working without -lpthread if
34223         the application always links with -lpthread.  Do not link with
34224         $LIBMULTITHREAD if gl_THREADLIB is not defined.
34225         * m4/timer_time.m4 (gl_TIMER_TIME):
34226         Require gl_THREADLIB only if it is defined.  Do not append
34227         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
34229 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
34231         gnulib-tool: wget translations using --no-verbose rather than --quiet
34232         This allows the user to see error messages if any (--quiet hides them)
34233         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
34235 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
34237         gnulib-tool: adjust translation wget to avoid a https redirection
34238         Context: http://translationproject.org/latest/gnulib redirects to
34239            https://translationproject.org/latest/gnulib/
34240         Rationale: if the user falls back to wget, she doesn't have rsync and
34241         is probably in a minimal build environment, where packages such as
34242         'ca-certificates' are missing as well, resulting in a failed (and
34243         difficult to detect since ignored) translation initial fetch.
34244         Consequently let's avoid https if possible, and add the missing
34245         trailing slash.  This also avoids an unnecessary 302 redirection.
34246         * gnulib-tool: Add trailing slash to gnulib URL.
34248 2014-05-22  Pádraig Brady  <P@draigBrady.com>
34250         getlogin_r-tests: check return value rather than errno
34251         * tests/test-getlogin_r.c (main): As per POSIX we should be
34252         verifying the return value from getlogin_r() rather than errno.
34254 2014-05-22  Pádraig Brady  <P@draigBrady.com>
34256         getlogin_r-tests: fix various issues in recent change
34257         * tests/test-getlogin_r.c: Include required headers that were
34258         missed in recent commit eec20b4e.
34259         Also consistently check the errno rather than the return value from
34260         getlogin_r as POSIX only specifies that non zero is returned on error.
34261         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
34263 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
34265         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
34266         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
34267         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
34268         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
34269         * lib/spawn-pipe.c:
34270         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
34271         and then 'int open64(const char *, int, ...);', which means the
34272         declaration for 'open' gets lost if we later '#undef open'.
34273         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
34274         where the compilation reported the non-fatal error "In function
34275         'openat_proc_name' ... warning: implicit declaration of function
34276         'open'".  In this case the error is relatively harmless, but in
34277         other cases it might not be so minor.
34279 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34281         xalloc: don't potentially generate invalid code for xmemdup calls
34282         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
34283         this function can initialize the newly-allocated storage with new
34284         pointers, which means this function is not malloc-like.  See:
34285         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
34287 2014-05-19  Pádraig Brady  <P@draigBrady.com>
34289         getlogin_r-tests: avoid false failure under sudo/ssh etc.
34290         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
34291         changes from commit 97249cf29 to not depend on environment variables.
34293 2014-05-18  Pádraig Brady  <P@draigBrady.com>
34295         getlogin-tests: avoid false failure under cron
34296         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
34297         since that's not what's under test.  Centos 6 was seen to return
34298         EINVAL for ttyname() when run from cron.
34300 2014-05-16  Jim Meyering  <meyering@fb.com>
34302         mbrtowc.m4: fix a comment typo
34303         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
34304         emitted documentation string.
34306 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34308         mbrlen, mbrtowc: fix bug with empty input
34309         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
34310         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
34311         so this is mainly for documentation.
34312         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
34313         (gl_FUNC_MBRTOWC): Use it.
34314         * tests/test-mbrtowc.c (main): Test for the bug.
34316 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34318         doc: document mbrtowc and mbrlen problem with empty input
34319         * doc/posix-functions/mbrlen.texi (mbrlen):
34320         * doc/posix-functions/mbrtowc.texi (mbrtowc):
34321         Document portability problem when the input string is empty.  See:
34322         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
34324         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
34325         Problem reported by Eli Zaretskii in:
34326         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
34327         * doc/posix-functions/execl.texi (execl):
34328         * doc/posix-functions/execle.texi (execle):
34329         * doc/posix-functions/execlp.texi (execlp):
34330         * doc/posix-functions/execv.texi (execv):
34331         * doc/posix-functions/execve.texi (execve):
34332         * doc/posix-functions/execvp.texi (execvp):
34333         Mention spawn+exit problem on non-Cygwin Windows platforms.
34335 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
34337         getlogin-tests: avoid false failure under sudo/ssh etc.
34338         * modules/getlogin-tests (configure.ac): Check for ttyname().
34339         * tests/test-getlogin.c (main): Don't depend on environment variables
34340         to correlate with getlogin(), since sudo and ssh etc. can tamper
34341         with the LOGNAME and USER env vars.  Instead lookup the name from
34342         the uid associated with the stdin tty.
34344 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34346         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
34347         These were found when building the latest grep snapshot on IRIX 6.5.
34348         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
34349         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
34350         never used later.
34351         * lib/quotearg.c (quoting_options_from_style):
34352         * lib/xstrtol.c (__xstrtol):
34353         Use enum instead of 0, to pacify IRIX 6.5 cc.
34355 2014-04-18  Pádraig Brady  <P@draigBrady.com>
34357         gitlog-to-changelog: revert inclusion of git-log-fix file
34358         * build-aux/git-log-fix: Delete dummy file.
34359         * modules/gitlog-to-changelog: Don't reference (overwrite)
34360         the project specific git-log-fix file.
34362 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
34364         maint.mk: Relax the copyright check to cater for non FSF projects
34365         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
34366         to not require the "Free" suffix after the copyright years.
34368 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
34370         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
34371         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
34372         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
34373         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
34374         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
34376 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
34378         exclude: port to strict C99
34379         Strict C does not allow converting a function pointer to void *
34380         and vice versa.  Pass a pointer to a function pointer instead.
34381         * lib/exclude.c (add_exclude_file):
34382         Pass the address of the function pointer.
34383         (call_addfn): And deference the address here, to match.
34385 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34387         regex: do not depend on malloc-gnu
34388         * modules/regex (Depends-on): Remove malloc-gnu.
34389         It's no longer needed, because of the 2012-12-29 patch
34390         "regex: port to hosts where malloc (0) == NULL".
34391         Reported by Nathan Kennedy in:
34392         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
34394 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
34396         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
34397         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
34398         * doc/posix-functions/expl.texi: Mention the workaround.
34400 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
34402         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
34403         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
34404         size to be zero even when the pointer is nonnull.  This
34405         accommodates the use case where P is malloc (0) and *PN is 0 on a
34406         host where malloc (0) yields nonnull.
34408 2014-04-09  Eric Blake  <eblake@redhat.com>
34410         fts: avoid unnecessary strlen calls
34411         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
34413 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
34415         fts: avoid unnecessary strlen calls
34416         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
34417         when that can be faster than strlen.
34419 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34421         fts: avoid unnecessary strlen calls
34422         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
34423         (fts_build): Store the length of the dp->d_name entry in a local variable
34424         instead of calling strlen() several times via the above, removed macro.
34425         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
34426         run by ~4%, yet this reduces the execution time by about a third if run
34427         via "ltrace -c rm -rf some-dir".
34429 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34431         obstack: Remove ancient NeXTSTEP gcc support conditional
34432         This change will ease merging with glibc.  The "#if ... __NEXT__"
34433         causes a warning with -Wundef which glibc now enables by default.
34434         Problem reported by Will Newton in
34435         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
34436         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
34437         so go with that.
34438         * lib/obstack.h (__extension__):
34440 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34442         obstack: merge with glibc changes
34443         * lib/obstack.c, lib/obstack.h: Merge from glibc.
34444         This is mostly indenting and commentary changes.
34445         Instances of 'register' have been removed.
34447 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34449         strftime: wrap macros in "do {...} while(0)"
34450         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
34451         this macro in "do {...} while(0)" to prevent false use as a
34452         single statement, e.g., in an un-braced "{}" else-block.
34453         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
34454         (strftime_case_): Remove 'else' after 'goto' - which was the
34455         only non-fatal, un-braced use of one of the above macros.
34456         Spotted by coverity (NESTING_INDENT_MISMATCH).
34458 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34460         modechange: avoid memory leaks for invalid octal modes
34461         * lib/modechange.c (mode_compile): During the parsing of
34462         notations like +40, free the 'mc' buffer for invalid mode
34463         strings like +17777 (greater than the maximum octal mode),
34464         =18 (bad octal mode characters) or u=1 ('affected' with
34465         octal modes).
34466         Reproducer, e.g.:
34467             $ valgrind --leak-check=full chmod +17777 file
34468         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
34469         add notations +40, 00440, etc.".
34470         Spotted by coverity (RESOURCE_LEAK).
34472 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
34474         gitlog-to-changelog: include a dummy git-log-fix file
34475         Problem reported by Nathan Stratton Treadway in:
34476         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
34477         * build-aux/git-log-fix: New file.
34479 2014-03-13  Jim Meyering  <meyering@fb.com>
34481         gitlog-to-changelog: also include the file, git-log-fix
34482         * modules/gitlog-to-changelog (Files): Add git-log-fix.
34483         Reported by Assaf Gordon.
34485 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
34487         regex: port to OS X 10.8.5 en_US.UTF-8 locale
34488         This fixes a bug when ignoring case and when comparing the
34489         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
34490         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
34491         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
34492         titlecase letter is neither lowercase nor uppercase, but
34493         uppercasing the titlecase letter (via towupper) yields the
34494         uppercase letter, so the two letters should match when ignoring case.
34495         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
34496         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
34497         Don't test whether a character is lowercase before uppercasing it.
34499 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
34501         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
34502         This is basically one of the options Bruno Haible proposed in:
34503         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
34504         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
34505         * lib/stdint.in.h: Use it.
34506         * modules/stdint (Depends-on): Add sys_types.
34508 2014-02-26  Pádraig Brady  <P@draigBrady.com>
34510         parse-datetime: fix crash or infloop in TZ="" parsing
34511         * lib/parse-datetime.y (parse_datetime): Break out of the
34512         TZ="" parsing loop once the second significant " is found.
34513         Also skip over any subsequent whitespace to be consistent
34514         with the non TZ= case.
34515         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
34517 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
34519         savedir: new symbol for fast-read version
34520         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
34521         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
34522         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
34523         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
34525 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
34527         unistd: port readlink to Mac OS X 10.3.9
34528         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
34529         around self-include problem in Mac OS X 10.3.9 when combined with
34530         readlink module.  Problem reported by Klaus Zietler in
34531         <http://bugs.gnu.org/16825>.
34533 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
34535         diffseq: remove TOO_EXPENSIVE heuristic
34536         Problem with diffutils reported by Vincent Lefevre in
34537         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
34538         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
34539         Although appropriate for circa-1993 hardware, these days the heuristic
34540         seems to be more trouble than it's worth.
34541         * lib/diffseq.h: Modernize citations.
34542         (struct context): Remove member too_expensive.
34543         All uses changed.
34544         (struct partition): Remove members lo_minimal, hi_minimal.
34545         All uses changed.
34546         (diag, compareseq): Remove arg find_minimal.  All uses changed.
34547         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
34548         1993 to make 'diff' run faster (but not as well) on large inputs.
34549         These days, computers are fast enough that it's typically better
34550         to run slower but more accurately.
34551         * lib/fstrcmp.c: Remove duplicate comment.
34552         * lib/fstrcmp.c (strcmp_bounded):
34553         * lib/git-merge-changelog.c (compute_differences):
34554         Adjust to diffseq.h changes.
34555         * NEWS: Document the change.
34557         savedir: simplify by using stpcpy
34558         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
34559         (streamsavedir): Use stpcpy instead.
34560         * modules/savedir (Depends-on): Add stpcpy.
34562 2014-02-21  Pádraig Brady  <P@draigBrady.com>
34564         spawn: fix link error on uclibc
34565         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
34566         to incorporate -lrt if needed (on uclibc for example).
34567         * modules/posix_spawn: Reference the substituted LIB.
34569 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
34570         timer: fix uClibc detection of threading
34571         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
34572         enabled in uClibc.
34574 2014-02-21  Eric Blake  <eblake@redhat.com>
34576         maintainer-makefiles: provide AC_PROG_SED for older autoconf
34577         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
34579 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
34581         exclude: add support for posix regexps
34583         This commit adds support for POSIX extended regular expressions
34584         and fixes a long-standing memory leak (pattern buffer was never
34585         freed).  It also implements a new interface function to read
34586         exclude patterns from a FILE, which passes an additional parameter
34587         to its callback function, thereby allowing to preserve its state
34588         between invocations.
34590         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
34591         (pattern_buffer): New struct.
34592         (exclude): New member patbuf.
34593         (exclude_add_pattern_buffer): New function.
34594         (free_exclude_segment): Free regexps.
34595         (free_exclude): Free allocated pattern buffers.
34596         (exclude_patopts): New function.
34597         (file_pattern_matches): Use exclude_patopts.
34598         (add_exclude): support regexps.
34599         (add_exclude_fp): New function.
34600         (add_exclude_file): Rewrite using add_exclude_fp.
34601         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34602         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34603         (add_exclude_fp)
34604         (add_exclude_file): Rewrite using add_exclude_fp.
34605         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34606         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34607         (add_exclude_fp)
34608         (exclude_add_pattern_buffer): New prototypes.
34609         * modules/exclude: Depends on regex and filename.
34611 2014-02-20  Eric Blake  <eblake@redhat.com>
34613         maintainer-makefiles: use $(SED) for syntax check
34614         * modules/maintainer-makefile (configure.ac): Check for sane sed.
34615         * top/maint.mk: Change sed to $(SED).
34617 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
34618             Paul Eggert  <eggert@cs.ucla.edu>
34620         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
34621         Patch based on an idea by Dick Streefland in
34622         <https://savannah.gnu.org/patch/?7892>.
34623         * NEWS: Document this.
34624         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
34625         (direntry_t, comparison_function): New types.
34626         (direntry_cmp_name): New function.
34627         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
34628         (streamsavedir, savedir): New arg OPTION.
34629         (streamsavedir): Simplify memory allocation.
34630         (fdsavedir): Remove.
34631         * lib/savedir.h (enum savedir_option): New type.
34632         (streamsavedir, savedir): New arg OPTION.
34633         (fdsavedir): Remove.
34635 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34637         file-type: add support for doors and other less-common file types
34638         Problem with S_ISDOOR reported by Rich Burridge.
34639         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
34640         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
34641         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
34643 2014-01-23  Eric Blake  <eblake@redhat.com>
34645         pthread: work around winpthread header pollution on mingw
34646         * lib/time.in.h: Move pthread workarounds...
34647         * lib/pthread.in.h: ...here.
34648         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
34649         detect macro pollution on mingw.
34650         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
34652 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34654         qacl: check for fchmod
34655         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
34656         and qset-acl.c both use HAVE_FCHMOD.
34658 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34660         fdopen-tests: port to Tru64
34661         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
34662         descriptor that is not open, as POSIX doesn't specify the
34663         resulting behavior and the test does not work on Tru64.
34664         Problem reported by Steven M. Schweda in:
34665         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
34667         stdalign: port to HP-UX compilers
34668         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
34669         if __HP_cc or __HP_aCC are nonzero.
34671 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34673         strtoimax: port to platforms lacking 'long long'
34674         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
34675         check whether strtoll is declared, which causes the C file to
34676         wrongly report an error.  Problem reported by Steven M. Schweda in:
34677         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
34678         * lib/strtoimax.c (strtoull):
34679         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
34680         (strtoll): Declare only if HAVE_LONG_LONG_INT.
34682 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
34684         relocatable-perl: fix texi syntax
34685         * doc/relocatable-maint.texi: Escape braces.
34687 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
34689         relocatable-perl: like relocatable-script, but for Perl scripts
34690         * build-aux/relocatable.pl.in: Add.
34691         * doc/relocatable-maint.texi: Add documentation.
34692         * modules/relocatable-perl: Add.
34694 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
34696         tests: fix export bug in previous patch
34697         Problem reported by Jim Meyering.
34698         * tests/init.sh (re_shell): New var, which is exported instead of
34699         re_shell_.
34701         tests: simplify porting to Solaris 10 /bin/sh
34702         Some test cases in 'grep' need a shell that groks '$(';
34703         export re_shell_ for their benefit.  Problem reported for 'grep'
34704         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
34705         * tests/init.sh (re_shell_): Export if it's used.
34707 2014-01-06  Eric Blake  <eblake@redhat.com>
34709         md5, sha1, sha256, sha512: support older autoconf
34710         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
34711         for autoconf < 2.63b.
34713         include_next: port to autoconf 2.63
34714         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
34716 2014-01-04  Jim Meyering  <meyering@fb.com>
34718         maint: add a gnulib-local rule to keep non-ascii out of .texi files
34719         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
34720         so that "make sc_maint" will ding anyone who puts non-ascii
34721         in any of gnulib's .texi files.
34723 2014-01-03  Jim Meyering  <meyering@fb.com>
34725         freadable, fwritable, fwriting: declare with the "pure" attribute
34726         * lib/freadable.h (freadable): Declare with the "pure" attribute.
34727         * lib/fwritable.h (fwritable): Likewise.
34728         * lib/fwriting.h (fwriting): Likewise.
34729         Suggested by Bruno Haible.
34731         maint.mk: adapt openat.h-include-without-use test
34732         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
34733         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
34734         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
34735         With this change, running "make sc_maint" in gnulib's top-level
34736         directory now passes for me.
34738 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34740         doc: use ASCII in .texi files where UTF-8 isn't needed
34741         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
34742         * doc/posix-functions/setkey.texi, doc/regex.texi:
34743         Use ASCII input, not UTF-8.
34745 2014-01-02  Jim Meyering  <meyering@fb.com>
34747         freading: declare with the "pure" attribute
34748         * lib/freading.h (freading): Declare with the "pure" attribute.
34750         manywarnings: remove -Wmudflap
34751         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
34752         it is no longer supported in gcc-4.9-to-be.
34754 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34756         relocatable-script: remove unused code
34757         Problem reported by Reuben Thomas in:
34758         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
34759         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
34761 2014-01-01  Jim Meyering  <meyering@fb.com>
34763         maint: fix public-submodule-commit to work with newer git
34764         * top/maint.mk (public-submodule-commit): Remove excess quoting.
34765         We were over-quoting the test arguments, and somewhere prior to
34766         version 1.8.5.2.229, git stopped removing those excess quotes,
34767         which made the test fail, since the unexpanded strings would
34768         always differ; using GIT_TRACE=1 confirmed that the git merge-base
34769         command wasn't even being run.
34771 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34773         doc: update main copyright year
34774         * doc/gnulib.texi: Update copyright date.
34776 2014-01-01  Eric Blake  <eblake@redhat.com>
34778         version-etc: new year
34779         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
34780         * all files: run 'make update-copyright'
34782 2013-12-24  Eric Blake  <eblake@redhat.com>
34784         passfd: give nicer error for recvfd at eof
34785         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
34786         * tests/test-passfd.c (main): Enhance test to cover this.
34788 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34790         gettimeofday: port recent C++ fix to Emacs
34791         Without this further patch, Emacs won't build due to
34792         the portcheck failing.  Also, this simplifies the patch a bit.
34793         * lib/time.in.h (localtime, gmtime): Don't replace unless
34794         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
34795         * lib/time.in.h (localtime, gmtime):
34796         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
34797         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34798         * modules/time (time.h):
34799         Don't worry about the possibility of localtime and gmtime
34800         being absent; they're present in all C libraries we know about.
34801         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34802         Don't assume sys_time is present and has been initialized.
34803         Instead, use a hack that should work even if it hasn't been.
34804         Don't use a portcheck for gmtime or localtime; this supports
34805         the hack.
34806         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
34808 2013-12-17  John W. Eaton  <jwe@gnu.org>
34810         gettimeofday: fix C++ crosscompilation
34812         Never replace gmtime and localtime by macros when compiling with
34813         C++, this prevents <ctime> from being included.
34815         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
34816         define gmtime and localtime as preprocessor macros.  Instead
34817         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
34818         REPLACE_LOCALTIME substitutions.
34819         * lib/time.in.h: Declare gmtime and localtime when needed.
34820         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
34821         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
34822         * modules/time: Depend on gettimeofday, and substitute the above
34823         variables in time.h.
34825 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34827         qacl: port to Windows better
34828         See Eli Zaretskii in
34829         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
34830         * lib/file-has-acl.c (acl_access_nontrivial):
34831         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
34832         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
34834 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
34836         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
34837         * lib/gl_openssl.h: Cast void pointers to a specific type.
34839 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34841         open-tests: fix build failure with -Werror=old-style-declaration
34842         * tests/test-open.h: Reorder the inline to avoid the issue.
34844 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34846         md5, sha1, sha256, sha512: fix link error with partial libcrypto
34847         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
34848         init time, so that if early checks find crypto routines,
34849         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
34850         avoiding link failures.
34852 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34854         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
34855         This provides a new way to specify the default for
34856         gl_CRYPTO_CHECK, one that is reflected in the --help message.
34857         Emacs uses this, as well as the old way.
34858         This attempts to implement a suggestion by Pádraig Brady in
34859         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
34860         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
34861         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
34863         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
34864         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
34865         Add support for a new option, --with-openssl=auto, which causes
34866         the library to be used if available and silently ignored if not.
34867         Add support to allow configure.ac to specify its own
34868         default, by setting with_openssl_default before invoking gl_INIT.
34870 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34872         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
34873         Problem reported by Daiki Ueno in:
34874         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
34875         * tests/test-open.h (__always_inline):
34876         New macro, if not already defined.
34877         (test_open): Use it.
34879 2013-12-04  Eric Blake  <eblake@redhat.com>
34881         include_next: minimize code duplication
34882         * modules/include_next (Depends-on): Add absolute-header.
34883         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
34884         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
34886 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34888         getcwd: fix compile error in configure check
34889         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
34891 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34893         regex: suppress core dumps from detection code
34894         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
34895         to suppress core dumps that may well occur on glibc systems.
34896         These core dumps might not be cleaned up automatically, or could
34897         trigger some system core dump handling logic.
34899 2013-12-03  Pádraig Brady  <P@draigBrady.com>
34901         md5, sha1, sha256, sha512: support mandating use of openssl
34902         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
34903         description, to list the now 3 separate options.  also don't
34904         mention the default=no, since this is implicit given the option
34905         is described as --with-openssl rather than --without-openssl.
34906         If projects change the default they're free to document that.
34907         with --with-openssl[=yes] we now error out when the specified
34908         hash algorithm is not available in libcrypto.
34910 2013-12-03  Ivailo  <xakepa10@gmail.com>
34912         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
34913         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
34914         -Wformat-nonliteral checks, as these edge cases are part of the test.
34916 2013-12-03  Eric Blake  <eblake@redhat.com>
34918         regex: avoid glibc deadlock during configure
34919         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
34920         glibc bug 15078 in turn triggers bug 16159.
34921         Reported by Michal Privoznik.
34923 2013-12-02  Pádraig Brady  <P@draigBrady.com>
34925         md5, sha1, sha256, sha512: use openssl routines if available.
34926         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
34927         routines will be used if available, requiring apps to link @LIB_CRYPTO@
34928         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
34929         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
34930         in the standard system location.
34931         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
34932         * m4/sha256.m4: Likewise with SHA256.
34933         * m4/sha512.m4: Likewise with SHA512.
34934         * m4/md5.m4: Likewise with MD5.
34935         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
34936         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
34937         * lib/sha256.h: Likewise with SHA256.
34938         * lib/sha512.h: Likewise with SHA512.
34939         * lib/md5.h: Likewise with MD5.
34940         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
34941         * lib/sha256.c: Likewise with SHA256.
34942         * lib/sha512.c: Likewise with SHA512.
34943         * lib/md5.c: Likewise with MD5.
34944         * modules/crypto/sha1 (Link:): Add the new optional lib.
34945         (Depends-on:): Add dependency on extern-inline.
34946         * modules/crypto/sha256: Likewise.
34947         * modules/crypto/sha512: Likewise.
34948         * modules/crypto/md5: Likewise.
34949         * modules/crypto/sha1-tests: Reference the lib here too.
34950         * modules/crypto/md5-tests: Likewise.
34951         * modules/crypto/gc-des-tests: Likewise.
34952         * modules/crypto/gc-hmac-md5-tests: Likewise.
34953         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34954         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34955         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34956         * modules/crypto/gc-md5-tests: Likewise.
34957         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34958         * modules/crypto/gc-sha1-tests: Likewise.
34959         * modules/crypto/gc-tests: Likewise.
34960         * modules/crypto/hmac-md5-tests: Likewise.
34961         * modules/crypto/hmac-sha1-tests: Likewise.
34962         * modules/crypto/hmac-sha256-tests: Likewise.
34963         * modules/crypto/hmac-sha512-tests: Likewise.
34965 2013-11-29  RV1971  <rv1971@web.de>
34967         base64: (trivial) fix compilation regression on some compilers
34968         * lib/base64.c: Don't return the void function,
34969         instead split to a separate return statement.
34971 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34973         ignore-value: revert previous code change
34974         * lib/ignore-value.h (ignore_value): Use __extension__ and
34975         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
34976         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
34977         Change the comment to try to explain this better.
34979 2013-11-27  Pádraig Brady  <P@draigBrady.com>
34981         selinux-h: improve stub types and add more stub functions
34983         * lib/se-selinux.in.h: Change security_context_t to a typedef
34984         rather than a define, as it's a pointer type and so is better
34985         as a typedef to avoid issues declaring multiple variables
34986         with the comma operator.  Also add stub for string_to_security_class().
34987         * lib/se-context.in.h: Add stub functions for
34988         context_{type,range,role,user}_get().
34990 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34992         ignore-value: prefer GCC version back through 2.0
34993         The code didn't match the comments, so I did a bit of software
34994         archaeology.  GCC 2.0 seems to support __extension__ and
34995         __typeof__, so fix both code and comments to use 2.0.
34996         * lib/ignore-value.h (ignore_value): Use __extension__ and
34997         __typeof__ for GCC 2.0 through 3.3, too.
34999 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
35001         pty: Activate the signature wrapper of forkpty.
35002         The intended preprocessor macro HAVE_FORKPTY is
35003         never defined, yet `lib/forkpty.c' depends on it.
35005         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
35006         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
35007         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
35009 2013-11-18  Jim Meyering  <meyering@fb.com>
35010         and Paul Eggert  <eggert@cs.ucla.edu>
35012         quotearg: don't attempt to store 1 << 31 into an "int"
35013         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
35014         gcc's new -fsanitize=undefined and running its tests triggered some
35015         new test failures due to undefined behavior, all with this diagnostic:
35016           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
35017             cannot be represented in type int
35018         Rather than shifting "1" left to form a mask, shift the bits right and
35019         simply use "1" as the mask.
35021 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
35023         error: depend on stdio
35024         Problem reported by Nikos Mavrogiannopoulos in
35025         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
35026         * modules/error (Depends-on): Add stdio.
35028 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
35030         * doc/relocatable-maint.texi (Supporting Relocation): Improve
35031         wording.
35032         Reported by Reuben Thomas <rrt@sc3d.org>.
35034 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
35036         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
35037         New function and macro, to work around _DARWIN_C_SOURCE problem.
35038         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
35040 2013-11-11  Pádraig Brady  <P@draigBrady.com>
35042         base64: provide a fast path for encoding well sized buffers
35043         Avoid conditionals in the base64 encoding loop,
35044         which was seen to give 60% better throughput.
35045         * lib/base64.c (base64_encode_fast): A new function to be called
35046         when we don't want to NUL terminate, and we have enough space
35047         in the output to encode the given input.
35048         (base64_encode): Call the _fast() version when appropriate.
35049         Also remove a redundant mask with 0x3F on the first encoded byte.
35051 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
35053         extern-inline: port better to OS X 10.9
35054         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
35055         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
35056         OS X 10.9, except for g++ where the bug is still present.
35057         See <http://trac.macports.org/ticket/41033>.
35059 2013-11-08  Eric Blake  <eblake@redhat.com>
35061         fpending: fix regression on DragonFly BSD
35062         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
35063         * lib/fpending.h (__fpending): Don't declare twice.
35064         Reported by GW in
35065         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
35067 2013-11-05  Jim Meyering  <meyering@fb.com>
35069         hash: relax license to LGPLv2+, for libguestfs
35070         * modules/hash (License): Change from GPL to LGPLv2+.
35072 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
35074         intprops: port to Oracle Studio c99
35075         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
35076         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
35078 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
35080         obstack: pacify HP C
35081         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
35082         warning "conversion from pointer to smaller integer" from HP
35083         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
35084         C89 or later nowadays, so cast to void instead of int.  Privately
35085         reported by H.Merijn Brand.  Also, change header to match glibc's,
35086         to make checking against glibc easier.
35088 2013-10-29  Jim Meyering  <meyering@fb.com>
35090         maint.mk: prefer gpgv2 over gpgv
35091         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
35092         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
35093         Reported by Gary Vaughan.
35095 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35097         isnan: port to VAX
35098         Reported by John Klos for NetBSD-5/VAX in
35099         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
35100         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
35101         (FUNC): Use it.
35103 2013-10-28  Jim Meyering  <meyering@fb.com>
35105         gnulib-tool: protect against CDPATH
35106         * gnulib-tool: Many "cd" built-in functions print a directory name
35107         to stdout when CDPATH is set, e.g.,
35108           $ bash -c 'CDPATH=/; cd tmp'
35109           /tmp
35110         Unset it, when possible.  Prompted by a comment from Bruce Korb.
35112         maint.mk: restore functionality removed by recent change...
35113         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
35114         the context of a shallow-cloned gnulib repository: "git describe"
35115         would fail in such a directory.  However, that change made it so
35116         the reported gnulib revision no longer includes the version number
35117         or a commit count, even when run from a full clone.
35118         * top/maint.mk (gnulib-version): Use the full "git describe"
35119         output when possible, e.g., the form above, rather than the
35120         abbreviated, no-tag, no-commit-count string, and fall back to
35121         using a 10-byte hash, rather than the default minimal-length
35122         hash prefix, since while the minimal-length one may be fine today,
35123         it is likely not to be unique for very long.
35125 2013-10-26  Jim Meyering  <meyering@fb.com>
35127         maint.mk: fix "release" target to build _version
35128         This fixes a bug in README-release whereby following the outlined
35129         steps, one would publish a tarball whose programs would report
35130         --version output not consistent with the package version number.
35131         This bug caused grep-2.15 to produce a grep program whose
35132         --version option made it print 2.14.56-1e3d rather than 2.15.
35133         * top/maint.mk (release): Making this target build "_version"
35134         ensures that the new version number is reflected in configure.
35136 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
35138         install-reloc: Support multi-binary installation.
35139         * build-aux/install-reloc: Support installing multiple programs in
35140         one invocation, as done by Automake starting with commit
35141         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
35142         Haible <bruno@clisp.org>, archived at
35143         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
35144         Reported by Sylvain <beuc@gnu.org>.
35146 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35148         selinux-h: Really build without selinux when library is missing.
35149         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
35150         continue without selinux, as already told in the warning message.
35152 2013-10-21  Jim Meyering  <meyering@fb.com>
35154         regex: also remove dependency on HAVE_WCSCOLL
35155         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
35157 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
35159         xfreopen: Fix typo. s/frepoen/freopen/
35160         * lib/xfreopen.c: Fix description.
35161         * modules/xfreopen: Likewise.
35163 2013-10-21  Jim Meyering  <meyering@fb.com>
35165         regex: don't depend on wcscoll
35166         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
35167         It is no longer used.
35169 2013-10-20  Jim Meyering  <meyering@fb.com>
35171         error: add the printf attribute to a static function
35172         * lib/error.c (error_tail): Add the printf attribute, to placate
35173         gcc's -Werror=suggest-attribute=format option.
35175 2013-09-30  Jim Meyering  <meyering@fb.com>
35177         fpending, obstack, strerror-override: use pure+const function attrs
35178         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
35179         * lib/obstack.c (_obstack_allocated_p): Likewise.
35180         * lib/obstack.h (_obstack_memory_used): Likewise.
35181         (_obstack_memory_used): Likewise.
35182         * lib/strerror-override.h (strerror_override): Declare with
35183         the "const" attribute.
35185 2013-10-18  Eric Blake  <eblake@redhat.com>
35187         extern-inline: make safe for -Wundef usage
35188         Reported by Vladimir 'phcoder' Serbinenko in
35189         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
35190         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
35192 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35194         mkfifo-tests, etc.: allow HP-UX 11.11 bug
35195         Problem reported by Daniel Richard G. in
35196         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
35197         * doc/posix-functions/mkfifo.texi (mkfifo):
35198         * doc/posix-functions/mkfifoat.texi (mkfifoat):
35199         * doc/posix-functions/mknod.texi (mknod):
35200         * doc/posix-functions/mknodat.texi (mknodat):
35201         Document the HP-UX 11.11 bug.
35202         * tests/test-mkfifo.h (test_mkfifo):
35203         Allow the HP-UX 11.11 bug.
35205 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35207         acl: allow cross-compilation to Gentoo
35208         Problem reported by Gabriel Marcano in
35209         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
35210         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
35211         test only whether it links.
35213 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
35215         mgetgroups: remove dependency on realloc-gnu
35216         The dependency violates the comment in realloc-gnu, which
35217         says that tests can't depend on realloc-gnu; some tests depend
35218         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
35219         Problem reported by Daniel Richard G. in
35220         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
35221         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
35222         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
35223         not realloc-gnu.
35225 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35227         regex-tests: port to HP-UX 11.11
35228         Problem reported by Daniel Richard G. in
35229         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
35230         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
35232 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35234         verify: document some 'assume' pitfalls
35235         * doc/verify.texi (Compile-time Assertions):
35236         Mention that 'assume (E)' can sometimes slow things down.
35237         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
35239 2013-10-10  Eric Blake  <eblake@redhat.com>
35241         strtoumax: fix typo in previous commit.
35242         * modules/strtoumax (Depends-on): Fix typo.
35243         * modules/strtoimax (Depends-on): Likewise.
35245 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35247         strtoumax: port to Solaris 8
35248         This problem was introduced in the recent HP-UX patch.
35249         Reported by Tom G. Christensen in
35250         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
35251         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
35252         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
35254 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
35256         strtoimax, strtoumax: port to HP-UX 11.11
35257         Problem reported by Daniel Richard G. in
35258         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
35259         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
35260         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
35261         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
35262         REPLACE_STRTOUMAX.
35263         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
35264         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
35265         Replace the function if defined as a macro but not as a function.
35266         * modules/inttypes-incomplete (inttypes.h): Substitute
35267         REPLACE_STRTOUMAX.
35268         * modules/strtoumax (configure.ac): Replace strtoumax if
35269         REPLACE_STRTOUMAX.
35271 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35273         strtoimax: port to HP-UX 11.11
35274         Problem reported by Daniel Richard G.
35275         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
35276         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
35277         they might clash with inttypes.h.
35279 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35281         New module 'count-trailing-zeros'.
35282         * MODULES.html.sh: Mention it.
35283         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
35284         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
35285         * modules/count-trailing-zeros-tests:
35286         * tests/test-count-trailing-zeros.c:
35287         New files.
35289         count-leading-zeros: port to MSC; support types wider than 64 bits
35290         The ideas behind the MSC port are stolen from Emacs.
35291         * lib/count-leading-zeros.h:
35292         Don't include verify.h: it's no longer needed, as types wider than
35293         64 bits are now supported.
35294         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
35295         performance with MSC.  All uses changed.  Do not assume that TYPE
35296         has at most 64 bits.
35297         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
35298         All uses changed.  Fold the subtraction from 31 into the table.
35300         count-one-bits: port to MSC; support types wider than 64 bits
35301         The ideas behind the MSC port are stolen from Emacs.
35302         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
35303         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
35304         Don't include verify.h: it's no longer needed, as types wider than
35305         64 bits are now supported.
35306         (COUNT_ONE_BITS_GENERIC): New macro.
35307         (popcount_supported) [_MSC_VER]: New inline function.
35308         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
35309         performance with MSC.  All uses changed.  Do not assume that TYPE
35310         has at most 64 bits.
35311         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
35313 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
35315         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
35316         * lib/mountlist.c (read_file_system_list): fix leak of directory
35317         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
35319 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35321         tests: improve diagnostic when an assertion fails
35322         * tests/macros.h (ASSERT): Report the assertion that failed.
35324 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35326         verify: new macro 'assume'
35327         This is taken from Emacs, and should be generally useful.
35328         * doc/verify.texi (assume): Document it.
35329         * lib/verify.h (assume): New macro.
35330         (__has_builtin): Expand to 0 if not defined.
35332 2013-09-26  Eric Blake  <eblake@redhat.com>
35334         dup2, dup3: work around another cygwin crasher
35335         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
35336         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
35337         * tests/test-dup2.c (main): Likewise.
35338         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
35339         * lib/dup3.c (dup3): Likewise.
35340         * doc/posix-functions/dup2.texi (dup2): Document it.
35341         * doc/glibc-functions/dup3.texi (dup3): Likewise.
35343         getdtablesize: work around cygwin issue
35344         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
35345         * modules/getdtablesize (configure.ac): Build replacement.
35346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
35347         * modules/unistd (Makefile.am): Expose the witness.
35348         * lib/unistd.in.h (getdtablesize): Declare replacement.
35349         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
35350         * tests/test-getdtablesize.c (main): Test it.
35351         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
35353 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
35355         pmccabe2html: escaping of special characters
35356         Escape all '<', '>', and '&' in HTML output.
35357         * build-aux/pmccabe2html (html_fnc): Call gsub()
35358         instead of sub() to capture all '<', '>', and '&'.
35359         Neither of '<' and '>' is special in a regexp,
35360         so first arguments to gsub() are corrected. Also,
35361         in replacement strings, ampersand must be escaped.
35362         Finally, '&' must be handled first, then '<' and '>'.
35364 2013-09-24  Eric Blake  <eblake@redhat.com>
35366         manywarnings: enable nicer gcc warning messages
35367         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
35368         some -f options for optimal warnings.
35370 2013-09-21  Jim Meyering  <meyering@fb.com>
35372         timespec: use the new TIMESPEC_RESOLUTION in a few more places
35373         * lib/timespec-add.c (timespec_add): Also replace 999999999
35374         with TIMESPEC_RESOLUTION - 1.
35375         * lib/timespec-sub.c (timespec_sub): Likewise.
35377 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35379         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
35380         Problem reported by Dagobert Michelsen via Eric Blake in
35381         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
35382         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
35383         not AC_COMPILE_IFELSE.
35385 2013-09-23  Eric Blake  <eblake@redhat.com>
35387         configmake: support new --runstatedir option
35388         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
35389         even if autoconf was too old to provide the command line option.
35390         * modules/configmake (Makefile.am): Propagate it to .h file.
35392 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35394         ctype, string: depend on extern-inline
35395         This is needed to complete the recent OS X fixes.
35396         Also, fix related documentation as suggested by Eric Blake.
35397         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
35398         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
35399         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
35400         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
35401         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
35402         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
35403         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
35404         * doc/posix-functions/toupper.texi:
35405         List the 'ctype' gnulib module.
35406         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
35407         * doc/posix-functions/strncpy.texi:
35408         List the 'string' gnulib module.
35409         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
35410         Add string.
35411         * modules/ctype, modules/string (Depends-on): Add extern-inline.
35413 2013-09-19  Pádraig Brady  <P@draigBrady.com>
35415         userspec: support optional parameters to parse_user_spec()
35416         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
35417         then avoid group processing and treat the full spec as a user.
35418         (parse_with_separator): Allow the USERNAME and GROUPNAME to
35419         be optional params (NULL), in which case they're ignored.
35421 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
35423         timespec: new function make_timespec, and new constants
35424         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
35425         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
35426         (make_timespec): New function.
35427         * lib/dtotimespec.c (dtotimespec):
35428         * lib/timespec-add.c (timespec_add):
35429         * lib/timespec-sub.c (timespec_sub):
35430         * lib/utimens.c (validate_timespec):
35431         * lib/utimensat.c (rpl_utimensat):
35432         Use these new constants and functions.
35434         stdio: OS X port of putc_unlocked + extern inline
35435         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
35436         * doc/posix-functions/putc_unlocked.texi:
35437         * doc/posix-functions/putchar_unlocked.texi:
35438         Document this portability problem.
35440         signal: OS X port of sigaddset etc. + extern inline
35441         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
35442         (sigismember): #undef on problematic Apple platforms.
35443         * doc/posix-functions/sigaddset.texi:
35444         * doc/posix-functions/sigdelset.texi:
35445         * doc/posix-functions/sigemptyset.texi:
35446         * doc/posix-functions/sigfillset.texi:
35447         * doc/posix-functions/sigismember.texi:
35448         Document this portability problem.
35450         extern-inline: do not always suppress extern inline on OS X
35451         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
35452         extern inline on Apple only if the particular compile-time
35453         configuration is known to have the problem.
35454         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
35455         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
35456         other Gnulib modules.
35458         extern-inline: document fixes for ctype and wctype macros
35459         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
35460         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
35461         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
35462         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
35463         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
35464         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
35465         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
35466         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
35467         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
35468         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
35469         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
35470         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
35471         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
35472         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
35473         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
35474         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
35475         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
35476         * doc/posix-functions/strncpy.texi:
35477         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
35478         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
35479         Document that Gnulib fixes portability problems with these
35480         functions on OS X 10.8 and earlier when called from plain inline
35481         or extern inline functions.
35483 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
35485         fflush, freadahead, fseeko: Fix for Android
35486         Suggested by Bruno Haible in:
35487         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
35488         * lib/stdio-impl.h: Use local __sfileext definition.
35490 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
35492         pmccabe2html: Portability to other awk versions.
35493         The functions systime() and strftime() are available
35494         in Gawk only.  Properly close two HTML-tags 'style'
35495         and 'span'.
35496         * build-aux/pmccabe2html (BEGIN): Store timing
35497         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
35498         systime() in HTML_COMMENT.
35499         (html_header): Correctly close tag 'style'.
35500         (END): Replace strftime() by CHRONOS_TIME.  Close
35501         tag 'span' correctly, not as 'div'.
35503 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
35505         getgroups: statement without effect
35506         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
35507         Change equality conditional to expected assignment.
35509 2013-09-09  Eric Blake  <eblake@redhat.com>
35511         glob: fix compilation
35512         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
35514 2013-09-07  Eric Blake  <eblake@redhat.com>
35516         glob: fix build for platforms without __THROW
35517         * lib/glob.in.h (__THROW): Add definition again.
35519 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
35521         regex-quote: fix buffer access out of bounds
35522         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
35523         * lib/regex-quote.c (regex_quote_spec_pcre):
35524         Fix typo that resulted in an out-of-bounds read.
35526 2013-09-04  Eric Blake  <eblake@redhat.com>
35528         glob: avoid -Wattribute warnings on glibc
35529         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
35530         __THROWNL, not __THROW, on static functions.
35531         * lib/glob.in.h (__THROW): Adjust...
35532         (__THROWNL): ...accordingly.
35534 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35536         headers: check that _GL_INLINE_HEADER_BEGIN is defined
35537         Suggested by Bruce Korb in:
35538         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
35539         * doc/extern-inline.texi (extern inline):
35540         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
35541         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
35542         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
35543         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
35544         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
35545         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
35546         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
35547         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
35548         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
35549         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
35550         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
35551         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
35552         * lib/xtime.h:
35553         Check that _GL_INLINE_HEADER_BEGIN is defined.
35555 2013-08-29  Pádraig Brady  <P@draigBrady.com>
35557         bootstrap: remove the --version requirement from ancillary tools
35558         * build-aux/bootstrap (check_exists): A new refactored function to
35559         determine if a command exists.
35560         (find_tool): Use the new function which does not require the
35561         --version option to be supported.
35562         (check_versions): Use the new function.
35564 2013-08-26  Simon Josefsson  <simon@josefsson.org>
35566         gc: support HMAC-SHA256 and HMAC-SHA512.
35567         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
35568         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
35569         functions.
35570         (gc_hmac_md5): Use symbolic constant.
35571         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
35572         (gc_hmac_sha256, gc_hmac_sha512): New functions.
35573         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
35574         * m4/sha256.m4: Protect against empty expansion.
35575         * m4/sha512.m4: Likewise.
35576         * lib/hmac-sha256.c: New file.
35577         * lib/hmac-sha512.c: Likewise.
35578         * m4/gc-hmac-sha256.m4: Likewise.
35579         * m4/gc-hmac-sha512.m4: Likewise.
35580         * m4/gc-sha256.m4: Likewise.
35581         * m4/gc-sha512.m4: Likewise.
35582         * modules/crypto/gc-hmac-sha256: Likewise.
35583         * modules/crypto/gc-hmac-sha256-tests: Likewise.
35584         * modules/crypto/gc-hmac-sha512: Likewise.
35585         * modules/crypto/gc-hmac-sha512-tests: Likewise.
35586         * modules/crypto/hmac-sha256: Likewise.
35587         * modules/crypto/hmac-sha256-tests: Likewise.
35588         * modules/crypto/hmac-sha512: Likewise.
35589         * modules/crypto/hmac-sha512-tests: Likewise.
35590         * tests/test-gc-hmac-sha256.c: Likewise.
35591         * tests/test-gc-hmac-sha512.c: Likewise
35592         * tests/test-hmac-sha256.c: Likewise.
35593         * tests/test-hmac-sha512.c: Likewise
35595 2013-08-24  Daiki Ueno  <ueno@gnu.org>
35597         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
35598         of AC_CHECK_DECLS.
35600 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35602         selinux-at: omit unnecessary include
35603         * lib/selinux-at.c: Don't include dosname.h; not needed, since
35604         this source file doesn't use its macros, and subsidiary files that
35605         use the macros already include it.
35607 2013-08-21  Eric Blake  <eblake@redhat.com>
35609         d-ino: avoid false negative on symlink
35610         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
35611         Reported by Stephane Chazelas.
35613 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
35615         bootstrap: port to OpenBSD sed
35616         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
35617         does not interpret `-' as a file argument to mean stdin.
35619 2013-08-15  Eric Blake  <eblake@redhat.com>
35621         warnings: minor optimization
35622         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
35624         warnings: check -Wfoo rather than -Wno-foo
35625         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
35626         -Wno-, test if the compiler recognizes the positive form instead.
35628 2013-08-15  Karl Berry  <karl@gnu.org>
35630         * config/srclist-update: add option "doclicense" to placate
35631         pulling *.texi files from Emacs.  Write terse usage
35632         documentation at the top.
35634 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
35636         xvasprintf-tests: port to GCC with hardening flags
35637         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
35638         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
35639         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
35641 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35643         fpending: port to recent Cygwin change to stdio_ext.h
35644         Reported by LRN in
35645         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
35646         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
35647         just declare __fpending unless it's a macro.
35648         A duplicate decl shouldn't hurt.
35649         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
35650         call compiles and links, instead of separately checking for
35651         decl and lib function.
35652         * modules/fpending (configure-ac):
35653         Adjust to fpending.m4's renaming of shell variable.
35655 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35657         sys_time: port to OpenBSD
35658         * lib/sys_time.in.h: Simply delegate to the system's header
35659         in the BSDish cases as well.  Problem reported by Mike Miller in
35660         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
35661         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
35662         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
35663         wider than time_t.
35665 2013-08-09  Pádraig Brady  <P@draigBrady.com>
35667         bootstrap: support checksum utils having -c but not --status
35668         * build-aux/bootstrap: Only look for sha1sum if updating po files.
35669         Add sha1 to the list of supported checksum utils since it's now
35670         supported through adjustments below.
35671         (update_po_files): Remove the use of --status
35672         in a way that will suppress all error messages, but since this is
35673         only used to minimize updates, it shouldn't cause an issue.
35674         Exit early if there is a problem updating the po file checksums.
35675         (find_tool): Remove the check for --version support as this
35676         is optional as per commit 86186b17.  Don't even check for the
35677         presence of the command as if that is needed, it's supported
35678         through configuring prerequisites in bootstrap.conf.
35679         Prompt that when a tool isn't found, one can define an environment
35680         variable to add to the hardcoded search list.
35682 2013-08-05  Jim Meyering  <meyering@fb.com>
35684         regex: port to non-glibc/lock-using systems
35685         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
35686         system with GNULIB_LOCK would fail due to absence of the
35687         included "glthread/lock.h".  This would affect any package
35688         for which the "lock" module is used only by the regex module,
35689         and not explicitly used.
35690         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
35691         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
35692         Add a dependency on the "lock" module.
35694 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35696         localecharset: make locale_charset thread-safe on Mac OS X
35697         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
35698         instead of MB_CUR_MAX.
35700 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35702         gettext: update to version 0.18.3
35703         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
35704         require AC_PROG_SED to allow user to specify custom sed command when
35705         generating en@quot PO file.
35707 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
35709         bootstrap: use correct source when copying build-aux files
35710         * build-aux/bootstrap (gnulib_extra_files): This variable is
35711         relative to upstream gnulib layout, not downstream.
35713 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
35715         tmpdir: fix bug in VMS port
35716         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
35717         See Steven M. Schweda in
35718         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
35720 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35722         tmpdir: port to VMS, to // != /, and to long dirs
35723         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
35724         __secure_getenv, so that we're more like the glibc version.
35725         All uses changed.
35726         (path_search): Don't put slash after directory if __VMS.
35727         Problem reported by Steven M. Schweda in
35728         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
35729         Simplify code to add slash; no need for a loop.
35730         Do not remove trailing slash from "//".
35731         Do not assume dlen <= INT_MAX.
35733 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35735         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
35736         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
35737         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
35738         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
35740         accept4, dup3, pipe2: port to Cygwin
35741         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
35742         * lib/accept4.c (accept4) [O_BINARY]:
35743         * lib/dup3.c (dup3) [O_BINARY]:
35744         * lib/pipe2.c (pipe2) [O_BINARY]:
35745         Use set_binary_mode, not setmode.
35746         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
35747         * modules/binary-io (Depends-on): Remove module indicator.
35748         These last two bits undo the previous change to pipe2 and binary-io.
35750 2013-07-09  Pádraig Brady  <P@draigBrady.com>
35752         mountlist: add support for deallocating returned list entries
35753         * lib/mountlist.c (free_mount_entry): A new exported function
35754         to deallocate a mount list entry.
35755         (read_file_system_list): Refactor to use the new deallocation function.
35756         Suggested by Anton Ovchinnikov.
35758 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35760         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
35761         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
35762         * lib/stdalign.in.h (_Alignas, _Alignof):
35763         Port to FreeBSD 9.1, and to C11 and C++11.
35764         (_Alignas): Also support ICC.
35765         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
35766         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
35768 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35770         fnmatch: don't goto over declaration
35771         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
35772         undefined behavior for goto over a declaration.
35773         Problem reported by Charlie Brown in
35774         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
35776         pipe2: decouple from binary-io a bit
35777         This is for Emacs, which needs pipe2 but not binary-io.
35778         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
35779         * modules/binary-io (Depends-on): Add module indicator.
35781 2013-07-03  Eric Blake  <eblake@redhat.com>
35783         mgetgroups: relax license to LGPLv2+
35784         * modules/getugroups (License): Change from GPLv3+.
35785         * modules/mgetgroups (License): Likewise.
35786         * modules/getgroups (License): Change from LGPLv3+.
35788         xalloc-oversized: relax license to LGPLv2+
35789         * modules/xalloc-oversized (License): Change from GPLv3+.
35791         nproc: relax license to LGPLv2+
35792         * modules/nproc (License): Change from LGPLv3+.
35794         bootstrap: honor --no-git
35795         * build-aux/bootstrap: Don't even try to use git when user is
35796         pointing to a static checkout.
35798 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35800         ignore-value: port to gcc -pedantic
35801         * lib/ignore-value.h (ignore_value):
35802         Port to gcc -pedantic, by using __extension__.
35803         Reindent as per usual gnulib style nowadays.
35804         Simplify GCC version check.
35806 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35808         extern-inline: port to gcc -std=c89
35809         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35810         Do not use __gnu_inline__ if pedantic and pre-C99.
35812 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
35814         doc: document extern-inline
35815         * doc/extern-inline.texi: New file.
35816         * doc/gnulib.texi (alloca-opt): Include it.
35817         * m4/extern-inline.m4: Move some comments to documentation,
35818         and others closer to what they describe.
35820         doc: chatter less
35821         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
35822         (updated-stamp): Use it.  This causes 'make' to output just
35823         one file name rather than zillions.
35825         fflush, fseeko: port to musl cross-compiles
35826         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
35827         on some implementation that (1) is not known to be buggy,
35828         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
35829         cross-compiled to so we can't easily check for lack of
35830         conformance.  This is for cross-compiling to musl.
35831         Reported by Rich Felker in
35832         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
35833         * m4/fclose.m4 (gl_FUNC_FCLOSE):
35834         * m4/fflush.m4 (gl_FUNC_FFLUSH):
35835         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
35836         Adjust to above change.
35837         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
35838         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
35839         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
35840         known not to work, or unknown.
35842 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35844         msvc-inval: port to mingw-w64
35845         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
35846         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
35847         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
35849 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35851         getcwd-lgpl: port to Tru64
35852         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
35853         Problem reported by Steven M. Schweda in
35854         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
35856         tests: port large-fd POSIX spawn tests to OS X
35857         Problem reported by Daiki Ueno in
35858         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
35859         * tests/test-posix_spawn_file_actions_addclose.c:
35860         * tests/test-posix_spawn_file_actions_adddup2.c:
35861         * tests/test-posix_spawn_file_actions_addopen.c:
35862         Include <limits.h>, for OPEN_MAX, if available.
35863         (big_fd): New static function.
35864         (main): Use it.
35866 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
35868         tests/nap.h: use an adaptive delay to avoid ctime update issues
35869         The recent change in nap.h (5191133e) decreased the probability of lost
35870         races to about a third, however such problems could still be observed
35871         in virtual machines and openSUSE's OBS.
35872         Before, nap() detected the needed time once empirically and then used
35873         that delay (together with a small correction multiplier) in further
35874         calls.  This problem has been reported and discussed several times,
35875         including guesses about possible kernel issues:
35876         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
35877         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
35878         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
35879         http://bugs.gnu.org/12820
35880         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
35881         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
35882         Now, nap() avoids the race alltogether by verifying on a reference
35883         file whether a timestamp difference has happened.
35884         * tests/nap.h (nap_fd): Define file descriptor variable for the
35885         witness file.
35886         (nap_works): Change return value to bool.  Change passing
35887         the old file's status by value instead of by reference as this function
35888         does no longer update that timestamp; rename the function argument from
35889         st to old_st.  Remove the local variables cdiff and mdiff because that
35890         function now returns true/false instead of the precise delay.
35891         (guess_delay): Remove function.
35892         (clear_tmp_file): Add new function to close and unlink the witness file.
35893         (nap): Instead of re-using the delay which has been calculated during
35894         the first call, avoid the race by actually verifying that a timestamp
35895         difference can be observed on the current file system.  Use an adaptive
35896         approach for the delay to minimize execution time.  Assert that the
35897         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
35898         = 2^31 - 1 = 2.1s.
35899         Use atexit to call clear_tmp_file when the process terminates.
35901 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35903         sig2str: port to C++
35904         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
35905         Reported by Daniel J Sebald in
35906         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
35908 2013-05-30  Eric Blake  <eblake@redhat.com>
35910         docs: mention cygwin shortcoming in <sys/un.h>
35911         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
35913         vasnprintf: silence mingw compiler warning
35914         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
35916 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35918         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
35919         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
35920         This fixes a porting bug I recently reintroduced in regex, and
35921         some other instances that I discovered while testing the fix.
35922         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
35923         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
35924         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
35925         with an empty argument if this is a pedantic pre-C99 GCC.
35926         * lib/verify.h: Do not use _Static_assert if this is a pedantic
35927         pre-C11 GCC.
35929         regex: adapt to locking regime instead of depending on pthread
35930         Instead of depending on pthread, adapt to whatever thread
35931         modules are in use.  Problem reported by Ludovic Courtès in
35932         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
35933         and by Mats Erik Andersson in
35934         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
35935         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35936         Support either the 'lock' module, or the 'pthread' module, or
35937         no module.
35938         (lock_lock, lock_unlock): New macros.
35939         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
35940         * modules/lock, modules/pthread (configure.ac): Add module indicator.
35941         * modules/regex (Depends-on): Remove pthread.
35943 2013-05-22  Eric Blake  <eblake@redhat.com>
35945         getgroups: document portability issues
35946         * doc/glibc-functions/initgroups.texi (initgroups): Mention
35947         multithread safety.
35948         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
35949         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
35950         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
35951         getugroups.
35952         * doc/posix-functions/getgroups.texi (getgroups): Mention
35953         multithread safety and mgetgroups.
35955 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
35957         test-lchown, test-chown: also skip test if chown fails with EPERM
35958         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
35959         skip this test, to handle FAT file systems.
35960         * tests/test-chown.h (test_chown): Likewise.
35962 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35964         regex: fix dfa race in multithreaded uses
35965         Problem reported by Ludovic Courtès in
35966         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
35967         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35968         New macros.  All uses of __libc_lock_define, __libc_lock_init
35969         changed to use the first two of these.
35970         (__libc_lock_lock, __libc_lock_unlock): New macros, for
35971         non-glibc platforms.
35972         (struct re_dfa_t): Define the lock unconditionally.
35973         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
35974         '#ifdef _LIBC"s.
35975         * modules/regex (Depends-on): Add pthread, if we use the
35976         included regex.
35978         * lib/regcomp.c: Do actions that are not needed for glibc,
35979         but may be needed elsewhere.
35980         (regfree, re_compile_internal): Destroy the lock.
35981         (re_compile_internal): Check for lock-initialization failure.
35983         malloca: port to compilers that reject size-zero arrays
35984         This fixes a bug introduced in my previous patch.
35985         * lib/malloca.c (struct preliminary_header): Use an int
35986         rather than a character array of size int; that's simpler.
35987         (struct header): Remove, replacing with ...
35988         (union header): New type.  This avoids the need for declaring a
35989         character array of size zero, which is not allowed on some platforms.
35990         All uses changed.
35992 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35994         parse-datetime, tests: don't use "string" + int
35995         Recent versions of 'clang' complain about C source code that
35996         uses expressions of the form '"string literal" + integer',
35997         I guess on the theory that it's confusing for readers who are
35998         used to C++.  On those grounds I suppose it's OK to make this
35999         minor style change.
36000         * lib/parse-datetime.y (parse_datetime):
36001         * tests/test-fchdir.c (main):
36002         * tests/test-snprintf-posix.h (test_function):
36003         * tests/test-snprintf.c (main):
36004         * tests/test-vasnprintf-posix.c (test_function):
36005         * tests/test-vasnprintf.c (test_function):
36006         * tests/test-vsnprintf.c (main):
36007         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
36008         Rewrite '"str" + E' to '&"str"[E]'.
36010 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36012         argmatch: port to C++
36013         * lib/argmatch.h [__cplusplus]: Add extern "C".
36015         argp: typo fix
36016         * lib/argp-help.c: Typo in comment.
36018 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
36020         manywarnings: update for GCC 4.8.0
36021         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
36022         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
36023         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
36024         -Wmissing-noreturn, as they are duplicates of other warnings.
36025         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
36026         was documented to be flaky in earlier versions of GCC.
36028         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
36029         * tests/test-spawn.c (main):
36030         * tests/test-sys_socket.c (main):
36031         * tests/test-sys_wait.c (main):
36032         Don't have a switch value that isn't covered by a case.
36034         getaddrinfo-tests: port --enable-gcc-warnings to clang
36035         * tests/test-getaddrinfo.c (simple):
36036         Avoid casts from looser to stricter-aligned pointers.
36038         thread: port --enable-gcc-warnings to clang
36039         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
36040         Include <signal.h>, to pacify a warning about pthread_sigmask.
36042         stdio: use __REDIRECT for fwrite, fwrite_unlocked
36043         * lib/stdio.in.h (fwrite):
36044         When working around bug 11959, use __REDIRECT rather than '#define
36045         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
36046         fix the -Wunused-value issue with clang, and it works with GCC too.
36047         Problem with targeting reported by Eric Blake in
36048         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
36049         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
36050         debugging the fwrite issue.
36052         stdio: port --enable-gcc-warnings to clang
36053         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
36054         since the GCC workaround for fwrite does not pacify clang.
36056         sig2str: port --enable-gcc-warnings to clang
36057         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
36059         obstack: port --enable-gcc-warnings to clang
36060         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
36061         Avoid casts from looser to stricter-aligned pointers.
36063         memchr2: port --enable-gcc-warnings to clang
36064         * lib/memchr2.c (memchr2):
36065         Avoid casts from looser to stricter-aligned pointers.
36067         mbsstr: port --enable-gcc-warnings to clang
36068         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
36069         Avoid casts from looser to stricter-aligned pointers.
36071         malloca: port --enable-gcc-warnings to clang
36072         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
36073         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
36075         inttostr: port --enable-gcc-warnings to clang
36076         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
36078         warnings: port to clang
36079         Problem reported by Daniel P. Berrange via Eric Blake in
36080         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
36081         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
36082         (gl_WARN_ADD): Use it.
36084 2013-05-11  Jim Meyering  <meyering@fb.com>
36086         quotearg: do not read beyond end of buffer
36087         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
36088         end of an ARG for which no length was specified.  With an N-byte
36089         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
36090         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
36091         via coreutils' misc/sort-debug-keys.sh test and detected by running
36092         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
36093         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
36094         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
36095         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
36096         characters correctly."
36098 2013-05-11  Daiki Ueno  <ueno@gnu.org>
36100         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
36101         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
36102         compilation target is Mac OS X 10.6.
36103         Problem reported by parafin and Andoni Morales in
36104         <http://savannah.gnu.org/bugs/?37844> and
36105         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
36107 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
36109         mkdir-p: remove assumptions about umask and mode
36110         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
36111         umask is 0, or that MODE is a subset of MODE_BITS.
36113 2013-05-10  Eric Blake  <eblake@redhat.com>
36115         maint.mk: catch more abuse of HAVE_DECL in syntax-check
36116         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
36118 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
36120         deps: require Automake >= 1.9.6 in generated Makefile fragments
36122         That is the same minimal version required in the DEPENDENCIES file.
36123         Moreover, the old code generated a requirement of Automake >= 1.5,
36124         and that is an insanely outdated version.
36126         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
36127         * tests/havelib/rpathlx/Makefile.am: Likewise.
36128         * tests/havelib/rpathly/Makefile.am: Likewise.
36129         * tests/havelib/rpathlyx/Makefile.am: Likewise.
36130         * tests/havelib/rpathlz/Makefile.am: Likewise.
36131         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
36132         * tests/havelib/rpathx/Makefile.am: Likewise.
36133         * tests/havelib/rpathy/Makefile.am: Likewise.
36134         * tests/havelib/rpathz/Makefile.am: Likewise.
36136 2013-05-08  Eric Blake  <eblake@redhat.com>
36138         bootstrap: AC_INIT may have more than four parameters
36139         * build-aux/bootstrap (extract_package_name): Correctly extract
36140         non-empty tarname field.  Avoid range in regex.
36141         Based on a report by Sami Kerola <kerolasa@iki.fi>.
36143 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
36145         qacl: port to MS-Windows port of GNU Emacs
36146         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
36147         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
36148         port of GNU Emacs.  Problem reported by Eli Zaretskii in
36149         <http://bugs.gnu.org/14295#14>.
36151 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
36153         acl: include quote.h
36154         * lib/copy-acl.c: Include quote.h.
36155         * lib/set-acl.c: Likewise.
36157 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
36159         fchownat, renameat, unlinkat: update statat dependencies
36160         These modules use statat and lstatat, not fstatat; so depend on
36161         the statat module, which was split out recently from fstatat.
36162         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
36163         * modules/renameat: Likewise.  Also delete fstat.
36164         URL: http://bugs.gentoo.org/468790
36166 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
36168         Assume gnulib is checked out from Git, not CVS
36170         In fact, access to the gnulib repository through CVS has been
36171         disabled, or more precisely, got broken and was never restored; see:
36172         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
36174         Note that support for CVS is not removed completely and unthinkingly
36175         by this change: only support for CVS checkouts of gnulib itself is
36176         removed.  For example, the 'bootstrap' script still cater to .cvsingore
36177         files and CVS directories, for the benefit of those poor gnulib clients
36178         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
36180         * gnulib-tool: Simplify accordingly.
36181         * posix-modules: Likewise.
36182         * MODULES.html.sh: Likewise.
36183         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
36184         repository.
36185         * doc/gnulib-intro.texi: Likewise.
36186         * doc/gnulib-readme.texi: Likewise.
36187         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
36188         sample '.gitignore' file rather than a sample '.cvsignore'.
36189         * NEWS: Update.
36190         * m4/extensions.m4: While at it, remove a comment mistakenly referring
36191         to "CVS Autoconf" rather than "git Autoconf".
36193 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
36195         utimensat-tests, etc.: try to fix some races
36196         Problem reported by Bernhard Voelker in
36197         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
36198         I don't know whether this patch fixes that race condition, but it
36199         fixes *some* race conditions, so it should be a win.
36200         * modules/chown-tests (Depends-on):
36201         * modules/fchownat-tests (Depends-on):
36202         * modules/fdutimensat-tests (Depends-on):
36203         * modules/futimens-tests (Depends-on):
36204         * modules/lchown-tests (Depends-on):
36205         * modules/stat-time-tests (Depends-on):
36206         * modules/utimens-tests (Depends-on):
36207         * modules/utimensat-tests (Depends-on):
36208         Depend on nanosleep, not usleep.
36209         * modules/chown-tests (test_chown_LDADD):
36210         * modules/lchown-tests (test_lchown_LDADD):
36211         * modules/stat-time-tests (test_stat_time_LDADD):
36212         New macro.
36213         * modules/fchownat-tests (test_fchownat_LDADD):
36214         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
36215         * modules/futimens-tests (test_futimens_LDADD):
36216         * modules/utimens-tests (test_utimens_LDADD):
36217         * modules/utimensat-tests (test_utimensat_LDADD):
36218         Add $(LIB_NANOSLEEP).
36219         * modules/stat-time-tests (Files): Add tests/nap.h.
36220         * tests/nap.h: Include <limits.h>, for INT_MAX.
36221         (lt_mtime): Remove.
36222         (diff_timespec): New function.
36223         (get_stat): Rename from get_mtime.  All callers changed.
36224         (nap_works): Determine the needed delay by inspecting the
36225         file system's timestamp jumps; this should be more reliable.
36226         Look at both mtime and ctime, and take the maximum of the two jumps.
36227         (nap_works, guess_delay):
36228         Return a nanosecond count, not a microsecond count.
36229         All callers changed.
36230         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
36231         failure.
36232         (nap): Multiply the guess by 1.125, to accommodate the case where
36233         the file system's clock is a bit slower than nanosleep's clock.
36234         * tests/test-stat-time.c (BASE): New macro.
36235         Include nap.h.
36236         (nap): Remove; nap.h now defines this.  This removes a duplicate
36237         implementation of 'nap'.
36239         utimens, utimensat: work around Solaris UTIME_OMIT bug
36240         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
36241         Linux kernel 2.6.32 does.  Work around it in the same way.
36242         * doc/posix-functions/futimens.texi (futimens):
36243         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
36244         * lib/utimens.c (fdutimens, lutimens):
36245         * lib/utimensat.c (rpl_utimensat): Work around the bug.
36247         gettext: now it's your responsibility to add -I$(top_builddir)/intl
36248         Formerly, it was your responsibility to do this for all Makefile.ams
36249         other than Gnulib's.  Now it's your responsibility to do it for
36250         Gnulib's Makefile.am, too.
36251         * NEWS: Document this.
36252         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
36254         acl: include errno.h to get errno
36255         Reported by Daiki Ueno in
36256         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
36257         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
36259 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
36261         tests: don't assume getdtablesize () <= 10000000
36262         * modules/cloexec-tests:
36263         * modules/dup2-tests:
36264         * modules/dup3-tests:
36265         * modules/nonblocking-tests:
36266         * modules/posix_spawn_file_actions_addclose-tests:
36267         * modules/posix_spawn_file_actions_adddup2-tests:
36268         * modules/posix_spawn_file_actions_addopen-tests:
36269         * modules/unistd-safer-tests:
36270         Depend on the getdtablesize module.
36271         * tests/test-cloexec.c:
36272         * tests/test-dup-safer.c:
36273         * tests/test-dup2.c:
36274         * tests/test-dup3.c:
36275         * tests/test-fcntl.c:
36276         * tests/test-nonblocking.c:
36277         * tests/test-posix_spawn_file_actions_addclose.c:
36278         * tests/test-posix_spawn_file_actions_adddup2.c:
36279         * tests/test-posix_spawn_file_actions_addopen.c:
36280         Don't assume getdtablesize () <= 10000000.
36282 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
36284         extern-inline: work around bug in Sun c99
36285         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
36286         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
36288 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
36290         qacl: new module, broken out from the acl module
36291         This is for GNU Emacs, which wants the acl functions but does
36292         not want 'error' invoked when they fail.
36293         * lib/acl-internal.h: Do not include error.h, quote.h.
36294         (ENOSYS, ENOTSUP): Remove; no longer needed.
36295         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
36296         * lib/acl.h: Include <stdbool.h>.
36297         (acl_errno_valid): New function.
36298         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
36299         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
36300         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
36301         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
36302         (ACL_INTERNAL_INLINE): Remove; no longer needed.
36303         * lib/file-has-acl.c (file_has_acl):
36304         * lib/qcopy-acl.c (qcopy_acl):
36305         * lib/qset-acl.c (qset_acl):
36306         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
36307         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
36308         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
36309         lib/file-has-acl.c, m4/acl.m4 to qacl module.
36310         Add lib/set-acl.c.
36311         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
36312         Add qacl.
36313         (configure.ac): Move gl_FUNC_ACL to qacl module.
36314         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
36315         Rename set-mode-acl.c to set-acl.c.
36316         * lib/acl-errno-valid.c: New file.
36317         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
36318         copy_acl function remains in copy-acl.c.
36319         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
36320         (_): Remove; not needed.
36321         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
36322         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
36323         * modules/qacl: New file, moved from the old modules/acl.
36324         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
36325         Remove set-mode-acl.c, copy-acl.c.
36326         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
36328         alignof, intprops, malloca: port better to IBM's C compiler
36329         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
36330         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
36331         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
36333 2013-04-25  Daiki Ueno  <ueno@gnu.org>
36335         wctype-h: fix gettext link error on mingw
36336         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
36337         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
36338         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
36339         rpl_towupper and rpl_towupper.
36341 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
36343         regex-tests, regex: allow glibc re_search behavior
36344         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
36345         re_search input data to make the multi-character collating element
36346         in it clearly visible, and treat re_search return code 0 as valid.
36347         * m4/regex.m4 (gl_REGEX): Likewise.
36349 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36351         stdalign: doc fix
36352         * doc/posix-headers/stdalign.texi (stdalign.h):
36353         Gnulib doesn't support '_Alignof expr'.
36355 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36357         stdalign: port to stricter ISO C11
36358         ISO C11 says that _Alignof's operand must be a parenthesized type.
36359         Problem reported by Eli Zaretskii in
36360         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
36361         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
36362         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
36364 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
36366         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
36367         Problem reported by Marco Atzeri in
36368         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
36369         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
36370         Simply delegate to the system <sys/select.h> in this case too.
36371         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
36372         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
36373         be needed on Solaris either.
36374         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
36375         Simply delegate to the system <sys/time.h> in this case.
36377 2013-03-19  Karl Berry  <karl@gnu.org>
36379         * build-aux/gnupload: check for erroneous (with gnupload) use of
36380         ftp-upload.gnu.org, tweak help.
36382 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36384         copy-file, rpmatch: fix problems found by cppcheck
36385         Reported by Arno Onken in
36386         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
36387         * lib/rpmatch.c (try): Fix memory leak.
36388         * lib/copy-file.c: Include "ignore-value.h".
36389         (qcopy_file_preserving): Ignore chown value.
36390         * modules/copy-file (Depends-on): Add ignore-value.
36392 2013-01-27  Jim Meyering  <jim@meyering.net>
36394         prefix-gnulib-mk: give better diagnostics
36395         * build-aux/prefix-gnulib-mk: Don't just "die".
36396         Give better diagnostics upon failure.
36398 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
36400         putenv: port to Solaris 10
36401         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
36402         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
36403         is not what is wanted here.
36404         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
36405         declaration, not for its existence.
36407 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
36409         mktime: fix configure typo
36410         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
36412 2013-03-12  Eric Blake  <eblake@redhat.com>
36414         regex-tests: skip UTF-8 test on mingw
36415         * modules/regex-tests (Depends-on): Add localcharset.
36416         * tests/test-regex.c (main): Use it to skip test on mingw.
36418 2013-03-11  Eric Blake  <eblake@redhat.com>
36420         tests: make it easier to bypass alarm time in debugger
36421         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
36422         * tests/test-memmem.c (main): Likewise.
36423         * tests/test-passfd.c (main): Likewise.
36424         * tests/test-ptsname.c (main): Likewise.
36425         * tests/test-ptsname_r.c (main): Likewise.
36426         * tests/test-strcasestr.c (main): Likewise.
36427         * tests/test-strstr.c (main): Likewise.
36429         regex: port to mingw's recent addition of undeclared alarm
36430         * doc/posix-functions/alarm.texi (alarm): Document that alarm
36431         exists but still doesn't work in newer mingw.
36432         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
36433         not existence.  Ensure SIGALRM is not trapped.
36434         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
36435         * m4/regex.m4 (gl_REGEX): Likewise.
36436         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
36437         * tests/test-regex.c (main): Use correct probe for alarm.
36439         putenv: avoid compilation warning on mingw
36440         * lib/putenv.c (_unsetenv): Protect variable declaration.
36441         (putenv): Fix indentation.
36443 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
36445         unistd: don't prevent Tru64 Unix from using gnulib strtod.
36446         * lib/unistd.in.h: be careful not to include un-needed system
36447         stdlib.h from here, because that prevents gnulib stdlib.h from
36448         defining rpl_strtod correctly.
36450 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
36452         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
36453         changesets, but for the 'precision 0' test.
36454         * tests/test-vasprintf-posix.c (test_function): Don't insist on
36455         round-to-even, since POSIX says rounding is implementation-defined
36456         and OS X 10.8.2 rounds 1.51 to 1 here.
36458         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
36459         changeset.
36460         * tests/test-vasprintf-posix.c (test_function): Don't insist on
36461         round-to-even, since POSIX says rounding is implementation-defined
36462         and OS X 10.8.2 rounds 1.5 to 1 here.
36464 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36466         vasnprintf-posix-tests: allow rounding 1.5 to 1
36467         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
36468         round-to-even, since POSIX says rounding is implementation-defined
36469         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
36470         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
36472         bootstrap: port to FreeBSD
36473         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
36474         that treat '--' differently.  Reported by Mats Erik Andersson in
36475         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
36477 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
36479         regex: rename remaining __attribute calls to __attribute__.
36480         2012-02-25 changed definition of __attribute, but left some uses
36481         unchanged, preventing compilation of regex module on most non-gcc
36482         environments.
36483         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
36484         (lookup_collation_sequence_value, build_range_exp)
36485         (build_collating_symbol): Set attributes with newly renamed
36486         __attribute__ decorator.
36487         * lib/regex_internal.c (re_string_peek_byte_case)
36488         (re_node_set_compare, re_node_set_contains): Likewise.
36489         * lib/regexec.c (acquire_init_state_context): Likewise.
36491 2013-03-06  Bruno Haible  <bruno@clisp.org>
36493         execute: Revert last change, but use a different condition.
36494         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
36495         on Windows.
36497 2013-03-05  Eric Blake  <eblake@redhat.com>
36499         execute: drop dead code
36500         * lib/execute.c (nonintr_close, nonintr_open): Delete.
36502 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
36504         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
36505         * m4/non-recursive-gnulib-prefix-hack.m4
36506         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
36507         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
36508         <http://bugs.gnu.org/10305#237>.
36510 2013-03-04  Eric Blake  <eblake@redhat.com>
36512         test-getsockopt: avoid compiler warning
36513         * tests/test-getsockopt.c (includes): Ensure close is declared.
36515 2013-03-02  Bruno Haible  <bruno@clisp.org>
36517         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
36518         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
36520 2013-03-02  Bruno Haible  <bruno@clisp.org>
36522         gettext: Update to version 0.18.2.
36523         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
36524         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
36525                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
36527 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36529         regex: merge patches from libc
36531         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
36532         * lib/regex_internal.h (__attribute__): Rename from __attribute.
36533         All uses changed.
36534         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
36535         (re_string_wchar_at, re_string_elem_size_at):
36536         Mark function as possibly unused.
36538         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
36539         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
36540         elements compare against the byte sequence of it, not its name.
36542 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36544         putenv: port better to native Windows
36545         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36546         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
36547         (_unsetenv): Use _putenv if available.
36548         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
36549         a bit less likely to cause damage.
36550         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36551         Fix the wrong value with SetEnvironmentVariable.
36552         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
36553         code better.
36555 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36557         regex: ignore old-style-definition warnings
36558         * lib/regex.c: Add pragma to ignore these warnings.
36559         Problem reported for GNU tar by Pavel Raiskup.
36561 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
36563         getcwd: support coreutils better
36564         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
36565         but this might not be correct in coreutils, which disables
36566         the raw decl checks.  Problem reported by Nagendra in
36567         <http://bugs.gnu.org/10305#192>.
36568         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
36569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
36570         Test the getcwd function, not any macro, since getcwd.c wants the
36571         function.
36572         * m4/getcwd.m4 (gl_FUNC_GETCWD):
36573         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
36574         compile, as might happen if there's a macro but no function.
36576         strtod: support coreutils better
36577         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
36578         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
36579         disables the raw decl checks.  This assumes there is an underlying
36580         strtod, but that's a safe assumption these days.
36581         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
36583         mountlist: port to HP NonStop
36584         Reported by Joachim Schmitz in
36585         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
36586         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
36587         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
36589 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
36591         extern-inline: avoid compilation error with HP-UX cc
36592         Reported by Richard Lloyd in
36593         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
36594         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
36595         Suppress extern inline with HP-UX cc.  This should be safe,
36596         though it may hurt performance.  Perhaps someone with some HP-UX
36597         experience can come up with a higher-performance fix.
36599 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36601         putenv: fix heap corruption with mixed putenv/_putenv
36602         Problem reported by Michael Goffioul in
36603         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
36604         * lib/putenv.c (putenv) [HAVE__PUTENV]:
36605         Rely on _putenv to allocate the new environment.
36606         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
36607         * modules/putenv (configure.ac): Use it.
36609 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
36611         unsetenv etc.: port to Solaris 11 + GNU Emacs
36612         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
36613         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
36614         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
36615         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
36616         idea but is too painful to fix right now), and without this gnulib
36617         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
36618         compiling unsetenv.c on Solaris 11.  Fix the problem for
36619         unsetenv.c, and fix other similar occurrences.
36621 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
36623         secure_getenv: fix C++ declaration typo
36624         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
36625         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
36626         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
36628 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
36630         careadlinkat: stop exporting careadlinkatcwd
36631         Only Emacs used it directly, and Emacs no longer needs it.
36632         * NEWS: Document this simplification.
36633         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
36634         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
36635         for readlink.
36636         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
36637         Don't include stdlib.h; no longer needed.
36638         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
36639         * lib/relocwrapper.c: Adjust comment to match new dependencies.
36640         * modules/areadlink (Depends-on): Add readlink.
36641         (Maintainer): Add self.
36642         * modules/careadlinkat (Depends-on): Remove readlink.
36644         extensions: port better to HP-UX
36645         This is merged from git Autoconf.
36646         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36647         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
36648         so that it's compatible with the value used when compiling.
36650         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
36651         Problem reported by Mats Erik Andersson in
36652         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
36653         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36654         openpty function exists, not merely when we intend to replace it.
36655         This corrects the 2013-01-31 patch, which mistakenly defined
36656         HAVE_OPENPTY even on hosts that lacked it.
36658 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36660         secure_getenv: fix include typo
36661         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
36663         secure_getenv: port better to FreeBSD and Solaris
36664         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
36665         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
36666         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
36667         This works better on BSDish platforms.
36668         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
36669         Test for issetugid if __secure_getenv is missing.
36671 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
36673         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
36674         Some of these changes are merged in from git Autoconf.
36675         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36676         When deciding whether to define _XOPEN_SOURCE, inspect the
36677         preprocessor macro __hpux instead of the more-heavyweight
36678         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
36679         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
36680         as the key for __EXTENSIONS__.
36682         unistd: avoid namespace pollution on non-glibc systems
36683         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
36684         This avoids namespace pollution on non-glibc systems, by causing
36685         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
36686         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
36687         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
36689 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36691         tmpdir: use secure_getenv
36692         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
36693         Define to secure_getenv, not getenv.
36694         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
36695         as that's now secure_getenv's job.
36696         * modules/tmpdir (Depends-on): Add secure_getenv.
36698         tempname: use secure_getenv
36699         * lib/tempname.c (__secure_getenv) [!_LIBC]:
36700         Define to secure_getenv, not getenv.
36701         * modules/tempname (Depends-on):
36702         Add secure_getenv.
36704         secure_getenv: new module
36705         * MODULES.html.sh (Extra functions based on ANSI C 89):
36706         Add secure_getenv.
36707         * doc/glibc-functions/secure_getenv.texi: New file.
36708         * doc/gnulib.texi: Include it.
36709         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
36710         New files.
36711         * lib/stdlib.in.h (secure_getenv): New decl.
36712         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
36713         * modules/stdlib (stdlib.h):
36714         Add secure_getenv checks.
36716 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36718         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
36719         Reported for OS X 10.8.2 by Assaf Gordon in
36720         <http://bugs.gnu.org/13516>.
36721         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
36722         !HAVE_OPENAT && !HAVE_FDOPENDIR.
36723         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
36724         so that they can be kept in sync more easily.  Avoid PATH_MAX
36725         test on the Hurd.  Sync from test-getcwd.c for errno tests after
36726         mkdir or chdir failure.
36727         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
36728         lib/getcwd.c.
36729         (test_abort_bug): Do not test for the deep directory bug unless we
36730         have openat support.  Avoid PATH_MAX test on the Hurd.
36732         regex-tests, regex: fix bug: memset undeclared
36733         * tests/test-regex.c: Don't include regex.h twice.  Include
36734         string.h, to declare memset.  Christensen's report also mentioned
36735         this issue.
36736         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
36737         test-regex.c, to avoid future problems like this.  Remove
36738         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
36739         twice.
36741         regex-tests: fix link errors on older Solaris
36742         These need to link with @LIBINTL@ to get libintl_gettext.
36743         Problem reported by Tom G. Christensen in
36744         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
36745         * modules/regex-tests (test_regex_LDADD): New macro.
36747 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36749         regex-tests: new module
36750         * modules/regex-tests, tests/test-regex.c: New files.
36752         regex: fix off-by-one error in configure test
36753         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
36755 2013-01-31  Eric Blake  <eblake@redhat.com>
36757         regex: avoid infinite configure test
36758         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
36760 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
36762         openpty: fix bug where HAVE_OPENPTY wasn't defined
36763         See the thread starting at:
36764         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
36765         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36766         openpty function exists, not merely when we intend to replace it.
36768 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
36770         sys_time: port to Solaris 2.6
36771         There is a circularity problem on Solaris 2.6, where <time.h> includes
36772         <sys/time.h> for struct timespec.  The include nesting is gnulib
36773         <time.h>, system <time.h>, gnulib <sys/time.h>, system
36774         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
36775         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
36776         <sys/siginfo.h>; the last, innermost file needs struct
36777         timestruc_t, which is defined in <sys/time.h>, which has not been
36778         fully parsed.  Problem reported by Tom G. Christensen in
36779         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
36780         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
36781         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
36782         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
36783         uses split double-inclusion guards.
36785 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36787         regex: test for buffer overrun
36788         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
36789         for the just-fixed regex bug.
36791 2013-01-29  Andreas Schwab  <schwab@suse.de>
36793         regex: fix buffer overrun in regexp matcher [BZ #15078]
36794         * lib/regexec.c (extend_buffers): Add parameter min_len.
36795         (check_matching): Pass minimum needed length.
36796         (clean_state_log_if_needed): Likewise.
36797         (get_subexp): Likewise.
36799 2013-01-28  Pádraig Brady  <P@draigBrady.com>
36801         mountlist: don't consider "devtmpfs" as dummy
36802         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
36803         as there is storage associcated with it.
36805 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36807         futimens-tests, utimens-tests: Depend on gettext.
36808         This works around a problem introduced in my 2013-01-12 patch,
36809         which added @LIBINTL@ to these modules.
36810         * modules/futimens-tests (Depends-on):
36811         * modules/utimens-tests (Depends-on): Add gettext.
36813 2013-01-26  Eric Blake  <eblake@redhat.com>
36815         test-getpeername: fix typo
36816         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
36818 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
36820         bootstrap: remove the need for a sorted .gitignore file
36821         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
36822         rename to insert_if_absent(), so that we don't need or generate
36823         a sorted .gitignore file.  We do require a .gitignore with no
36824         existing duplicate entries and enforce that.
36825         (sort_patterns): Remove this function as we now use the simpler
36826         technigue of inserting blacklist entries at the top of the file,
36827         assuming gnulib won't be inserting !whitelist entries.
36829 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36831         readlinkat: don't depend on gl_FUNC_OPENAT
36832         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
36833         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
36834         renameat.m4, symlinkat.m4; but one thing at a time.
36836         statat: new module, split out from fstatat
36837         GNU Emacs needs the POSIX-specified fstatat, but not the
36838         gnulib-specified statat and lstat.  Split the latter two into a
36839         new module 'statat'.
36840         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
36841         * lib/openat.h, lib/statat.c (STATAT_INLINE):
36842         Rename from FSTATAT_INLINE. All uses changed.
36843         * modules/fstatat (Files): Remove lib/statat.c.
36844         (gl_MODULE_INDICATOR([fstatat])): Remove.
36845         (lib_SOURCES): Remove.
36846         (Maintainer): Add self.
36847         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
36848         * tests/test-fstatat.c (BASE): Don't define if already defined.
36849         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
36851 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36853         tests: don't assume fd 99 is closed
36854         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
36855         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
36856         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
36857         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
36858         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
36859         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
36860         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
36861         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
36862         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
36863         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
36864         * tests/test-fwrite.c, tests/test-getpeername.c:
36865         * tests/test-getsockname.c, tests/test-getsockopt.c:
36866         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
36867         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
36868         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
36869         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
36870         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
36871         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
36872         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
36873         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
36874         * tests/test-unlinkat.c, tests/test-unlockpt.c:
36875         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
36876         Close file descriptor 99, instead of assuming it's already closed.
36878 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36880         stpncpy: port to OS X 10.8
36881         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
36882         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
36884 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36886         unistd: port to recent mingw
36887         * lib/unistd.in.h: Remove special invocation convention for mingw,
36888         which breaks for the latest mingw version.  See John W. Eaton in
36889         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
36891         largefile: port better to Mac OS X 10.5
36892         This patch is backported from Autoconf git.
36893         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
36894         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
36895         with ino_t size being different for configuration time versus
36896         build/run time.  Problem reported by PHO in
36897         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
36899 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36901         doc: clarify -Werror
36902         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
36903         clarify that it's intended for developers, not for ordinary builds,
36904         and mention --enable-gcc-warnings as one possible use.
36906 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
36908         stdint: fix build with Android's Bionic fox x86
36909         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
36910         was already included as _SSIZE_T_DEFINED_ might also be defined
36911         in include/machine/_types.h, which is included by stdio.h
36913 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
36915         net_if-tests: port to Solaris 7 + GCC 3.4.6
36916         Problem reported by Tom G. Christensen in
36917         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
36918         * tests/test-net_if.c (ni): Move to next the code that uses it,
36919         so that it's declared only if needed.
36921 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36923         net_if-tests: port to older Solaris
36924         Problem reported by Tom G. Christensen in
36925         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36926         * modules/net_if-tests (NET_IF_LIB): New substitution.
36927         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
36928         (HAVE_IF_NAMEINDEX): New C macro.
36929         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
36931         system-quote-tests: port to older Solaris
36932         Problem reported by Tom G. Christensen in
36933         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36934         * tests/test-system-quote-child.c (fopen, fread): Undef.
36936         c-xvasprintf etc.: fix link errors on older Solaris
36937         These need to link with @LIBINTL@ to get libintl_gettext.
36938         Problem reported by Tom G. Christensen in
36939         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36940         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
36941         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
36942         * modules/futimens-tests (test_futimens_LDADD):
36943         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
36945 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36947         locale: port to Solaris 2.6 and 7 + GNU gettext
36948         * lib/locale.in.h: Just include_next <locale.h> when
36949         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
36950         when combining the localename module with GNU gettext 0.18.2.
36951         Problem reported by Tom G. Christensen in
36952         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
36954 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36956         stdlib: port to Solaris 2.6
36957         Also, the code worked on Solaris 7 through 9 only by accident.
36958         Problem reported by Tom G. Christensen in
36959         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
36960         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
36961         simply include the system stdlib.h.
36962         * lib/getopt.in.h (__need_system_stdlib_h):
36963         * lib/pthread.in.h (__need_system_stdlib_h):
36964         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
36965         Define when including <stdlib.h>, to avoid problems at least for
36966         the pthread case on Solaris 2.6 and 7.  These .h files can get by
36967         with the system stdlib.h.
36969 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
36971         doc: update main copyright year
36972         * doc/gnulib.texi: Update copyright date.
36974         doc: improve ISO 8601 discussion
36975         * doc/parse-datetime.texi (Combined date and time of day items):
36976         Specify more carefully what formats are supported and what is
36977         done with excess precision.
36979 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36981         doc: avoid small caps
36982         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
36983         they're more trouble than they're worth.  Suggested by Karl Berry
36984         in <http://bugs.gnu.org/13360>.
36986         regex: conform to strict C
36987         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
36988         From Aharon Robbins.
36990         gnulib-tool: fix incompatibility with autopoint 0.18.2
36991         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
36992         Problem reported by Tom G. Christensen in
36993         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
36995 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36997         fprintftime: bring back and reword fwrite comment
36998         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
37000         stdio: remove now-unnecessary stdio.c
37001         Since stdio.in.h no longer uses inline functions, we no longer
37002         need to compile the extern versions.
37003         * lib/stdio.c: Remove.
37004         * modules/stdio (Files): Remove lib/stdio.c.
37005         (lib_SOURCES): Remove.
37007         unicodeio: depend on stdio, not ignore-value
37008         * lib/unicodeio.c: Do not include ignore-value.h.
37009         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
37010         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
37012         fprintftime: depend on stdio, not ignore-value
37013         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
37014         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
37015         since the stdio module arranges to silence that warning now.
37016         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
37018 2012-10-04  Simon Josefsson  <simon@josefsson.org>
37020         stdint-tests: Fix expanded-before-required-warning.
37021         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
37023 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
37025         fwrite: silence __wur only for older glibc versions
37026         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
37027         This will help us remove this workaround some time in the far future.
37029 2013-01-03  Eric Blake  <eblake@redhat.com>
37031         fwrite: silence __wur without using inline
37032         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
37033         just gcc, and in a way that avoids inline issues.
37034         * modules/stdio (Depends-on): Drop extern-inline.
37036 2013-01-03  Jim Meyering  <jim@meyering.net>
37038         update-copyright: avoid copyright notice date corruption
37039         Given a sequence of copyright year numbers in which the final
37040         one was a two-digit number that happened to be a substring of
37041         a preceding four-digit year number, we would mistakenly update
37042         the substring (from two- to four-digit) rather than the two-digit
37043         number at the end, which, combined with the addition of the current
37044         4-digit year number would yield two 5-digit year numbers, e.g.,
37045         here, it would convert the first "99" to "1999, 2013" rather than
37046         the final one:
37047           1991, 99
37048           11999, 20131, 1999
37049         * build-aux/update-copyright: Tighten a regexp.
37050         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
37051         Reported by Joseph Myers in
37052         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
37054 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
37056         regex: omit needless signed-pointer casts
37057         * lib/regcomp.c (build_charclass, build_charclass_op):
37058         Use char *, not unsigned char *, for class name and extra.
37059         The char values are always nonnegative so there's no need to
37060         insist on unsigned char * here, and using char * removes the need
37061         for casts.  Reported by Aharon Robbins in
37062         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37064         regex: support Gawk, which never uses alloca
37065         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
37066         Do not include in this case.  Gawk doesn't supply a substitute
37067         alloca.h and doesn't need one.
37069         regex: port __libc_lock_define usage to C89
37070         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
37071         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
37072         does not conform to C89, as it has an empty macro argument.
37073         Reported by Aharon Robbins in
37074         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37076 2013-01-01  Eric Blake  <eblake@redhat.com>
37078         maint: update all copyright year number ranges
37079         Run "make update-copyright".
37081         version-etc: bump copyright year reported in --version
37082         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
37084 2012-12-31  Eric Blake  <eblake@redhat.com>
37086         sigprocmask-tests: skip test if pid is unexpectedly large
37087         * tests/test-sigprocmask.c (main): Add range check.
37089         git-version-gen: avoid test -z portability glitch
37090         * build-aux/git-version-gen: Prefer portable test spelling, since
37091         git-version-gen is run on more than just developer machines.
37093 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
37095         git-version-gen: add --fallback option to use if git is not present
37096         * build-aux/git-version-gen: Add support for the new option --fallback,
37097         which comes into play when there is no $tarball_version_file and
37098         git is not working.
37099         (scriptversion): Update.
37101         maint.mk: handle missing git with more grace
37102         * top/maint.mk (no-submodule-changes, public-submodule-commit):
37103         Quietly proceed if git is not present.
37105 2012-12-31  Eric Blake  <eblake@redhat.com>
37107         dup2: work around cygwin bug
37108         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
37109         * lib/dup2.c (rpl_dup2): Work around it.
37110         * doc/posix-functions/dup2.texi (dup2): Document it.
37112 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
37114         regex: remove unnecessary dependency on localcharset.h
37115         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
37116         hasn't been needed for years.
37117         * modules/regex (Depends-on): Remove localcharset.
37119         regex: revert single-byte change
37120         * lib/regexec.c (check_node_accept_bytes): Revert previous change
37121         to this function.  This was alredy fixed in a different way, at
37122         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
37123         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
37124         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
37126         regex: simplify based on Gawk version
37127         * lib/regex_internal.c (re_dfa_add_node): Simplify.
37128         Reported by Aharon Robbins in
37129         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37131 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37133         regex: check that pattern char is single-byte
37134         Reported by Aharon Robbins in
37135         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37136         * lib/regexec.c (check_node_accept_bytes):
37137         Return 0 if the pattern string has a multibyte character here.
37139         regex: implement rational ranges
37140         Reported by Aharon Robbins in
37141         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37142         * lib/regcomp.c (build_range_exp) [!_LIBC]:
37143         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
37144         Implement rational ranges.
37146         regex: avoid redefining __wctype
37147         Reported by Aharon Robbins in
37148         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37149         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
37150         #undef before defining.
37152         regex: port to hosts where malloc (0) == NULL
37153         Reported by Aharon Robbins in
37154         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37155         * lib/regex_internal.c (re_node_set_alloc):
37156         Don't assume that malloc (0) yields nonnull.
37157         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
37158         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
37159         * modules/regex (Files): Add m4/eealloc.m4.
37161         regex: port to C89
37162         Reported by Aharon Robbins in
37163         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37164         * lib/regcomp.c (init_word_char): Declaration before statement.
37166         regex: merge glibc changes
37167         Also, copy the license wording from glibc.  This simplifies
37168         merging changes.  gnulib-tool will change the wording to GPL as
37169         appropriate, when importing it to other packages.  The only
37170         glibc change made since the last merge, which needs merging, is:
37171         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
37172         * lib/regex_internal.h (gettext): Remove use of INTUSE.
37174         * users.txt: Add Emacs.
37176         doc: omit mention of version when not needed
37177         * doc/gnulib-intro.texi (Portability and Application Code):
37178         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
37179         Don't mention particular dates or versions when not necessary, so
37180         that the documentation won't go out of date so quickly.
37182         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
37184 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
37186         bootstrap: pass --force to autoreconf.
37187         * build-aux/bootstrap (AUTORECONFFLAGS): New.
37188         Add "--force" so that Automake's ylwrap and other such tools
37189         be updated at each bootstrap invocation.
37190         Use it.
37192 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37194         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
37195         The earlier patch forgot to update one of the #if conditions, causing
37196         a problem on Debian testing i386 reported by Mats Erik Andersson
37197         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
37198         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
37199         (__argp_fmtstream_puts, argp_fmtstream_puts)
37200         (__argp_fmtstream_write, argp_fmtstream_write)
37201         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
37203         * doc/gnulib-readme.texi: Minor fixups.
37204         (Portability guidelines): Modernize URLs.  Remove some repetition.
37205         (Indent with spaces not TABs): Reword to avoid too-long lines.
37206         Remove some '@ifset standalone' stuff that isn't used.
37208         * doc/gnulib-readme.texi (Portability guidelines):
37209         ctype.h, not ctime.h.
37211         Correct name of POSIX.1-2001.
37212         * doc/posix-functions/fgetc.texi (fgetc):
37213         * doc/posix-functions/fgets.texi (fgets):
37214         * doc/posix-functions/fread.texi (fread):
37215         * doc/posix-functions/fscanf.texi (fscanf):
37216         * doc/posix-functions/getc.texi (getc):
37217         * doc/posix-functions/getchar.texi (getchar):
37218         * doc/posix-functions/scanf.texi (scanf):
37219         POSIX.1-2001, not POSIX-2001.
37221         doc: move README into manual
37222         * README: Move contents to new file doc/gnulib-readme.texi.
37223         Replace with a one-line summary.
37224         * doc/gnulib.texi (Brief Overview): New section,
37225         with old intro preface.  Include gnulib-readme.texi for contents.
37226         (Philosophy): Rename from "Introduction", since this
37227         section no longer introduces the rest.  Write a new preface.
37228         * doc/gnulib-readme.texi: New file, with the old contents of
37229         README texinfo-ized.  This way, the README info appears
37230         in the online and printed manual.
37232 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
37234         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
37235         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
37236         c_vasprintf() prototype.
37238 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
37240         c-vasprintf: Fix "empty declaration" warning reported by GCC.
37241         * lib/c-vasprintf.h: Remove stray semicolon.
37243 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37245         gettext: avoid obsolete macro AM_PROG_MKDIR_P
37246         It is obsolete and is planned to be removed from Automake 1.14; see
37247         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
37248         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
37249         (installdirs-data, installdirs-data-yes):
37250         Use $(MKDIR_P), not $(mkdir_p).
37251         * m4/intl.m4 (AM_INTL_SUBDIR):
37252         * m4/po.m4 (AM_PO_SUBDIRS):
37253         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
37255 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
37257         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
37258         On this platform, we are not optimizing but we are using
37259         the substitute for extern inlines, so compile as if
37260         C99-style extern inline, or a substitute, is available.
37261         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
37262         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
37263         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
37264         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
37265         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
37266         Declare as ARGP_FS_EI, not as extern.
37267         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
37268         (__option_is_short, _option_is_end, __option_is_end)
37269         [!_LIBC && __USE_EXTERN_INLINES]:
37270         Declare as ARGP_EI, not as extern.
37272 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37274         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
37275         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
37276         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
37277         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
37278         ...), as the latter is fatal with older Autoconfs.
37279         Problem reported and fix suggested by Eric Blake in thread starting at
37280         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
37282 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
37284         AC_PROG_MKDIR_P: don't workaround if not buggy
37285         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
37286         Define only for Autoconf versions before 2.62.
37287         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
37288         undocumented m4_PACKAGE_VERSION, for consistency with the
37289         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
37290         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
37291         was introduced in 2.62.
37293 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
37295         New 'c-*printf' modules for formatted output in C locale.
37297         New module 'c-vasnprintf'.
37298         * modules/c-vasnprintf: New file.
37299         * lib/c-vasnprintf.c: New file.
37300         * lib/c-vasnprintf.h: New file.
37302         New module 'c-snprintf'.
37303         * modules/c-snprintf: New file.
37304         * modules/c-snprintf-tests: New file.
37305         * lib/c-snprintf.c: New file.
37306         * lib/c-snprintf.h: New file.
37307         * tests/test-c-snprintf.c: New file.
37308         * tests/test-c-snprintf.sh: New file.
37310         New module 'c-vsnprintf'.
37311         * modules/c-vsnprintf: New file.
37312         * modules/c-vsnprintf-tests: New file.
37313         * lib/c-vsnprintf.c: New file.
37314         * lib/c-vsnprintf.h: New file.
37315         * tests/test-c-vsnprintf.c: New file.
37316         * tests/test-c-vsnprintf.sh: New file.
37318         New module 'c-vasprintf'.
37319         * modules/c-vasprintf: New file.
37320         * modules/c-vasprintf-tests: New file.
37321         * lib/c-asprintf.c: New file.
37322         * lib/c-vasprintf.c: New file.
37323         * lib/c-vasprintf.h: New file.
37324         * tests/test-c-vasprintf.c  +: New file.
37325         * tests/test-c-vasprintf.sh: New file.
37327         New module 'c-xvasprintf'.
37328         * modules/c-xvasprintf: New file.
37329         * modules/c-xvasprintf-tests: New file.
37330         * lib/c-xasprintf.c: New file.
37331         * lib/c-xvasprintf.c: New file.
37332         * lib/c-xvasprintf.h: New file.
37333         * tests/test-c-xvasprintf.c: New file.
37334         * tests/test-c-xvasprintf.sh: New file.
37336 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37338         argp: better 'inline'
37339         Use extern-inline module to declare extern inline functions.
37340         This avoids some bogus warning diagnostics.  Problem discovered
37341         when modifying GNU tar to use the manywarnings module.
37342         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
37343         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
37344         Define based on extern-inline.
37345         * modules/argp (Depends-on): Add extern-inline.
37347 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
37349         filemode, sys_stat: Handle MPX files a la AIX.
37350         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
37351         * lib/sys_stat.in.h (S_ISMPX): New macro.
37352         * tests/test-sys_stat.c: Add tests for MPX files.
37354 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37356         x-to-1: honor $PERL
37357         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
37358         a chance to use his preferred version of Perl.  This is typically
37359         required by Darwin users whose default /usr/bin/perl does not have all
37360         the libraries required by help2man, and who need to use their MacPorts
37361         installation of Perl instead.
37363 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
37365         gnu-web-doc-update: add all the new files, even in new directories
37366         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
37367         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
37368         Use it.
37369         (main): Don't use cvsutils to get the list of unknown files,
37370         just add all the existing files and directories.
37372 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
37374         gnu-web-doc-update: improve --help
37375         * build-aux/gnu-web-doc-update: Move comments into --help.
37377 2012-12-07  Eric Wong  <normalperson@yhbt.net>
37379         mountlist: recognize more "dummy" file systems
37380         * lib/mountlist.c (ME_DUMMY_0):
37381         Add these dummy FS names to the list:
37382         - "debugfs" virtual filesystem for kernel debugging
37383         - "devpts" PTY slave filesystem
37384         - "devtmpfs" device filesystem on top of tmpfs/ramfs
37385         - "fusectl" control filesystem for FUSE
37386         - "mqueue" enumerates POSIX message queues
37387         - "rpc_pipefs" kernel <-> userspace bridge for NFS
37388         - "sysfs" is for exporting kernel objects
37389         - "devfs" device filesystem for Linux 2.4 and FreeBSD
37391 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
37393         extern-inline: avoid incompatibility with Darwin Libc
37394         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
37395         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
37396         Problem reported by Akim Demaille in
37397         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
37399 2012-12-11  Simon Josefsson  <simon@josefsson.org>
37401         gnupload: Work with GnuPG using gpg-agent (for smartcards).
37402         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
37403         let it handle password prompting.
37405 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
37407         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
37408         * lib/canonicalize.c (canonicalize_filename_mode):
37409         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
37410         fetching the current directory.  Don't overrun the beginning of
37411         rpath if there's no slashes after the MS-Windows drive letter.
37413 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
37415         maint.mk: avoid extra forks
37416         * top/maint.mk (_cfg_mk): The GNU make manual documents that
37417         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
37418         So use that instead of "$(shell test -f FILE && echo FILE)".
37420 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37422         vasnprintf: fix ASCII_ONLY typo
37423         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37424         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37425         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37426         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
37427         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
37429 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
37431         list, oset, xlist, xoset: fix extern inline issue with C99
37432         This was introduced by my recent changes for 'inline'.
37433         Problem reported for gettext by Daiki Ueno in
37434         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
37435         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
37436         (gl_list_nx_create, gl_list_size, gl_list_node_value)
37437         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
37438         (gl_list_previous_node, gl_list_get_at)
37439         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
37440         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
37441         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
37442         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
37443         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
37444         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
37445         (gl_list_iterator_free, gl_sortedlist_search)
37446         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
37447         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
37448         (gl_sortedlist_remove):
37449         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
37450         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
37451         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
37452         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
37453         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
37454         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
37455         (gl_list_add_at, gl_sortedlist_add):
37456         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
37457         Wrap these extern decls inside "#if 0", because they are implemented
37458         as inline functions, and extern inline is not what's wanted here.
37459         It would simplify these .h files to remove the extern decls entirely,
37460         although a downside would be less-clear separation between
37461         specification and implementation.
37463 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37465         sys_stat: no 'static inline'
37466         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
37467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
37469         extern-inline: no 'static inline'
37470         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
37471         Do not require AC_C_INLINE.
37472         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
37473         'static inline', for older compilers.
37475         snippet/warn-on-use: no 'static inline'
37476         * build-aux/snippet/warn-on-use.h:
37477         Remove unnecessary 'inline' in comment.
37479         rbtree-list, rbtreehash-list: no 'static inline'
37480         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
37481         * lib/gl_anytree_list2.h (node_at):
37482         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
37483         (gl_oset_first, add_nodes_to_buckets):
37484         Now static, not static inline.
37486         regex: no 'static inline'
37487         * lib/regex_internal.c (calc_state_hash):
37488         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
37489         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
37490         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
37491         Now static, not static inline.
37492         (inline) [__GNUC__ < 3 && _LIBC]:
37493         Remove macro; no longer needed.
37495         xvasprintf: no 'static inline'
37496         * lib/xvasprintf.c (xstrcat):
37497         Now static, not static inline.
37498         * m4/xvasprintf.m4 (gl_XVASPRINTF):
37499         Do not require AC_C_INLINE.
37501         parse-datetime, parse-duration: no 'static inline'
37502         * lib/parse-datetime.y (to_uchar):
37503         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
37504         (scale_n_add):
37505         Now static, not static inline.
37506         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
37507         * modules/parse-duration (configure.ac):
37508         Do not require AC_C_INLINE.
37510         getaddrinfo: no 'static inline'
37511         * lib/getaddrinfo.c (validate_family):
37512         Now static, not static inline.
37513         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
37514         Do not require AC_C_INLINE.
37516         ftruncate, fts, lstat, openat, raise: no 'static inline'
37517         * lib/ftruncate.c (chsize_nothrow):
37518         * lib/fts.c (opendirat, diropen):
37519         * lib/lstat.c (orig_lstat):
37520         * lib/openat.c (orig_openat):
37521         * lib/raise.c (raise_nothrow):
37522         Now static, not static inline.
37523         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
37524         * m4/fts.m4 (gl_FUNC_FTS_CORE):
37525         * m4/lstat.m4 (gl_PREREQ_LSTAT):
37526         * m4/openat.m4 (gl_PREREQ_OPENAT):
37527         * m4/raise.m4 (gl_PREREQ_RAISE):
37528         Do not require AC_C_INLINE.
37530         fflush, stat: no 'static inline'
37531         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37532         (clear_ungetc_buffer, disable_seek_optimization)
37533         (restore_seek_optimization, update_fpos_cache):
37534         * lib/stat.c (orig_stat):
37535         Now static, not static inline.
37536         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
37537         (update_fpos_cache):
37538         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
37539         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
37540         * m4/stat.m4 (gl_PREREQ_STAT):
37541         Do not require AC_C_INLINE.
37543         error, filevercmp: no 'static inline'
37544         * lib/error.c (is_open, flush_stdout):
37545         * lib/filevercmp.c (order):
37546         Now static, not static inline.
37547         * m4/error.m4 (gl_PREREQ_ERROR):
37548         * modules/filevercmp (configure.ac):
37549         Do not require AC_C_INLINE.
37551         dup, execute, fatal-signal, etc.: no 'static inline'
37552         * lib/dup.c (dup_nothrow):
37553         * lib/execute.c (nonintr_close, nonintr_open):
37554         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
37555         * lib/fopen.c (orig_fopen):
37556         * lib/freadseek.c (freadptrinc):
37557         * lib/freopen.c (orig_freopen):
37558         * lib/fstat.c (orig_fstat, fstat_nothrow):
37559         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
37560         (get_rusage_as_via_iterator):
37561         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
37562         * lib/getdtablesize.c (_setmaxstdio_nothrow):
37563         * lib/isatty.c (_isatty_nothrow):
37564         * lib/open.c (orig_open):
37565         * lib/read.c (read_nothrow):
37566         * lib/sigprocmask.c (signal_nothrow):
37567         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
37568         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
37569         * lib/wait-process.c (unregister_slave_subprocess):
37570         * lib/write.c (write_nothrow):
37571         Now static, not static inline.
37572         * lib/spawn-pipe.c (nonintr_open): Define only if
37573         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
37574         * m4/dup.m4 (gl_PREREQ_DUP):
37575         * m4/execute.m4 (gl_EXECUTE):
37576         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
37577         * m4/fopen.m4 (gl_PREREQ_FOPEN):
37578         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
37579         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
37580         * m4/fstat.m4 (gl_PREREQ_FSTAT):
37581         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
37582         * m4/isatty.m4 (gl_PREREQ_ISATTY):
37583         * m4/open.m4 (gl_PREREQ_OPEN):
37584         * m4/read.m4 (gl_PREREQ_READ):
37585         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
37586         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
37587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
37588         * m4/wait-process.m4 (gl_WAIT_PROCESS):
37589         * m4/write.m4 (gl_PREREQ_WRITE):
37590         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
37591         Do not require AC_C_INLINE.
37593         c-strtod, memcoll, readutmp: no 'static inline'
37594         * lib/c-strtod.c (c_locale):
37595         * lib/memcoll.c (strcoll_loop):
37596         * lib/readutmp.c (desirable_utmp_entry):
37597         Now static, not static inline.
37598         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
37599         * m4/memcoll.m4 (gl_MEMCOLL):
37600         * m4/readutmp.m4 (gl_READUTMP):
37601         Do not require AC_C_INLINE.
37603         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
37604         * lib/arctwo.c (to_uchar):
37605         * lib/md4.c (set_uint32):
37606         * lib/md5.c (set_uint32):
37607         * lib/sha1.c (set_uint32):
37608         * lib/sha256.c (set_uint32):
37609         * lib/sha512.c (set_uint64):
37610         Now static, not static inline.  This is a bit simpler, and doesn't
37611         affect performance with GCC and default optimization.
37612         * m4/arctwo.m4 (gl_ARCTWO):
37613         * m4/md4.m4 (gl_MD4):
37614         * m4/md5.m4 (gl_MD5):
37615         * m4/sha1.m4 (gl_SHA1):
37616         * m4/sha256.m4 (gl_SHA256):
37617         * m4/sha512.m4 (gl_SHA512):
37618         Do not require AC_C_INLINE.
37620         cond, lock, thread: better 'inline'
37621         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
37622         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
37623         New macros.  Use them instead of static inline, for header functions.
37624         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
37625         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37626         * lib/glthread/lock.c (gl_waitqueue_init)
37627         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37628         * lib/glthread/thread.c (get_current_thread_handle):
37629         Change 'static inline' to 'inline'.
37630         * lib/glthread/cond.h, lib/glthread/thread.h:
37631         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37632         * m4/cond.m4 (gl_COND):
37633         * m4/lock.m4 (gl_PREREQ_LOCK):
37634         * m4/thread.m4 (gl_THREAD):
37635         Do not require AC_C_INLINE.
37636         * modules/cond, modules/thread (Depends-on): Add extern-inline.
37638         chdir-long, cycle-check, savewd: better 'inline'
37639         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
37640         (find_non_slash):
37641         * lib/cycle-check.c (is_zero_or_power_of_two):
37642         * lib/savewd.c (savewd_delegating):
37643         Change 'static inline' to 'inline'.
37644         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
37645         Replace all remaining uses of 'static inline' with it.
37646         * lib/savewd.h:
37647         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37648         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
37649         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
37650         * m4/savewd.m4 (gl_SAVEWD):
37651         Do not require AC_C_INLINE.
37652         * modules/savewd (Depends-on): Add extern-inline.
37654         base32, base64: no need for 'inline'
37655         * lib/base32.c (to_uchar, get_8, decode_8):
37656         * lib/base64.c (to_uchar, get_4, decode_4):
37657         Change 'static inline' to 'inline'.
37658         * m4/base32.m4 (gl_PREREQ_BASE32):
37659         * m4/base64.m4 (gl_PREREQ_BASE64):
37660         Do not require AC_C_INLINE.
37662         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
37663         * lib/gl_array_oset.c (gl_array_nx_add_at):
37664         (gl_array_remove_at):
37665         * lib/gl_linkedhash_list.c (hash_resize_after_add)
37666         (add_to_bucket, remove_from_bucket):
37667         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
37668         Change 'static inline' to 'static', as it's simpler to omit
37669         'inline' unless there's a significant performance advantage.
37671         list, oset, xlist, xoset, xsublist: simplify via extern inline
37672         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
37673         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
37674         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
37675         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
37676         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
37677         New macro.  Replace all uses of 'static inline' with it.
37678         [HAVE_INLINE]: Implement functions as *_INLINE functions,
37679         instead of as macros FOO that are defined to static inline
37680         functions FOO_inline.
37681         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
37682         * lib/gl_xsublist.c:
37683         Reimplement from scratch, by defining the corresponding *_INLINE
37684         macro and including the corresponding .h file.  This is simpler.
37685         * modules/list, modules/oset, modules/xlist, modules/xoset:
37686         (Files): Remove m4/gl_list.m4.
37687         (configure.ac): Remove gl_LIST.
37688         * m4/gl_list.m4: Remove.
37689         * modules/list, modules/oset, modules/xlist, modules/xoset:
37690         * modules/xsublist:
37691         (Depends-on): Depend on extern-inline, not inline.
37693         xalloc: better 'inline'
37694         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
37695         New macro.  Replace all uses of 'static inline' with it.
37696         (static_inline): Remove.
37697         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37698         Let 'extern inline' do the work automatically, instead of doing
37699         it by hand.
37700         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
37701         Remove.  All uses removed.
37702         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
37704         gethrxtime: better 'inline'
37705         * lib/xtime.c: New file.
37706         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
37707         * lib/xtime.h (XTIME_INCLUDE):
37708         New macros.  Replace all uses of 'static inline' with them.
37709         * lib/gethrxtime.c (gethrxtime): Define only if
37710         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
37711         this source file is now always compiled, because of the extern inline.
37712         * lib/gethrxtime.h, lib/xtime.h:
37713         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37714         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
37715         if gethrtime works, as they're not needed in that case.
37716         (gl_XTIME): Do not require AC_C_INLINE.
37717         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
37718         compiled now.  Move the check into gl_GETHRXTIME.
37719         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
37720         (Depends-on): Add extern-inline.
37721         (configure.ac): gethrxtime is always compiled now.
37722         (lib_SOURCES): Add gethrxtime.c.
37724         wctype-h: better 'inline'
37725         * lib/wctype-h.c: New file.
37726         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
37727         New macro.  Replace all uses of 'static inline' with it.
37728         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37729         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
37730         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
37731         (Depends-on): Add extern-inline.
37733         unistd: better 'inline'
37734         * lib/unistd.c: New file.
37735         * lib/unistd.in.h (_GL_UNISTD_INLINE):
37736         New macro.  Replace all uses of 'static inline' with it.
37737         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37738         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
37739         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
37740         (Depends-on): Add extern-inline.
37742         sys_socket: better 'inline'
37743         * lib/sys_socket.c: New file.
37744         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
37745         New macro.  Replace all uses of 'static inline' with it.
37746         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
37748         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
37749         (Depends-on): Add extern-inline.
37751         stdio: better 'inline'
37752         * lib/stdio.c: New file.
37753         * lib/stdio.in.h (_GL_STDIO_INLINE):
37754         New macro.  Replace all uses of 'static inline' with it.
37755         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37756         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
37757         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
37758         (Depends-on): Add extern-inline.
37760         sigaction: better 'inline'
37761         * lib/sig-handler.c: New file.
37762         * lib/sig-handler.h (SIG_HANDLER_INLINE):
37763         New macro.  Replace all uses of 'static inline' with it.
37764         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37765         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
37766         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
37767         (Depends-on): Add extern-inline.
37769         selinux-h: better 'inline'
37770         * lib/se-context.c, lib/se-selinux.c: New files.
37771         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
37772         * lib/se-context.in.h (SE_CONTEXT_INLINE):
37773         New macro.  Replace all uses of 'static inline' with it.
37774         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37775         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
37776         New macro.  Replace all uses of 'static inline' with it.
37777         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37778         * modules/selinux-h (Files, lib_SOURCES):
37779         Add lib/se-context.c, lib/se-selinux.c.
37780         (Depends-on): Add extern-inline.
37781         (configure.ac): Do not require AC_C_INLINE.
37783         pthread: better 'inline'
37784         * lib/pthread.c: New file.
37785         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
37786         New macro.  Replace all uses of 'static inline' with it.
37787         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37788         * m4/pthread.m4 (gl_PTHREAD_CHECK):
37789         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
37790         * modules/pthread (Files): Add lib/pthread.c.
37791         (Depends-on): Add extern-inline.
37793         math: better 'inline'
37794         * lib/math.c: New file.
37795         * lib/math.in.h (_GL_MATH_INLINE):
37796         New macro.  Replace all uses of 'static inline' with it.
37797         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37798         * m4/math_h.m4 (gl_MATH_H):
37799         Do not require AC_C_INLINE.
37800         * modules/math (Files, lib_SOURCES):
37801         Add lib/math.c.
37802         (Depends-on): Add extern-inline.
37804         count-one-bits: better 'inline'
37805         * lib/count-one-bits.c: New file.
37806         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
37807         New macro.  Replace all uses of 'static inline' with it.
37808         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37809         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
37810         Do not require AC_C_INLINE.
37811         * modules/count-one-bits (Files, lib_SOURCES):
37812         Add lib/count-one-bits.c.
37813         (Depends-on): Add extern-inline.
37815         count-leading-zeros: better 'inline'
37816         * lib/count-leading-zeros.c: New file.
37817         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
37818         New macro.  Replace all uses of 'static inline' with it.
37819         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37820         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
37821         Do not require AC_C_INLINE.
37822         * modules/count-leading-zeros (Files, lib_SOURCES):
37823         Add lib/count-leading-zeros.c.
37824         (Depends-on): Add extern-inline.
37826         bitrotate: better 'inline'
37827         * lib/bitrotate.c: New file.
37828         * lib/bitrotate.h (BITROTATE_INLINE):
37829         New macros.
37830         Replace all uses of 'static inline' with them.
37831         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37832         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
37833         (Depends-on): Add extern-inline.
37834         (configure.ac): Do not require AC_C_INLINE.
37836 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
37838         maint.mk: avoid gratuitous failure
37839         Reported by Stefano Lattarini in
37840         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
37841         * top/maint.mk (public-submodule-commit): Quote more safely.
37843 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
37845         canonicalize, canonicalize-lgpl: support MS-Windows file names
37846         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
37847         for test cases, which it'd be nice to add at some point.
37848         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
37849         * lib/canonicalize.c (canonicalize_filename_mode):
37850         * lib/canonicalize-lgpl.c (__realpath):
37851         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
37852         slash is at the beginning of the file name.  Use ISSLASH, instead
37853         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
37854         the first character with '/'.  Test for
37855         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
37856         with a drive letter.
37857         * lib/canonicalize.c (SLASHES): New macro.
37858         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
37860 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
37862         fts: introduce FTS_VERBATIM
37863         * lib/fts_.h (FTS_VERBATIM): New bit flag.
37864         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
37865         * lib/fts.c (fts_open): Honor it.
37867 2012-11-09  Pádraig Brady  <P@draigBrady.com>
37869         getlogin-tests: allow errno == ENXIO
37870         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37871         with errno == ENXIO (No controlling tty).
37872         getlogin_r-tests: Likewise. Also allow errno == ENOENT
37873         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
37874         with errno == ENOENT.  This was reported to happen in various
37875         situations on GNU/Linux.
37877 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37879         getlogin-tests: allow errno == ENOENT
37880         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37881         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
37882         when running a test in an Emacs shell buffer.
37884 2012-11-08  Jim Meyering  <jim@meyering.net>
37886         tests/nap.h: avoid warning about unused variable
37887         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
37889         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
37890         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
37891         white space before each of the special-cased file names, to avoid
37892         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
37893         in http://bugs.gnu.org/12830.
37895 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37897         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
37898         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
37899         fails with errno == EBADF when fd is opened with O_PATH.
37900         Reported by Jim Meyering in
37901         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
37902         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37903         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
37905 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37907         test-utimens: speed up by taking shorter naps
37908         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
37909         New functions.
37910         (nap): Use them, to do a better job of guessing the delay.
37911         On Fedora 17 with ext4 atop md atop hard disks, this made
37912         test-utimens run 10x faster, because the test napped for
37913         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
37914         <http://bugs.gnu.org/12820#11>.
37916 2012-11-07  Jim Meyering  <jim@meyering.net>
37918         mountlist.c: fix a compilation failure
37919         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
37920         I introduced while transforming commit v0.0-7683-g613bcb6
37922 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37924         errno: port to LynxOS 178 2.2.2
37925         Problem reported by Joel Brobecker in
37926         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
37927         * doc/posix-headers/errno.texi (errno.h): Document this.
37928         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
37929         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
37930         Supply a string for EILSEQ.
37931         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
37933 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37935         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
37936         Linux kernel 2.6.39 introduced O_PATH (see
37937         <http://lwn.net/Articles/433854/>) and this is a better fallback
37938         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
37939         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37940         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
37941         * lib/fcntl.in.h (O_ACCMODE):
37942         * tests/test-fcntl-h.c (main):
37943         Do not reject O_ACCMODE merely because it has more than the
37944         minimal number of bits, as POSIX allows extensions here.
37946 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
37948         mountlist: do not classify a bind-mounted dir entry as "dummy"
37949         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
37950         the "none"-testing clause.
37951         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
37952         exception for bind-mounted directories.
37954 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
37956         quote: provide a means to escape strings with nul characters
37957         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
37958         (quote, quote_n): Rename formal arguments for consistency with
37959         quotearg.
37961 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37963         test-raise: don't assume 199 is an invalid signal
37964         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
37966         sh-quote-tests: port to Solaris 9
37967         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
37968         Problem reported by Dagobert Michelsen in
37969         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
37971 2012-10-28  Jim Meyering  <jim@meyering.net>
37973         maint.mk: rename a new configurable variable
37974         * top/maint.mk (_gl_translatable_string_re): Rename from
37975         translation-markers: _gl_ prefix to insulate from user Makefile code,
37976         and the _re suffix to inform that it's a regular expression.
37978 2012-10-26  Eric Blake  <eblake@redhat.com>
37980         maint.mk: let packages tweak sc_po_check pattern
37981         * top/maint.mk (sc_po_check): Add translation-markers, to allow
37982         finding files with other translation markers.
37984 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37986         euidaccess: speed up 'configure' on GNU hosts
37987         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
37988         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
37989         it's needed only in this case.  Use AC_CHECK_DECLS, not
37990         AC_CHECK_DECLS_ONCE.
37991         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
37992         or AC_REQUIRE for AC_FUNC_GETGROUPS.
37994         * lib/regexec.c (re_search_internal): Fix grammar in comment.
37996 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37998         fchmodat, fchownat, fstatat: port to non-inlining compilers
37999         Problem reported for FreeBSD 9 by Jim Meyering in
38000         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
38001         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
38002         New files, which define FCHMODAT_INLINE etc.
38003         * lib/fchmodat.c (FCHMODAT_INLINE):
38004         * lib/fchownat.c (FCHOWNAT_INLINE):
38005         * lib/fstatat.c (FSTATAT_INLINE):
38006         Remove, as chmodat.c etc. now do this.
38007         * modules/fchmodat (Files): Add lib/chmodat.c.
38008         * modules/fchownat (Files): Add lib/chownat.c.
38009         * modules/fstatat (Files): Add lib/statat.c.
38011 2012-10-15  Jim Meyering  <jim@meyering.net>
38013         fchmodat.c, fchownat.c: compile-impeding typos
38014         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
38015         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
38016         Introduced in commit v0.0-7636-gd202279.
38018 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
38020         fcntl-h: support GNU flags like O_IGNORE_CTTY
38021         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
38022         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
38023         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
38024         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
38025         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
38026         Define to 0 if not already defined.
38027         * tests/test-fcntl-h.c: Test these new flags.
38029 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38031         faccessat, etc.: support AT_FDCWD-only use
38032         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
38033         this function only if its first argument is AT_FDCWD.
38034         Emacs wants faccessat for AT_EACCESS but not for any first-arg
38035         values other than AT_FDCWD, so it doesn't want all the openat
38036         machinery with fchdir etc.
38037         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
38038         * modules/fstatat, modules/mkdirat, modules/openat (Files):
38039         * modules/unlinkat (Files):
38040         Remove lib/openat-priv.h, as at-internal supplies this file.
38041         Removing this file here allows us to support programs like Emacs
38042         that avoid at-internal.
38044         faccessat: speed up 'configure' on mainstream hosts
38045         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
38046         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
38047         since it's only on unusual platforms that we need to check for
38048         'access', and it's better not to slow 'configure' down on all
38049         platforms.
38051         faccessat: port to Solaris 10
38052         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
38053         Needed on Solaris 10, which doesn't have AT_EACCESS,
38054         so we need the Gnulib fcntl.h, which defines it.
38056 2012-10-14  Pádraig Brady  <P@draigBrady.com>
38057         canonicalize: fix C89 compilation
38058         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
38059         declarations so C89 is supported.  Also remove the comment
38060         referencing memorty allocation as the suggested feature could
38061         not be implemented as suggested.
38062         Reported by Michael Goffioul.
38064 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38066         group-member: omit unnecessary dependencies
38067         This is for Emacs, which has its own allocator and where we
38068         don't want to use xalloc.
38069         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
38070         since we no longer use xmalloc.  Do not include stdbool.h, since
38071         the changes below happen to remove the only use of bool.
38072         (GROUPBUF_SIZE): New constant.
38073         (struct group_info): Remove n_groups member.  Add groupbuf member.
38074         This lets us get the groups without using malloc, usually.
38075         (free_group_info, get_group_info): Adjust to this.
38076         (get_group_info): Return the number of groups found, or -1 on error.
38077         Use plain malloc not xmalloc, and treat its failure as if there
38078         are no groups, as the user already loses in case of error.
38079         (group_member): Simplify, based on changes to get_group_info.
38080         * modules/group-member (Depends-on): Remove dependencies on
38081         xalloc and stdbool.  Add dependency on xalloc-oversized.
38083 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
38085         gethrxtime: port to C++
38086         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
38088 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
38090         ptsname: fix macro-name typo
38091         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
38093 2012-10-03  Simon Josefsson  <simon@josefsson.org>
38095         inttostr: Relax license.
38096         * modules/inttostr (License): Change from LGPL to LGPLv2+.
38098 2012-10-03  Eric Blake  <eblake@redhat.com>
38100         ptsname_r: support ptys returned by FreeBSD posix_openpt
38101         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
38102         lives in /dev/pts/.
38104 2012-10-02  Eric Blake  <eblake@redhat.com>
38106         pselect: reject invalid file descriptors
38107         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
38108         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
38109         * modules/pselect (Depends-on): Add dup2.
38110         * doc/posix-functions/pselect.texi (pselect): Document this.
38112         select: reject invalid file descriptors
38113         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
38114         * lib/select.c (rpl_select) [!win32]: Work around it.
38115         * modules/select (Depends-on): Add dup2.
38116         * doc/posix-functions/select.texi (select): Document this.
38118         select: enhance test
38119         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
38120         New functions.
38121         (test_function): Enhance test.
38122         (do_select_bad_fd): Avoid any stale errno values.
38124         ptsname: reject invalid file descriptors
38125         http://www.austingroupbugs.net/view.php?id=503
38126         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
38127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
38128         * modules/stdlib (Makefile.am): Replace witness.
38129         * lib/stdlib.in.h (ptsname): Allow for replacement.
38130         * modules/ptsname (configure.ac): Trigger replacement.
38131         * doc/posix-functions/ptsname.texi (ptsname): Document this.
38133 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
38135         hash-pjw-bare: new module
38136         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
38137         * lib/hash-pjw-bare.h: Likewise.
38138         * modules/hash-pjw-bare: New file.
38139         * MODULES.html.sh (Misc): Add it.
38141 2012-10-02  Eric Blake  <eblake@redhat.com>
38143         manywarnings: cater to more gcc infelicities
38144         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
38145         -Wuninitialized without -O.
38147 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
38149         select, poll tests: Make setsockopt invocation effective.
38150         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
38151         the bind() call.
38152         * tests/test-select.h (open_server_socket): Likewise.
38154 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
38156         sockets, sys_stat: restore AC_C_INLINE
38157         This undoes the 2012-09-22 patch.
38158         * m4/sockets.m4 (gl_SOCKETS):
38159         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
38160         Restore AC_C_INLINE, since MSVC requires __inline or _inline
38161         and does not support plain 'inline'.  Reported by Bruno Haible in
38162         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
38164 2012-09-30  Bruno Haible  <bruno@clisp.org>
38166         localeconv tests: Avoid test failure on OpenIndiana.
38167         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
38168         skip the 'grouping' and 'mon_grouping' tests.
38169         Reported by Jim Meyering.
38171 2012-09-30  Bruno Haible  <bruno@clisp.org>
38173         havelib: Follow libtool developments.
38174         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
38175         Suggested by Simon Josefsson.
38177 2012-09-29  Jim Meyering  <meyering@redhat.com>
38179         fstatat.c: fix a compile-impeding typo
38180         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
38181         Introduced in commit v0.0-7636-gd202279.
38182         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
38184 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
38186         extern-inline: provide a -Wundef safe config.h
38187         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
38188         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
38189         to produce a -Wundef warning free config.h.
38191 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
38193         hash-pjw: relax license to LGPLv2+
38194         * modules/hash-pjw (License): Relax, with consent of author.
38196 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
38198         maint.mk: fix strict vs. lazy variable issues with RELEASE
38199         * top/maint.mk (_equal): New function.
38200         (member_check): Strip the result to avoid spurious spaces.
38201         (url_dir_list): Do not use ifeq, which is strict, as it will
38202         require RELEASE_TYPE to be defined.
38203         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
38204         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
38205         (announcement_Cc_alpha,announcement_mail_headers_alpha)
38206         (announcement_Cc_beta,announcement_mail_headers_beta)
38207         (announcement_Cc_stable,announcement_mail_headers_stable): these.
38208         (release): Do not depend on $(release-type), as it forces its
38209         evaluation.  Bounce to it.
38211 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
38213         maint.mk: formatting changes
38214         * top/maint.mk: Indent bodies of if's.
38216 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
38218         maint.mk: factor the validation of RELEASE_TYPE
38219         With help from Jim Meyering.
38220         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
38221         * top/maint.mk (_empty, _sp): Move their definition earlier.
38222         (member-check, release-type): New.
38223         Use the latter instead of $(RELEASE_TYPE).
38224         Remove now useless local checks.
38226 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
38228         maint.mk: provide "make upload" to ease uploading
38229         See
38230         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
38231         Do not depend simply on the current $(VERSION), as there may have been
38232         new commits since the tarball generation.  Rather, rely on $(RELEASE),
38233         as "make release-commit" already does.
38235         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
38236         "make TYPE".
38238         * top/maint.mk (upload_command, upload, release): New.
38239         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
38240         (VERSION): first word of $(RELEASE) is always right.
38241         (emit_upload_commands): Adjust.
38242         * top/README-release: Update.
38244 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
38246         maint.mk: silent rules
38247         With help from Stefano Lattarini.
38248         * top/maint.mk (writable-files): Use $(AM_V_GEN).
38249         (announcement): Use $(AM_V_at).
38251 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
38253         localename: port gl_locale_name_thread_unsafe to FreeBSD
38254         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
38255         and use the simpler FreeBSD implementation on Mac OS X as well.
38256         Original idea suggested by Ed Maste in
38257         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
38259 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38261         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
38262         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
38263         * lib/mbuiter.c, lib/xsize.c: New files.
38264         * lib/binary-io.h (BINARY_IO_INLINE):
38265         * lib/eealloc.h (EEALLOC_INLINE):
38266         * lib/mbfile.h (MBFILE_INLINE):
38267         * lib/mbiter.h (MBITER_INLINE):
38268         * lib/mbuiter.h (MBUITER_INLINE):
38269         * lib/xsize.h (XSIZE_INLINE):
38270         New macros.
38271         Replace all uses of 'static inline' with them.
38272         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38273         * m4/eealloc.m4 (gl_EEALLOC):
38274         * m4/mbfile.m4 (gl_MBFILE):
38275         * m4/mbiter.m4 (gl_MBITER):
38276         * m4/xsize.m4 (gl_XSIZE):
38277         Do not require AC_C_INLINE.
38278         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
38279         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
38280         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
38281         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
38282         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
38283         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
38284         * modules/binary-io, modules/eealloc, modules/mbfile:
38285         * modules/mbiter, modules/mbuiter:
38286         (Depends-on): Add extern-inline.
38288         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
38289         * lib/pipe-filter-aux.c: New file.
38290         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
38291         Replace all uses of 'static inline' with it.
38292         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38293         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
38294         (filter_retcode): No real need for inline here.
38295         * modules/pipe-filter-gi, modules/pipe-filter-ii:
38296         (Files): Add lib/pipe-filter-aux.c.
38297         (Depends-on): Add extern-inline.
38298         (configure.ac): Do not require AC_C_INLINE.
38299         (lib_SOURCES): Add pipe-filter-aux.c.
38301         fdutimensat: omit unnecessary AC_C_INLINE
38302         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
38304         fchmodat, fchownat, fstatat: use extern-inline
38305         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
38306         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
38307         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
38308         New macros.
38309         * lib/openat.h:
38310         Replace all uses of 'static inline' with them.
38311         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38312         * modules/fchmodat, modules/fchownat, modules/fstatat:
38313         * modules/openat-h:
38314         (Depends-on):
38315         Add extern-inline.
38316         (configure.ac): Remove AC_C_INLINE.
38318         acl, mbchar, priv-set: use extern-inline
38319         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
38320         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
38321         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
38322         New macros.
38323         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
38324         Replace all uses of 'static inline' with it.
38325         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38326         * m4/acl.m4 (gl_FUNC_ACL):
38327         * m4/mbchar.m4 (gl_MBCHAR):
38328         * m4/priv-set.m4 (gl_PRIV_SET):
38329         Remove AC_C_INLINE, since 'inline' is no longer used directly.
38330         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
38331         Add extern-inline.
38333         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
38334         * m4/sockets.m4 (gl_SOCKETS):
38335         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
38336         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
38337         environments where it's already guaranteed to work, so we needn't
38338         check for it at 'configure'-time.
38340         tls-tests: omit unnecessary 'inline'
38341         * tests/test-tls.c (perhaps_yield): No longer inline.
38342         Simplicity and portability trump efficiency in test cases.
38344         utimens-tests: avoid unnecessary 'inline'
38345         * modules/fdutimensat-tests (configure.ac):
38346         * modules/futimens-tests (configure.ac):
38347         * modules/utimens-tests (configure.ac):
38348         * modules/utimensat-tests (configure.ac):
38349         Remove AC_C_INLINE.
38350         * tests/test-utimens-common.h (ctime_compare):
38351         No longer inline.  Simplicity and portability trump efficiency here.
38353         misc: don't limit commentary to inline functions
38354         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
38355         * lib/xalloc-oversized.h, lib/xsize.h:
38356         Contrast macros to functions in general, not just to inline functions,
38357         when the commentary does not apply only to inline functions.
38359 2012-09-20  Jim Meyering  <meyering@redhat.com>
38361         non-recursive-gnulib-prefix-hack: new module
38362         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
38363         the file that originated in Bison.
38364         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
38365         largely copied from a snippet that resided in bison's configure.ac.
38366         * modules/non-recursive-gnulib-prefix-hack: New file.
38367         * MODULES.html.sh (Support for maintaining and releasing projects):
38368         Add it.
38370 2012-09-18  Jim Meyering  <meyering@redhat.com>
38372         maint.mk: generalize _gl_tight_scope for non-recursive make
38373         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
38374         that *.h would describe additional .h files in the directory
38375         specified by $(_gl_TS_dir).  I.e., add this...
38376         (_gl_TS_other_headers): New variable.
38378         maint.mk: exempt trailing blanks found in "binary" files
38379         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
38380         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
38381         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38383 2012-09-17  Jim Meyering  <meyering@redhat.com>
38385         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
38386         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
38387         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
38388         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38390 2012-09-17  Jim Meyering  <meyering@redhat.com>
38392         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
38393         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
38394         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
38395         It is not in the same category as "exit (0)" or "exit (1)", and
38396         besides, I know of no symbolic name for that 77.  Reported by
38397         Richard W.M. Jones in
38398         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38400 2012-09-17  Jim Meyering  <meyering@redhat.com>
38402         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
38403         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
38404         all uses of #define, not just those that start in column 1.
38405         Richard W.M. Jones reported a false positive in
38406         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38408 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38410         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
38411         * lib/localcharset.c (locale_charset) [DARWIN7]:
38412         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
38413         as these two values are incompatible.  Problem reported by Max Horn.
38414         For more discussion, please see
38415         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
38417         doc: document sticky-EOF issue
38418         * doc/posix-functions/fgetc.texi (fgetc):
38419         * doc/posix-functions/fgets.texi (fgets):
38420         * doc/posix-functions/fread.texi (fread):
38421         * doc/posix-functions/fscanf.texi (fscanf):
38422         * doc/posix-functions/getc.texi (getc):
38423         * doc/posix-functions/getchar.texi (getchar):
38424         * doc/posix-functions/scanf.texi (scanf):
38425         Mention that glibc and default Solaris do not conform to
38426         C99 and POSIX-2001 or later, with respect to how getchar
38427         etc. behave when feof reports nonzero.
38429 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
38431         poll: fix poll(0, NULL, msec)
38432         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
38433         but nfd is 0.  In that case poll should behave like select.
38435 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
38436             Paolo Bonzini  <bonzini@gnu.org>
38438         poll: fix for systems that can't recv() on a non-socket
38439         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
38440         is readable.  In this case POLLHUP will not be supported.
38441         * doc/posix-functions/poll.texi: Document this.
38443 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
38445         poll/select: document portability problems not fixed by Gnulib.
38446         * doc/posix-functions/poll.texi: poll does not work well on
38447         pipes under Windows.  It has the same limitations as select on
38448         BeOS.
38449         * doc/posix-functions/select.texi: select does not work well
38450         on pipes under Windows.
38452 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
38454         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
38455         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
38456         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
38457         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
38459 2012-09-06  Eric Blake  <eblake@redhat.com>
38461         net_if: give more details about the bug being fixed
38462         * doc/posix-headers/net_if.texi: Add clarification.
38464 2012-09-05  Eric Blake  <eblake@redhat.com>
38466         net_if: new module
38467         * modules/net_if: New module, borrowing ideas from netinet_in.
38468         * m4/net_if_h.m4: New file.
38469         * lib/net_if.in.h: Likewise.
38470         * doc/posix-headers/net_if.texi (net/if.h): Document it.
38471         * MODULES.html.sh (lacking POSIX:2008): Likewise.
38472         * tests/test-net_if.c: Make function checks conditional.
38473         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
38475 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
38477         readutmp: fix non-portable UT_PID use
38478         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
38479         Use `UT_PID (u) > 0' as absolute condition.
38481 2012-09-04  Jim Meyering  <meyering@redhat.com>
38483         fts: reduce two or more trailing spaces to just one, usually
38484         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
38485         or more slashes, trim all but the final one.  But if a name consists
38486         solely of two slashes, don't modify it.  If it consists solely of
38487         three or more slashes, strip all but one.
38489         This is part of the solution to a minor problem with rm:
38490         it would print a bogus ELOOP diagnostic when failing to remove
38491         the slash-decorated name of a symlink-to-directory:
38493             $ mkdir d && ln -s d s && env rm -r s/
38494             rm: cannot remove 's': Too many levels of symbolic links
38496         With the change below and a trivial don't-trim-trailing-slashes
38497         adjustment to remove.c, it does this:
38499             $ env rm -r s/
38500             rm: cannot remove 's/': Not a directory
38502         Improved by: Eric Blake
38504         fts: when there is no risk of overlap, use memcpy, not memmove
38505         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
38507 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
38509         stdbool: be more compatible with mixed C/C++ compiles
38510         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
38511         Define to bool, true, false, respectively, as GCC's builtin
38512         stdbool.h does.  Problem reported by Michael Goffioul in
38513         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
38515 2012-08-28  Jim Meyering  <meyering@redhat.com>
38517         revert last change: it was not needed
38518         * tests/test-vc-list-files-git.sh: There's already a test for
38519         a working git, just below.
38521 2012-08-28  Jim Meyering  <meyering@redhat.com>
38523         tests: test-vc-list-files-git.sh: skip if git is not available
38524         * tests/test-vc-list-files-git.sh: Skip this test when git is
38525         not available.
38527 2012-08-26  Bruno Haible  <bruno@clisp.org>
38529         gnulib-tool: Remove no-op option --no-changelog.
38530         * gnulib-tool (func_usage): Don't mention --no-changelog.
38531         (do_changelog): Remove variable.
38532         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38534 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38536         doc: remove fdl-1.2.texi
38537         It is no longer used or maintained, and its use of @acronym
38538         is problematic.  See the thread containing
38539         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
38540         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
38541         * doc/old-licenses/fdl-1.2.texi: Remove.
38543         execinfo: port to FreeBSD
38544         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
38545         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
38546         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
38547         * modules/execinfo (Link): Add $(LIB_EXECINFO).
38549 2012-08-23  Jim Meyering  <meyering@redhat.com>
38551         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
38552         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
38553         to placate gcc's -Wold-style-declaration.
38555 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38557         doc: do not use @acronym
38558         * doc/inet_ntoa.texi (inet_ntoa):
38559         * doc/parse-datetime.texi (Seconds since the Epoch)
38560         (Specifying time zone rules):
38561         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
38562         Don't use @acronym.  Problem reported by John Darlington in
38563         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
38565 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38567         stdnoreturn: port to newer GCCs
38568         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
38569         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
38570         Problem reported by Jim Meyering in
38571         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
38572         Also, rename the 'test' function to a void a clash with the
38573         already-supplied 'main' function; this fixes a bug that incorrectly
38574         rejected GCC 4.7.1's <stdnoreturn.h>.
38575         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
38576         Document GCC problem.
38578 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
38580         pipe-filter: fix comment typo
38581         * lib/pipe-filter.h: Mention correct function.
38583 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
38585         execinfo: new module
38586         This is for Emacs.  Currently, it provides a no-effect stub
38587         on all platforms where it does not already work.
38588         It already works on glibc-based systems, and on Solaris 11.
38589         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
38590         New files.
38591         * doc/glibc-headers/execinfo.texi (execinfo.h):
38592         * MODULES.html.sh (Misc): Document it.
38594 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38596         extern-inline: support old GCC 'inline'
38597         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
38598         if available.  This applies to GCC versions 2.7 through 4.2, or
38599         when newer GCC is using -fgnu89-inline.  The goal is to address
38600         some of the performance issues mentioned by Bruno Haible in
38601         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
38603 2012-08-20  Eric Blake  <eblake@redhat.com>
38605         maint.mk: avoid redundant file name in message
38606         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38607         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
38608         (sc_makefile_path_separator_check): Remove bogus $(ME).
38610 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
38612         timer-time: fix link order when static linking on glibc
38613         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
38614         _after_ -lrt so that it's significant.
38616 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38618         timespec: omit unnecessary AC_C_INLINE
38619         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
38621         stat-time: omit unnecessary AC_C_INLINE
38622         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
38623         Do not require AC_C_INLINE.
38625         ignore-value: omit unnecessary AC_C_INLINE
38626         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
38628         sys_select: avoid 'static inline'
38629         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
38631         mktime: avoid 'static inline'
38632         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
38633         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
38635 2012-08-19  Bruno Haible  <bruno@clisp.org>
38637         gnulib-tool: Improve coding style.
38638         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
38639         func_emit_lib_Makefile_am.
38640         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38642 2012-08-19  Bruno Haible  <bruno@clisp.org>
38644         gnulib-tool: Fix indentation.
38645         * gnulib-tool (func_import): Fix indentation.
38647 2012-08-19  Bruno Haible  <bruno@clisp.org>
38649         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
38650         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
38651         on the list of removed files.
38653 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38655         test-parse-datetime: avoid glibc leap-second glitch
38656         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
38657         with the 2012 rules.  Problem reported by Bruce Dubbs in
38658         <http://bugs.gnu.org/12206>.
38660 2012-08-14  Bruno Haible  <bruno@clisp.org>
38662         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
38663         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
38664         from argument.
38665         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38667 2012-08-14  Eric Blake  <eblake@redhat.com>
38669         ldexp: relax license
38670         * modules/ldexp (License): Trivial relax, since the module only
38671         provides a permissively licensed m4 file.
38673 2012-08-13  Bruno Haible  <bruno@clisp.org>
38675         gnulib-tool: Fix persistence of --witness-c-macro option.
38676         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
38677         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38679 2012-08-11  Eric Blake  <eblake@redhat.com>
38681         count-leading-zeros: use a lookup table on non-gcc compilers
38682         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
38683         alternate implementation, suggested by Jim Meyering.
38685 2012-08-10  Eric Blake  <eblake@redhat.com>
38687         count-leading-zeros: new module
38688         * modules/count-leading-zeros: New module.
38689         * m4/count-leading-zeros.m4: New file.
38690         * lib/count-leading-zeros.h: Likewise.
38691         * modules/count-leading-zeros-tests: New test.
38692         * tests/test-count-leading-zeros.c: New file.
38693         * MODULES.html.sh (Integer arithmetic functions): Document it.
38695 2012-08-07  Simon Josefsson  <simon@josefsson.org>
38696             Jim Meyering  <meyering@redhat.com>
38698         maintainer-makefile: Fix syntax error with dash.
38699         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
38700         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
38702 2012-08-05  Jim Meyering  <meyering@redhat.com>
38704         extern-inline: also ignore -Wmissing-declarations
38705         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
38706         required with gcc-4.8.0-to-be.
38708         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
38709         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
38710         for /error ?([^,]*)/.  This avoids false-positives for strings like
38711         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
38713 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
38715         gnumakefile: better interaction with Automake-NG
38716         * modules/gnumakefile [Makefile.am]: The makefiles generated by
38717         Automake-NG always contain a definition of VPATH, even in non-VPATH
38718         builds (its value being simply '.' in that case).  So, in the
38719         'clean-GNUmakefile' rule, to determine whether running under a
38720         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
38721         '$(VPATH)' expands to the empty string.
38723 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
38725         base64: Use extern C scope in header file, for C++.
38726         * lib/base64.h: Add C++ namespace protection.
38728 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
38730         stat-time, timespec, u64: support naive out-of-dir builds
38731         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
38732         Use '#include "foo.h"', not '#include <foo.h>', when including
38733         one's own interface.  This works better when configuring with
38734         out-of-directory builds, since packages need not add an
38735         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
38737 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
38739         utimens: use extern-inline
38740         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
38741         * lib/utimens.h: Add copyright notice, since this is now large enough
38742         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38743         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
38744         * modules/utimens (Depends-on): Add extern-inline.
38746         u64: use extern-inline
38747         * lib/u64.c: New file.
38748         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38749         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
38750         * modules/u64 (Files): Add lib/u64.c.
38751         (Depends-on): Add extern-inline.
38752         (configure.ac): No need to require AC_C_INLINE, since extern-inline
38753         does that now.
38754         (lib_SOURCES): Add u64.c.
38756         timespec: use extern-inline
38757         * lib/timespec.c: New file.
38758         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38759         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
38760         * modules/timespec (Files): Add lib/timespec.c.
38761         (Depends-on): Add extern-inline.
38762         (lib_SOURCES): Add timespec.c.
38764         stat-time: use extern-inline
38765         * lib/stat-time.c: New file.
38766         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38767         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
38768         * modules/stat-time (Files): Add lib/stat-time.c.
38769         (Depends-on): Add extern-inline.
38770         (lib_SOURCES): Add stat-time.c.
38772         extern-inline: new module
38773         * modules/extern-inline, m4/extern-inline.m4: New files.
38774         This is for better support of 'extern inline' a la ISO C99,
38775         with a portable alternative on compilers that do not support
38776         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
38777         of the Emacs executable, when compiled with debugging disabled,
38778         which is a typical way that Emacs is built while developing.
38780 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
38782         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
38783         * build-aux/do-release-commit-and-tag: Move variable definitions
38784         together.
38785         ($branch): Instead of defaulting to "master", default to the current
38786         branch (as gnu-web-doc-update does).
38787         (help): Display the current values of the option arguments.
38788         * top/maint.mk (release-commit): New.
38789         * top/README-release: Simplify the corresponding step.
38791 2012-07-30  Eric Blake  <eblake@redhat.com>
38793         passfd: fix comment on recvfd
38794         * lib/passfd.c (recvfd): Fix comment.
38795         Reported by Jann Horn <jannhorn@googlemail.com>.
38797 2012-07-30  Jim Meyering  <meyering@redhat.com>
38799         maint.mk: avoid a sub-shell
38800         * top/maint.mk (release-prep): Remove unneeded sub-shell.
38802 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38804         maint.mk: use silent-rules support from Automake
38805         * top/maint.mk (news-check, vc-diff-check, announcement)
38806         (no-submodule-changes, alpha beta stable, release-prep)
38807         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
38809 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38811         maint.mk: provide a web-manual-update target
38812         * top/maint.mk: here.
38813         * top/README-release: Use it to simplify the web manual update step.
38815 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38817         README-release: shorten the circuit to post a news
38818         * top/README-release: Point directly to the news submission form.
38820 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38822         gnu-web-doc-update: fix --help
38823         * build-aux/gnu-web-doc-update: The information "top level" was written
38824         twice.
38826 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38828         maint.mk: absolute VPATH issue
38829         * top/maint.mk (release-prep): Help Git find .git/.
38830         From Jim Meyering.
38832 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38834         gitlog-to-changelog: fix previous change
38835         * build-aux/gitlog-to-changelog: Fix condition.
38836         Add missing ";".
38838 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38840         gitlog-to-changelog: don't expect .git to be in $srcdir
38841         Reported by Bruno Haible.
38842         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
38843         * build-aux/gitlog-to-changelog (&git_dir_option): New.
38844         Use it.
38846 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38848         maint.mk: absolute VPATH build fix
38849         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
38850         $(srcdir) is not a parent of $(builddir).
38852 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
38854         clean-temp: Fix memory leak.
38855         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
38856         'files' members of tmpdir.
38858 2012-07-27  Jim Meyering  <meyering@redhat.com>
38860         maint.mk: new rule: refresh-gnulib-patches
38861         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
38862         Use this rule to refresh them.
38863         * top/maint.mk (refresh-gnulib-patches): New rule.
38865 2012-07-24  Bruno Haible  <bruno@clisp.org>
38867         gnulib-tool: Fix handling of inctests variable.
38868         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
38869         Reported by Nick Bowler <nbowler@elliptictech.com>.
38871 2012-07-22  Bruno Haible  <bruno@clisp.org>
38873         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
38874         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
38875         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38876         Remove exemption for getpass.h.
38877         Suggested by Eric Blake.
38879 2012-07-20  Eric Blake  <eblake@redhat.com>
38881         verify: document conflict with -Wnested-externs
38882         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
38884         maint.mk: forbid exit(-1)
38885         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
38887 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
38889         fsusage: port back to Solaris
38890         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
38891         error (fsd not declared) on Solaris 10.  Reported privately by
38892         Andrew Borodin.
38894 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
38896         gnu-web-doc-update: fix error messages
38897         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
38899         gnu-web-doc-update: check the requirements.
38900         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
38901         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
38902         * build-aux/bootstrap (find_tool): Comment change.
38904 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
38906         maint.mk: minor simplication.
38907         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
38908         for default values.
38910 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
38912         gitlog-to-changelog: VPATH build issues
38913         If builddir is not a subdirectory of srcdir, running git from it will
38914         fail.
38915         * build-aux/gitlog-to-changelog (--srcdir): New option.
38917 2012-07-15  Bruno Haible  <bruno@clisp.org>
38919         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
38920         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
38921         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
38922         Remove exemption for fpending.h.
38923         Suggested by Eric Blake.
38925 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
38927         pthread_sigmask: fix bug on FreeBSD 9
38928         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
38929         Include string.h.
38930         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
38931         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
38932         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
38933         but pthread_sigmask (1729, NULL, NULL) returns zero.
38934         See <http://bugs.gnu.org/11884>.
38935         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
38936         by inspecting whether the main call changed the old mask.
38938 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
38940         README-release: make it more legible
38941         * top/README-release: Improve typography slightly.
38943 2012-07-15  Jim Meyering  <meyering@redhat.com>
38945         maint: require that each sc_... command start with "@"
38946         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
38947         "make sc_maint" helps us avoid this nit.
38949 2012-07-15  Jim Meyering  <meyering@redhat.com>
38951         maint.mk: add leading "@" to quiet new "make syntax-check" rule
38952         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
38954 2012-07-13  Eric Blake  <eblake@redhat.com>
38956         maint.mk: new syntax check for HAVE_DECL checks
38957         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
38958         * cfg.mk
38959         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38960         Exempt some false positives.
38961         Based on a report by Karel Zak.
38963         argp: make HAVE_DECL usage consistent
38964         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
38965         macros, not whether they are defined.
38966         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
38967         convention with other declaration checks.
38968         Reported by Karel Zak, with suggestions from Paul Eggert.
38970         stat-time: relax license to LGPLv2+
38971         * modules/stat-time (License): Relax, with consent of all authors.
38973         strndup: fix m4 usage error
38974         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
38975         defined, to either 0 or 1.
38976         Reported by Karel Zak.
38978 2012-07-11  Jim Meyering  <meyering@redhat.com>
38980         maint: enable the sc_avoid_if_before_free syntax-check rule
38981         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
38982         (if_before_free_offenders_): Define.
38983         (if_before_free_basename_re_): Define.
38984         Exempt current files with useless if-before-free.
38986 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
38988         gettext: do not assume '#define ... defined ...' behavior
38989         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
38990         Do not use '#define FOO ... defined BAR ...', as the C standard says
38991         it's not portable to expect that this works after macro expansion.
38992         Problem reported for gzip by Steven M. Schweda in
38993         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
38995 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38997         getloadavg: clean out old Emacs and Autoconf cruft
38998         See Glenn Morris in <http://bugs.gnu.org/11905>.
38999         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
39000         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
39001         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
39002         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
39004 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
39006         bootstrap: let warn be like tests/init.sh's warn_
39007         Reported by Jim Meyering.
39008         * build-aux/bootstrap (warn): Remove, replaced by...
39009         (warnf_, warn_): these.
39010         Adjust callers.
39011         Shorten messages that no longer fit in 80 columns.
39013 2012-07-09  Bruno Haible  <bruno@clisp.org>
39015         getopt: Simplify after Emacs changed.
39016         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
39017         (gl_GETOPT_IFELSE): Remove macro.
39019 2012-07-09  Jim Meyering  <meyering@redhat.com>
39021         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
39022         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
39024         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
39025         Bugs in both of those conspired to make the
39026         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
39027         _sc_search_regexp's handling of non-empty $in_files would filter
39028         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
39029         choice of in_files value meant there would be no match in most
39030         projects, due to the presence of two or more Makefile.in files.
39031         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
39032         Fix a bug in how a non-empty $$in_files was processed:
39033         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
39034         in spite of the name, it's a regexp, not a list of file names.
39036 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39038         getloadavg, getopt: fix commentary re configure.in
39039         Autoconf is deprecating the name 'configure.in', so change it to
39040         to the new name 'configure.ac' in a couple of places.
39041         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
39042         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
39043         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
39044         Emacs has renamed it to configure.ac, and it no longer refers
39045         to these macros anyway.
39047         timespec: mark functions with const attributes
39048         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
39049         Mark with _GL_ATTRIBUTE_CONST.
39051 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
39053         canonicalize[-lgpl]: handle "guessing" values when cross-building
39054         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39055         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
39056         matches "*yes" instead of just "yes".  Regression introduced in commit
39057         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
39059 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
39060             Bruno Haible  <bruno@clisp.org>
39062         canonicalize: make the right guess when cross-compiling to GNU
39063         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
39064         determine whether cross-compiling to glibc systems, so as to
39065         include GNU/Hurd.
39067 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39069         timespec-sub: avoid duplicate include
39070         * lib/timespec-sub.c: Do not include <config.h> twice.
39071         Reported by Juanma Barranquero.
39073 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
39075         bootstrap: use a more consistent error reporting scheme
39076         * build-aux/bootstrap (warn, die): New.
39077         Use them.
39079 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
39081         sys_time: allow too-wide tv_sec
39082         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
39083         timeval even if tv_sec is wider than time_t.  This allows
39084         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
39085         as without this patch gnulib replaces struct timeval
39086         and OpenBSD futimes therefore has a type mismatch.
39087         * doc/posix-headers/sys_time.texi: Mention this.
39089         pthread: check for both pthread_create and pthread_join
39090         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
39091         alter the check so that it tests for both pthread_create and
39092         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
39093         Suggested by Bruno Haible and Richard Yao in
39094         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
39096         parse-datetime: doc tuneup
39097         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
39098         spacing issues.
39100 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
39102         do-release-commit-and-tag: fix the previous commit
39103         * build-aux/do-release-commit-and-tag: Actually the test was right,
39104         but the comment and the error message were misleading.
39105         Fix comment, and improve error message.
39106         Perform check first, so that NEWS is not modified uselessly.
39108         do-release-commit-and-tag: fix typo
39109         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
39110         _not_ start with a stub.
39112 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
39114         pthread: check for pthread_create, not pthread_join
39115         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
39116         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
39117         pthread_join in libc.  I hope this removes the need for all the
39118         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
39119         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
39121 2012-07-04  Jim Meyering  <meyering@redhat.com>
39123         parse-datetime: fix failure to diagnose invalid input
39124         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
39125         rather than diagnosing the invalid input.  Now it reports this:
39126         date: invalid date '\260'
39127         * lib/parse-datetime.y (to_uchar): Define.
39128         (yylex): Don't sign-extend "other" bytes.
39129         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
39130         Thanks to Bruno Haible for the patch to this file.
39131         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
39132         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
39134 2012-07-03  Jim Meyering  <meyering@redhat.com>
39136         bootstrap: do not require now-removed build-aux/missing
39137         Now that build-aux/missing is, er, missing, bootstrap would
39138         silently fail.
39139         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
39140         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
39141         no longer part of gnulib.
39142         Diagnose the failure.
39144 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39146         alloca: add support for HP NonStop TNS/E native
39147         * lib/alloca.in.h (alloca): Support the new host.
39148         From a suggestion by Joachim Schmitz in
39149         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
39151 2012-07-02  Pádraig Brady  <P@draigBrady.com>
39153         fsusage: remove code not needed on non GNU/Linux systems.
39155         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
39156         Don't include headers no longer needed in this case.
39157         * lib/fsusage.c [STAT_STATVFS &&
39158         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
39159         STAT_STATFS2_FRSIZE to exclude code not used in this case.
39161 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39163         fsusage: include files needed for glibc 2.6 fallback
39164         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
39165         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
39166         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
39167         Problem reported by Ludovic Courtès in
39168         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
39170         fsusage: avoid needless check on GNU/Linux
39171         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
39172         on GNU/Linux systems, since it can't possibly work.
39174 2012-07-01  Bruno Haible  <bruno@clisp.org>
39176         log: Fix an autoconf >= 2.64 warning.
39177         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
39178         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
39180 2012-06-28  Bruno Haible  <bruno@clisp.org>
39182         log10f: Fix possible configuration problem.
39183         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
39184         $LOGF_LIBM.
39185         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
39187 2012-06-28  Bruno Haible  <bruno@clisp.org>
39189         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
39190         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
39191         not gl_cv_func_unlink_works.
39192         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
39194 2012-06-27  Eric Blake  <eblake@redhat.com>
39196         config: drop scripts that automake says are not independent
39197         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
39198         * build-aux/elisp-comp: Delete.
39199         * build-aux/missing: Likewise.
39200         * build-aux/ylwrap: Likewise.
39201         * modules/elisp-comp: Likewise.
39202         * MODULES.html.sh: Drop mention of elisp-comp.
39203         * NEWS: Mention this.
39205 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
39207         root-uid: new module
39208         This is for portability to Tandem's NonStop Kernel.
39209         * lib/root-uid.h, modules/root-uid: New files.
39210         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
39211         * lib/write-any-file.c, tests/test-sethostname2.c:
39212         Include "root-uid.h".
39213         * lib/euidaccess.c (euidaccess):
39214         * lib/pt_chown.c (main):
39215         * lib/unlinkdir.c (cannot_unlink_dir):
39216         * lib/write-any-file.c (can_write_any_file):
39217         * m4/mknod.m4 (gl_FUNC_MKNOD):
39218         * tests/test-sethostname2.c (geteuid, main):
39219         Don't assume ROOT_UID == 0.
39220         * modules/euidaccess (Depends-on):
39221         * modules/pt_chown (Depends-on):
39222         * modules/sethostname-tests (Depends-on):
39223         * modules/unlinkdir (Depends-on):
39224         * modules/write-any-file (Depends-on):
39225         Add root-uid.
39227         regex: use locale-independent comparison for codeset name
39228         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
39229         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
39230         for codeset name.
39231         * lib/regex_internal.h: Do not include <strings.h>, since we
39232         no longer use strcasecmp.
39233         * modules/regex (Depends-on): Remove strcase.
39235 2012-06-23  Bruno Haible  <bruno@clisp.org>
39237         getopt-posix: No longer guarantee that option processing is resettable.
39238         * doc/posix-functions/getopt.texi: Drop description of problem with
39239         internal state. Fix info about mingw and msvc9.
39240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
39241         option processing by getopt(). Run three test programs instead of one.
39242         Simplify cross-compilation guess.
39243         * NEWS: Mention the change.
39244         Reported by Rich Felker <dalias@aerifal.cx>.
39246 2012-06-26  Bruno Haible  <bruno@clisp.org>
39248         argp, regex: Ensure strcasecmp gets declared.
39249         * lib/argp-help.c: Include <strings.h>.
39250         * lib/regex_internal.h: Likewise.
39251         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
39253 2012-06-24  Bruno Haible  <bruno@clisp.org>
39255         ptsname_r: Make it consistent with ptsname on AIX.
39256         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
39257         implementation as for OSF/1.
39258         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
39259         a pty master.
39261         ptsname_r: Make it consistent with ptsname on OSF/1.
39262         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
39263         OSF/1.
39265 2012-06-24  Bruno Haible  <bruno@clisp.org>
39267         ttyname_r: Fix result on OSF/1, Solaris.
39268         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
39270 2012-06-24  Bruno Haible  <bruno@clisp.org>
39272         ptsname_r: Add support for Solaris.
39273         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
39274         Solaris.
39276         ptsname_r: Fix test failure on native Windows.
39277         * modules/ptsname_r (Depends-on): Add isatty.
39279         ptsname_r: Fix test failures on IRIX, Solaris.
39280         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
39281         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
39282         accordingly.
39283         * lib/ptsname_r.c: Include <fcntl.h>.
39284         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
39285         set errno if fd is invalid.
39286         * tests/test-isatty.c (main): Update comments.
39288 2012-06-24  Bruno Haible  <bruno@clisp.org>
39290         ptsname test: Extend test.
39291         * tests/test-ptsname.c: Include <errno.h>.
39292         (main): Test behaviour with invalid file descriptor.
39294 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39296         time: fix obsolete comment
39297         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
39298         reference to HAVE_STRUCT_TIMESPEC in comment.
39300 2012-06-23  Bruno Haible  <bruno@clisp.org>
39302         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
39303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
39304         does not handle abbreviated long options with equivalent
39305         disambiguations, set gl_replace_getopt to yes.
39306         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
39308 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39310         time_r: fix typo that always overrode localtime_r decl
39311         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
39312         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
39313         not in a standard include.
39315 2012-06-22  Bruno Haible  <bruno@clisp.org>
39317         Write "Mac OS X" instead of "MacOS X".
39318         * README: Write "Mac OS X" instead of "MacOS X".
39319         * build-aux/bootstrap: Likewise.
39320         * build-aux/install-reloc: Likewise.
39321         * lib/acl-internal.h: Likewise.
39322         * lib/acl_entries.c: Likewise.
39323         * lib/argp-ba.c: Likewise.
39324         * lib/argp-pv.c: Likewise.
39325         * lib/config.charset: Likewise.
39326         * lib/copy-acl.c: Likewise.
39327         * lib/csharpexec.c: Likewise.
39328         * lib/euidaccess.c: Likewise.
39329         * lib/fbufmode.c: Likewise.
39330         * lib/fflush.c: Likewise.
39331         * lib/file-has-acl.c: Likewise.
39332         * lib/filemode.h: Likewise.
39333         * lib/fpurge.c: Likewise.
39334         * lib/freadable.c: Likewise.
39335         * lib/freadahead.c: Likewise.
39336         * lib/freading.c: Likewise.
39337         * lib/freadptr.c: Likewise.
39338         * lib/freadseek.c: Likewise.
39339         * lib/fseeko.c: Likewise.
39340         * lib/fseterr.c: Likewise.
39341         * lib/fsusage.c: Likewise.
39342         * lib/fwritable.c: Likewise.
39343         * lib/fwriting.c: Likewise.
39344         * lib/get-rusage-as.c: Likewise.
39345         * lib/get-rusage-data.c: Likewise.
39346         * lib/getdomainname.c: Likewise.
39347         * lib/idpriv-drop.c: Likewise.
39348         * lib/idpriv-droptemp.c: Likewise.
39349         * lib/localcharset.c: Likewise.
39350         * lib/locale.in.h: Likewise.
39351         * lib/localename.c: Likewise.
39352         * lib/mbsrtowcs-state.c: Likewise.
39353         * lib/nproc.c: Likewise.
39354         * lib/passfd.c: Likewise.
39355         * lib/posix_openpt.c: Likewise.
39356         * lib/printf-parse.c: Likewise.
39357         * lib/progreloc.c: Likewise.
39358         * lib/safe-read.h: Likewise.
39359         * lib/safe-write.h: Likewise.
39360         * lib/sched.in.h: Likewise.
39361         * lib/set-mode-acl.c: Likewise.
39362         * lib/signal.in.h: Likewise.
39363         * lib/stdint.in.h: Likewise.
39364         * lib/stdio-impl.h: Likewise.
39365         * lib/stdlib.in.h: Likewise.
39366         * lib/strtod.c: Likewise.
39367         * lib/sys_select.in.h: Likewise.
39368         * lib/tcgetsid.c: Likewise.
39369         * lib/unistd.in.h: Likewise.
39370         * lib/unlockpt.c: Likewise.
39371         * lib/vasnprintf.c: Likewise.
39372         * lib/vma-iter.c: Likewise.
39373         * lib/wcsrtombs-state.c: Likewise.
39374         * m4/acl.m4: Likewise.
39375         * m4/acosl.m4: Likewise.
39376         * m4/asinl.m4: Likewise.
39377         * m4/atanl.m4: Likewise.
39378         * m4/c-stack.m4: Likewise.
39379         * m4/cosl.m4: Likewise.
39380         * m4/expl.m4: Likewise.
39381         * m4/extensions.m4: Likewise.
39382         * m4/fdatasync.m4: Likewise.
39383         * m4/fmal.m4: Likewise.
39384         * m4/frexp.m4: Likewise.
39385         * m4/frexpf.m4: Likewise.
39386         * m4/frexpl.m4: Likewise.
39387         * m4/fsusage.m4: Likewise.
39388         * m4/getdomainname.m4: Likewise.
39389         * m4/getloadavg.m4: Likewise.
39390         * m4/getopt.m4: Likewise.
39391         * m4/gettext.m4: Likewise.
39392         * m4/gnulib-common.m4: Likewise.
39393         * m4/intdiv0.m4: Likewise.
39394         * m4/intlmacosx.m4: Likewise.
39395         * m4/largefile.m4: Likewise.
39396         * m4/ldexpl.m4: Likewise.
39397         * m4/link-follow.m4: Likewise.
39398         * m4/locale-ar.m4: Likewise.
39399         * m4/locale-fr.m4: Likewise.
39400         * m4/locale-ja.m4: Likewise.
39401         * m4/locale-tr.m4: Likewise.
39402         * m4/locale-zh.m4: Likewise.
39403         * m4/locale_h.m4: Likewise.
39404         * m4/lock.m4: Likewise.
39405         * m4/logl.m4: Likewise.
39406         * m4/mathfunc.m4: Likewise.
39407         * m4/minus-zero.m4: Likewise.
39408         * m4/mktime.m4: Likewise.
39409         * m4/mmap-anon.m4: Likewise.
39410         * m4/multiarch.m4: Likewise.
39411         * m4/nanosleep.m4: Likewise.
39412         * m4/nocrash.m4: Likewise.
39413         * m4/poll.m4: Likewise.
39414         * m4/printf-frexpl.m4: Likewise.
39415         * m4/printf.m4: Likewise.
39416         * m4/signbit.m4: Likewise.
39417         * m4/sinl.m4: Likewise.
39418         * m4/sqrtl.m4: Likewise.
39419         * m4/strerror_r.m4: Likewise.
39420         * m4/tanl.m4: Likewise.
39421         * m4/threadlib.m4: Likewise.
39422         * m4/ttyname_r.m4: Likewise.
39423         * m4/unlink.m4: Likewise.
39424         * m4/visibility.m4: Likewise.
39425         * m4/wcwidth.m4: Likewise.
39426         * tests/minus-zero.h: Likewise.
39427         * tests/test-alloca-opt.c: Likewise.
39428         * tests/test-copy-acl.sh: Likewise.
39429         * tests/test-copy-file.sh: Likewise.
39430         * tests/test-fdatasync.c: Likewise.
39431         * tests/test-file-has-acl.sh: Likewise.
39432         * tests/test-flock.c: Likewise.
39433         * tests/test-fsync.c: Likewise.
39434         * tests/test-localename.c: Likewise.
39435         * tests/test-malloca.c: Likewise.
39436         * tests/test-nonblocking-pipe.h: Likewise.
39437         * tests/test-nonblocking-socket.h: Likewise.
39438         * tests/test-openpty.c: Likewise.
39439         * tests/test-posix_openpt.c: Likewise.
39440         * tests/test-ptsname.c: Likewise.
39441         * tests/test-ptsname_r.c: Likewise.
39442         * tests/test-sameacls.c: Likewise.
39443         * tests/test-select.h: Likewise.
39444         * tests/test-set-mode-acl.sh: Likewise.
39445         * tests/test-snprintf-posix.h: Likewise.
39446         * tests/test-sprintf-posix.h: Likewise.
39447         * tests/test-strtod.c: Likewise.
39448         * tests/test-time.c: Likewise.
39449         * tests/test-vasnprintf-posix.c: Likewise.
39450         * tests/test-vasprintf-posix.c: Likewise.
39451         * doc/acl-resources.txt: Likewise.
39452         * doc/**/*.texi: Likewise.
39453         Reported by Max Horn <max@quendi.de>.
39455 2012-06-22  Bruno Haible  <bruno@clisp.org>
39457         grantpt: Relax requirement regarding invalid file descriptors.
39458         * lib/grantpt.c: Don't include <fcntl.h>.
39459         (grantpt): Don't verify the validity of the file descriptor.
39460         * modules/grantpt (Depends-on): Remove fcntl-h.
39461         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
39462         file descriptors.
39463         * doc/posix-functions/grantpt.texi: Document more platforms on which
39464         grantpt succeeds for invalid file descriptors.
39465         Reported by Rich Felker <dalias@aerifal.cx>.
39467 2012-06-22  Bruno Haible  <bruno@clisp.org>
39469         fbufmode test: Don't test unportable behaviour.
39470         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
39471         (main): Invoke it three times.
39472         Reported by Szabolcs Nagy <nsz@port70.net>
39473         and Rich Felker <dalias@aerifal.cx>.
39475 2012-06-21  Bruno Haible  <bruno@clisp.org>
39477         gnulib-tool: Refactor inctests variable.
39478         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
39479         (func_modules_transitive_closure,
39480         func_modules_transitive_closure_separately,
39481         func_import, func_create_testdir): Update.
39483         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
39484         * gnulib-tool: Accept option --without-tests.
39485         (func_usage): Document --without-tests option. Rearrange.
39486         (inctests): Normalize according to the mode.
39487         * NEWS: Mention the change.
39488         Suggested by Simon Josefsson.
39490 2012-06-21  Bruce Korb  <bkorb@gnu.org>
39492         parse-duration test: Avoid spurious output.
39493         * tests/test-parse-duration.sh: Reindent with leading tabs.
39495 2012-06-21  Jim Meyering  <meyering@redhat.com>
39497         maint: disable the strncpy prohibition
39498         * cfg.mk: Do not prohibit strncpy here.
39500 2012-06-21  Bruno Haible  <bruno@clisp.org>
39502         nonblocking: Avoid compilation error on mingw64.
39503         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
39504         fscanf.
39505         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
39506         * modules/vfscanf (configure.ac): Likewise.
39507         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
39508         definition only if stdio.h has prepared it.
39509         Reported by Daniel P. Berrange <berrange@redhat.com>.
39511 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
39513         gnulib-tool: Use readlink if it is available.
39514         * gnulib-tool (func_readlink): Choose function more appropriately.
39516 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39518         posixtm-tests: port to buggy compiler
39519         Problem reported by Simon Josefsson in
39520         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
39521         * modules/posixtm-tests (Depends-on): Add stdint.
39522         * tests/test-posixtm.c (struct posixtm_test.t_expected):
39523         Now of type int_least64_t, not int64_t, both because that's
39524         what INT64_C returns and because int_least64_t works even
39525         on 72-bit hosts.
39526         (T): Use INT64_C on constants outside the traditional int range,
39527         to work around compiler bug noted by Simon.
39529         mktime: fix integer overflow in 'configure'-time test
39530         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
39531         after integer overflow.  Problem reported by Rich Felker in
39532         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
39533         Also, don't look for further instances of a bug if we've already
39534         found one instance; this helps 'configure' run faster.
39536 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
39538         tmpfile, clean-temp: Fix invocation of GetVersionEx.
39539         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
39540         GetVersionEx correctly.
39541         * lib/clean-temp.c (supports_delete_on_close): Likewise.
39543 2012-06-20  Bruno Haible  <bruno@clisp.org>
39545         fdopen: Allow implementations that don't reject invalid fd arguments.
39546         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
39547         succeeds.
39548         Reported by Rich Felker <dalias@aerifal.cx>.
39550 2012-06-20  Simon Josefsson  <simon@josefsson.org>
39552         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
39553         bring in LIBINTL.
39555 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39557         init.sh: do not rely on autoupated PWD
39558         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
39559         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
39560         Although Nelson's bug was not necessarily fixed by this patch,
39561         it seems wise to make the change for safety.
39562         * tests/init.sh (path_prepend_): Do not rely on PWD updating
39563         automagically after 'cd'; this is not reliable on older shells.
39564         (setup_): Fail if we cannot cd to temporary directory.
39566 2012-06-19  Bruno Haible  <bruno@clisp.org>
39568         stat, fstat: Avoid warnings on mingw64.
39569         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
39570         redefining.
39571         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
39572         Reported by Daniel P. Berrange <berrange@redhat.com>.
39574 2012-06-19  Bruno Haible  <bruno@clisp.org>
39576         stdioext: Add support for musl libc.
39578         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
39579         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
39581         * m4/fseterr.m4: New file.
39582         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
39583         function exists.
39584         * modules/fseterr (Files): Add m4/fseterr.m4.
39585         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
39586         __fseterr does not exist.
39587         (Makefile.am): Remove fseterr.c from lib_SOURCES.
39589         * lib/freadable.h: Update comment.
39591         * lib/fwritable.h: Update comment.
39593         * lib/freading.h: Update comment.
39595         * lib/fwriting.h: Update comment.
39597         * m4/freadahead.m4: New file.
39598         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
39599         that function exists.
39600         * modules/freadahead (Files): Add m4/freadahead.m4.
39601         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
39602         __freadahead does not exist.
39603         (Makefile.am): Remove freadahead.c from lib_SOURCES.
39605         * m4/freadptr.m4: New file.
39606         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
39607         function exists.
39608         * modules/freadptr (Files): Add m4/freadptr.m4.
39609         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
39610         __freadptr does not exist.
39611         (Makefile.am): Remove freadptr.c from lib_SOURCES.
39613         * m4/freadseek.m4: New file.
39614         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
39615         exists.
39616         * modules/freadseek (Files): Add m4/freadseek.m4.
39617         (configure.ac): Invoke gl_FUNC_FREADSEEK.
39619         * lib/fpurge.c (fpurge): Update comment.
39621         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
39623 2012-06-19  Bruno Haible  <bruno@clisp.org>
39625         *printf-posix: Put more info into config.log.
39626         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
39627         exit code into config.log.
39629 2012-06-19  Bruno Haible  <bruno@clisp.org>
39631         getopt-gnu: Fix exit code overflow in autoconf test.
39632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
39633         to keep them below < 128.
39635 2012-06-17  Jim Meyering  <meyering@redhat.com>
39637         maint.mk: fix typo in code to derive GPG key at release time
39638         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
39640 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
39642         regex: avoid warning when pointers are not long
39643         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
39644         and uintptr_t, not long, for portability to hosts where pointers and
39645         long have different sizes.  Issue noted by Daniel P. Berrange in
39646         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
39647         and fix suggested by Bruno Haible in
39648         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
39650 2012-06-17  Bruno Haible  <bruno@clisp.org>
39652         dummy: Relicense into the public domain.
39653         * modules/dummy (License): Set to "public domain".
39654         Suggested by Reuben Thomas.
39656 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39658         announce-gen: VPATH issues
39659         * build-aux/announce-gen (--srcdir): New option, used to trim the
39660         $srcdir part of the path from $builddir to NEWS.
39661         * top/maint.mk (announcement): Adjust.
39663 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39665         gnu-web-doc-update: VPATH builds
39666         * build-aux/gnu-web-doc-update (--builddir): New option.
39667         Revamp the handling of options.
39668         Prefer $(...) to `...`.
39669         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
39670         the template, and it is GNU mktemp specific.
39671         Prefer set -e to long series of &&.
39672         Restore the initial git branch, not "master".
39673         Properly initialize submodules (don't rely only on bootstrap).
39674         Do not reconfigure blindly, use config.status.
39675         * top/README-release: Update instructions for gnu-web-doc-update.
39677 2012-06-11  Jim Meyering  <meyering@redhat.com>
39679         maint.mk: revert most of the previous change re "all these"
39680         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
39681         For rationale, see the discussion at
39682         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
39684 2012-06-10  Karl Berry  <karl@gnu.org>
39686         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
39688         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
39690 2012-06-10  Bruce Korb  <bkorb@gnu.org>
39692         parse-duration: Relicense under LGPLv2+.
39693         * modules/parse-duration (License): Change to LGPLv2+.
39695 2012-06-10  Jim Meyering  <meyering@redhat.com>
39697         maint.mk: prohibit common grammar error: "all these"
39698         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
39699         the list of prohibited word sequences.  It should be "all of these".
39700         * lib/tempname.c (__gen_tempname): Fix one of them.
39702 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39704         do-release-commit-and-tag: support VPATH builds
39705         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
39706         (noteworthy): Defined earlier to factor its value.
39707         (noteworthy_stub): New.
39708         Use it to factor.
39709         (help_version): Split into...
39710         (help, version): these.
39711         Adjust the option processing part.
39712         Support "--option=value" in addition to "--option value".
39713         (builddir): New.
39714         (--builddir): New option.
39715         * top/README-release: Document this.
39716         Reword slightly so that the reader cannot understand that he
39717         has to do these steps before calling do-release-commit-and-tag.
39719 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39721         readme-release: also require announce-gen and maintainer-makefile
39722         * modules/readme-release (Depends-on): here.
39723         * modules/announce-gen, modules/do-release-commit-and-tag,
39724         modules/gnu-web-doc-update, modules/maintainer-makefile
39725         (Description): Point to readme-release.
39727 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39729         maint.mk: fix VPATH issues.
39730         * top/maint.mk (news-check): GNU Make understand $< very well.
39731         (release-prep): NEWS is in $(srcdir).
39733 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
39735         readme-release: require the promoted modules.
39736         * modules/readme-release (Depends-on): Add
39737         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
39738         in this text.
39740 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39741             Bruno Haible  <bruno@clisp.org>
39743         error, strerror-override: Support mingw64 from Fedora 17.
39744         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
39745         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
39746         EINPROGRESS.
39747         * lib/strerror-override.h (strerror_override): Test it.
39748         * lib/strerror-override.c (strerror_override): Likewise.
39749         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
39751 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39752             Bruno Haible  <bruno@clisp.org>
39754         error, strerror-override: Support mingw64 from Fedora 17.
39755         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
39756         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
39757         * lib/strerror-override.h (strerror_override): Test it.
39758         * lib/strerror-override.c (strerror_override): Likewise.
39760 2012-06-03  Bruno Haible  <bruno@clisp.org>
39762         error, strerror-override: Support new errno values from POSIX:2008.
39763         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
39764         ENOTRECOVERABLE.
39765         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
39766         platforms.
39767         * lib/strerror-override.c (strerror_override): Conditionalize the
39768         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
39769         * lib/strerror-override.h (strerror_override): Declare also if
39770         GNULIB_defined_EOWNERDEAD is defined.
39771         * tests/test-errno.c (e130, e131): New variables.
39772         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
39773         ENOTRECOVERABLE.
39774         Reported by Paolo Bonzini.
39776 2012-05-31  Jim Meyering  <meyering@redhat.com>
39778         savewd: add missing dependency on sys_wait module
39779         * modules/savewd (Depends-on): Add sys_wait, needed at least
39780         for MSVC.  Report and suggested change by Michael Goffioul.
39782 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39784         system-quote-tests: port to CentOS 5
39785         Problem reported by Tom G. Christensen in
39786         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
39787         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
39789 2012-05-29  Jim Meyering  <meyering@redhat.com>
39791         maint: fix typos in comments and ChangeLog
39792         Culprits identified and fixed mostly automatically using these commands:
39793         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
39794         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
39795         using http://github.com/lyda/misspell-check
39796         * ChangeLog: Fix typos.
39797         * doc/solaris-versions: Likewise.
39798         * lib/regexec.c (re_search_stub): Likewise.
39799         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39801 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39803         manywarnings: remove duplicate -Wmultichar entry
39804         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
39805         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
39806         so keep the entry marked as documented.
39808 2012-05-27  Karl Berry  <karl@gnu.org>
39810         * config/srclist.txt (mktime.c): remove last libc sync,
39811         perhaps just temporarily.
39813 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39815         regex: don't assume uint64_t or uint32_t
39816         * lib/regcomp.c (init_word_char): Don't assume that the types
39817         uint64_t and uint32_t exist.  The C standard doesn't guarantee
39818         them, and on some 32-bit compilers there is no uint64_t.
39819         Problem reported by Gianluigi Tiesi in
39820         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
39822 2012-05-25  Jim Meyering  <meyering@redhat.com>
39824         maint.mk: add strncpy-prohibiting syntax-check rule
39825         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
39827 2012-05-24  Jim Meyering  <meyering@redhat.com>
39829         maint.mk: compute $(gpg_key_ID) more portably
39830         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
39831         That use of sed is not portable to some fringe systems.
39832         Reported by Paul Eggert in
39833         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
39835 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39837         mktime: sync from glibc
39838         * config/srclist.txt: Uncomment mktime.c.
39839         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
39840         First, indent with tabs, since glibc uses tabs and doesn't want to
39841         change and we'd rather be identical to glibc.  Also, two small
39842         coding changes:
39843         (isdst_differ): Use &&, not &, as && is the usual style.
39844         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
39845         for clarity.
39847 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39849         announce-gen: du -h is more portable than du --human
39850         * build-aux/announce-gen (sizes): Invoke du with -h instead
39851         of --human.  Accept leading white space in its output.
39853 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39855         announce-gen: Improve diagnostics.
39856         * build-aux/announce-gen: When parsing command line options,
39857         prefer "announce-gen: option --release-type requires an argument"
39858         to "Option release-type requires an argument".
39860 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39862         maint.mk: gpg_key_ID: use sed more portably
39863         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
39864         the closing brace.
39865         (refresh-po): Fuse two sed invocations into one.
39867 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
39869         gitlog-to-changelog: support the log message format used in Bison.
39870         * build-aux/gitlog-to-changelog: Support --strip-tab and
39871         --strip-cherry-picked.
39873 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39875         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
39876         the rest of the current time slice to another thread in the current
39877         process. So if the thread that feeds the file decscriptor we're
39878         polling is not in the current process, we get busy-waiting.
39879         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
39880         Patch from Theodore Leblond.
39881         * lib/select.c: Split polling out of the loop that sets the output
39882         fd_sets.  Check for zero result and loop if the wait timeout is
39883         infinite.
39885 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39887         select: Fix build error on IRIX 6.5.
39888         * lib/select.c: Include stddef.h for NULL.
39890 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39892         gc: fix libgcrypt detection on older machines.
39893         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
39894         copyright years because the file has been distributed every year
39895         since it was created.
39897 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39899         crypto: fix bug in large buffer handling
39900         Problem reported by Serge Belyshev for glibc in
39901         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
39902         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
39903         * lib/md4.c (md4_process_block):
39904         * lib/md5.c (md5_process_block):
39905         * lib/sha1.c (sha1_process_block):
39906         * lib/sha256.c (sha256_process_block):
39907         Don't assume the buffer length is less than 2**32.
39908         * lib/sha512.c (sha512_process_block): Likewise.
39909         Here, the bug is present only in the rare case where the host does
39910         not support uint64_t or where size_t is wider than 64 bits.
39911         Use u64size to work around the problems.
39912         * lib/u64.h (u64size): New macro.
39914 2012-05-15  Pádraig Brady  <P@draigBrady.com>
39916         fsusage: fix block size returned on older Linux 2.6
39918         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
39919         which is available since Linux 2.6.
39920         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
39921         when the member is available so it can be used as a fallback.
39922         * doc/posix-functions/statvfs.texi: Mention the hang issue
39923         on Linux < 2.6.36.
39925 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39927         bootstrap: suppress stderr chatter
39928         * build-aux/bootstrap (insert_sorted_if_absent, main program):
39929         Omit unnecessary chatter to stderr.  The main program chatter
39930         was there only inadvertantly.
39932         bootstrap: .gitignore files created by autopoint, libtool
39933         I ran into this problem when bootstrapping the latest diffutils.
39934         After './bootstrap', 'git status' reported lots of untracked files
39935         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
39936         autopoint and do not need to be version-controlled.
39937         * build-aux/bootstrap: Put into .gitignore the files that
39938         autopoint and libtool create, by keeping track of files that exist
39939         after but not before these programs are run.
39940         (version_controlled_file): Move up.  2nd arg is now full file
39941         name, not base name; this is more convenient.  Put CVS at the end,
39942         as it's now somewhat deprecated.
39944 2012-05-14  Jim Meyering  <meyering@redhat.com>
39946         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
39947         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
39948         definition.  Reported by Bruno Haible.
39950 2012-05-13  Bruno Haible  <bruno@clisp.org>
39951             Paul Eggert  <eggert@cs.ucla.edu>
39953         binary-io: Define set_binary_mode function.
39954         * lib/binary-io.h (set_binary_mode): New function.
39955         (SET_BINARY): Define in terms of set_binary_mode.
39956         * modules/binary-io (configure.ac): Require AC_C_INLINE.
39957         * tests/test-binary-io.c (main): Accept an argument, and test either
39958         set_binary_mode or SET_BINARY depending on the argument.
39959         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
39960         argument. Clean up also t-bin-out0.tmp.
39962 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
39964         bootstrap: take advantage of POSIX shell features
39966         The 'bootstrap' script offered by Gnulib script already uses POSIX
39967         shell features (like $((...)) arithmetic expansions) that are not
39968         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
39969         means that bootstrap must already be run using a proper POSIX shell,
39970         which will thus provide more features, like ${var#pattern} parameter
39971         expansion or inversion of a command exit status with '!'.  We can
39972         thus use these features to improve the clarity and the performances
39973         of the bootstrap script.
39975         Suggested by Eric Blake.
39977         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
39978         of sed/expr plus command substitutions, to save some forks.  While
39979         we are at it, prefer the POSIX $(...) form of command substitution,
39980         rather than the legacy form `...` (since the former is visually
39981         clearer and interacts better with quoting), and prefer the idiom:
39982           "if ! CMD; then ACTION ..."
39983         over the idiom:
39984           "if CMD; then :; else ACTION ..."
39985         which was required by legacy Bourne shells not supporting '!'.
39987 2012-05-12  Bruno Haible  <bruno@clisp.org>
39989         system-quote: Add more comments.
39990         * lib/system-quote.h: Add more comments about wilcards and limitations.
39991         Suggested by Eli Zaretskii <eliz@gnu.org>.
39993         sh-quote, system-quote: Add comments about wildcards.
39994         * lib/sh-quote.h: Clarify what happens with wildcard characters.
39995         * lib/system-quote.h: Likewise.
39996         Reported by Eli Zaretskii <eliz@gnu.org>.
39998 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
40000         fsusage: check for GNU/Linux statvfs problem dynamically
40001         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
40002         Define STAT_STATFS2_BSIZE too, since in this case the code now
40003         checks dynamically whether statvfs is reliable, falling back on
40004         Linux-style statfs otherwise.
40005         (statvfs_works): New function, for dynamically testing statvfs.
40006         (get_fs_usage) [STAT_STATVFS]: Use it.
40007         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
40008         statvfs on GNU/Linux hosts, since it's now done dynamically.
40010 2012-05-10  Bruno Haible  <bruno@clisp.org>
40012         system-quote, execute, spawn-pipe: Escape '?' on Windows.
40013         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
40014         '?' character.
40015         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
40016         * tests/test-system-quote-main.c (check_all): Check also strings like
40017         "??????????".
40018         Reported by Eli Zaretskii <eliz@gnu.org>.
40020 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
40022         _Noreturn: port config.h to gcc -Wundef
40023         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
40024         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
40025         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
40027 2012-05-10  Bruno Haible  <bruno@clisp.org>
40029         system-quote: Refactor.
40030         * lib/system-quote.h (system_quote_copy): Fix comment.
40031         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
40032         New functions, extracted from system_quote_copy.
40033         (system_quote_length, system_quote_copy): Use these functions.
40034         Reported by Paul Eggert.
40036 2012-05-08  Bruno Haible  <bruno@clisp.org>
40038         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
40039         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
40041 2012-05-08  Bruno Haible  <bruno@clisp.org>
40043         Tests for module 'system-quote'.
40044         * modules/system-quote-tests: New file.
40045         * tests/test-system-quote.sh: New file.
40046         * tests/test-system-quote-main.c: New file.
40047         * tests/test-system-quote-child.c: New file.
40049         New module 'system-quote'.
40050         * lib/system-quote.h: New file.
40051         * lib/system-quote.c: New file.
40052         * modules/system-quote: New file.
40054 2012-05-08  Bruno Haible  <bruno@clisp.org>
40056         sh-quote: Make C++ safe and allow multiple inclusion.
40057         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
40058         declarations in extern "C".
40060 2012-05-08  Bruno Haible  <bruno@clisp.org>
40062         sh-quote tests: Make tests stricter.
40063         * tests/test-sh-quote.c (check_one): Check the return value of
40064         shell_quote_copy.
40065         (main): Check a string with a CR character. Check a string that
40066         contains UCHAR_MAX.
40068 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
40070         warnings.m4: provide a means to specify the program to compile.
40071         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
40072         (gl_WARN_ADD): here.
40073         Use gl_AS_VAR_APPEND.
40074         Support an argument to specify the program to compile.
40075         (gl_WARN_ADD): Accept an argument to specify the program to compile.
40076         AC_SUBST the WARN_CFLAGS when they are used.
40077         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
40078         leave this to gl_WARN_ADD.
40080 2012-05-08  Eric Blake  <eblake@redhat.com>
40082         doc: recommendations on gettext version
40083         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
40084         choice between versions.
40085         * DEPENDENCIES (gettext): Cover both approaches.
40087 2012-05-08  Jim Meyering  <meyering@redhat.com>
40089         init.sh: explain why EXEEXT support uses aliases rather than functions
40090         * tests/init.sh: Add a comment.
40092         init.sh: don't let bash aliases interfere with tests
40093         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
40094         is bash.  This avoids problems for those who alias standard commands to
40095         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
40096         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
40098 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
40100         stdint: be more consistent with glibc, SunOS libc
40101         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
40102         (gl_int_fast16_t, gl_uint_fast16_t)
40103         (gl_int_fast32_t, gl_uint_fast32_t)
40104         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
40105         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
40106         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
40107         Be consistent with glibc by default, and with SunOS 5.10 and later
40108         if __sun is defined.  This lessens the likelihood of clashes if
40109         code compiled for older hosts is combined with code compiled for
40110         newer ones.  Problem reported by Niels Möller in
40111         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
40113 2012-05-07  Eric Blake  <eblake@redhat.com>
40115         isatty: relax license to LGPLv2+
40116         * modules/isatty (License): Relax license.
40118 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40120         stat-size: comment fix
40121         * lib/stat-size.h: Remove obsolete comment about indenting.
40123 2012-05-06  Bruno Haible  <bruno@clisp.org>
40125         Tests for module 'sh-quote'.
40126         * modules/sh-quote-tests: New file.
40127         * tests/test-sh-quote.c: New file.
40129 2012-05-06  Bruno Haible  <bruno@clisp.org>
40131         sh-quote: Improve shell_quote_argv's signature.
40132         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
40133         * lib/sh-quote.c (shell_quote_argv): Likewise.
40135 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40137         stdint: document issues with int_fast8_t etc.
40138         * doc/posix-headers/stdint.texi (stdint.h): Say that other
40139         stdint.h substitutes may define these types differently.  See
40140         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
40142 2012-05-05  Bruno Haible  <bruno@clisp.org>
40144         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
40145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
40146         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
40147         or 'guessing no (mishandles large arguments)'.
40149 2012-05-05  Bruno Haible  <bruno@clisp.org>
40151         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
40152         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
40153         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
40154         set gl_cv_func_link_follows_symlink to "guessing no".
40156 2012-05-05  Bruno Haible  <bruno@clisp.org>
40158         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
40159         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
40160         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
40161         "guessing no".
40162         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
40164 2012-05-05  Bruno Haible  <bruno@clisp.org>
40166         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
40167         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
40168         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
40169         set gl_cv_struct_dirent_d_ino to "guessing yes".
40171 2012-05-05  Bruno Haible  <bruno@clisp.org>
40173         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
40174         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
40175         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
40176         "guessing yes".
40178 2012-05-05  Bruno Haible  <bruno@clisp.org>
40180         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
40181         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
40182         compiling to a glibc system, set gl_cv_func_signbit and
40183         gl_cv_func_signbit_gcc to "guessing yes".
40185 2012-05-05  Bruno Haible  <bruno@clisp.org>
40187         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
40188         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
40189         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
40190         to "guessing yes".
40191         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
40192         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
40194 2012-05-05  Bruno Haible  <bruno@clisp.org>
40196         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
40197         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
40198         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
40199         gl_cv_func_realpath_works to "guessing yes".
40201 2012-05-05  Bruno Haible  <bruno@clisp.org>
40203         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
40204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
40205         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
40207 2012-05-04  Bruno Haible  <bruno@clisp.org>
40209         Tweak last commit.
40210         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
40211         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40213 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
40215         unistd_h: make it easier to avoid sys_types_h
40216         This is useful for Emacs, which has its own method of porting to
40217         Windows, and which therefore does not need the sys_types_h module.
40218         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
40219         code moved here from gl_SYS_TYPES_H.
40220         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
40221         using the code directly.
40222         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
40223         gl_SYS_TYPES_H.
40224         * modules/sys_types (Files):
40225         * modules/unistd (Files): Add m4/off_t.m4.
40227 2012-05-03  Bruno Haible  <bruno@clisp.org>
40229         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
40230         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
40231         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
40232         "guessing yes" or "guessing no".
40233         (gl_FUNC_LSTAT): Update.
40234         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
40235         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
40236         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
40238 2012-05-03  Bruno Haible  <bruno@clisp.org>
40240         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
40241         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
40242         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
40243         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
40244         cross-compiling, choose the first alternative on glibc systems.
40245         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
40247 2012-05-03  Bruno Haible  <bruno@clisp.org>
40249         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
40250         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
40251         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
40253 2012-05-03  Bruno Haible  <bruno@clisp.org>
40255         chown: Avoid "guessing no" when cross-compiling to glibc systems.
40256         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
40258 2012-05-03  Bruno Haible  <bruno@clisp.org>
40260         Avoid "guessing no" guesses when cross-compiling to glibc systems.
40261         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
40262         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
40263         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
40264         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
40265         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
40266         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
40267         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
40268         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
40269         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
40270         compiling to glibc systems, set gl_cv_func_chown_slash_works,
40271         gl_cv_func_chown_ctime_works to "guessing yes".
40272         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
40273         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
40274         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
40275         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
40276         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
40277         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
40278         compiling to glibc systems, set gl_cv_func_open_directory_works to
40279         "guessing yes".
40280         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
40281         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
40282         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
40283         "guessing yes".
40284         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
40285         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
40286         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
40287         compiling to glibc systems, set gl_cv_func_floorf_ieee to
40288         "guessing yes".
40289         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
40290         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
40291         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
40292         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
40293         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
40294         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
40295         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
40296         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
40297         "guessing yes".
40298         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
40299         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
40300         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
40301         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
40302         "guessing yes".
40303         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
40304         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
40305         "guessing yes".
40306         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
40307         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
40308         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
40309         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
40310         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
40311         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
40312         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
40313         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
40314         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
40315         compiling to glibc systems, set gl_cv_func_log10f_ieee to
40316         "guessing yes".
40317         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
40318         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
40319         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
40320         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
40321         "guessing yes".
40322         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
40323         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
40324         "guessing yes".
40325         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
40326         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
40327         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
40328         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
40329         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
40330         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
40331         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
40332         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
40333         compiling to glibc systems, set gl_cv_func_mkfifo_works to
40334         "guessing yes".
40335         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
40336         compiling to glibc systems, set gl_cv_func_mknod_works to
40337         "guessing yes".
40338         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
40339         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
40340         "guessing yes".
40341         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
40342         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
40343         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
40344         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
40345         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
40346         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
40347         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
40348         compiling to glibc systems, set gl_cv_func_svid_putenv to
40349         "guessing yes".
40350         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
40351         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
40352         "guessing yes".
40353         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
40354         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
40355         "guessing yes".
40356         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
40357         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
40358         to "guessing yes".
40359         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
40360         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
40361         to "guessing yes".
40362         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
40363         compiling to glibc systems, set gl_cv_func_rmdir_works to
40364         "guessing yes".
40365         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
40366         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
40367         gl_cv_func_unlink_parent_fails to "guessing yes".
40368         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
40369         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
40370         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
40371         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
40372         gl_cv_func_rename_dest_works to "guessing yes".
40373         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
40374         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
40375         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
40376         compiling to glibc systems, set gl_cv_func_roundf_ieee to
40377         "guessing yes".
40378         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
40379         compiling to glibc systems, set gl_cv_func_roundl_ieee to
40380         "guessing yes".
40381         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
40382         compiling to glibc systems, set gl_cv_func_setenv_works to
40383         "guessing yes".
40384         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
40385         compiling to glibc systems, set gl_cv_func_unsetenv_works to
40386         "guessing yes".
40387         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
40388         compiling to glibc systems, set gl_cv_func_sleep_works to
40389         "guessing yes".
40390         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
40391         compiling to glibc systems, set gl_cv_func_stat_file_slash to
40392         "guessing yes".
40393         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
40394         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
40395         "guessing yes".
40396         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
40397         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
40398         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
40399         compiling to glibc systems, set gl_cv_func_truncf_ieee to
40400         "guessing yes".
40401         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
40402         compiling to glibc systems, set gl_cv_func_truncl_ieee to
40403         "guessing yes".
40404         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
40405         compiling to glibc systems, set gl_cv_func_usleep_works to
40406         "guessing yes".
40407         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
40408         compiling to glibc systems, set gl_cv_func_futimesat_works to
40409         "guessing yes".
40411 2012-05-03  Bruno Haible  <bruno@clisp.org>
40413         Say "guessing yes" or "guessing no" when cross-compiling.
40414         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
40415         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
40416         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
40417         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
40418         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
40419         am_cv_func_working_getline to "guessing yes" or "guessing no".
40420         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
40421         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
40422         (gl_FUNC_MEMMEM): When cross-compiling, set
40423         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
40424         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
40425         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
40426         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
40427         set gl_cv_func_strcasestr_works_always to "guessing yes" or
40428         "guessing no".
40429         (gl_FUNC_STRCASESTR): When cross-compiling, set
40430         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
40431         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
40432         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
40433         (gl_FUNC_STRSTR): When cross-compiling, set
40434         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
40435         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
40436         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
40437         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
40438         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
40440 2012-05-01  Bruno Haible  <bruno@clisp.org>
40442         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
40443         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
40444         * build-aux/reloc-ldflags: Likewise.
40445         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
40447 2012-05-01  Bruno Haible  <bruno@clisp.org>
40449         gnulib-tool: Remove transitional code.
40450         * gnulib-tool: Don't warn about --import with 0 arguments any more.
40451         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
40453 2012-05-01  Bruno Haible  <bruno@clisp.org>
40455         getcwd: Fix misindentation.
40456         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
40458 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
40460         exclude: process exclude and include directives in order
40461         This restores the pre-2009 behavior, and is part of a fix of a
40462         grep bug reported by Quentin Arce in
40463         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
40464         * lib/exclude.c (struct exclude): Remove 'tail' member.
40465         (new_exclude_segment): Prepend the new segment instead of appending.
40466         Return void, since that's now more convenient.
40467         (file_pattern_matches): Renamed from excluded_file_pattern_p.
40468         (file_name_matches): Renamed from excluded_file_name_p.
40469         (file_pattern_matches, file_name_matches):
40470         Return true if the pattern matches, not if it excludes.
40471         All callers changed.
40472         (excluded_file_name): Process the list in reverse order;
40473         since the list is now reversed this restores the pre-2009 behavior.
40474         (add_exclude): Adjust to new reversed-order list.  Use local var
40475         rather than macro, for clarity.
40476         * tests/test-exclude7.sh: Adjust to corrected behavior.
40478         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
40479         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
40480         it's not possible here.  Handle the case of \ at end of pattern
40481         without dumping core.
40482         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
40484         _Noreturn: future-proof non-GNU and non-MSVC compilers
40485         * build-aux/snippet/_Noreturn.h (_Noreturn):
40486         * m4/gnulib-common.m4 (gl_COMMON_BODY):
40487         Do not define _Noreturn if __STDC_VERSION__ indicates this is
40488         C11 or later.  This is more likely to work with random future C
40489         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
40490         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
40492         exclude: handle wildcards with FNM_EXTMATCH
40493         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
40494         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
40495         comment that "has wildcards" really means "has or may have
40496         wildcards".  Simplify by avoiding the need to call strcspn.
40498 2012-04-29  Bruno Haible  <bruno@clisp.org>
40500         gnulib-tool: Fix list of authors.
40501         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
40503 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
40505         bootstrap: support Automake-NG in $buildreq
40506         * bootstrap (check_versions): Handle automake and aclocal from
40507         Automake-NG specially.  They can be specified as respectively
40508         the "automake-ng" and "aclocal-ng" requirements.
40510 2012-04-25  Eric Blake  <eblake@redhat.com>
40512         bootstrap: only force latest Makefile.in.in for gettext module
40513         * build-aux/bootstrap (with_gettext): Only install latest
40514         Makefile.in.in for projects requesting bleeding edge gettext.
40516 2012-04-22  Bruno Haible  <bruno@clisp.org>
40518         doc: Mention reason for replacement on glibc/Linux systems.
40519         * doc/posix-functions/dprintf.texi: Mention the problem with special
40520         'long double' values.
40521         * doc/posix-functions/fprintf.texi: Likewise.
40522         * doc/posix-functions/printf.texi: Likewise.
40523         * doc/posix-functions/snprintf.texi: Likewise.
40524         * doc/posix-functions/sprintf.texi: Likewise.
40525         * doc/posix-functions/vdprintf.texi: Likewise.
40526         * doc/posix-functions/vfprintf.texi: Likewise.
40527         * doc/posix-functions/vprintf.texi: Likewise.
40528         * doc/posix-functions/vsnprintf.texi: Likewise.
40529         * doc/posix-functions/vsprintf.texi: Likewise.
40530         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
40531         platforms with F_DUPFD_CLOEXEC problems.
40532         * doc/posix-functions/glob.texi: Mention which platforms are affected
40533         by the problem with symbolic links.
40534         * doc/posix-functions/linkat.texi: Mention the problem with
40535         AT_SYMLINK_FOLLOW on Linux.
40537 2012-04-22  Bruno Haible  <bruno@clisp.org>
40539         pwrite: Don't replace on all platforms.
40540         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
40542 2012-04-22  Bruno Haible  <bruno@clisp.org>
40544         rint* tests: Avoid gcc warnings.
40545         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
40546         * tests/test-rintf.c (INFINITY, NAN): Likewise.
40547         * tests/test-rintl.c (INFINITY, NAN): Likewise.
40549 2012-04-21  Bruno Haible  <bruno@clisp.org>
40551         users.txt: Update.
40552         * users.txt: Add freedink, wdiff. Update URLs for projects that have
40553         switched from CVS to git, bzr, or svn.
40555 2012-04-21  Bruno Haible  <bruno@clisp.org>
40557         Large File Support for native Windows platforms.
40559         * m4/largefile.m4 (gl_LARGEFILE): New macro.
40560         * modules/largefile (configure.ac): Require gl_LARGEFILE.
40562         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
40563         type.
40564         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
40565         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
40566         * doc/posix-headers/sys_types.texi: Mention the effect of the
40567         'largefile' module.
40569         * lib/fcntl.in.h: Add comments about off_t.
40570         * modules/fcntl-h (Depends-on): Add sys_types.
40572         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
40573         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
40574         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
40575         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
40576         * modules/unistd (Depends-on): Add sys_types.
40577         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
40579         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
40580         instead of lseek.
40581         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
40582         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
40583         * modules/lseek (Depends-on): Add sys_types.
40585         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
40586         msvc-nothrow.h.
40587         (SetFileSize): New function.
40588         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
40589         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
40590         if Large File Support is requested.
40591         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
40592         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
40594         * lib/stdio.in.h: Add comments about off_t.
40595         * modules/stdio (Depends-on): Add sys_types.
40597         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
40598         instead of ftello.
40599         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
40600         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
40601         (gl_PREREQ_FTELLO): New macro.
40602         * modules/ftello (Depends-on): Add sys_types.
40603         (configure.ac): Incoke gl_PREREQ_FTELLO.
40605         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
40606         instead of fseeko.
40607         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
40608         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
40609         (gl_PREREQ_FSEEKO): New macro.
40610         * modules/fseeko (Depends-on): Add sys_types.
40611         (configure.ac): Invoke gl_PREREQ_FSEEKO.
40613         * lib/sys_stat.in.h: Add comments about off_t.
40614         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
40615         64-bit integer for st_size in 'struct stat'.
40616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
40617         Define _GL_WINDOWS_64_BIT_ST_SIZE.
40618         * modules/sys_stat (Depends-on): Add sys_types.
40619         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
40621         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
40622         instead of stat or _stat.
40624         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
40625         'struct _stati64' instead of fstat and 'struct stat'.
40626         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
40627         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
40629         Reported by Ray Satiro <raysatiro@yahoo.com>.
40631 2012-04-19  Eric Blake  <eblake@redhat.com>
40633         bootstrap: accommodate older libtool
40634         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
40635         Reported by Daniel P. Berrange.
40637 2012-04-19  Jim Meyering  <meyering@redhat.com>
40639         announce-gen: avoid failure due to lack of Digest::SHA1
40640         Even with the preferred Digest::SHA available, this script
40641         would fail when the backup module, Digest::SHA1, was not installed.
40642         * build-aux/announce-gen: Quote the conditional use of "use".
40643         Reported by Reuben Thomas in:
40644         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
40646         bootstrap: don't let a user's CDPATH setting affect this script
40647         When CDPATH is set, cd will sometimes generate output.
40648         When "cd" is run in a subshell whose output matters, that
40649         surprising-to-some output can cause malfunction.
40650         Unsetting CDPATH turns off this shell "feature."
40651         * build-aux/bootstrap (CDPATH): Unset.
40652         Reported by Reuben Thomas in:
40653         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
40654         and inspired by his patch here:
40655         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
40657 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
40658         and Jim Meyering  <meyering@redhat.com>
40660         maint.mk: catch "see @xref{}" and similar
40661         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
40662         prohibit "See also @xref{", "Also see @pxref{", and similar.
40664 2012-04-16  Jim Meyering  <meyering@redhat.com>
40666         bootstrap: really use gnulib's po/Makefile.in.in
40667         * build-aux/bootstrap: Correct the source file name in previous change.
40668         Reported by Akim Demaille.
40670         configmake: correct minor inconsistency in Makefile rule
40671         * modules/configmake (Makefile.am): All other rules like this one
40672         run the final "mv -f ..." in the same backslash-continued command
40673         as the one that does everything else.  This one put the mv -f ...
40674         command on a separate, non-backslash-continued line.
40675         Make it like the others.
40677         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
40678         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
40679         the one from gettext.  Reported by Akim Demaille.
40681 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
40683         Fix recursion of install-* into po directories.
40684         Bison's install-pdf bug reported by Hans Aberg at
40685         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
40686         * build-aux/po/Makefile.in.in (install-dvi, install-html)
40687         (install-info, install-pdf, install-ps): New targets.
40689 2012-04-16  Jim Meyering  <meyering@redhat.com>
40691         maint: avoid spurious "make sc_maint" failure
40692         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
40693         exempt all *.class file names, for lib/javaversion.class.
40695 2012-04-15  Bruno Haible  <bruno@clisp.org>
40697         lseek: Make configure test independent of environment.
40698         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
40699         Windows, we know that lseek() on pipes is broken; skip the runtime
40700         test.
40702 2012-04-14  Bruno Haible  <bruno@clisp.org>
40704         stat: Bypass buggy override in mingw64.
40705         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
40706         * lib/stat.c (stat) [mingw64]: Define to _stat.
40707         * doc/posix-functions/stat.texi: Mention mingw64 bug.
40709 2012-04-14  Bruno Haible  <bruno@clisp.org>
40711         pathmax: Fix compilation error on MSVC 9.
40712         * modules/pathmax (Depends-on): Add unistd.
40714 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40716         README: document pointer comparison assumption
40717         * README (Portability guidelines): Document assumption about
40718         pointer comparisons, in response to a recent bug-gnulib comment by
40719         Jeffrey Kegler.
40721 2012-04-12  Bruno Haible  <bruno@clisp.org>
40723         Tests for module 'getrusage'.
40724         * modules/getrusage-tests: New file.
40725         * tests/test-getrusage.c: New file.
40727         New module 'getrusage'.
40728         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
40729         warn-on-use.h.
40730         (getrusage): New declaration.
40731         * lib/getrusage.c: New file.
40732         * m4/getrusage.m4: New file.
40733         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
40734         is declared.
40735         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
40736         HAVE_GETRUSAGE.
40737         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
40738         snippet/c++defs, snippet/warn-on-use.
40739         (Makefile.am): Update generation of sys/resource.h. Substitute
40740         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
40741         * modules/getrusage: New file.
40742         * doc/posix-functions/getrusage.texi: Mention the new module.
40744 2012-04-12  Bruno Haible  <bruno@clisp.org>
40746         Tests for module 'sys_resource'.
40747         * modules/sys_resource-tests: New file.
40748         * tests/test-sys_resource.c: New file.
40750         New module 'sys_resource'.
40751         * lib/sys_resource.in.h: New file.
40752         * m4/sys_resource_h.m4: New file.
40753         * modules/sys_resource: New file.
40754         * doc/posix-headers/sys_resource.texi: Mention the new module.
40756 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
40758         ioctl: Fix compilation error on mingw.
40759         * lib/ioctl.c: Include <windows.h>.
40760         Also reported by Ray Satiro <raysatiro@yahoo.com>.
40762 2012-04-04  Jim Meyering  <meyering@redhat.com>
40764         regex: correct #pragma guard expression
40765         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
40766         not 4.3.  Correct its cpp guard expression.
40768 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40770         regex: remove unnecessary type punning
40771         Problem reported by Vladimir Serbinenko in
40772         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
40773         * lib/regex.h (struct re_pattern_buffer): Change the type of
40774         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
40775         Fix comment to match code.
40776         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
40777         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
40778         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40779         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
40780         (set_regs):
40781         Omit no-longer-necessary casts.
40783 2012-04-03  Bruno Haible  <bruno@clisp.org>
40785         Tests for module 'ilogbl'.
40786         * modules/ilogbl-tests: New file.
40787         * tests/test-ilogbl.c: New file.
40789         New module 'ilogbl'.
40790         * lib/math.in.h (ilogbl): New declaration.
40791         * lib/ilogbl.c: New file.
40792         * m4/ilogbl.m4: New file.
40793         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
40794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
40795         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
40796         Split sed invocation, to avoid the limit of 100 substitutions of
40797         HP-UX 'sed'.
40798         * modules/ilogbl: New file.
40799         * tests/test-math-c++.cc: Check the declaration of ilogbl.
40800         * doc/posix-functions/ilogbl.texi: Mention the new module.
40802 2012-04-03  Bruno Haible  <bruno@clisp.org>
40804         Tests for module 'ilogbf'.
40805         * modules/ilogbf-tests: New file.
40806         * tests/test-ilogbf.c: New file.
40808         New module 'ilogbf'.
40809         * lib/math.in.h (ilogbf): New declaration.
40810         * lib/ilogbf.c: New file.
40811         * m4/ilogbf.m4: New file.
40812         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
40813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
40814         REPLACE_ILOGBF.
40815         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
40816         REPLACE_ILOGBF.
40817         * modules/ilogbf: New file.
40818         * tests/test-math-c++.cc: Check the declaration of ilogbf.
40819         * doc/posix-functions/ilogbf.texi: Mention the new module.
40821 2012-04-03  Bruno Haible  <bruno@clisp.org>
40823         Tests for module 'ilogb'.
40824         * modules/ilogb-tests: New file.
40825         * tests/test-ilogb.c: New file.
40826         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
40827         tests/test-logb-ieee.h.
40829         New module 'ilogb'.
40830         * lib/math.in.h (ilogb): New declaration.
40831         * lib/ilogb.c: New file.
40832         * m4/ilogb.m4: New file.
40833         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
40834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
40835         REPLACE_ILOGB.
40836         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
40837         REPLACE_ILOGB.
40838         * modules/ilogb: New file.
40839         * tests/test-math-c++.cc: Check the declaration of ilogb.
40840         * doc/posix-functions/ilogb.texi: Mention the new module.
40842 2012-04-03  Bruno Haible  <bruno@clisp.org>
40844         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
40845         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
40846         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
40847         (main): Check their values.
40848         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
40849         problem.
40851 2012-04-03  Bruno Haible  <bruno@clisp.org>
40853         Tests for module 'logbl-ieee'.
40854         * modules/logbl-ieee-tests: New file.
40855         * tests/test-logbl-ieee.c: New file.
40857         New module 'logbl-ieee'.
40858         * modules/logbl-ieee: New file.
40860         Tests for module 'logb-ieee'.
40861         * modules/logb-ieee-tests: New file.
40862         * tests/test-logb-ieee.c: New file.
40864         New module 'logb-ieee'.
40865         * modules/logb-ieee: New file.
40867         Tests for module 'logbf-ieee'.
40868         * modules/logbf-ieee-tests: New file.
40869         * tests/test-logbf-ieee.c: New file.
40870         * tests/test-logb-ieee.h: New file.
40872         New module 'logbf-ieee'.
40873         * modules/logbf-ieee: New file.
40875 2012-04-03  Bruno Haible  <bruno@clisp.org>
40877         Tests for module 'logbl'.
40878         * modules/logbl-tests: New file.
40879         * tests/test-logbl.c: New file.
40881         New module 'logbl'.
40882         * lib/math.in.h (logbl): New declaration.
40883         * lib/logbl.c: New file.
40884         * m4/logbl.m4: New file.
40885         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
40886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
40887         REPLACE_LOGBL.
40888         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
40889         REPLACE_LOGBL.
40890         * modules/logbl: New file.
40891         * tests/test-math-c++.cc: Check the declaration of logbl.
40892         * doc/posix-functions/logbl.texi: Mention the new module.
40894 2012-04-02  Bruno Haible  <bruno@clisp.org>
40896         Tests for module 'logbf'.
40897         * modules/logbf-tests: New file.
40898         * tests/test-logbf.c: New file.
40900         New module 'logbf'.
40901         * lib/math.in.h (logbf): New declaration.
40902         * lib/logbf.c: New file.
40903         * m4/logbf.m4: New file.
40904         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
40905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
40906         REPLACE_LOGBF.
40907         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
40908         REPLACE_LOGBF.
40909         * modules/logbf: New file.
40910         * tests/test-math-c++.cc: Check the declaration of logbf.
40911         * doc/posix-functions/logbf.texi: Mention the new module.
40913 2012-04-02  Bruno Haible  <bruno@clisp.org>
40915         logb tests: More tests.
40916         * tests/test-logb.h: New file, based on tests/test-logb.c and
40917         tests/test-frexp.h.
40918         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
40919         (main): Just invoke test_function.
40920         * modules/logb-tests (Files): Add tests/test-logb.h,
40921         tests/minus-zero.h, tests/randomd.c.
40922         (Makefile.am): Add randomd.c to test_logb_SOURCES.
40924         logb: Provide replacement and workarounds.
40925         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
40926         is 1.
40927         * lib/logb.c: New file.
40928         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
40929         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
40930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
40931         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
40932         * modules/logb (Files): Add lib/logb.c.
40933         (Depends-on): Add isfinite, frexp, isnand.
40934         (configure.ac): Compile the replacement code logb.c if needed.
40935         * tests/test-math-c++.cc: Check the declaration of logb.
40936         * doc/posix-functions/logb.texi: Mention the replacement and the bug
40937         with subnormal numbers.
40939 2012-04-02  Bruno Haible  <bruno@clisp.org>
40941         log10* tests: Speed up.
40942         * tests/test-log10.h (test_function): Reduce amount of random numbers
40943         to test.
40945 2012-04-01  Bruno Haible  <bruno@clisp.org>
40947         logf-ieee: Fix test whether logf works.
40948         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
40950 2012-04-01  Bruno Haible  <bruno@clisp.org>
40952         log10l: Work around log10l-ieee test failure on IRIX 6.5.
40953         * lib/log10l.c: Include <float.h>
40954         (log10l): On IRIX, normalize the +Infinity value.
40955         * modules/log10l (Depends-on): Add 'float'.
40956         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
40957         +Infinity.
40959         log10f-ieee: Work around test failure on NetBSD 5.1.
40960         * m4/log10f-ieee.m4: New file.
40961         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
40962         test whether log10f works with a negative argument. Replace it if not.
40963         * lib/log10f.c (log10f): For negative arguments, return NaN.
40964         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
40965         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
40966         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
40968         log10f-ieee: Work around test failure on Solaris 9.
40969         * modules/log10f-ieee (Depends-on): Add log10-ieee.
40970         (configure.ac): Require gl_FUNC_LOG10F.
40972         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40973         * m4/log10-ieee.m4: New file.
40974         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
40975         whether log10 works with a negative argument. Replace it if not.
40976         * lib/log10.c (log10): For negative arguments, return NaN.
40977         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
40978         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
40979         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
40981         Tests for module 'log10l-ieee'.
40982         * modules/log10l-ieee-tests: New file.
40983         * tests/test-log10l-ieee.c: New file.
40985         New module 'log10l-ieee'.
40986         * modules/log10l-ieee: New file.
40988         Tests for module 'log10-ieee'.
40989         * modules/log10-ieee-tests: New file.
40990         * tests/test-log10-ieee.c: New file.
40992         New module 'log10-ieee'.
40993         * modules/log10-ieee: New file.
40995         Tests for module 'log10f-ieee'.
40996         * modules/log10f-ieee-tests: New file.
40997         * tests/test-log10f-ieee.c: New file.
40998         * tests/test-log10-ieee.h: New file.
41000         New module 'log10f-ieee'.
41001         * modules/log10f-ieee: New file.
41003 2012-04-01  Bruno Haible  <bruno@clisp.org>
41005         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
41006         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
41007         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
41008         workaround.
41009         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
41010         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
41011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
41012         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
41013         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
41014         (Depends-on): Update conditions.
41015         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
41016         IRIX 6.5, OSF/1 5.1 problems.
41018 2012-04-01  Bruno Haible  <bruno@clisp.org>
41020         log10f: Work around OSF/1 5.1 bug.
41021         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
41022         * lib/log10f.c (log10f): If logf exists, use it and provide just the
41023         workaround.
41024         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
41025         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
41026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
41027         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
41028         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
41029         (Depends-on): Update conditions.
41030         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
41032 2012-04-01  Bruno Haible  <bruno@clisp.org>
41034         log10: Work around OSF/1 5.1 bug.
41035         * lib/math.in.h (log10): New declaration.
41036         * lib/log10.c: New file.
41037         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
41038         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
41039         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
41040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
41041         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
41042         * modules/log10 (Files): Add lib/log10.c.
41043         (Depends-on): Add math.
41044         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
41045         * tests/test-math-c++.cc: Check the declaration of log10.
41046         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
41048 2012-03-31  Bruno Haible  <bruno@clisp.org>
41050         log10l tests: More tests.
41051         * modules/log10l-tests (Files): Add tests/test-log10l.h,
41052         tests/minus-zero.h, tests/randoml.c.
41053         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
41054         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
41055         (main): Invoke test_function.
41057         log10f tests: More tests.
41058         * modules/log10f-tests (Files): Add tests/test-log10.h,
41059         tests/minus-zero.h, tests/randomf.c.
41060         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
41061         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
41062         (main): Invoke test_function.
41064         log10 tests: More tests.
41065         * tests/test-log10.h: New file.
41066         * modules/log10-tests (Files): Add tests/test-log10.h,
41067         tests/minus-zero.h, tests/randomd.c.
41068         (Makefile.am): Add randomd.c to test_log10_SOURCES.
41069         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
41070         (main): Invoke test_function.
41072 2012-03-31  Simon Josefsson  <simon@josefsson.org>
41074         fflush: Fix syntax error.
41075         * lib/fflush.c: Include unused-parameter.h, needed for
41076         _GL_UNUSED_PARAMETER.
41077         * modules/fflush (Depends-on): Add snippet/unused-parameter.
41079 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41081         regex: pacify GCC when compiling GRUB
41082         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
41083         a diagnostic.  Reported by Vladimir Serbinenko in
41084         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
41086 2012-03-29  Eric Blake  <eblake@redhat.com>
41088         stdio: don't assume gets any more
41089         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
41090         support.
41091         * modules/stdio (Makefile.am): Likewise.
41092         * lib/stdio-read.c (gets): Likewise.
41093         * tests/test-stdio-c++.cc: Likewise.
41094         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
41095         * lib/stdio.in.h (gets): Make warning occur in more places.
41096         * doc/posix-functions/gets.texi (gets): Update documentation.
41097         Reported by Christer Solskogen.
41099         maint.mk: fix syntax checks without exclusions
41100         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
41101         Reported by Daniel P. Berrange.
41103         strerror_r: avoid compiler warning
41104         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
41105         level.
41107         fflush: avoid compiler warning
41108         * lib/fflush.c (update_fpos_cache): Mark variables that are
41109         potentially unused.
41111 2012-03-25  Bruno Haible  <bruno@clisp.org>
41113         Tests for module 'localeconv'.
41114         * modules/localeconv-tests: New file.
41115         * tests/test-localeconv.c: New file.
41117         New module 'localeconv'.
41118         * lib/locale.in.h (localeconv): New declaration.
41119         * lib/localeconv.c: New file.
41120         * m4/localeconv.m4: New file.
41121         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
41122         REPLACE_LOCALECONV.
41123         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
41124         REPLACE_LOCALECONV.
41125         * modules/localeconv: New file.
41126         * modules/nl_langinfo (Depends-on): Add localeconv.
41127         * modules/human (Depends-on): Likewise.
41128         * doc/posix-functions/localeconv.texi: Mention the new module.
41130 2012-03-25  Bruno Haible  <bruno@clisp.org>
41132         locale: Provide a complete 'struct lconv'.
41133         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
41134         'struct lconv' does not contain int_p_cs_precedes.
41135         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
41136         * doc/posix-headers/locale.texi: Update.
41138         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
41139         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
41140         * doc/posix-headers/locale.texi: Update.
41142         locale: Provide a working 'struct lconv'.
41143         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
41144         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
41145         'struct lconv' does not even contain decimal_point.
41146         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
41147         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
41148         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
41149         * doc/posix-headers/locale.texi: Mention the problems with
41150         'struct lconv'.
41151         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
41153 2012-03-24  Bruno Haible  <bruno@clisp.org>
41155         Enable common subexpression optimization in GCC.
41156         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
41157         macros.
41158         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
41159         GCC attribute 'const'.
41160         (uc_locale_language): Declare with GCC attribute 'pure'.
41161         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
41162         with GCC attribute 'const'.
41163         * lib/unictype.in.h (uc_is_general_category_withtable,
41164         uc_combining_class, uc_combining_class_name,
41165         uc_combining_class_long_name, uc_bidi_class_name,
41166         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
41167         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
41168         uc_decimal_value, uc_digit_value, uc_numeric_value,
41169         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
41170         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
41171         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
41172         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
41173         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
41174         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
41175         Declare with GCC attribute 'const'.
41176         (uc_general_category_name, uc_general_category_long_name,
41177         uc_general_category_byname, uc_general_category,
41178         uc_is_general_category, uc_combining_class_byname,
41179         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
41180         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
41181         Declare with GCC attribute 'pure'.
41182         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
41183         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
41184         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
41185         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
41186         with GCC attribute 'pure'.
41187         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
41188         'const'.
41189         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
41190         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
41191         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
41192         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
41193         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
41194         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
41195         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
41196         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
41197         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
41198         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
41199         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
41200         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
41201         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
41202         GCC attribute 'pure'.
41203         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
41204         'const'.
41205         * lib/uniwidth.in.h (uc_width): Simplify declaration.
41206         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
41207         u32_strwidth): Declare with GCC attribute 'pure'.
41209         Enable common subexpression optimization in GCC.
41210         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
41211         (alphasort): Declare with GCC attribute 'pure'.
41212         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
41213         (atoll): Declare with GCC attribute 'pure'.
41214         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41215         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41216         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
41217         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
41218         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
41219         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
41220         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
41222 2012-03-24  Bruno Haible  <bruno@clisp.org>
41224         gnulib-tool: Avoid unintended error output from 'cmp'.
41225         * gnulib-tool (func_add_file, func_update_file, func_import): Use
41226         "cmp -s", not "cmp > /dev/null".
41228 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
41230         gnulib-tool: fix imprecise comments w.r.t. an automake bug
41232         It's not just Automake versions < 1.9b that creates an empty
41233         pkgdatadir at installation time if pkgdata_DATA is specified
41234         to empty; modern automake versions do this as well, at least
41235         until automake 1.11.4 (not yet released at the moment of writing,
41236         but soon to appear).  That behaviour was generally considered a
41237         feature rather than a bug, at least until this discussion:
41238         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
41240         See also automake bugs #10997 and #11030.
41242         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
41243         reference to relevant automake bug numbers.
41244         (func_emit_tests_Makefile_am): Likewise.
41246 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
41248         announce-gen: use Digest::SHA when possible
41249         * build-aux/announce-gen: Use Digest::SHA when possible, falling
41250         back to Digest::SHA1 if necessary.
41252 2012-03-20  Jim Meyering  <meyering@redhat.com>
41254         tests: avoid gcc warnings about argv vs. const initializers
41255         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
41256         warnings about discarding 'const' qualifier from pointer target type.
41257         * tests/test-posix_spawn2.c (main): Likewise.
41259 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
41261         README-release: simplify slightly
41262         * top/README-release: Run "git checkout master" only once.
41264 2012-03-15  Mark Wielaard  <mark@klomp.org>
41266         git-merge-changelog: add specific example on how to use with hg.
41267         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
41269 2012-03-18  Mark Wielaard  <mark@klomp.org>
41271         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
41273 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
41275         git-version-gen: don't let "prefix" envvar cause trouble
41276         * build-aux/git-version-gen (prefix): Initialize properly,
41277         so as not to use a value specified via the environment.
41278         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
41280 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
41282         regex: diagnose too-large repeat counts in EREs
41283         Previously, the code did not diagnose the too-large repeat count
41284         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
41285         as if it were 'b\{1000000000}', which is unexpected.
41286         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
41287         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
41288         is a reasonable one for this problem.  Another option would be to
41289         create a new REG_OVERFLOW error for repeat counts that are too large.
41290         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
41291         count is too large, so that the caller can distinguish the two cases.
41292         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
41293         "Too large" return code, and that repeat counts are one example of this.
41295 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
41297         doc: some glibc x32 integer width issues
41298         * doc/posix-headers/sys_types.texi (sys/types.h):
41299         * doc/posix-headers/time.texi (time.h):
41300         Mention that glibc x32 does not conform to POSIX in a couple of
41301         areas related to integer widths.
41303 2012-03-15  Bruno Haible  <bruno@clisp.org>
41305         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
41306         * lib/fma.c (VOLATILE): New macro.
41307         (FUNC): Use it to work around a GCC compiler bug.
41309 2012-03-13  Bruno Haible  <bruno@clisp.org>
41311         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41312         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
41313         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
41314         REPLACE_HYPOTL to 1.
41315         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
41317 2012-03-13  Bruno Haible  <bruno@clisp.org>
41319         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41320         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
41321         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
41322         REPLACE_REMAINDERL to 1.
41323         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
41324         bug.
41326 2012-03-13  Bruno Haible  <bruno@clisp.org>
41328         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41329         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
41330         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
41331         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
41332         too big rounding errors.
41333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
41334         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
41335         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
41336         (Depends-on): Update conditions.
41337         * tests/test-sqrtl.c (my_ldexpl): New function.
41338         (main): Add test of a particular value.
41339         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
41341 2012-03-13  Pádraig Brady  <P@draigBrady.com>
41343         doc: Update timer_* platform portability notes.
41344         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
41345         that always return ENOSYS.
41346         * doc/posix-functions/timer_delete.texi: Likewise.
41347         * doc/posix-functions/timer_gettime.texi: Likewise.
41348         * doc/posix-functions/timer_settime.texi: Likewise.
41350 2012-03-13  Bruno Haible  <bruno@clisp.org>
41352         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41353         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
41354         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
41355         REPLACE_CBRTL to 1.
41356         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
41358 2012-03-13  Bruno Haible  <bruno@clisp.org>
41360         remainderl: Avoid compilation error on AIX >= 5.2.
41361         * lib/math.in.h (remainderl): Undefine macro from the system header.
41363 2012-03-13  Bruno Haible  <bruno@clisp.org>
41365         Avoid compilation errors with MSVC option -fp:strict.
41366         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
41367         * lib/cbrtf.c: Likewise.
41368         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41370 2012-03-12  Bruno Haible  <bruno@clisp.org>
41372         uninorm: Don't crash in out-of-memory conditions.
41373         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
41374         gracefully.
41375         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
41376         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
41378 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
41380         quote: fix syntax-check
41381         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
41382         also exports quote_quoting_options.
41384 2012-03-12  Simon Josefsson  <simon@josefsson.org>
41386         Collapse list of copyright years to ranges.  See
41387         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
41388         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
41389         build-aux/csharpexec.sh.in, build-aux/gnupload,
41390         build-aux/install-reloc, build-aux/javacomp.sh.in,
41391         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
41392         build-aux/move-if-change, build-aux/reloc-ldflags,
41393         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
41395 2012-03-11  Bruno Haible  <bruno@clisp.org>
41397         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
41398         * m4/log2f-ieee.m4: New file.
41399         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
41400         whether log2f works with a minus zero argument. Replace it if not.
41401         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
41402         (Depends-on): Add log2-ieee.
41403         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
41404         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
41406         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
41407         * m4/log2-ieee.m4: New file.
41408         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
41409         whether log2 works with a minus zero argument. Replace it if not.
41410         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
41411         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
41412         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
41414         Tests for module 'log2l-ieee'.
41415         * modules/log2l-ieee-tests: New file.
41416         * tests/test-log2l-ieee.c: New file.
41418         New module 'log2l-ieee'.
41419         * modules/log2l-ieee: New file.
41421         Tests for module 'log2-ieee'.
41422         * modules/log2-ieee-tests: New file.
41423         * tests/test-log2-ieee.c: New file.
41425         New module 'log2-ieee'.
41426         * modules/log2-ieee: New file.
41428         Tests for module 'log2f-ieee'.
41429         * modules/log2f-ieee-tests: New file.
41430         * tests/test-log2f-ieee.c: New file.
41431         * tests/test-log2-ieee.h: New file.
41433         New module 'log2f-ieee'.
41434         * modules/log2f-ieee: New file.
41436 2012-03-11  Bruno Haible  <bruno@clisp.org>
41438         Tests for module 'log2l'.
41439         * modules/log2l-tests: New file.
41440         * tests/test-log2l.c: New file.
41442         New module 'log2l'.
41443         * lib/math.in.h (log2l): New declaration.
41444         * lib/log2l.c: New file.
41445         * m4/log2l.m4: New file.
41446         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
41447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
41448         REPLACE_LOG2L.
41449         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
41450         REPLACE_LOG2L.
41451         * modules/log2l: New file.
41452         * tests/test-math-c++.cc: Check the declaration of log2l.
41453         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
41454         and OSF/1 problems.
41456 2012-03-11  Bruno Haible  <bruno@clisp.org>
41458         Tests for module 'log2f'.
41459         * modules/log2f-tests: New file.
41460         * tests/test-log2f.c: New file.
41462         New module 'log2f'.
41463         * lib/math.in.h (log2f): New declaration.
41464         * lib/log2f.c: New file.
41465         * m4/log2f.m4: New file.
41466         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
41467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
41468         REPLACE_LOG2F.
41469         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
41470         REPLACE_LOG2F.
41471         * modules/log2f: New file.
41472         * tests/test-math-c++.cc: Check the declaration of log2f.
41473         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
41474         and OSF/1 and Cygwin problems.
41476 2012-03-11  Bruno Haible  <bruno@clisp.org>
41478         Tests for module 'log2'.
41479         * modules/log2-tests: New file.
41480         * tests/test-log2.c: New file.
41481         * tests/test-log2.h: New file.
41483         New module 'log2'.
41484         * lib/math.in.h (log2): New declaration.
41485         * lib/log2.c: New file.
41486         * m4/log2.m4: New file.
41487         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
41488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
41489         REPLACE_LOG2.
41490         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
41491         REPLACE_LOG2.
41492         * modules/log2: New file.
41493         * tests/test-math-c++.cc: Check the declaration of log2.
41494         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
41495         and OSF/1 and Cygwin problems.
41497 2012-03-11  Bruno Haible  <bruno@clisp.org>
41499         exp2* tests: More tests.
41500         * tests/test-exp2.h (test_function): Test all integral arguments that
41501         don't need to overflow or denormalized numbers.
41502         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
41503         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
41504         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
41506 2012-03-10  Bruno Haible  <bruno@clisp.org>
41508         log1pl-ieee: Work around test failure on AIX 7.1.
41509         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
41511         log1pl-ieee: Work around test failure on IRIX 6.5.
41512         * m4/log1pl-ieee.m4: New file.
41513         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
41514         test whether log1pl works with a minus zero argument. Replace it if
41515         not.
41516         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
41517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
41518         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
41519         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
41520         (Depends-on): Update conditions.
41521         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
41522         m4/signbit.m4.
41523         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
41524         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
41526         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
41527         * m4/log1pf-ieee.m4: New file.
41528         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
41529         test whether log1pf works with a minus zero argument. Replace it if
41530         not.
41531         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
41532         m4/signbit.m4.
41533         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
41534         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
41536         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
41537         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
41538         (configure.ac): Require gl_FUNC_LOG1PF.
41540         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
41541         * m4/log1p-ieee.m4: New file.
41542         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
41543         whether log1p works with a minus zero argument. Replace it if not.
41544         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
41545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
41546         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
41547         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
41548         (Depends-on): Update conditions.
41549         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
41550         m4/signbit.m4.
41551         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
41552         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
41554         Tests for module 'log1pl-ieee'.
41555         * modules/log1pl-ieee-tests: New file.
41556         * tests/test-log1pl-ieee.c: New file.
41558         New module 'log1pl-ieee'.
41559         * modules/log1pl-ieee: New file.
41561         Tests for module 'log1p-ieee'.
41562         * modules/log1p-ieee-tests: New file.
41563         * tests/test-log1p-ieee.c: New file.
41565         New module 'log1p-ieee'.
41566         * modules/log1p-ieee: New file.
41568         Tests for module 'log1pf-ieee'.
41569         * modules/log1pf-ieee-tests: New file.
41570         * tests/test-log1pf-ieee.c: New file.
41571         * tests/test-log1p-ieee.h: New file.
41573         New module 'log1pf-ieee'.
41574         * modules/log1pf-ieee: New file.
41576 2012-03-10  Bruno Haible  <bruno@clisp.org>
41578         Tests for module 'log1pl'.
41579         * modules/log1pl-tests: New file.
41580         * tests/test-log1pl.c: New file.
41582         New module 'log1pl'.
41583         * lib/math.in.h (log1pl): New declaration.
41584         * lib/log1pl.c: New file.
41585         * m4/log1pl.m4: New file.
41586         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
41587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
41588         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
41589         * modules/log1pl: New file.
41590         * tests/test-math-c++.cc: Check the declaration of log1pl.
41591         * doc/posix-functions/log1pl.texi: Mention the new module.
41593 2012-03-10  Bruno Haible  <bruno@clisp.org>
41595         Tests for module 'log1pf'.
41596         * modules/log1pf-tests: New file.
41597         * tests/test-log1pf.c: New file.
41599         New module 'log1pf'.
41600         * lib/math.in.h (log1pf): New declaration.
41601         * lib/log1pf.c: New file.
41602         * m4/log1pf.m4: New file.
41603         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
41604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
41605         REPLACE_LOG1PF.
41606         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
41607         REPLACE_LOG1PF.
41608         * modules/log1pf: New file.
41609         * tests/test-math-c++.cc: Check the declaration of log1pf.
41610         * doc/posix-functions/log1pf.texi: Mention the new module.
41612 2012-03-10  Bruno Haible  <bruno@clisp.org>
41614         log1p tests: More tests.
41615         * tests/test-log1p.h: New file.
41616         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
41617         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
41618         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
41619         (main): Invoke test_function.
41621         log1p: Provide replacement for Minix and MSVC.
41622         * lib/math.in.h (log1p): New declaration.
41623         * lib/log1p.c: New file.
41624         * m4/log1p.m4: New file.
41625         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
41626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
41627         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
41628         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
41629         (Depends-on): Add math, isnand, log, round.
41630         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
41631         HAVE_LOG1P is 0.
41632         * tests/test-math-c++.cc: Check the declaration of log1p.
41633         * doc/posix-functions/log1p.texi: Mention the replacement.
41635 2012-03-10  Bruno Haible  <bruno@clisp.org>
41637         math tests: Small simplification.
41638         * tests/test-exp.h (test_function): Use the same err_bound for
41639         'double' on platforms with sizeof (long double) == sizeof (double)
41640         than on platforms with sizeof (long double) > sizeof (double).
41641         * tests/test-exp2.h (test_function): Likewise.
41642         * tests/test-expm1.h (test_function): Likewise.
41643         * tests/test-log.h (test_function): Likewise.
41645 2012-03-10  Bruno Haible  <bruno@clisp.org>
41647         Fix some comments.
41648         * lib/expl.c: Fix an ambiguous comment.
41649         * lib/expm1.c: Likewise.
41650         * lib/expm1l.c: Likewise.
41651         * lib/exp2.c: Likewise.
41652         * lib/exp2l.c: Likewise.
41654 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
41656         regex: allow inclusion of <regex.h> before <limits.h>
41657         Without this patch, portable programs had to include <limits.h> before
41658         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
41659         I ran into this problem with a test version of GNU grep on Solaris 8.
41660         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
41661         This is done conditionally so that this change can be merged
41662         back to glibc.
41663         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
41664         using the included regex.
41666         fts: depend on fdopendir
41667         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
41668         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
41669         problem was introduced when fdopendir was split out.
41671 2012-03-10  Bruno Haible  <bruno@clisp.org>
41673         Remove unused variables.
41674         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
41675         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41677 2012-03-10  Bruno Haible  <bruno@clisp.org>
41679         isnanf-nolibm: Fix last commit.
41680         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
41682         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
41683         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
41685 2012-03-10  Bruno Haible  <bruno@clisp.org>
41687         logf-ieee: Work around test failure on NetBSD 5.1.
41688         * m4/logf-ieee.m4: New file.
41689         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
41690         whether logf works with a negative argument. Replace it if not.
41691         * lib/logf.c (logf): For negative arguments, return NaN.
41692         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
41693         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
41694         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
41696         logf-ieee: Work around test failure on Solaris 9.
41697         * modules/logf-ieee (Depends-on): Add log-ieee.
41698         (configure.ac): Require gl_FUNC_LOGF.
41700         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
41701         * m4/log-ieee.m4: New file.
41702         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
41703         log works with a negative argument. Replace it if not.
41704         * lib/log.c (log): For negative arguments, return NaN.
41705         * modules/log-ieee (Files): Add m4/log-ieee.m4.
41706         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
41707         * doc/posix-functions/log.texi: Mention the log-ieee module.
41709         Tests for module 'logl-ieee'.
41710         * modules/logl-ieee-tests: New file.
41711         * tests/test-logl-ieee.c: New file.
41713         New module 'logl-ieee'.
41714         * modules/logl-ieee: New file.
41716         Tests for module 'log-ieee'.
41717         * modules/log-ieee-tests: New file.
41718         * tests/test-log-ieee.c: New file.
41720         New module 'log-ieee'.
41721         * modules/log-ieee: New file.
41723         Tests for module 'logf-ieee'.
41724         * modules/logf-ieee-tests: New file.
41725         * tests/test-logf-ieee.c: New file.
41726         * tests/test-log-ieee.h: New file.
41728         New module 'logf-ieee'.
41729         * modules/logf-ieee: New file.
41731 2012-03-10  Bruno Haible  <bruno@clisp.org>
41733         log: Fix bug introduced on 2012-03-09.
41734         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
41736 2012-03-10  Pádraig Brady  <P@draigBrady.com>
41738         timer-time: link explicitly with pthreads on glibc
41739         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
41740         to support static linking, when newer glibc is
41741         detected, as that contains pthread emulation of
41742         POSIX timer functions where required.
41743         * modules/timer-time: Depend on threadlib to
41744         pull in the appropriate library to link.
41746 2012-03-10  Bruno Haible  <bruno@clisp.org>
41748         log* tests: More tests.
41749         * tests/test-log.h: New file.
41750         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
41751         (main): Invoke test_function.
41752         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
41753         (main): Invoke test_function.
41754         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
41755         (main): Invoke test_function.
41756         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41757         tests/randomd.c.
41758         (Makefile.am): Add randomd.c to test_log_SOURCES.
41759         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41760         tests/randomf.c.
41761         (Makefile.am): Add randomf.c to test_logf_SOURCES.
41762         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41763         tests/randoml.c.
41764         (Depends-on): Add 'float'.
41765         (Makefile.am): Add randoml.c to test_logl_SOURCES.
41767 2012-03-09  Bruno Haible  <bruno@clisp.org>
41769         logl: Work around OSF/1 5.1 bug.
41770         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
41771         * lib/logl.c (logl): If logl exists, use it and provide just the
41772         workaround.
41773         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
41774         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
41775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
41776         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
41777         * modules/logl (configure.ac): Consider REPLACE_LOGL.
41778         (Depends-on): Update conditions.
41779         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
41781 2012-03-09  Bruno Haible  <bruno@clisp.org>
41783         logf: Work around OSF/1 5.1 bug.
41784         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
41785         * lib/logf.c (logf): If logf exists, use it and provide just the
41786         workaround.
41787         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
41788         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
41789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
41790         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
41791         * modules/logf (configure.ac): Consider REPLACE_LOGF.
41792         (Depends-on): Update conditions.
41793         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
41795 2012-03-09  Bruno Haible  <bruno@clisp.org>
41797         log: Work around OSF/1 5.1 bug.
41798         * lib/math.in.h (log): New declaration.
41799         * lib/log.c: New file.
41800         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
41801         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
41802         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
41803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
41804         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
41805         * modules/log (Files): Add lib/log.c.
41806         (Depends-on): Add math.
41807         (configure.ac): If REPLACE_LOG is 1, compile an override.
41808         * tests/test-math-c++.cc: Check the declaration of log.
41809         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
41811 2012-03-09  Jim Meyering  <meyering@redhat.com>
41813         readtokens.c: adjust wording in a comment
41814         * lib/readtokens.c: Insert omitted "that" in a comment.
41816 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41818         modechange: add notations +40, 00440, etc.
41819         * lib/modechange.c (mode_compile): Support new notations
41820         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
41822 2012-03-08  Bruno Haible  <bruno@clisp.org>
41824         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
41825         * m4/exp2l-ieee.m4: New file.
41826         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
41827         test whether exp2l works with a NaN argument and with a negative
41828         infinity argument. Replace it if not.
41829         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
41830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
41831         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
41832         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
41833         (Depends-on): Update conditions.
41834         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
41835         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
41836         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
41838         Tests for module 'exp2l-ieee'.
41839         * modules/exp2l-ieee-tests: New file.
41840         * tests/test-exp2l-ieee.c: New file.
41842         New module 'exp2l-ieee'.
41843         * modules/exp2l-ieee: New file.
41845         Tests for module 'exp2-ieee'.
41846         * modules/exp2-ieee-tests: New file.
41847         * tests/test-exp2-ieee.c: New file.
41849         New module 'exp2-ieee'.
41850         * modules/exp2-ieee: New file.
41852         Tests for module 'exp2f-ieee'.
41853         * modules/exp2f-ieee-tests: New file.
41854         * tests/test-exp2f-ieee.c: New file.
41855         * tests/test-exp2-ieee.h: New file.
41857         New module 'exp2f-ieee'.
41858         * modules/exp2f-ieee: New file.
41860 2012-03-08  Bruno Haible  <bruno@clisp.org>
41862         Tests for module 'exp2l'.
41863         * modules/exp2l-tests: New file.
41864         * tests/test-exp2l.c: New file.
41866         New module 'exp2l'.
41867         * lib/math.in.h (exp2l): New declaration.
41868         * lib/exp2l.c: New file.
41869         * lib/expl-table.c: New file, extracted from lib/expl.c.
41870         * lib/expl.c (gl_expl_table): New declaration.
41871         (expl): Remove expl_table. Update reference.
41872         * m4/exp2l.m4: New file.
41873         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
41874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
41875         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
41876         * modules/exp2l: New file.
41877         * modules/expl (Files): Add lib/expl-table.c.
41878         (configure.ac): Compile also expl-table.c.
41879         * tests/test-math-c++.cc: Check the declaration of exp2l.
41880         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
41881         problem.
41883 2012-03-08  Bruno Haible  <bruno@clisp.org>
41885         Tests for module 'exp2f'.
41886         * modules/exp2f-tests: New file.
41887         * tests/test-exp2f.c: New file.
41889         New module 'exp2f'.
41890         * lib/math.in.h (exp2f): New declaration.
41891         * lib/exp2f.c: New file.
41892         * m4/exp2f.m4: New file.
41893         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
41894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
41895         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
41896         * modules/exp2f: New file.
41897         * tests/test-math-c++.cc: Check the declaration of exp2f.
41898         * doc/posix-functions/exp2f.texi: Mention the new module and the
41899         IRIX problem.
41901 2012-03-08  Bruno Haible  <bruno@clisp.org>
41903         Tests for module 'exp2'.
41904         * modules/exp2-tests: New file.
41905         * tests/test-exp2.c: New file.
41906         * tests/test-exp2.h: New file.
41908         New module 'exp2'.
41909         * lib/math.in.h (exp2): New declaration.
41910         * lib/exp2.c: New file.
41911         * m4/exp2.m4: New file.
41912         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
41913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
41914         REPLACE_EXP2.
41915         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
41916         REPLACE_EXP2.
41917         * modules/exp2: New file.
41918         * tests/test-math-c++.cc: Check the declaration of exp2.
41919         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
41920         and OpenBSD problems.
41922 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41924         savedir: fix comment typo
41925         * lib/savedir.c (savedirstream): Fix typo in comment.
41927 2012-03-08  Bruno Haible  <bruno@clisp.org>
41929         test-readtokens.c: use const; remove unwarranted cast
41930         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
41932 2012-03-08  Bruno Haible  <bruno@clisp.org>
41934         fmal: Avoid compilation error on AIX.
41935         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
41936         AIX 5.2..7.1.
41938 2012-03-08  Bruno Haible  <bruno@clisp.org>
41940         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
41941         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
41942         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
41943         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
41944         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
41945         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
41946         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
41948 2012-03-08  Bruno Haible  <bruno@clisp.org>
41950         remainderf: Override buggy system function on IRIX 6.5.
41951         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
41952         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
41953         when it exists.
41954         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
41956 2012-03-08  Jim Meyering  <meyering@redhat.com>
41958         test-readtokens.c: avoid const-related compilation warnings
41959         * tests/test-readtokens.c: Avoid const-related compilation warnings.
41961 2012-03-07  Jim Meyering  <meyering@redhat.com>
41962             Bruno Haible  <bruno@clisp.org>
41964         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
41965         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
41966         tests/randomd.c.
41967         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
41968         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
41969         tests/randoml.c.
41970         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
41972 2012-03-07  Bruno Haible  <bruno@clisp.org>
41974         expm1l: Avoid compilation error on AIX.
41975         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
41976         AIX 5.2..7.1.
41978 2012-03-07  Bruno Haible  <bruno@clisp.org>
41980         expm1l: Don't override undeclared system function on IRIX 6.5.
41981         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
41982         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
41983         it exists. Set HAVE_DECL_EXPM1L.
41984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
41985         HAVE_EXPM1L.
41986         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
41987         HAVE_EXPM1L.
41988         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
41990 2012-03-07  Bruno Haible  <bruno@clisp.org>
41992         remainderl: Don't override undeclared system function on IRIX 6.5.
41993         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
41994         HAVE_REMAINDERL.
41995         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
41996         declared when it exists. Set HAVE_DECL_REMAINDERL.
41997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
41998         not HAVE_REMAINDERL.
41999         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
42000         HAVE_REMAINDERL.
42001         * doc/posix-functions/remainderl.texi: Mention missing declaration
42002         problem.
42004 2012-03-07  Bruno Haible  <bruno@clisp.org>
42006         rintf: Don't override undeclared system function on IRIX 6.5.
42007         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
42008         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
42009         exists. Set HAVE_DECL_RINTF.
42010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
42011         HAVE_RINTF.
42012         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
42013         HAVE_RINTF.
42014         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
42016 2012-03-07  Bruno Haible  <bruno@clisp.org>
42018         roundl: Avoid compilation error on AIX.
42019         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
42020         AIX 5.2..7.1.
42022 2012-03-07  Bruno Haible  <bruno@clisp.org>
42024         roundl: Don't override undeclared system function on IRIX 6.5.
42025         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
42026         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
42027         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
42028         * modules/roundl (configure.ac): For replacement code, test
42029         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
42030         (Depends-on): Update conditions.
42031         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
42033 2012-03-07  Bruno Haible  <bruno@clisp.org>
42035         roundf: Don't override undeclared system function on IRIX 6.5.
42036         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
42037         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
42038         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
42039         * modules/roundf (configure.ac): For replacement code, test
42040         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
42041         (Depends-on): Update conditions.
42042         * modules/roundf-ieee (Depends-on): Update conditions.
42043         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
42045 2012-03-07  Bruno Haible  <bruno@clisp.org>
42047         round: Don't override undeclared system function on IRIX 6.5.
42048         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
42049         argument.
42050         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
42051         also when it is not declared. Set HAVE_ROUND. For replacement code,
42052         test HAVE_ROUND, not HAVE_DECL_ROUND.
42053         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
42054         not HAVE_DECL_ROUND.
42055         (Depends-on): Update conditions.
42056         * modules/round-ieee (Depends-on): Update conditions.
42057         * doc/posix-functions/round.texi: Mention the IRIX problem.
42059 2012-03-07  Bruno Haible  <bruno@clisp.org>
42061         copysignf: Don't override undeclared system function on IRIX 6.5.
42062         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
42063         HAVE_COPYSIGNF.
42064         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
42065         declared when it exists. Set HAVE_DECL_COPYSIGNF.
42066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
42067         not HAVE_COPYSIGNF.
42068         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
42069         HAVE_COPYSIGNF.
42070         * doc/posix-functions/copysignf.texi: Mention missing declaration
42071         problem.
42073 2012-03-07  Jim Meyering  <meyering@redhat.com>
42075         readtokens: add tests
42076         * modules/readtokens-tests: New file.
42077         * tests/test-readtokens.c: New file.
42079 2012-03-07  Jim Meyering  <meyering@redhat.com>
42081         quotearg: the module must now include quote.h
42082         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
42083         So must the module.
42084         * modules/quotearg (Files): Add quote.h.
42086 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
42088         readtokens: avoid core dumps with unusual calling patterns
42089         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
42090         * lib/readtokens.c: Include limits.h.
42091         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
42092         (readtoken): Don't cache the delimiters; the cache code was buggy
42093         if !delim && saved_delim, or if the new n_delim differs from the old.
42094         Also, it wasn't thread-safe.
42096 2012-03-07  Bruno Haible  <bruno@clisp.org>
42098         quote: Adhere to common module description layout.
42099         * modules/quote (Makefile.am): Add back empty section.
42101 2012-03-06  Akim Demaille  <demaille@gostai.com>
42103         quote: fuse into quotearg
42104         This patch is made for the benefit of Bison.
42105         quote does not leave the choice of the quoting style to the user.
42106         quoting_style provides poor customizability, yet quoting_options,
42107         which is very rich, is hidden inside quotearg.c.  So in order to
42108         allow quote customization, move its implementation to quotearg.c.
42109         * lib/quote.c: Remove.
42110         * modules/quote: Adjust.
42111         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
42112         warning: provide all the members of literal structs.
42113         (quote_quoting_options): New.
42114         (quote, quote_n): Import implementation from quote.c.
42115         * lib/quote.h: Import the comments from quote.c.
42116         (quote_quoting_options): New.
42118 2012-03-06  Bruno Haible  <bruno@clisp.org>
42120         Tests for module 'expm1l-ieee'.
42121         * modules/expm1l-ieee-tests: New file.
42122         * tests/test-expm1l-ieee.c: New file.
42124         New module 'expm1l-ieee'.
42125         * modules/expm1l-ieee: New file.
42127         Tests for module 'expm1f-ieee'.
42128         * modules/expm1f-ieee-tests: New file.
42129         * tests/test-expm1f-ieee.c: New file.
42131         New module 'expm1f-ieee'.
42132         * modules/expm1f-ieee: New file.
42134         Tests for module 'expm1-ieee'.
42135         * modules/expm1-ieee-tests: New file.
42136         * tests/test-expm1-ieee.c: New file.
42137         * tests/test-expm1-ieee.h: New file.
42139         New module 'expm1-ieee'.
42140         * modules/expm1-ieee: New file.
42141         * m4/expm1-ieee.m4: New file.
42142         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
42143         whether expm1 works with a minus zero argument. Replace it if not.
42144         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
42145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
42146         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
42147         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
42148         (Depends-on): Update conditions.
42149         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
42150         AIX problem.
42152 2012-03-06  Bruno Haible  <bruno@clisp.org>
42154         Work around expm1f bug on IRIX 6.5.
42155         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
42156         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
42157         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
42158         not work.
42159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
42160         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
42161         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
42162         (Depends-on): Update conditions.
42163         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
42165 2012-03-06  Bruno Haible  <bruno@clisp.org>
42167         Tests for module 'expm1l'.
42168         * modules/expm1l-tests: New file.
42169         * tests/test-expm1l.c: New file.
42171         New module 'expm1l'.
42172         * lib/math.in.h (expm1l): New declaration.
42173         * lib/expm1l.c: New file.
42174         * m4/expm1l.m4: New file.
42175         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
42176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
42177         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
42178         * modules/expm1l: New file.
42179         * tests/test-math-c++.cc: Check the declaration of expm1l.
42180         * doc/posix-functions/expm1l.texi: Mention the new module.
42182 2012-03-06  Bruno Haible  <bruno@clisp.org>
42184         Tests for module 'expm1f'.
42185         * modules/expm1f-tests: New file.
42186         * tests/test-expm1f.c: New file.
42188         New module 'expm1f'.
42189         * lib/math.in.h (expm1f): New declaration.
42190         * lib/expm1f.c: New file.
42191         * m4/expm1f.m4: New file.
42192         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
42193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
42194         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
42195         * modules/expm1f: New file.
42196         * tests/test-math-c++.cc: Check the declaration of expm1f.
42197         * doc/posix-functions/expm1f.texi: Mention the new module.
42199 2012-03-06  Bruno Haible  <bruno@clisp.org>
42201         Tests for module 'expm1'.
42202         * modules/expm1-tests: New file.
42203         * tests/test-expm1.c: New file.
42204         * tests/test-expm1.h: New file.
42206         New module 'expm1'.
42207         * lib/math.in.h (expm1): New declaration.
42208         * lib/expm1.c: New file.
42209         * m4/expm1.m4: New file.
42210         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
42211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
42212         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
42213         * modules/expm1: New file.
42214         * tests/test-math-c++.cc: Check the declaration of expm1.
42215         * doc/posix-functions/expm1.texi: Mention the new module.
42217 2012-03-06  Bruno Haible  <bruno@clisp.org>
42219         math: Ensure declarations of math functions.
42220         * modules/acosf (Depends-on): Add 'extensions'.
42221         * modules/asinf (Depends-on): Likewise.
42222         * modules/atan2f (Depends-on): Likewise.
42223         * modules/atanf (Depends-on): Likewise.
42224         * modules/cbrt (Depends-on): Likewise.
42225         * modules/cbrtf (Depends-on): Likewise.
42226         * modules/cbrtl (Depends-on): Likewise.
42227         * modules/copysignf (Depends-on): Likewise.
42228         * modules/copysignl (Depends-on): Likewise.
42229         * modules/cosf (Depends-on): Likewise.
42230         * modules/coshf (Depends-on): Likewise.
42231         * modules/expf (Depends-on): Likewise.
42232         * modules/fabsf (Depends-on): Likewise.
42233         * modules/fabsl (Depends-on): Likewise.
42234         * modules/fmaf (Depends-on): Likewise.
42235         * modules/fmal (Depends-on): Likewise.
42236         * modules/fmodf (Depends-on): Likewise.
42237         * modules/fmodl (Depends-on): Likewise.
42238         * modules/frexpf (Depends-on): Likewise.
42239         * modules/frexpl (Depends-on): Likewise.
42240         * modules/hypot (Depends-on): Likewise.
42241         * modules/hypotf (Depends-on): Likewise.
42242         * modules/hypotl (Depends-on): Likewise.
42243         * modules/ldexpf (Depends-on): Likewise.
42244         * modules/ldexpl (Depends-on): Likewise.
42245         * modules/log10f (Depends-on): Likewise.
42246         * modules/log10l (Depends-on): Likewise.
42247         * modules/log1p (Depends-on): Likewise.
42248         * modules/logb (Depends-on): Likewise.
42249         * modules/logf (Depends-on): Likewise.
42250         * modules/modff (Depends-on): Likewise.
42251         * modules/modfl (Depends-on): Likewise.
42252         * modules/powf (Depends-on): Likewise.
42253         * modules/remainderf (Depends-on): Likewise.
42254         * modules/remainderl (Depends-on): Likewise.
42255         * modules/rintf (Depends-on): Likewise.
42256         * modules/rintl (Depends-on): Likewise.
42257         * modules/sinf (Depends-on): Likewise.
42258         * modules/sinhf (Depends-on): Likewise.
42259         * modules/sqrtf (Depends-on): Likewise.
42260         * modules/tanf (Depends-on): Likewise.
42261         * modules/tanhf (Depends-on): Likewise.
42262         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
42263         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
42264         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
42265         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
42266         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
42267         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
42268         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
42269         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
42270         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
42271         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
42272         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
42273         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
42274         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
42275         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
42276         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
42277         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
42278         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
42279         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42280         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
42281         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
42282         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
42283         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
42284         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
42285         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
42286         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
42287         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
42288         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
42289         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
42290         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
42291         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
42292         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42293         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
42294         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
42295         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42296         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42297         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42298         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
42299         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
42300         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
42301         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
42302         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
42304 2012-03-06  Bruno Haible  <bruno@clisp.org>
42306         math: Update module names in warnings.
42307         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
42308         tanl): Use specific module name in warn-on-use warning.
42310 2012-03-06  Bruno Haible  <bruno@clisp.org>
42312         expl: Simplify computation.
42313         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
42315 2012-03-05  Bruno Haible  <bruno@clisp.org>
42317         exp* tests: More tests.
42318         * tests/test-exp.h: New file.
42319         * tests/test-exp.c: Include <float.h> and test-exp.h.
42320         (main): Invoke test_function.
42321         * tests/test-expf.c: Include <float.h> and test-exp.h.
42322         (main): Invoke test_function.
42323         * tests/test-expl.c: Include <float.h> and test-exp.h.
42324         (main): Invoke test_function.
42325         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
42326         (Makefile.am): Add randomd.c to test_exp_SOURCES.
42327         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
42328         (Makefile.am): Add randomf.c to test_expf_SOURCES.
42329         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
42330         (Depends-on): Add 'float'.
42331         (Makefile.am): Add randoml.c to test_expl_SOURCES.
42333         expl: Fix precision of computed result.
42334         * lib/expl.c: Completely rewritten.
42335         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
42336         (Maintainer): Add me.
42337         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
42339 2012-03-05  Bruno Haible  <bruno@clisp.org>
42341         cbrt* tests: More tests.
42342         * tests/test-cbrt.h: New file.
42343         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
42344         (main): Invoke test_function.
42345         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
42346         (main): Invoke test_function.
42347         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
42348         (main): Invoke test_function.
42349         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
42350         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
42351         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
42352         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
42353         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
42354         (Depends-on): Add 'float'.
42355         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
42357 2012-03-05  Bruno Haible  <bruno@clisp.org>
42359         hypot* tests: More tests.
42360         * tests/test-hypot.h: New file, partially extracted from
42361         tests/test-hypotl.c.
42362         * tests/test-hypot.c: Include test-hypot.h.
42363         (main): Invoke test_function.
42364         * tests/test-hypotf.c: Include test-hypot.h.
42365         (main): Invoke test_function.
42366         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
42367         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
42368         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
42369         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
42370         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
42371         tests/randomf.c.
42372         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
42373         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
42374         tests/randoml.c.
42375         (Depends-on): Add 'fpucw', 'float'.
42376         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
42378 2012-03-05  Bruno Haible  <bruno@clisp.org>
42380         fpucw: Doc about FreeBSD.
42381         * lib/fpucw.h: Mention FreeBSD in comments.
42383 2012-03-04  Bruno Haible  <bruno@clisp.org>
42385         sqrt* tests: More tests.
42386         * tests/test-sqrt.h: New file.
42387         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
42388         (main): Invoke test_function.
42389         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
42390         (main): Invoke test_function.
42391         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
42392         (main): Invoke test_function.
42393         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
42394         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
42395         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
42396         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
42397         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
42398         (Depends-on): Add 'float'.
42399         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
42401 2012-03-04  Bruno Haible  <bruno@clisp.org>
42403         remainder* tests: More tests.
42404         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
42405         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
42406         (main): Invoke test_function.
42407         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
42408         (main): Invoke test_function.
42409         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
42410         (main): Invoke test_function.
42411         * modules/remainder-tests (Files): Add tests/test-remainder.h,
42412         tests/randomd.c.
42413         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
42414         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
42415         tests/randomf.c.
42416         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
42417         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
42418         tests/randoml.c.
42419         (Depends-on): Add 'float'.
42420         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
42422 2012-03-04  Bruno Haible  <bruno@clisp.org>
42424         remainder, remainderf, remainderl: Fix computation for large quotients.
42425         * lib/remainder.c: Completely rewritten.
42426         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
42427         USE_FLOAT.
42428         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
42429         USE_LONG_DOUBLE.
42430         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
42431         isnand, isinf. Remove round, fma.
42432         * modules/remainderf (Files): Add lib/remainder.c.
42433         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
42434         Remove roundf, fmaf.
42435         * modules/remainderl (Files): Add lib/remainder.c.
42436         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
42437         isinf. Remove roundl, fmal.
42438         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
42439         REMAINDER_LIBM.
42440         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
42441         REMAINDERF_LIBM.
42442         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
42443         REMAINDERL_LIBM.
42445 2012-03-04  Bruno Haible  <bruno@clisp.org>
42447         fmod* tests: More tests.
42448         * tests/test-fmod.h (my_ldexp): New function.
42449         (test_function): Reduce amount of random numbers to test. Add tests
42450         of very large quotients x / y.
42451         * tests/test-fmod.c (MAX_EXP): New macro.
42452         * tests/test-fmodf.c (MAX_EXP): Likewise.
42453         * tests/test-fmodl.c (MAX_EXP): Likewise.
42455 2012-03-04  Bruno Haible  <bruno@clisp.org>
42457         fmod, fmodl: Fix computation for large quotients x / y.
42458         * lib/fmod.c: Completely rewritten.
42459         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
42460         USE_LONG_DOUBLE.
42461         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
42462         isnand. Remove fma.
42463         * modules/fmodl (Files): Add lib/fmod.c.
42464         (Depends-on): Add float, isfinite, signbit, fabsl,
42465         frexpl, ldexpl, isnanl. Remove fma.
42466         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
42467         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
42469 2012-03-03  Bruno Haible  <bruno@clisp.org>
42471         fmod* tests: More tests.
42472         * tests/test-fmod.h: New file.
42473         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
42474         (main): Invoke test_function.
42475         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
42476         (main): Invoke test_function.
42477         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
42478         (main): Invoke test_function.
42479         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
42480         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
42481         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
42482         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
42483         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
42484         (Depends-on): Add 'float'.
42485         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
42487 2012-03-03  Bruno Haible  <bruno@clisp.org>
42489         rint* tests: More tests.
42490         * tests/test-rint.h: New file, partially extracted from
42491         tests/test-rintl.c.
42492         * tests/test-rint.c: Include test-rint.h.
42493         (main): Invoke test_function.
42494         * tests/test-rintf.c: Include test-rint.h.
42495         (main): Invoke test_function.
42496         * tests/test-rintl.c: Include test-rint.h.
42497         (main): Invoke test_function.
42498         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
42499         (Makefile.am): Add randomd.c to test_rint_SOURCES.
42500         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
42501         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
42502         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
42503         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
42505 2012-03-03  Bruno Haible  <bruno@clisp.org>
42507         modf* tests: More tests.
42508         * tests/test-modf.h: New file.
42509         * tests/test-modf.c: Include <float.h> and test-modf.h.
42510         (main): Invoke test_function.
42511         * tests/test-modff.c: Include <float.h> and test-modf.h.
42512         (main): Invoke test_function.
42513         * tests/test-modfl.c: Include <float.h> and test-modf.h.
42514         (main): Invoke test_function.
42515         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
42516         (Makefile.am): Add randomd.c to test_modf_SOURCES.
42517         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
42518         (Makefile.am): Add randomf.c to test_modff_SOURCES.
42519         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
42520         (Depends-on): Add 'float'.
42521         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
42523 2012-03-03  Bruno Haible  <bruno@clisp.org>
42525         fabs* tests: More tests.
42526         * tests/test-fabs.h: New file, partially extracted from
42527         tests/test-fabsl.c.
42528         * tests/test-fabs.c (RANDOM): New macro.
42529         * tests/test-fabsf.c (RANDOM): New macro.
42530         * tests/test-fabsl.c (RANDOM): New macro.
42531         * modules/fabs-tests (Files): Add tests/randomd.c.
42532         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
42533         * modules/fabsf-tests (Files): Add tests/randomf.c.
42534         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
42535         * modules/fabsl-tests (Files): Add tests/randoml.c.
42536         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
42538 2012-03-03  Bruno Haible  <bruno@clisp.org>
42540         ldexp* tests: More tests.
42541         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
42542         * tests/test-ldexp.c (RANDOM): New macro.
42543         * tests/test-ldexpf.c (RANDOM): New macro.
42544         * tests/test-ldexpl.c (RANDOM): New macro.
42545         * modules/ldexp-tests (Files): Add tests/randomd.c.
42546         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
42547         * modules/ldexpf-tests (Files): Add tests/randomf.c.
42548         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
42549         * modules/ldexpl-tests (Files): Add tests/randoml.c.
42550         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
42552 2012-03-03  Bruno Haible  <bruno@clisp.org>
42554         frexp* tests: More tests.
42555         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
42556         * tests/test-frexp.c (RANDOM): New macro.
42557         * tests/test-frexpf.c (RANDOM): New macro.
42558         * tests/test-frexpl.c (RANDOM): New macro.
42559         * modules/frexp-tests (Files): Add tests/randomd.c.
42560         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
42561         * modules/frexpf-tests (Files): Add tests/randomf.c.
42562         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
42563         * modules/frexpl-tests (Files): Add tests/randoml.c.
42564         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
42566 2012-03-03  Bruno Haible  <bruno@clisp.org>
42568         Support for pseudo-random numbers in tests.
42569         * tests/randomf.c: New file.
42570         * tests/randomd.c: New file.
42571         * tests/randoml.c: New file.
42572         * tests/macros.h (randomf, randomd, randoml): New declarations.
42574 2012-03-03  Bruno Haible  <bruno@clisp.org>
42576         frexp* tests: Refactor.
42577         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
42578         * tests/test-frexp.c: Include and use it.
42579         * tests/test-frexpf.c: Likewise.
42580         * tests/test-frexpl.c: Likewise.
42581         * modules/frexp-tests (Files): Add tests/test-frexp.h.
42582         * modules/frexpf-tests (Files): Likewise.
42583         * modules/frexpl-tests (Files): Likewise.
42585 2012-03-02  Jim Meyering  <meyering@redhat.com>
42587         maint: don't specify XZ_OPT=-9ev in dist-related rule
42588         Using xz's -9 option is warranted only if you have a very large
42589         tarball (see xz's documentation for the sizes vs. presets), and
42590         requires 64MiB of memory at decompression time.
42591         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
42592         Automake's default of just "-e" is fine.  Override on a
42593         per-package basis by setting XZ_OPT e.g., in cfg.mk.
42595 2012-03-01  Eric Blake  <eblake@redhat.com>
42597         maint.mk: allow announcement for non-gnulib project
42598         * maint.mk (announcement): Skip gnulib version if not used.
42600 2012-03-01  Jim Meyering  <meyering@redhat.com>
42602         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
42603         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
42604         envvar settings cannot interfere.  Otherwise, setting envvars like
42605         prohibit=foo require=bar, etc. would cause spurious test failures.
42607 2012-03-01  Eric Blake  <eblake@redhat.com>
42609         maint.mk: add per-line exclusions to prohibitions
42610         * maint.mk (_sc_search_regexp): Add $exclude parameter.
42611         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
42612         (sc_const_long_option): Use it.
42614 2012-03-01  Bruno Haible  <bruno@clisp.org>
42616         Tests for module 'expl-ieee'.
42617         * modules/expl-ieee-tests: New file.
42618         * tests/test-expl-ieee.c: New file.
42620         New module 'expl-ieee'.
42621         * modules/expl-ieee: New file.
42623         Tests for module 'exp-ieee'.
42624         * modules/exp-ieee-tests: New file.
42625         * tests/test-exp-ieee.c: New file.
42627         New module 'exp-ieee'.
42628         * modules/exp-ieee: New file.
42630         Tests for module 'expf-ieee'.
42631         * modules/expf-ieee-tests: New file.
42632         * tests/test-expf-ieee.c: New file.
42633         * tests/test-exp-ieee.h: New file.
42635         New module 'expf-ieee'.
42636         * modules/expf-ieee: New file.
42638 2012-02-29  Bruno Haible  <bruno@clisp.org>
42640         cbrtl-ieee: Work around test failure on IRIX 6.5.
42641         * m4/cbrtl-ieee.m4: New file.
42642         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
42643         test whether cbrtl works with a minus zero argument. Replace it if not.
42644         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
42645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
42646         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
42647         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
42648         (Depends-on): Update conditions.
42649         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
42650         m4/signbit.m4.
42651         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
42652         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
42653         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
42655         Tests for module 'cbrtl-ieee'.
42656         * modules/cbrtl-ieee-tests: New file.
42657         * tests/test-cbrtl-ieee.c: New file.
42659         New module 'cbrtl-ieee'.
42660         * modules/cbrtl-ieee: New file.
42662         Tests for module 'cbrt-ieee'.
42663         * modules/cbrt-ieee-tests: New file.
42664         * tests/test-cbrt-ieee.c: New file.
42666         New module 'cbrt-ieee'.
42667         * modules/cbrt-ieee: New file.
42669         Tests for module 'cbrtf-ieee'.
42670         * modules/cbrtf-ieee-tests: New file.
42671         * tests/test-cbrtf-ieee.c: New file.
42672         * tests/test-cbrt-ieee.h: New file.
42674         New module 'cbrtf-ieee'.
42675         * modules/cbrtf-ieee: New file.
42677 2012-02-29  Bruno Haible  <bruno@clisp.org>
42679         cbrtf: Work around bug in IRIX 6.5 system function.
42680         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
42681         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
42682         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
42683         work.
42684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
42685         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
42686         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
42687         (Depends-on): Update conditions.
42688         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
42690 2012-02-29  Bruno Haible  <bruno@clisp.org>
42692         Tests for module 'cbrtl'.
42693         * modules/cbrtl-tests: New file.
42694         * tests/test-cbrtl.c: New file.
42696         New module 'cbrtl'.
42697         * lib/math.in.h (cbrtl): New declaration.
42698         * lib/cbrtl.c: New file.
42699         * m4/cbrtl.m4: New file.
42700         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
42701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
42702         HAVE_DECL_CBRTL.
42703         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
42704         HAVE_DECL_CBRTL.
42705         * modules/cbrtl: New file.
42706         * tests/test-math-c++.cc: Check the declaration of cbrtl.
42707         * doc/posix-functions/cbrtl.texi: Mention the new module.
42709 2012-02-29  Bruno Haible  <bruno@clisp.org>
42711         Tests for module 'cbrtf'.
42712         * modules/cbrtf-tests: New file.
42713         * tests/test-cbrtf.c: New file.
42715         New module 'cbrtf'.
42716         * lib/math.in.h (cbrtf): New declaration.
42717         * lib/cbrtf.c: New file.
42718         * m4/cbrtf.m4: New file.
42719         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
42720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
42721         HAVE_DECL_CBRTF.
42722         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
42723         HAVE_DECL_CBRTF.
42724         * modules/cbrtf: New file.
42725         * tests/test-math-c++.cc: Check the declaration of cbrtf.
42726         * doc/posix-functions/cbrtf.texi: Mention the new module.
42728 2012-02-29  Bruno Haible  <bruno@clisp.org>
42730         cbrt: Provide replacement on MSVC and Minix.
42731         * lib/math.in.h (cbrt): New declaration.
42732         * lib/cbrt.c: New file.
42733         * m4/cbrt.m4: New file.
42734         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
42735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
42736         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
42737         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
42738         (Depends-on): Add dependencies.
42739         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
42740         * tests/test-math-c++.cc: Check the declaration of cbrt.
42741         * doc/posix-functions/cbrt.texi: Mention that the module provides a
42742         replacement.
42744 2012-02-29  Bruno Haible  <bruno@clisp.org>
42746         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
42747         * m4/hypotl-ieee.m4: New file.
42748         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
42749         test whether hypotl works with mixed NaN and Infinity arguments.
42750         Replace it if not.
42751         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
42752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
42753         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
42754         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
42755         (Depends-on): Update conditions.
42756         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
42757         (Depends-on): Add hypot-ieee.
42758         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
42759         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
42761         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
42762         * m4/hypotf-ieee.m4: New file.
42763         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
42764         test whether hypotf works with mixed NaN and Infinity arguments.
42765         Replace it if not.
42766         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
42767         (Depends-on): Add hypot-ieee.
42768         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
42769         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
42771         hypot-ieee: Work around test failure on OSF/1 and native Windows.
42772         * lib/math.in.h (hypot): New declaration.
42773         * lib/hypot.c: New file.
42774         * m4/hypot-ieee.m4: New file.
42775         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
42776         whether hypot works with mixed NaN and Infinity arguments. Replace it
42777         if not.
42778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
42779         REPLACE_HYPOT.
42780         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
42781         * modules/hypot (Files): Add lib/hypot.c.
42782         (Depends-on): Add dependencies.
42783         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
42784         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
42785         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
42786         * tests/test-math-c++.cc: Check the declaration of hypot.
42787         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
42789         Tests for module 'hypotl-ieee'.
42790         * modules/hypotl-ieee-tests: New file.
42791         * tests/test-hypotl-ieee.c: New file.
42793         New module 'hypotl-ieee'.
42794         * modules/hypotl-ieee: New file.
42796         Tests for module 'hypot-ieee'.
42797         * modules/hypot-ieee-tests: New file.
42798         * tests/test-hypot-ieee.c: New file.
42800         New module 'hypot-ieee'.
42801         * modules/hypot-ieee: New file.
42803         Tests for module 'hypotf-ieee'.
42804         * modules/hypotf-ieee-tests: New file.
42805         * tests/test-hypotf-ieee.c: New file.
42806         * tests/test-hypot-ieee.h: New file.
42808         New module 'hypotf-ieee'.
42809         * modules/hypotf-ieee: New file.
42811 2012-02-29  Bruno Haible  <bruno@clisp.org>
42813         Remove unused variables.
42814         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
42815         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42816         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
42817         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42819 2012-02-29  Eric Blake  <eblake@redhat.com>
42821         termios: fix pid_t always, not just for tcgetsid
42822         * doc/posix-headers/termios.texi (termios.h): Mention problem.
42823         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
42824         just when building tcgetsid.
42826 2012-02-29  Bruno Haible  <bruno@clisp.org>
42828         Tests for module 'hypotl'.
42829         * modules/hypotl-tests: New file.
42830         * tests/test-hypotl.c: New file.
42832         New module 'hypotl'.
42833         * lib/math.in.h (hypotl): New declaration.
42834         * lib/hypotl.c: New file.
42835         * m4/hypotl.m4: New file.
42836         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
42838         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
42839         * modules/hypotl: New file.
42840         * tests/test-math-c++.cc: Check the hypotl declaration.
42841         * doc/posix-functions/hypotl.texi: Mention the new module.
42843 2012-02-29  Eric Blake  <eblake@redhat.com>
42845         tcgetsid: fix cygwin header bug
42846         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
42848         docs: update cygwin progress
42849         * doc/posix-functions/llround.texi (llround): Added in cygwin
42850         1.7.8.
42851         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
42852         * doc/glibc-functions/program_invocation_name.texi
42853         (program_invocation_name): Likewise.
42854         * doc/glibc-functions/program_invocation_short_name.texi
42855         (program_invocation_short_name): Likewise.
42856         * doc/glibc-functions/madvise.texi (madvise): Likewise.
42857         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
42858         Likewise.
42859         * doc/posix-functions/pthread_spin_destroy.texi
42860         (pthread_spin_destroy): Added in cygwin 1.7.10.
42861         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
42862         Likewise.
42863         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
42864         Likewise.
42865         * doc/posix-functions/pthread_spin_trylock.texi
42866         (pthread_spin_trylock): Likewise.
42867         * doc/posix-functions/pthread_spin_unlock.texi
42868         (pthread_spin_unlock): Likewise.
42869         * doc/posix-functions/pthread_setschedprio.texi
42870         (pthread_setschedprio): Likewise.
42871         * doc/posix-functions/pthread_attr_getstack.texi
42872         (pthread_attr_getstack): Likewise.
42873         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
42874         (pthread_attr_getstackaddr): Likewise.
42875         * doc/glibc-functions/pthread_getattr_np.texi
42876         (pthread_getattr_np): Likewise.
42877         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
42878         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
42879         * doc/posix-functions/clock_settime.texi (clock_settime):
42880         Likewise.
42881         * doc/posix-functions/pthread_attr_getguardsize.texi
42882         (pthread_attr_getguardsize): Likewise.
42883         * doc/posix-functions/pthread_attr_setguardsize.texi
42884         (pthread_attr_setguardsize): Likewise.
42885         * doc/posix-functions/pthread_attr_setstack.texi
42886         (pthread_attr_setstack): Likewise.
42887         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
42888         (pthread_attr_setstackaddr): Likewise.
42889         * doc/posix-functions/clock_getcpuclockid.texi
42890         (clock_getcpuclockid): Likewise.
42891         * doc/posix-functions/pthread_getcpuclockid.texi
42892         (pthread_getcpuclockid): Likewise.
42893         * doc/glibc-functions/error.texi (error): Likewise.
42894         * doc/glibc-functions/error_at_line.texi (error_at_line):
42895         Likewise.
42896         * doc/glibc-functions/error_message_count.texi
42897         (error_message_count): Likewise.
42898         * doc/glibc-functions/error_one_per_line.texi
42899         (error_one_per_line): Likewise.
42900         * doc/glibc-functions/error_print_progname.texi
42901         (error_print_progname): Likewise.
42902         * doc/posix-functions/pthread_condattr_getclock.texi
42903         (pthread_condattr_getclock): Likewise.
42904         * doc/posix-functions/pthread_condattr_setclock.texi
42905         (pthread_condattr_setclock): Likewise.
42906         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
42907         Likewise.
42908         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
42909         * doc/glibc-functions/getpt.texi (getpt): Likewise.
42910         * doc/glibc-functions/get_current_dir_name.texi
42911         (get_current_dir_name): Likewise.
42912         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
42913         Likewise.
42914         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
42915         wrong return type.
42916         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
42917         1.7.11.
42919 2012-02-29  Bruno Haible  <bruno@clisp.org>
42921         Tests for module 'hypotf'.
42922         * modules/hypotf-tests: New file.
42923         * tests/test-hypotf.c: New file.
42925         New module 'hypotf'.
42926         * lib/math.in.h (hypotf): New declaration.
42927         * lib/hypotf.c: New file.
42928         * m4/hypotf.m4: New file.
42929         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
42931         REPLACE_HYPOTF.
42932         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
42933         REPLACE_HYPOTF.
42934         * modules/hypotf: New file.
42935         * tests/test-math-c++.cc: Check the hypotf declaration.
42936         * doc/posix-functions/hypotf.texi: Mention the new module.
42938         hypot: Prepare for hypotf module.
42939         * m4/hypot.m4: New file.
42940         * modules/hypot (Files): Add m4/hypot.m4.
42941         (configure.ac): Invoke gl_FUNC_HYPOT.
42943 2012-02-29  Bruno Haible  <bruno@clisp.org>
42945         hypot tests: More tests.
42946         * tests/test-hypot.c: Include <float.h>.
42947         (main): Add tests about overflow and underflow.
42949 2012-02-29  Bruno Haible  <bruno@clisp.org>
42951         math code: Add comments.
42952         * lib/acosl.c: Add comment about related glibc source files.
42953         * lib/asinl.c: Likewise.
42954         * lib/atanl.c: Likewise.
42955         * lib/expl.c: Likewise.
42956         * lib/logl.c: Likewise.
42957         * lib/sincosl.c: Likewise.
42958         * lib/sinl.c: Likewise.
42959         * lib/tanl.c: Likewise.
42960         * lib/trigl.c: Likewise.
42961         * lib/cosl.c: Likewise. Fix comments.
42963 2012-02-28  Bruno Haible  <bruno@clisp.org>
42965         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
42966         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
42967         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
42968         HUGE_VALL are defined.
42969         (numeric_equald): Renamed from numeric_equal.
42970         (numeric_equalf, numeric_equall): New functions.
42971         (main): Check also HUGE_VALF, HUGE_VALL.
42972         * modules/math-tests (Files): Add tests/macros.h.
42973         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
42974         HUGE_VALL.
42976 2012-02-28  Bruno Haible  <bruno@clisp.org>
42978         doc: Move ISO C11 feature notes into POSIX chapters.
42979         * doc/posix-functions/aligned_alloc.texi: Renamed from
42980         doc/glibc-functions/aligned_alloc.texi.
42981         * doc/posix-functions/quick_exit.texi: Renamed from
42982         doc/glibc-functions/quick_exit.texi.
42983         * doc/posix-headers/uchar.texi: Renamed from
42984         doc/glibc-headers/uchar.texi.
42985         * doc/posix-functions/c16rtomb.texi: Renamed from
42986         doc/glibc-functions/c16rtomb.texi.
42987         * doc/posix-functions/c32rtomb.texi: Renamed from
42988         doc/glibc-functions/c32rtomb.texi.
42989         * doc/posix-functions/mbrtoc16.texi: Renamed from
42990         doc/glibc-functions/mbrtoc16.texi.
42991         * doc/posix-functions/mbrtoc32.texi: Renamed from
42992         doc/glibc-functions/mbrtoc32.texi.
42993         * doc/gnulib.texi: Update.
42994         (Glibc uchar.h): Remove section.
42995         Suggested by Eric Blake.
42997 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
42999         stdnoreturn: port to MSVC better
43000         MSVC standard headers use __declspec(noreturn), so #define noreturn
43001         to empty on that platform.  Reported by Bruno Haible in
43002         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
43003         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
43004         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
43006 2012-02-28  Bruno Haible  <bruno@clisp.org>
43008         doc: Mention new glibc headers and functions.
43009         * doc/glibc-headers/uchar.texi: New file.
43010         * doc/glibc-functions/aligned_alloc.texi: New file.
43011         * doc/glibc-functions/c16rtomb.texi: New file.
43012         * doc/glibc-functions/c32rtomb.texi: New file.
43013         * doc/glibc-functions/clock_adjtime.texi: New file.
43014         * doc/glibc-functions/fanotify_init.texi: New file.
43015         * doc/glibc-functions/fanotify_mark.texi: New file.
43016         * doc/glibc-functions/inet6_opt_append.texi: New file.
43017         * doc/glibc-functions/inet6_opt_find.texi: New file.
43018         * doc/glibc-functions/inet6_opt_finish.texi: New file.
43019         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
43020         * doc/glibc-functions/inet6_opt_init.texi: New file.
43021         * doc/glibc-functions/inet6_opt_next.texi: New file.
43022         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
43023         * doc/glibc-functions/inet6_rth_add.texi: New file.
43024         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
43025         * doc/glibc-functions/inet6_rth_init.texi: New file.
43026         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
43027         * doc/glibc-functions/inet6_rth_segments.texi: New file.
43028         * doc/glibc-functions/inet6_rth_space.texi: New file.
43029         * doc/glibc-functions/login.texi: New file.
43030         * doc/glibc-functions/mbrtoc16.texi: New file.
43031         * doc/glibc-functions/mbrtoc32.texi: New file.
43032         * doc/glibc-functions/name_to_handle_at.texi: New file.
43033         * doc/glibc-functions/ntp_gettimex.texi: New file.
43034         * doc/glibc-functions/open_by_handle_at.texi: New file.
43035         * doc/glibc-functions/prlimit.texi: New file.
43036         * doc/glibc-functions/process_vm_readv.texi: New file.
43037         * doc/glibc-functions/process_vm_writev.texi: New file.
43038         * doc/glibc-functions/recvmmsg.texi: New file.
43039         * doc/glibc-functions/scandirat.texi: New file.
43040         * doc/glibc-functions/sendmmsg.texi: New file.
43041         * doc/glibc-functions/setns.texi: New file.
43042         * doc/glibc-functions/timespec_get.texi: New file.
43043         * doc/gnulib.texi: Include them.
43044         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
43045         sections.
43046         Reported by Eric Blake.
43048 2012-02-28  Bruno Haible  <bruno@clisp.org>
43050         Avoid compilation errors with MSVC option -fp:strict.
43051         * lib/floor.c: Use MSVC specific pragma fenv_access.
43052         * lib/ceil.c: Likewise.
43053         * lib/trunc.c: Likewise.
43054         * lib/round.c: Likewise.
43055         * lib/rint.c: Likewise.
43056         * lib/fma.c: Likewise.
43057         * lib/integer_length.c: Likewise.
43058         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43059         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43060         * tests/test-floor2.c: Likewise.
43061         * tests/test-floorf2.c: Likewise.
43062         * tests/test-ceil2.c: Likewise.
43063         * tests/test-ceilf2.c: Likewise.
43064         * tests/test-trunc2.c: Likewise.
43065         * tests/test-truncf2.c: Likewise.
43066         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43068 2012-02-27  Bruno Haible  <bruno@clisp.org>
43070         Tests for module 'sqrtl-ieee'.
43071         * modules/sqrtl-ieee-tests: New file.
43072         * tests/test-sqrtl-ieee.c: New file.
43074         New module 'sqrtl-ieee'.
43075         * modules/sqrtl-ieee: New file.
43077         Tests for module 'sqrt-ieee'.
43078         * modules/sqrt-ieee-tests: New file.
43079         * tests/test-sqrt-ieee.c: New file.
43081         New module 'sqrt-ieee'.
43082         * modules/sqrt-ieee: New file.
43084         Tests for module 'sqrtf-ieee'.
43085         * modules/sqrtf-ieee-tests: New file.
43086         * tests/test-sqrtf-ieee.c: New file.
43087         * tests/test-sqrt-ieee.h: New file.
43089         New module 'sqrtf-ieee'.
43090         * modules/sqrtf-ieee: New file.
43092 2012-02-27  Bruno Haible  <bruno@clisp.org>
43094         remainderl-ieee: Work around test failure on OSF/1.
43095         * m4/remainderl-ieee.m4: New file.
43096         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
43097         present, test whether remainderl works with a zero second argument.
43098         Replace it if not.
43099         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
43100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
43101         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
43102         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
43103         (Depends-on): Update conditions.
43104         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
43105         (Depends-on): Add remainder-ieee.
43106         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
43107         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
43108         module.
43110         remainderf-ieee: Work around test failure on OSF/1.
43111         * m4/remainderf-ieee.m4: New file.
43112         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
43113         present, test whether remainderf works with a zero second argument.
43114         Replace it if not.
43115         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
43116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
43117         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
43118         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
43119         (Depends-on): Update conditions.
43120         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
43121         (Depends-on): Add remainder-ieee.
43122         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
43123         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
43124         module.
43126         remainder-ieee: Work around test failure on OSF/1.
43127         * m4/remainder-ieee.m4: New file.
43128         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
43129         present, test whether remainder works with a zero second argument.
43130         Replace it if not.
43131         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
43132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
43133         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
43134         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
43135         (Depends-on): Update dependencies.
43136         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
43137         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
43138         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
43140         Tests for module 'remainderl-ieee'.
43141         * modules/remainderl-ieee-tests: New file.
43142         * tests/test-remainderl-ieee.c: New file.
43144         New module 'remainderl-ieee'.
43145         * modules/remainderl-ieee: New file.
43147         Tests for module 'remainder-ieee'.
43148         * modules/remainder-ieee-tests: New file.
43149         * tests/test-remainder-ieee.c: New file.
43151         New module 'remainder-ieee'.
43152         * modules/remainder-ieee: New file.
43154         Tests for module 'remainderf-ieee'.
43155         * modules/remainderf-ieee-tests: New file.
43156         * tests/test-remainderf-ieee.c: New file.
43157         * tests/test-remainder-ieee.h: New file.
43159         New module 'remainderf-ieee'.
43160         * modules/remainderf-ieee: New file.
43162 2012-02-27  Bruno Haible  <bruno@clisp.org>
43164         modff, modfl: Fix configure syntax error.
43165         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
43166         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
43168 2012-02-27  Bruno Haible  <bruno@clisp.org>
43170         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
43171         * m4/fmodl-ieee.m4: New file.
43172         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
43173         whether fmodl works with zero arguments. Replace it if not.
43174         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
43175         (Depends-on): Add fmod-ieee.
43176         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
43177         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
43179         fmodf-ieee: Work around test failure on OSF/1.
43180         * m4/fmodf-ieee.m4: New file.
43181         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
43182         whether fmodf works with zero arguments. Replace it if not.
43183         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
43184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
43185         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
43186         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
43187         (Depends-on): Update dependencies.
43188         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
43189         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
43190         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
43192         fmodf-ieee: Work around test failure on MSVC 9.
43193         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
43194         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
43196         fmod-ieee: Work around test failures on OSF/1, mingw.
43197         * m4/fmod-ieee.m4: New file.
43198         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
43199         whether fmod works with zero arguments. Replace it if not.
43200         * lib/math.in.h (fmod): New declaration.
43201         * lib/fmod.c: New file.
43202         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
43203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
43204         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
43205         * modules/fmod (Files): Add lib/fmod.c.
43206         (Depends-on): Add math, isinf, trunc, fma.
43207         (configure.ac): Arrange to compile lib/fmod.c if needed.
43208         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
43209         m4/signbit.m4.
43210         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
43211         * tests/test-math-c++.cc: Check the declaration of fmod.
43212         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
43214         fmodl-ieee: Fix test failures.
43215         * lib/fmodl.c (fmodl): Treat Inf specially.
43216         * modules/fmodl (Depends-on): Add isinf.
43218         Tests for module 'fmodl-ieee'.
43219         * modules/fmodl-ieee-tests: New file.
43220         * tests/test-fmodl-ieee.c: New file.
43222         New module 'fmodl-ieee'.
43223         * modules/fmodl-ieee: New file.
43225         Tests for module 'fmod-ieee'.
43226         * modules/fmod-ieee-tests: New file.
43227         * tests/test-fmod-ieee.c: New file.
43229         New module 'fmod-ieee'.
43230         * modules/fmod-ieee: New file.
43232         Tests for module 'fmodf-ieee'.
43233         * modules/fmodf-ieee-tests: New file.
43234         * tests/test-fmodf-ieee.c: New file.
43235         * tests/test-fmod-ieee.h: New file.
43237         New module 'fmodf-ieee'.
43238         * modules/fmodf-ieee: New file.
43240 2012-02-27  Bruno Haible  <bruno@clisp.org>
43242         Tests for module 'rintl-ieee'.
43243         * modules/rintl-ieee-tests: New file.
43244         * tests/test-rintl-ieee.c: New file.
43246         New module 'rintl-ieee'.
43247         * modules/rintl-ieee: New file.
43249         Tests for module 'rint-ieee'.
43250         * modules/rint-ieee-tests: New file.
43251         * tests/test-rint-ieee.c: New file.
43253         New module 'rint-ieee'.
43254         * modules/rint-ieee: New file.
43256         Tests for module 'rintf-ieee'.
43257         * modules/rintf-ieee-tests: New file.
43258         * tests/test-rintf-ieee.c: New file.
43259         * tests/test-rint-ieee.h: New file.
43261         New module 'rintf-ieee'.
43262         * modules/rintf-ieee: New file.
43264 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
43266         regex: re_search etc. should return -2 when memory exhausted
43267         This bug was uncovered when testing 'grep'.  Without the fix,
43268         re_search and friends return -1 when memory is exhausted, but -1
43269         means no match, and this causes grep to falsely report no-match
43270         instead of memory-exhaustion.  See
43271         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
43272         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
43273         trouble; this can occur if re_search_internal ran out of memory.
43275 2012-02-26  Bruno Haible  <bruno@clisp.org>
43277         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
43278         * m4/modfl-ieee.m4: New file.
43279         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
43280         whether modfl works with Inf. Replace it if not.
43281         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
43282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
43283         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
43284         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
43285         (Depends-on): Update dependencies.
43286         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
43287         m4/signbit.m4.
43288         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
43289         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
43291         modfl-ieee: Fix dependencies.
43292         * modules/modfl-ieee (Depends-on): Add modf-ieee.
43294         modfl-ieee: Fix test failures.
43295         * lib/modfl.c (modfl): Treat NaN and Inf specially.
43296         * modules/modfl (Depends-on): Add isfinite, isinf.
43298         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
43299         * m4/modff-ieee.m4: New file.
43300         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
43301         whether modff works with NaN and Inf. Replace it if not.
43302         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
43303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
43304         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
43305         * modules/modff (configure.ac): Consider REPLACE_MODFF.
43306         (Depends-on): Update dependencies.
43307         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
43308         m4/signbit.m4.
43309         (Depends-on): Add modf-ieee.
43310         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
43311         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
43313         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
43314         * m4/modf-ieee.m4: New file.
43315         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
43316         whether modf works with NaN and Inf. Replace it if not.
43317         * lib/math.in.h (modf): New declaration.
43318         * lib/modf.c: New file.
43319         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
43320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
43321         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
43322         * modules/modf (Files): Add lib/modf.c.
43323         (Depends-on): Add math, isfinite, trunc, isinf.
43324         (configure.ac): Addrange to compile lib/modf.c if needed.
43325         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
43326         m4/signbit.m4.
43327         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
43328         * tests/test-math-c++.cc: Check the declaration of modf.
43329         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
43331         Tests for module 'modfl-ieee'.
43332         * modules/modfl-ieee-tests: New file.
43333         * tests/test-modfl-ieee.c: New file.
43335         New module 'modfl-ieee'.
43336         * modules/modfl-ieee: New file.
43338         Tests for module 'modf-ieee'.
43339         * modules/modf-ieee-tests: New file.
43340         * tests/test-modf-ieee.c: New file.
43342         New module 'modf-ieee'.
43343         * modules/modf-ieee: New file.
43345         Tests for module 'modff-ieee'.
43346         * modules/modff-ieee-tests: New file.
43347         * tests/test-modff-ieee.c: New file.
43348         * tests/test-modf-ieee.h: New file.
43350         New module 'modff-ieee'.
43351         * modules/modff-ieee: New file.
43353 2012-02-26  Bruno Haible  <bruno@clisp.org>
43355         Tests for module 'fabsl-ieee'.
43356         * modules/fabsl-ieee-tests: New file.
43357         * tests/test-fabsl-ieee.c: New file.
43359         New module 'fabsl-ieee'.
43360         * modules/fabsl-ieee: New file.
43362         Tests for module 'fabs-ieee'.
43363         * modules/fabs-ieee-tests: New file.
43364         * tests/test-fabs-ieee.c: New file.
43366         New module 'fabs-ieee'.
43367         * modules/fabs-ieee: New file.
43369         Tests for module 'fabsf-ieee'.
43370         * modules/fabsf-ieee-tests: New file.
43371         * tests/test-fabsf-ieee.c: New file.
43372         * tests/test-fabs-ieee.h: New file.
43374         New module 'fabsf-ieee'.
43375         * modules/fabsf-ieee: New file.
43377 2012-02-26  Bruno Haible  <bruno@clisp.org>
43379         Tests for module 'fmal-ieee'.
43380         * modules/fmal-ieee-tests: New file.
43381         * tests/test-fmal-ieee.c: New file.
43383         New module 'fmal-ieee'.
43384         * modules/fmal-ieee: New file.
43386         Tests for module 'fma-ieee'.
43387         * modules/fma-ieee-tests: New file.
43388         * tests/test-fma-ieee.c: New file.
43390         New module 'fma-ieee'.
43391         * modules/fma-ieee: New file.
43393         Tests for module 'fmaf-ieee'.
43394         * modules/fmaf-ieee-tests: New file.
43395         * tests/test-fmaf-ieee.c: New file.
43396         * tests/test-fma-ieee.h: New file.
43398         New module 'fmaf-ieee'.
43399         * modules/fmaf-ieee: New file.
43401 2012-02-26  Bruno Haible  <bruno@clisp.org>
43403         Tests for module 'ldexpl-ieee'.
43404         * modules/ldexpl-ieee-tests: New file.
43405         * tests/test-ldexpl-ieee.c: New file.
43407         New module 'ldexpl-ieee'.
43408         * modules/ldexpl-ieee: New file.
43410         Tests for module 'ldexp-ieee'.
43411         * modules/ldexp-ieee-tests: New file.
43412         * tests/test-ldexp-ieee.c: New file.
43414         New module 'ldexp-ieee'.
43415         * modules/ldexp-ieee: New file.
43417         Tests for module 'ldexpf-ieee'.
43418         * modules/ldexpf-ieee-tests: New file.
43419         * tests/test-ldexpf-ieee.c: New file.
43420         * tests/test-ldexp-ieee.h: New file.
43422         New module 'ldexpf-ieee'.
43423         * modules/ldexpf-ieee: New file.
43425 2012-02-26  Bruno Haible  <bruno@clisp.org>
43427         Refactor frexp*-ieee tests.
43428         * tests/test-frexp-ieee.h: New file.
43429         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
43430         (main): Just call test_function.
43431         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
43432         (main): Just call test_function.
43433         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
43434         (main): Just call test_function.
43435         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
43436         * modules/frexp-ieee-tests (Files): Likewise.
43437         * modules/frexpl-ieee-tests (Files): Likewise.
43439         Tests for module 'frexpl-ieee'.
43440         * modules/frexpl-ieee-tests: New file.
43441         * tests/test-frexpl-ieee.c: New file.
43443         New module 'frexpl-ieee'.
43444         * modules/frexpl-ieee: New file.
43446         Tests for module 'frexp-ieee'.
43447         * modules/frexp-ieee-tests: New file.
43448         * tests/test-frexp-ieee.c: New file.
43450         New module 'frexp-ieee'.
43451         * modules/frexp-ieee: New file.
43453         Tests for module 'frexpf-ieee'.
43454         * modules/frexpf-ieee-tests: New file.
43455         * tests/test-frexpf-ieee.c: New file.
43457         New module 'frexpf-ieee'.
43458         * modules/frexpf-ieee: New file.
43460 2012-02-26  Bruno Haible  <bruno@clisp.org>
43462         roundl-ieee tests: More tests.
43463         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43464         (main): Add tests for [MX] shaded specification in POSIX.
43465         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43466         (Depends-on): Add isnanl-nolibm.
43468         round-ieee tests: More tests.
43469         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43470         (main): Add tests for [MX] shaded specification in POSIX.
43471         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43472         (Depends-on): Add isnand-nolibm.
43474         roundf-ieee tests: More tests.
43475         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43476         (main): Add tests for [MX] shaded specification in POSIX.
43477         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43478         (Depends-on): Add isnanf-nolibm.
43480         truncl-ieee tests: More tests.
43481         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43482         (main): Add tests for [MX] shaded specification in POSIX.
43483         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43484         (Depends-on): Add isnanl-nolibm.
43486         trunc-ieee tests: More tests.
43487         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43488         (main): Add tests for [MX] shaded specification in POSIX.
43489         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43490         (Depends-on): Add isnand-nolibm.
43492         truncf-ieee tests: More tests.
43493         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43494         (main): Add tests for [MX] shaded specification in POSIX.
43495         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43496         (Depends-on): Add isnanf-nolibm.
43498         ceill-ieee tests: More tests.
43499         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43500         (main): Add tests for [MX] shaded specification in POSIX.
43501         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43502         (Depends-on): Add isnanl-nolibm.
43504         ceil-ieee tests: More tests.
43505         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43506         (main): Add tests for [MX] shaded specification in POSIX.
43507         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43508         (Depends-on): Add isnand-nolibm.
43510         ceilf-ieee tests: More tests.
43511         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43512         (main): Add tests for [MX] shaded specification in POSIX.
43513         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43514         (Depends-on): Add isnanf-nolibm.
43516         floorl-ieee tests: More tests.
43517         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43518         (main): Add tests for [MX] shaded specification in POSIX.
43519         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43520         (Depends-on): Add isnanl-nolibm.
43522         floor-ieee tests: More tests.
43523         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43524         (main): Add tests for [MX] shaded specification in POSIX.
43525         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43526         (Depends-on): Add isnand-nolibm.
43528         floorf-ieee tests: More tests.
43529         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43530         (main): Add tests for [MX] shaded specification in POSIX.
43531         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43532         (Depends-on): Add isnanf-nolibm.
43534 2012-02-26  Bruno Haible  <bruno@clisp.org>
43536         fpieee: More comments.
43537         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
43539 2012-02-25  Bruno Haible  <bruno@clisp.org>
43541         Tests for module 'log10l'.
43542         * modules/log10l-tests: New file.
43543         * tests/test-log10l.c: New file.
43544         * tests/test-math-c++.cc: Check the declaration of log10l.
43546         New module 'log10l'.
43547         * lib/math.in.h (log10l): New declaration.
43548         * lib/log10l.c: New file.
43549         * m4/log10l.m4: New file.
43550         * modules/log10l: New file.
43551         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
43552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
43553         HAVE_DECL_LOG10L.
43554         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
43555         HAVE_DECL_LOG10L.
43556         * doc/posix-functions/log10l.texi: Mention the new module.
43558 2012-02-25  Bruno Haible  <bruno@clisp.org>
43560         fmodl, remainder*: Avoid wrong results due to rounding errors.
43561         * lib/fmodl.c (fmodl): Correct the result if it is not within the
43562         expected bounds.
43563         * lib/remainderf.c (remainderf): Likewise.
43564         * lib/remainder.c (remainder): Likewise.
43565         * lib/remainderl.c (remainderl): Likewise.
43567 2012-02-25  Bruno Haible  <bruno@clisp.org>
43569         Tests for module 'remainderl'.
43570         * modules/remainderl-tests: New file.
43571         * tests/test-remainderl.c: New file.
43572         * tests/test-math-c++.cc: Check the declaration of remainderl.
43574         New module 'remainderl'.
43575         * lib/math.in.h (remainderl): New declaration.
43576         * lib/remainderl.c: New file.
43577         * m4/remainderl.m4: New file.
43578         * modules/remainderl: New file.
43579         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
43580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
43581         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
43582         HAVE_REMAINDERL.
43583         * doc/posix-functions/remainderl.texi: Mention the new module.
43585 2012-02-25  Bruno Haible  <bruno@clisp.org>
43587         Tests for module 'remainderf'.
43588         * modules/remainderf-tests: New file.
43589         * tests/test-remainderf.c: New file.
43590         * tests/test-math-c++.cc: Check the declaration of remainderf.
43592         New module 'remainderf'.
43593         * lib/math.in.h (remainderf): New declaration.
43594         * lib/remainderf.c: New file.
43595         * m4/remainderf.m4: New file.
43596         * modules/remainderf: New file.
43597         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
43598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
43599         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
43600         HAVE_REMAINDERF.
43601         * doc/posix-functions/remainderf.texi: Mention the new module.
43603 2012-02-25  Bruno Haible  <bruno@clisp.org>
43605         remainder: Support for MSVC.
43606         * lib/math.in.h (remainder): New declaration.
43607         * lib/remainder.c: New file.
43608         * m4/remainder.m4: New file.
43609         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
43610         (Depends-on): Add math, round, fma.
43611         (configure.ac): Use results of gl_FUNC_REMAINDER.
43612         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
43613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
43614         HAVE_DECL_REMAINDER.
43615         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
43616         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
43617         * tests/test-math-c++.cc: Check the declaration of remainder.
43618         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
43619         problems are fixed.
43621 2012-02-25  Bruno Haible  <bruno@clisp.org>
43623         Tests for module 'fmodl'.
43624         * modules/fmodl-tests: New file.
43625         * tests/test-fmodl.c: New file.
43626         * tests/test-math-c++.cc: Check the declaration of fmodl.
43628         New module 'fmodl'.
43629         * lib/math.in.h (fmodl): New declaration.
43630         * lib/fmodl.c: New file.
43631         * m4/fmodl.m4: New file.
43632         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
43633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
43634         REPLACE_FMODL.
43635         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
43636         REPLACE_FMODL.
43637         * modules/fmodl: New file.
43638         * doc/posix-functions/fmodl.texi: Mention the new module.
43640 2012-02-25  Bruno Haible  <bruno@clisp.org>
43642         Tests for module 'modfl'.
43643         * modules/modfl-tests: New file.
43644         * tests/test-modfl.c: New file.
43645         * tests/test-math-c++.cc: Check the declaration of modfl.
43647         New module 'modfl'.
43648         * lib/math.in.h (modfl): New declaration.
43649         * lib/modfl.c: New file.
43650         * m4/modfl.m4: New file.
43651         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
43652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
43653         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
43654         * modules/modfl: New file.
43655         * doc/posix-functions/modfl.texi: Mention the new module.
43657 2012-02-25  Bruno Haible  <bruno@clisp.org>
43659         Tests for module 'fabsl'.
43660         * modules/fabsl-tests: New file.
43661         * tests/test-fabsl.c: New file.
43662         * tests/test-math-c++.cc: Check the declaration of fabsl.
43664         New module 'fabsl'.
43665         * lib/math.in.h (fabsl): New declaration.
43666         * lib/fabsl.c: New file.
43667         * m4/fabsl.m4: New file.
43668         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
43669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
43670         REPLACE_FABSL.
43671         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
43672         REPLACE_FABSL.
43673         * modules/fabsl: New file.
43674         * doc/posix-functions/fabsl.texi: Mention the new module.
43676 2012-02-25  Bruno Haible  <bruno@clisp.org>
43678         fabs tests: More tests.
43679         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
43680         (zero): New variable.
43681         (main): Add tests for signed zero.
43682         * modules/fabs-tests (Files): Add tests/minus-zero.h.
43684         fabsf tests: More tests.
43685         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
43686         (zero): New variable.
43687         (main): Add tests for signed zero.
43688         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
43690 2012-02-24  Bruno Haible  <bruno@clisp.org>
43692         atanl: Provide function definition on MSVC.
43693         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
43694         function pointer.
43695         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
43697 2012-02-24  Bruno Haible  <bruno@clisp.org>
43699         acosl: Provide function definition on MSVC.
43700         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
43701         function pointer.
43702         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
43704 2012-02-24  Bruno Haible  <bruno@clisp.org>
43706         asinl: Provide function definition on MSVC.
43707         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
43708         function pointer.
43709         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
43711 2012-02-24  Bruno Haible  <bruno@clisp.org>
43713         tanl: Provide function definition on MSVC.
43714         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
43715         function pointer.
43716         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
43718 2012-02-24  Bruno Haible  <bruno@clisp.org>
43720         cosl: Provide function definition on MSVC.
43721         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
43722         function pointer.
43723         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
43725 2012-02-24  Bruno Haible  <bruno@clisp.org>
43727         sinl: Provide function definition on MSVC.
43728         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
43729         function pointer.
43730         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
43732 2012-02-24  Bruno Haible  <bruno@clisp.org>
43734         logl: Provide function definition on MSVC.
43735         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
43736         function pointer.
43737         * lib/math.in.h (logl): Undefine if it does not exist as a function.
43739 2012-02-24  Bruno Haible  <bruno@clisp.org>
43741         expl: Provide function definition on MSVC.
43742         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
43743         function pointer.
43744         * lib/math.in.h (expl): Undefine if it does not exist as a function.
43746 2012-02-24  Bruno Haible  <bruno@clisp.org>
43748         sqrtl: Provide function definition on MSVC.
43749         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
43750         a function pointer.
43751         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
43753 2012-02-24  Bruno Haible  <bruno@clisp.org>
43755         ceill: Provide function definition on MSVC.
43756         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
43757         used as a function pointer.
43758         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
43760 2012-02-24  Bruno Haible  <bruno@clisp.org>
43762         floorl: Provide function definition on MSVC.
43763         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
43764         used as a function pointer.
43765         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
43767 2012-02-24  Bruno Haible  <bruno@clisp.org>
43769         ceilf: Provide function definition on MSVC.
43770         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
43771         used as a function pointer.
43772         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
43774 2012-02-24  Bruno Haible  <bruno@clisp.org>
43776         floorf: Provide function definition on MSVC.
43777         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
43778         used as a function pointer.
43779         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
43781 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43783         stdnoreturn: new module
43784         This implements a replacement for C11's <stdnoreturn.h>.
43785         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
43786         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
43787         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
43788         * tests/test-stdnoreturn.c: New files.
43790 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
43792         regex: fix false multibyte matches in some regular expressions
43793         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
43794         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
43795         * lib/regex_internal.c (re_string_skip_chars):
43796         Fix miscomputation of remain_len that may cause incomplete
43797         multi-byte character and false match.
43799 2012-02-24  Jim Meyering  <meyering@redhat.com>
43801         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
43802         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
43803         uses with "==" *before* the call, e.g., 0 == strcmp (...)
43804         Remove now-unnecessary str''cmp obfuscation.
43805         Suggested by Akim Demaille.
43807 2012-02-24  Bruno Haible  <bruno@clisp.org>
43809         streq: Rename macro.
43810         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
43811         * NEWS: Mention the change.
43812         * lib/mbrtowc.c (mbrtowc): Update.
43813         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
43814         * lib/wcwidth.c (wcwidth): Update.
43815         Suggested by Akim Demaille and Jim Meyering.
43817 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43819         regex: fix typo in definition of MIN
43820         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
43821         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
43823 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43824             Bruno Haible  <bruno@clisp.org>
43826         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
43827         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
43828         entries into a stack-allocated buffer directly.
43829         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
43831 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43832             Bruno Haible  <bruno@clisp.org>
43834         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
43836          - There were several instances of this pattern:
43838              for (;;) {
43839                n = acl (f, GETACLCNT, 0, NULL);
43840                [ allocate an array A of size N ]
43841                if (acl (f, GETACL, n, a) == n)
43842                  break;
43843              }
43845            This loop might never terminate if some other process is constantly
43846            manipulating the file's ACL.  The loop should be rewritten to
43847            terminate.
43849          - The acl (... GETACLNT ...) call is merely an optimization; its value
43850            is merely a hint as to how big to make the array.  A better
43851            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
43852            and just guess a reasonably-big size, growing the size and trying
43853            again if it's not large enough.  This guarantees termination, and
43854            saves a system call.
43856         * lib/acl-internal.h: Include <limits.h>.
43857         (MIN, SIZE_MAX): New macros.
43858         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
43859         a stack-allocated buffer, and use malloc if it does not fit. Don't
43860         use GETACLCNT.
43861         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43863 2012-02-19  Bruno Haible  <bruno@clisp.org>
43865         acl: Fix endless loop on Solaris with vxfs.
43866         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
43867         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
43868         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43869         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
43870         * tests/test-sameacls.c (main)[Solaris]: Likewise.
43871         Reported by Bill Jones in
43872         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
43874 2012-02-19  Bruno Haible  <bruno@clisp.org>
43876         acl: Fix copy-acl test failure on Solaris 11.0.
43877         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
43878         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
43879         that this function returns 0 in some more cases.
43881 2012-02-19  Bruno Haible  <bruno@clisp.org>
43883         acl: Update doc references.
43884         * doc/acl-resources.txt: Update links to Solaris documentation.
43886 2012-02-19  Bruno Haible  <bruno@clisp.org>
43888         Fix test failure in many locales on Solaris 11.
43889         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
43890         'tr' arguments.
43891         * tests/test-pipe-filter-ii1.c (main): Likewise.
43892         * build-aux/bootstrap (check_versions): Run 'tr' command with range
43893         expressions in the C locale.
43894         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43895         * m4/host-os.m4 (gl_HOST_OS): Likewise.
43897 2012-02-19  Bruno Haible  <bruno@clisp.org>
43899         gnulib-tool: Improve usage message.
43900         * gnulib-tool (func_usage): Move doc of --help and --version to the
43901         section "Operation modes".
43903 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
43905         README-release: make it easier to execute commands
43906         * top/README-release: break commands out on to separate lines.
43908 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
43910         GNUmakefile: simplify detection of unconfigured trees
43911         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
43912         whether the tree make is being run from is already configured or
43913         not.  Related simplifications.
43915 2012-02-13  Simon Josefsson  <simon@josefsson.org>
43917         * gnulib-tool (func_usage): Document --help and --version.
43919 2012-02-11  Jim Meyering  <meyering@redhat.com>
43921         bootstrap: don't exit 0 upon gnulib-tool failure
43922         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
43923         its exit status, not 0.
43925 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
43927         README-release: various improvements
43928         * top/README-release: Give a command to push changes for the
43929         release.  Add "distcheck" to list of other pre-release checks.
43930         Fix instance of "make stable" which should be "make TYPE".
43932 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43934         maint: replace FSF snail-mail addresses with URLs
43935         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
43936         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
43937         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
43938         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
43939         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
43940         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
43941         * lib/check-version.c, lib/check-version.h, lib/config.charset:
43942         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
43943         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
43944         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
43945         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
43946         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
43947         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
43948         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
43949         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
43950         * lib/glthread/thread.c, lib/glthread/thread.h:
43951         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
43952         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
43953         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
43954         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
43955         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
43956         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
43957         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
43958         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
43959         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
43960         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
43961         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
43962         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
43963         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
43964         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
43965         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
43966         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
43967         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
43968         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
43969         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
43970         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
43971         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
43972         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
43973         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
43974         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
43975         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
43976         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
43977         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
43978         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
43979         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
43980         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
43981         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
43982         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
43983         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
43984         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
43985         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
43986         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
43987         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
43988         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
43989         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
43990         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
43991         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
43992         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
43993         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
43994         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
43995         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
43996         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
43997         * tests/test-poll.c, tests/test-quotearg-simple.c:
43998         * tests/test-quotearg.c, tests/test-quotearg.h:
43999         * tests/test-round-ieee.c, tests/test-round1.c:
44000         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
44001         * tests/test-roundl-ieee.c, tests/test-roundl.c:
44002         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
44003         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
44004         * tests/test-strerror.c, tests/test-strerror_r.c:
44005         * tests/test-strsignal.c, tests/test-strverscmp.c:
44006         * tests/test-xmemdup0.c:
44007         Replace FSF snail mail addresses with URLs, as per GNU coding
44008         standards.  See glibc bug
44009         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
44011 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
44013         README-release: capitalize a word and split a line
44014         * top/README-release: Fix punctuation and spacing.
44016 2012-02-08  Akim Demaille  <demaille@gostai.com>
44018         fatal-signal: use C prototypes (with explicit void).
44019         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44020         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
44022 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44024         regex: spelling fix
44025         * lib/regexec.c: spelling fix
44027         regex: rely on stdint.h for SIZE_MAX
44028         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
44030 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44032         regex: merge glibc changes
44034         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
44035         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
44036         (init_word_char): Work even if bitset words are not exactly 32 or
44037         64 bits wide.  Don't assume there are no padding bits.
44038         * lib/regex.c [_LIBC]: Do not include <config.h>.
44039         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
44040         and -Wtype-limits.
44041         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
44042         needless disagreement with glibc.  All uses changed.  Define it to
44043         1 only if _GNU_SOURCE, to match glibc.
44044         (_REG_RM_NAME): Remove; no longer needed, since the names in
44045         question are now all protected by __USE_GNU.
44046         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
44047         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
44048         * lib/regex_internal.h (MIN): New macro.
44050         2012-01-03 Ulrich Drepper <drepper@gmail.com>
44051         * lib/regcomp.c (init_word_char): Optimize regex a bit.
44053         2011-12-30 Jakub Jelinek <jakub@redhat.com>
44054         * lib/regex_internal.c (re_string_fetch_byte_case):
44055         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
44056         is miscompiled, and it turns out it is because of an incorrect
44057         attribute on re_string_fetch_byte_case.  Unlike
44058         re_string_peek_byte_case, this one is really not pure, it modifies
44059         memory (increments pstr->cur_idx), and with the pure attribute GCC
44060         assumed it doesn't and it cached the presumed value of
44061         regexp->cur_idx in a variable across the
44062          for (;; ++i)
44063            {
44064              if (i >= BRACKET_NAME_BUF_SIZE)
44065                return REG_EBRACK;
44066              if (token->type == OP_OPEN_CHAR_CLASS)
44067                ch = re_string_fetch_byte_case (regexp);
44068              else
44069                ch = re_string_fetch_byte (regexp);
44070              if (re_string_eoi(regexp))
44071                return REG_EBRACK;
44072              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
44073                break;
44074              elem->opr.name[i] = ch;
44075            }
44077         2011-11-29 Andreas Schwab <schwab@redhat.com>
44078         * lib/regcomp.c (build_equiv_class):
44079         Fix access after end of search string in regex matcher.
44081         2011-11-12 Ulrich Drepper <drepper@redhat.com>
44082         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
44084         2011-10-12 Ulrich Drepper <drepper@redhat.com>
44085         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
44087         2011-10-11 Ulrich Drepper <drepper@redhat.com>
44088         * lib/regcomp.c (parse_branch, parse_sub_exp):
44089         More regex memory leak fixes and tests.
44090         (parse_sub_exp, parse_bracket_exp):
44091         Fix memory leak for some invalid regular expressions.
44093         2011-05-28 Ulrich Drepper <drepper@gmail.com>
44094         * lib/regex_internal.c, lib/regexec.c:
44095         Fix unnecessary overallocation due to incomplete character.  When
44096         incomplete characters are found at the end of a string the code
44097         ran amok and allocated lots of memory.  Stricter limits are now in
44098         place.
44100         2011-05-20 Reuben Thomas <rrt@sc3d.org>
44101         * lib/regex.h: Update documentation.
44103         2011-05-16 Aharon Robbins <arnold@skeeve.com>
44104         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
44106         2010-05-05 Andreas Schwab <schwab@redhat.com>
44107         * lib/regexec.c (find_collation_sequence_value):
44108         Fix lookup of collation sequence value during regexp matching.
44110         2010-01-22 Ulrich Drepper <drepper@redhat.com>
44111         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
44113         2008-01-16 Ulrich Drepper <drepper@redhat.com>
44114         * lib/regex.h: Cleanup namespace.
44116         2007-11-26 Ulrich Drepper <drepper@redhat.com>
44117         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
44119         2007-08-26 Ulrich Drepper <drepper@redhat.com>
44120         * lib/regex_internal.h: Prevent some declarations and definitions
44121         to be seen when used in tests.
44123         2005-05-06 Ulrich Drepper <drepper@redhat.com>
44124         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
44125         __libc_lock_* macros if not _LIBC.
44126         (struct re_dfa_t): Add lock.
44128 2012-02-07  Eric Blake  <eblake@redhat.com>
44130         maint.mk: also prohibit lower-case @var@
44131         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
44132         lower case, like @top_srcdir@.
44134 2012-02-04  Eric Blake  <eblake@redhat.com>
44136         canonicalize: avoid uninitialized memory use
44137         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
44138         random '/' left in dest.
44139         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
44141 2012-02-04  Bruno Haible  <bruno@clisp.org>
44143         isatty: Fix test failure of ptsname_r on native Windows.
44144         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
44145         and don't set errno.
44146         (isatty): Test first whether fd is valid. Set errno when returning 0.
44148 2012-02-04  Bruno Haible  <bruno@clisp.org>
44150         spawn-pipe tests: Fix a NULL program name in a diagnostic.
44151         * tests/test-spawn-pipe-main.c: Include progname.h.
44152         (main): Invoke set_program_name.
44153         * modules/spawn-pipe-tests (Depends-on): Add progname.
44155         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
44156         * tests/test-nonblocking-socket-main.c: Include progname.h.
44157         (main): Invoke set_program_name.
44158         * modules/nonblocking-socket-tests (Depends-on): Add progname.
44160         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
44161         * tests/test-nonblocking-pipe-main.c: Include progname.h.
44162         (main): Invoke set_program_name.
44163         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
44165 2012-02-04  Eric Blake  <eblake@redhat.com>
44167         canonicalize-lgpl: fix // handling
44168         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
44170         canonicalize: fix // handling
44171         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
44172         /// to //, since only // is special.
44174 2012-02-04  Bruno Haible  <bruno@clisp.org>
44176         ioctl: Fix test failure on native Windows.
44177         * lib/ioctl.c: Include msvc-nothrow.h.
44178         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
44180 2012-02-04  Bruno Haible  <bruno@clisp.org>
44182         fsync: Avoid test failure on native Windows.
44183         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
44184         read-only.
44186 2012-02-04  Bruno Haible  <bruno@clisp.org>
44188         sys_select: Avoid syntax error on OpenBSD 5.0.
44189         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
44190         currently being included, just include the system's <sys/select.h>.
44192 2012-02-04  Bruno Haible  <bruno@clisp.org>
44194         sys_select: Avoid syntax error on OpenBSD 5.0.
44195         * lib/sys_select.in.h: Include <signal.h> only after the include_next
44196         <sys/select.h>, not before.
44197         Reported by Jiri B <jirib@devio.us>.
44199 2012-02-04  Bruno Haible  <bruno@clisp.org>
44201         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
44202         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
44203         global variables.
44204         * tests/test-get-rusage-data.c (main): Likewise.
44205         Reported by Jim Meyering.
44207 2012-02-04  Bruno Haible  <bruno@clisp.org>
44209         stdioext: Fix last commit.
44210         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
44212 2012-02-03  Bruno Haible  <bruno@clisp.org>
44214         stdioext: Add tentative support for Plan9.
44215         * lib/stdio-impl.h: Include <errno.h>.
44216         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
44217         * lib/freadable.c (freadable): Likewise.
44218         * lib/fwritable.c (fwritable): Likewise.
44219         * lib/fbufmode.c (fbufmode): Likewise.
44220         * lib/freading.c (freading): Likewise.
44221         * lib/fwriting.c (fwriting): Likewise.
44222         * lib/freadptr.c (freadptr): Likewise.
44223         * lib/freadseek.c (freadptrinc): Likewise.
44224         * lib/freadahead.c (freadahead): Likewise.
44225         * lib/fpurge.c (fpurge): Likewise.
44226         * lib/fseeko.c (rpl_fseeko): Likewise.
44227         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
44228         Reported by Jens Staal <staal1978@gmail.com>.
44230 2012-02-02  Jim Meyering  <meyering@redhat.com>
44232         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
44233         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
44234         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
44235         not even to try to add the attribute.  Instead, add a pragma to suppress
44236         the suggestion/warning.
44238 2012-01-31  Karl Berry  <karl@gnu.org>
44240         setstate doc: typo.
44241         * doc/posix-functions/setstate.texi (setstate): { not (.
44243 2012-01-31  Bruno Haible  <bruno@clisp.org>
44245         popen: Make more robust on Windows.
44246         * lib/popen.c: On native Windows, use the _popen based code even if
44247         HAVE_POPEN is set.
44248         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
44249         environment variable on native Windows.
44251 2012-01-30  Bruno Haible  <bruno@clisp.org>
44253         pclose: Fix typo.
44254         * lib/stdio.in.h (pclose): Fix typo in warning message.
44256 2012-01-30  Bruno Haible  <bruno@clisp.org>
44258         doc about getlogin_r, setstate.
44259         * doc/posix-functions/getlogin_r.texi: List the incompatible
44260         declaration problem under "not fixed by gnulib".
44261         * doc/posix-functions/setstate.texi: Mention incompatible declaration
44262         problem on Solaris 11 and other platforms.
44264 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
44265             Bruno Haible  <bruno@clisp.org>
44267         poll tests: Make test more robust.
44268         * tests/test-poll.c: Include macros.h.
44269         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
44270         return value of various I/O operations.
44271         * modules/poll-tests (Files): Add tests/macros.h.
44273 2012-01-30  Bruno Haible  <bruno@clisp.org>
44275         sys_stat: Fix support for mingw64 and MSVC.
44276         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
44277         header files already do it.
44278         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
44279         stat itself.
44280         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
44282 2012-01-30  Bruno Haible  <bruno@clisp.org>
44284         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
44285         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
44286         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
44288 2012-01-29  Bruno Haible  <bruno@clisp.org>
44290         quotearg: Fix test failure on MacOS X 10.5.
44291         * tests/test-quotearg-simple.c: Include localcharset.h.
44292         (main): If the locale encoding is not ASCII, bypass the tests of
44293         locale_quoting_style and clocale_quoting_style.
44294         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
44296 2012-01-29  Jim Meyering  <meyering@redhat.com>
44298         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
44299         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
44300         detect uses of canonicalize_file_name.
44302 2012-01-28  Bruno Haible  <bruno@clisp.org>
44304         test-framework-sh: Fix test failure with AIX 7.1 diff.
44305         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
44306         in column 1, like 'diff -c' does.
44307         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
44308         whether 'diff -u' is used. Instead, test whether the output contains
44309         some '@' character.
44311 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44313         strtoimax: eliminate need for stdint.h, inttypes.h checks
44314         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
44315         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
44316         the prerequisites for a recently-introduced strtoimax test.
44317         I guess this might cause strtoimax to be replaced when not
44318         strictly necessary on older hosts, but this shouldn't introduce
44319         any bugs and it should make Emacs 'configure' faster on typical
44320         modern hosts.  Problem discovered when importing the latest gnulib
44321         to an Emacs test version.
44322         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
44324 2012-01-28  Bruno Haible  <bruno@clisp.org>
44326         sys_time: Override 'struct timeval' on some native Windows platforms.
44327         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
44328         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
44329         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
44330         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
44331         needs to be overridden.
44332         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
44333         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
44334         * tests/test-sys_select.c: Check that the tv_sec member has the same
44335         size as a 'time_t'.
44336         * tests/test-sys_time.c: Likewise.
44337         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
44338         is set, set also REPLACE_GETTIMEOFDAY.
44339         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
44340         convert the resulting 'struct timeval' before returning.
44341         * lib/select.c: Include <sys/time.h>.
44342         (select, timeval): Undefine at the right place.
44343         * modules/select (Depends-on): Add sys_time.
44344         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
44345         some Windows platforms.
44346         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
44348 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44350         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
44351         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
44352         an integer.
44353         * lib/fcntl.c (dupfd): Likewise.
44354         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
44356 2012-01-28  Bruno Haible  <bruno@clisp.org>
44358         fcntl: Avoid compilation error on native Windows.
44359         * modules/fcntl (Depends-on): Add 'close'.
44361 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44363         select, poll, isatty: Avoid warnings on x86_64 mingw64.
44364         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
44365         pointer to an integer.
44366         * lib/poll.c (IsConsoleHandle): Likewise.
44367         * lib/isatty.c (IsConsoleHandle): Likewise.
44369 2012-01-28  Jim Meyering  <meyering@redhat.com>
44371         doc: clarify README-release
44372         * top/README-release: Clarify: you should make a point to have
44373         the latest stable versions of build tools in your PATH, and the
44374         reference to buildreq is solely for its list of tool names, not
44375         for its minimal-functional version numbers.
44376         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
44378         maint.mk: use more readable (yet functionally equivalent) quoting
44379         It is common to quote a single quote in a single quoted string like
44380         this:  '...'\''...'.  Unless you know the idiom, that looks like
44381         gibberish, so prefer to double-quote the string when possible.
44382         Then you can use a more readable, lone single quote: "...'..."
44383         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
44384         "don't" is more readable than the equivalent 'don'\''t'.
44385         (sc_cast_of_x_alloc_return_value): Likewise.
44386         (sc_cast_of_alloca_return_value): Likewise.
44387         (sc_makefile_path_separator_check): Similar: use ":" in '...',
44388         rather than '\'':'\''.
44390 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44392         stdalign: relax _Alignof and tighten _Alignas test
44393         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
44394         as it was too strict: alignof must divide offsetof, but it need
44395         not equal offsetof.  Inspired by Joseph S. Myers's comment
44396         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
44397         Conversely, tighten the _Alignas test a bit, as the resulting
44398         alignment must be exactly 8.
44400 2012-01-27  Bruno Haible  <bruno@clisp.org>
44402         stdalign: Document the last change.
44403         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
44405 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44407         stdalign: check that alignof and offsetof are consistent
44408         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
44409         Problem reported for gnulib by Richard W.M. Jones in
44410         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
44412 2012-01-27  Jim Meyering  <meyering@redhat.com>
44414         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
44415         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
44416         convert a sequence with gaps to the minimal containing range.
44417         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
44418         * tests/test-update-copyright.sh: Test for this.
44419         The FSF confirmed it is ok to do this, assuming there is at
44420         least one significant change per year in the affected range:
44421         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
44423 2012-01-26  Bruno Haible  <bruno@clisp.org>
44425         pipe2: refine doc about thread-safety
44426         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
44427         multithread-safety problem.
44428         * doc/glibc-functions/accept4.texi: Likewise.
44430 2012-01-26  Bruno Haible  <bruno@clisp.org>
44432         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
44433         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
44434         In the test program, include <fcntl.h>, for O_RDONLY.
44436 2012-01-26  Eric Blake  <eblake@redhat.com>
44438         pipe2: document lack of thread-safety in replacement
44439         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
44440         issue in replacement.
44441         * doc/glibc-functions/accept4.texi (accept4): Likewise.
44442         Based on a report by Eric Wong.
44444 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44445             Bruno Haible  <bruno@clisp.org>
44447         malloca: Avoid warnings on x86_64 mingw64.
44448         * lib/malloca.c: Include <stdint.h>.
44449         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
44450         * modules/malloca (Depends-on): Add stdint.
44451         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
44453 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44455         obstack: remove __STDC__ conditionals
44456         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
44457         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
44458         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
44459         m4/include_next.m4 as the only gnulib-maintained places that still
44460         refer to __STDC__.
44462 2012-01-24  Bruno Haible  <bruno@clisp.org>
44464         havelib: Modern quoting.
44465         * build-aux/config.rpath: Quote 'like this', not `like this', as per
44466         the recent change to the GNU coding standards.
44468 2012-01-24  Bruno Haible  <bruno@clisp.org>
44470         stdint: Improve support for Android.
44471         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
44472         Reported by Simon Josefsson <simon@josefsson.org>.
44474 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44476         doc: omit trailing empty lines from INSTALL etc.
44477         * doc/Makefile (INSTALL): Omit trailing empty lines.
44478         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
44479         omit trailing empty lines.  This simplifies the build procedure.
44481 2012-01-23  Jim Meyering  <meyering@redhat.com>
44483         tests: avoid spurious warnings about gl_sockets_startup
44484         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
44485         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
44486         reporting a "statement with no effect".
44487         * tests/test-accept.c (main): Mark as "(void)".
44488         * tests/test-accept4.c (main): Likewise.
44489         * tests/test-bind.c (main): Likewise.
44490         * tests/test-connect.c (main): Likewise.
44491         * tests/test-getpeername.c (main): Likewise.
44492         * tests/test-getsockname.c (main): Likewise.
44493         * tests/test-getsockopt.c (main): Likewise.
44494         * tests/test-listen.c (main): Likewise.
44495         * tests/test-recv.c (main): Likewise.
44496         * tests/test-recvfrom.c (main): Likewise.
44497         * tests/test-send.c (main): Likewise.
44498         * tests/test-sendto.c (main): Likewise.
44499         * tests/test-setsockopt.c (main): Likewise.
44500         * tests/test-shutdown.c (main): Likewise.
44502 2012-01-21  Bruno Haible  <bruno@clisp.org>
44504         locale-fr.m4: Fix for Android.
44505         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
44506         failure of the test program on Bionic libc.
44508 2012-01-21  Jim Meyering  <meyering@redhat.com>
44510         bootstrap: fail when bootstrap_post_import_hook fails
44511         Otherwise, it's far too easy to miss diagnostics emitted
44512         between gnulib-tool's output and that of running configure.
44513         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
44515 2012-01-17  Jim Meyering  <meyering@redhat.com>
44517         maint: enable sc_trailing_blank
44518         * build-aux/pmccabe.css: Remove trailing blanks.
44519         * doc/acl-cygwin.txt: Likewise.
44520         * doc/gnu-oids.texi: Likewise
44521         * cfg.mk: Enable sc_trailing_blank.
44522         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
44524 2012-01-17  Jim Meyering  <meyering@redhat.com>
44526         maint: enable sc_prohibit_openat_without_use
44527         * cfg.mk: Enable sc_prohibit_openat_without_use.
44528         Exempt lib/selinux-at.c.
44530 2012-01-17  Jim Meyering  <meyering@redhat.com>
44532         maint: enable sc_prohibit_cloexec_without_use
44533         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
44534         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
44536 2012-01-17  Jim Meyering  <meyering@redhat.com>
44538         maint: enable sc_prohibit_intprops_without_use
44539         * cfg.mk: Enable sc_prohibit_intprops_without_use
44540         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
44542 2012-01-17  Jim Meyering  <meyering@redhat.com>
44544         maint: enable sc_prohibit_hash_pjw_without_use
44545         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
44546         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
44547         to match any use of \<hash_pjw\>, i.e., not necessarily with a
44548         following " (".
44550 2012-01-17  Jim Meyering  <meyering@redhat.com>
44552         maint: enable double-word-prohibiting rule
44553         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
44554         Exempt three files.
44556 2012-01-17  Jim Meyering  <meyering@redhat.com>
44558         maint: remove empty lines at EOF, but excluding modules/*
44559         Apply syntax rules at home as well as abroad.  Most changes
44560         were induced by running this:
44561           make srcdir=. _build-aux=build-aux -f top/maint.mk \
44562             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
44563             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
44564         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
44565         Exempt modules/* and two binary files.
44566         Also exempt doc/INSTALL*, per request from Bruno Haible.
44567         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
44568         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
44569         * doc/Copyright/request-assign.future: Likewise.
44570         * doc/Copyright/request-disclaim.changes: Likewise.
44571         * doc/INSTALL: Likewise.
44572         * doc/INSTALL.ISO: Likewise.
44573         * doc/INSTALL.UTF-8: Likewise.
44574         * doc/acl-cygwin.txt: Likewise.
44575         * doc/acl-resources.txt: Likewise.
44576         * doc/fdl-1.2.texi: Likewise.
44577         * doc/fdl-1.3.texi: Likewise.
44578         * doc/fdl.texi: Likewise.
44579         * lib/argp-pin.c: Likewise.
44580         * lib/round.c: Likewise.
44581         * lib/unicase/u16-totitle.c: Likewise.
44582         * lib/unictype/block_test.c: Likewise.
44583         * lib/uninorm/canonical-decomposition.c: Likewise.
44584         * m4/README: Likewise.
44585         * m4/relocatable-lib.m4: Likewise.
44586         * tests/test-isnand-nolibm.c: Likewise.
44587         * tests/test-isnand.c: Likewise.
44588         * tests/uninorm/NormalizationTest.txt: Likewise.
44590 2012-01-17  Jim Meyering  <meyering@redhat.com>
44592         maint: add framework to run syntax-check rules against gnulib sources
44593         * cfg.mk: New file, to disable all currently-failing tests.
44594         We'll enable them one by one, as they are made to pass.
44595         * Makefile (sc_maint): New rule.
44597 2012-01-21  Bruno Haible  <bruno@clisp.org>
44599         stdint: Add support for Android.
44600         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
44601         include the system's <stdint.h>.
44602         Reported by Simon Josefsson <simon@josefsson.org>.
44604 2012-01-19  Jim Meyering  <meyering@redhat.com>
44606         bootstrap: add bootstrap_post_import_hook
44607         Bison does still need something like the gnulib_mk_hook whose
44608         invocation I had to remove along with slurp in commit 767ccd40.
44609         Technically, we could get along without it, but doing so would
44610         have required living with a warning and a mandatory post-bootstrap
44611         automake rerun.
44612         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
44613         (bootstrap_post_import_hook): New function.
44614         Invoke it after gnulib-tool --import and before autoreconf.
44616 2012-01-18  Jim Meyering  <meyering@redhat.com>
44618         gitlog-to-changelog: don't use "no_"-prefixed variable name
44619         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
44620         to enable both --cluster and --no-cluster.  Change variable name,
44621         s/\$no_cluster/$cluster/, and reverse usage to match.
44623         gitlog-to-changelog: use "||", not "or" in expressions
44624         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
44625         expressions.
44627 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
44629         gitlog-to-changelog: new option --no-cluster
44630         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
44631         clustering of adjacent commit messages.
44633 2012-01-17  Jim Meyering  <meyering@redhat.com>
44635         maint: spell file systems with two words, not one
44636         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
44637         two words, not one.
44639 2012-01-16  Jim Meyering  <meyering@redhat.com>
44641         bootstrap: add a FIXME comment to ensure we eventually remove the hack
44642         * build-aux/bootstrap (gnulib_tool_options): Add comment.
44644 2012-01-16  Eric Blake  <eblake@redhat.com>
44646         bootstrap: cater to autoconf 2.59
44647         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
44648         is not available.
44650         bootstrap: properly check for libtool
44651         * build-aux/bootstrap (libtoolize): Also run libtool when older
44652         usage is detected.
44654 2012-01-15  Bruno Haible  <bruno@clisp.org>
44656         Improve support for MSVC 9.
44657         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
44658         clashes on MSVC.
44659         * lib/fcntl.in.h: Likewise.
44660         * lib/stdlib.in.h: Likewise.
44661         * lib/sys_stat.in.h: Likewise.
44663 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
44665         gnupload: we hold the master copy of this script now
44666         For motivation and more information, see:
44667         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
44668         * build-aux/gnupload: Make it clear in the heading comments that the
44669         master copy of this file is maintained by gnulib.  Since we are at
44670         it, bump its copyright year and ...
44671         ($scriptversion): ... the date in its version.
44672         ($usage): Patches and bug reports should be sent to the gnulib list,
44673         not the automake one.
44674         * config/srclist.txt: Don't try to sync 'gnupload' from automake
44675         anymore.
44677 2012-01-15  Bruno Haible  <bruno@clisp.org>
44679         Fix module 'random'.
44680         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
44681         initstate, setstate are declared.
44683 2012-01-14  Bruno Haible  <bruno@clisp.org>
44685         Tests for module 'random'.
44686         * modules/random-tests: New file.
44687         * tests/test-random.c: New file, based on tests/test-random_r.c.
44689         New module 'random'.
44690         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
44691         declarations.
44692         * lib/random.c: New file, based on glibc/stdlib/random.c.
44693         * m4/random.m4: New file.
44694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
44695         HAVE_RANDOM.
44696         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
44697         * modules/random: New file.
44698         * config/srclist.txt: Add an entry for random.c.
44699         * doc/posix-functions/random.texi: Mention the 'random' module.
44700         * doc/posix-functions/initstate.texi: Likewise.
44701         * doc/posix-functions/setstate.texi: Likewise.
44702         * doc/posix-functions/srandom.texi: Likewise.
44704 2012-01-12  Bruno Haible  <bruno@clisp.org>
44706         random_r: Use common idioms.
44707         * lib/random_r.c: Include <stdlib.h> first.
44709         random_r: Override incompatible API on AIX, OSF/1.
44710         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
44711         Override the system function if REPLACE_RANDOM_R is 1.
44712         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
44713         and OSF/1, set REPLACE_RANDOM_R.
44714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
44715         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
44716         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
44717         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
44718         * doc/glibc-functions/random_r.texi: Likewise.
44719         * doc/glibc-functions/setstate_r.texi: Likewise.
44721         random_r: Support for MSVC 9.
44722         * lib/random_r.c: Include stdint.h, not inttypes.h.
44724 2012-01-12  Eric Blake  <eblake@redhat.com>
44726         inet_ntop: guard extra work by IF_LINT
44727         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
44728         better code generation when not checking for warnings.
44729         Suggested by Paul Eggert and Jim Meyering.
44731         strptime: fix regression on mingw
44732         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
44733         Fix regression.  Reported by Bruno Haible.
44735 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
44736             Bruno Haible  <bruno@clisp.org>
44738         copy-file: add error-code-returning variant.
44739         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
44740         (qcopy_file_preserving): New declaration.
44741         * lib/copy-file.c (qcopy_file_preserving): Renamed from
44742         copy_file_preserving. Change return type to 'int'. Don't emit an error
44743         message here.
44744         (copy_file_preserving): New function.
44745         * tests/test-copy-file.c: Include <stdlib.h>.
44746         (main): Test qcopy_file_preserving if the environment variable
44747         NO_STDERR_OUTPUT is set.
44748         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
44749         with NO_STDERR_OUTPUT
44750         * tests/test-copy-file-2.sh: Likewise.
44752 2012-01-10  Bruno Haible  <bruno@clisp.org>
44754         copy-file: Use 'quote' module consistently.
44755         * lib/copy-file.c (copy_file_preserving): Use quote().
44757         copy-file: Refactor.
44758         * lib/copy-file.c: Include quote.h.
44759         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
44760         message here.
44761         * modules/copy-file (Depends-on): Add quote.
44763         acl: Export qcopy_acl.
44764         * lib/acl.h (qcopy_acl): New declaration.
44765         * lib/copy-acl.c (qcopy_acl): Make non-static.
44767         acl: Rename a local variable.
44768         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
44770         acl: Align return values of copy_acl and qcopy_acl.
44771         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
44772         maybe < -1.
44774 2012-01-11  Eric Blake  <eblake@redhat.com>
44776         strptime: silence gcc warnings
44777         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
44778         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
44779         Reported by Daniel P. Berrange.
44781         inet_ntop: silence gcc warning
44782         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
44783         Reported by Daniel P. Berrange.
44785 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
44787         getloadavg test: skip the test on GNU/Linux without /proc mounted
44788         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
44789         file.  When /proc is not mounted, it always fails with ENOENT.
44790         * tests/test-getloadavg.c (main): Treat ENOENT return code from
44791         getloadavg(3) the same way as ENOSYS and ENOTSUP.
44793 2012-01-10  Bruno Haible  <bruno@clisp.org>
44795         regex: Avoid link error on MSVC 9.
44796         * modules/regex (Depends-on): Add wctype.
44798 2012-01-10  Bruno Haible  <bruno@clisp.org>
44800         doc: Mention --with-tests option.
44801         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
44802         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
44803         --with-tests.
44804         Reported by Reuben Thomas.
44806 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
44808         users.txt: order package names lexicographically.
44809         * users.txt: Order package names lexicographically.
44811 2012-01-10  Jim Meyering  <meyering@redhat.com>
44813         maint.mk: fix description in comment
44814         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
44816         ignore-value: remove deprecated ignore_ptr function
44817         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
44818         * NEWS: Note this.
44820 2012-01-09  Jim Meyering  <meyering@redhat.com>
44822         test-init.sh: avoid a subshell
44823         * tests/test-init.sh: Remove protective subshell.
44824         Suggested by Bernhard Voelker.  While a subshell is normally
44825         required to protect against older shells (Solaris, FreeBSD) that
44826         warn about a missing program before performing redirection, the
44827         shell-selection tests performed by init.sh probably exclude any
44828         offending shell.
44830 2012-01-08  Bruno Haible  <bruno@clisp.org>
44832         setlocale tests: Avoid test failure on Solaris 11.0.
44833         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
44834         variable.
44836 2012-01-08  Bruno Haible  <bruno@clisp.org>
44838         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
44839         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44840         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44841         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
44842         macro.
44843         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
44844         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44845         * lib/spawn_faction_addopen.c: Add workaround implementation if
44846         HAVE_WORKING_POSIX_SPAWN.
44847         * modules/spawn (Makefile): Substitute
44848         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44849         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
44850         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
44851         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44852         (Depends-on): Update conditions.
44853         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44854         the Solaris 11 bug.
44856 2012-01-08  Bruno Haible  <bruno@clisp.org>
44858         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
44859         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44860         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44861         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
44862         macro.
44863         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
44864         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44865         * lib/spawn_faction_adddup2.c: Add workaround implementation if
44866         HAVE_WORKING_POSIX_SPAWN.
44867         * modules/spawn (Makefile): Substitute
44868         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44869         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
44870         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
44871         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44872         (Depends-on): Update conditions.
44873         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44874         the Solaris 11 bug.
44876 2012-01-08  Bruno Haible  <bruno@clisp.org>
44878         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
44879         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44880         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44881         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
44882         HAVE_WORKING_POSIX_SPAWN.
44883         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
44884         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
44885         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44886         * lib/spawn_faction_addclose.c: Add workaround implementation if
44887         HAVE_WORKING_POSIX_SPAWN.
44888         * modules/spawn (Makefile): Substitute
44889         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44890         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
44891         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
44892         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44893         (Depends-on): Update conditions.
44894         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44895         the Solaris 11 bug.
44897 2012-01-08  Bruno Haible  <bruno@clisp.org>
44899         doc: Update for Solaris 11.0.
44900         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
44901         * m4/printf.m4: Update comments.
44903 2012-01-08  Bruno Haible  <bruno@clisp.org>
44905         mktime: Avoid compilation error on Solaris 11.
44906         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
44908 2012-01-08  Bruno Haible  <bruno@clisp.org>
44910         doc: Small fix.
44911         * doc/posix-headers/nl_types.texi: Correct platforms list.
44913 2012-01-08  Simon Josefsson  <simon@josefsson.org>
44915         Add lgpl-3.0 module.
44916         * MODULES.html.sh (Support for building documentation): Add
44917         lgpl-3.0.
44918         * modules/lgpl-3.0: New file.
44920 2012-01-08  Jim Meyering  <meyering@redhat.com>
44922         select.c: indent with spaces, not TABs
44923         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
44925 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44927         quotearg: do not use grave accent for left quote
44928         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
44929         locale_quoting_style.
44930         (quotearg_buffer_restyled): Fix example.
44931         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
44933 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44935         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
44936         Most programs do not have translation catalogs for English and much
44937         less separate catalogs for British and American English.  Drop the
44938         suggestion to translators about these two, and provide it
44939         automatically for Unicode locales.  Like most programs, even those
44940         using American English, we use single quotation marks.  This conflicts
44941         with the American typographic convention, but works better when you
44942         cite the entire error message within double quotes.  It also tries not
44943         to clash with established practice and with what non-gnulib programs
44944         will usually do.
44945         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
44946         using an UTF-8 or GB-18030 locale.  The list of other locales with
44947         quotes was provided by Bruno Haible.
44948         (quotearg_buffer_restyled): Adjust instructions to translators.
44949         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
44950         text, since this would be wrong when using Unicode.
44951         * modules/quotearg: Depend on c-strcaseeq.
44953 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44955         quotearg: fix Wikipedia link
44956         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
44958 2012-01-07  Simon Josefsson  <simon@josefsson.org>
44960         Fix for mingw with MSVC9.
44961         * m4/ld-version-script.m4: Check that compiler rejects version
44962         scripts with syntax errors.  Reported by Bruno Haible
44963         <bruno@clisp.org>.
44965 2012-01-06  Bruno Haible  <bruno@clisp.org>
44967         Talk about "native Windows API", not "Woe32".
44968         * lib/accept4.c: Update comments to mention native Windows.
44969         * lib/execute.c: Likewise.
44970         * lib/fatal-signal.c: Likewise.
44971         * lib/localcharset.c: Likewise.
44972         * lib/nanosleep.c: Likewise.
44973         * lib/nl_langinfo.c: Likewise.
44974         * lib/pclose.c: Likewise.
44975         * lib/pipe-filter-gi.c: Likewise.
44976         * lib/pipe-filter-ii.c: Likewise.
44977         * lib/pipe.c: Likewise.
44978         * lib/pipe2.c: Likewise.
44979         * lib/popen.c: Likewise.
44980         * lib/progreloc.c: Likewise.
44981         * lib/relocatable.c: Likewise.
44982         * lib/sigaction.c: Likewise.
44983         * lib/sigprocmask.c: Likewise.
44984         * lib/spawn-pipe.h: Likewise.
44985         * lib/spawn-pipe.c: Likewise.
44986         * lib/spawni.c: Likewise.
44987         * lib/stat-time.h: Likewise.
44988         * lib/w32spawn.h: Likewise.
44989         * tests/test-isatty.c: Likewise.
44990         * lib/config.charset: More comments.
44991         * doc/gnulib-intro.texi: Mention native Windows.
44992         * doc/posix-functions/_Exit_C99.texi: Likewise.
44993         * doc/posix-headers/fcntl.texi: Likewise.
44995 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
44997         argp: Avoid crash if translator uses % characters in a translation.
44998         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
44999         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
45001 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
45003         doc: C11 and C++11 are now official
45004         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
45005         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
45006         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
45007         * modules/stdalign:
45008         Replace references to draft C1X to C11, and to draft C++0X to C++11.
45010 2012-01-06  Bruno Haible  <bruno@clisp.org>
45012         uc-is-grapheme-break tests: Tweak.
45013         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
45014         message.
45016 2012-01-06  Bruno Haible  <bruno@clisp.org>
45018         test-init.sh: correct the test for diff -u
45019         * tests/test-init.sh: Also redirect stdout to /dev/null.
45021 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45023         Use ', not `, for quoting output.
45024         * build-aux/announce-gen (usage, sizes, print_news_deltas)
45025         (print_changelog_deltas, get_tool_versions, main program):
45026         * build-aux/git-version-gen:
45027         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
45028         * build-aux/move-if-change (help):
45029         * build-aux/useless-if-before-free (usage, main program):
45030         * check-module (parse_module_file, usage)
45031         (find_included_lib_files, check_module):
45032         * lib/argmatch.c (main) [TEST]:
45033         * lib/argp-help.c (_help):
45034         * lib/getopt1.c (main) [TEST]:
45035         * lib/git-merge-changelog.c (usage):
45036         * lib/xstrtol-error.c (xstrtol_error):
45037         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
45038         * m4/argz.m4 (gl_FUNC_ARGZ):
45039         * m4/bison.m4 (gl_BISON):
45040         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
45041         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
45042         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
45043         * m4/fpending.m4 (gl_PREREQ_FPENDING):
45044         * m4/gc-random.m4 (gl_GC_RANDOM):
45045         * m4/intl.m4 (gt_CHECK_DECL):
45046         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
45047         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
45048         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
45049         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
45050         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
45051         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
45052         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
45053         * tests/test-dirname.c (main):
45054         * tests/test-getpass.c (main):
45055         * tests/test-iconvme.c (main):
45056         * tests/test-parse-datetime.c (LOG):
45057         * tests/test-xstrtoimax.sh:
45058         * tests/test-xstrtol.sh:
45059         * tests/test-xstrtoll.sh:
45060         * tests/test-xstrtoumax.sh:
45061         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
45062         * top/GNUmakefile (abort-due-to-no-makefile):
45063         Quote 'like this', not `like this', as per the recent change to
45064         the GNU coding standards.
45066 2012-01-05  Bruno Haible  <bruno@clisp.org>
45068         strtoimax: Don't force a replacement on systems where intmax_t is int.
45069         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
45070         'intmax_t' is not larger than 'int'.
45071         Reported by Pádraig Brady <P@draigBrady.com>.
45073 2012-01-05  Bruno Haible  <bruno@clisp.org>
45075         doc: Mention NetBSD bugs.
45076         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
45077         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
45079 2012-01-05  Bruno Haible  <bruno@clisp.org>
45081         strtoumax tests: Enhance tests.
45082         * tests/test-strtoumax.c (main): Add tests for large values.
45084 2012-01-05  Bruno Haible  <bruno@clisp.org>
45086         strtoimax: Work around AIX 5.1 bug.
45087         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
45088         definition.
45089         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
45090         Set HAVE_STRTOIMAX.
45091         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
45092         REPLACE_STRTOIMAX.
45093         * modules/inttypes-incomplete (Makefile.am): Substitute
45094         REPLACE_STRTOIMAX.
45095         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
45096         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
45097         (Depends-on): Update conditions.
45098         * tests/test-strtoimax.c (main): Add tests for large values.
45099         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
45101 2012-01-05  Bruno Haible  <bruno@clisp.org>
45103         inttypes: Modernize.
45104         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
45105         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
45106         (Makefile.am): Update inttypes.h rule.
45108 2012-01-05  Jim Meyering  <meyering@redhat.com>
45110         init.sh: don't waste a subshell just to redirect stderr
45111         * tests/init.sh: In testing for diff -u and diff -c, use a
45112         stderr-redirecting exec inside `...` rather than a subshell.
45114         test-init.sh: avoid failure on HP-UX 11.00
45115         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
45116         resolves to diff -c or cmp.  Reported by Bruno Haible.
45118 2012-01-05  Bruno Haible  <bruno@clisp.org>
45120         Tests for module 'strtoull'.
45121         * modules/strtoull-tests: New file.
45122         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
45124 2012-01-05  Bruno Haible  <bruno@clisp.org>
45126         Tests for module 'strtoll'.
45127         * modules/strtoll-tests: New file.
45128         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
45130 2012-01-05  Bruno Haible  <bruno@clisp.org>
45132         Tests for module 'strtoul'.
45133         * modules/strtoul-tests: New file.
45134         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
45136 2012-01-05  Bruno Haible  <bruno@clisp.org>
45138         Tests for module 'strtol'.
45139         * modules/strtol-tests: New file.
45140         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
45142 2012-01-04  Jim Meyering  <meyering@redhat.com>
45144         test-init.sh: accommodate Solaris 5.10's different diff -u output
45145         * tests/test-init.sh: Also exempt @@ lines from the comparison
45146         of diff output, since Solaris 5.10 and GNU diff formats differ.
45147         Reported by Stefano Lattarini.
45149 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45151         test-posixtm: don't assume signed integer wraparound
45152         * tests/test-posixtm.c (main): Don't assume wraparound semantics
45153         after signed integer overflow.  Inspired by (though it may not
45154         fix) Bruno Haible's bug report in
45155         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
45157         Spell out "Windows 9x" and "Windows XP".
45158         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
45159         "Windows 9x" and "WinXP" with "Windows XP".
45161 2012-01-04  Jim Meyering  <meyering@redhat.com>
45163         test-vc-list-files-cvs.sh: remove obsolete comment
45164         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
45165         double exit.  Now that's all encapsulated via skip_ and Exit.
45167 2012-01-04  Bruno Haible  <bruno@clisp.org>
45169         Talk about "native Windows API", not "Win32".
45170         * lib/classpath.c: Update comments to mention native Windows.
45171         * lib/csharpexec.c: Likewise.
45172         * lib/dup2.c: Likewise.
45173         * lib/error.c: Likewise.
45174         * lib/fcntl.c: Likewise.
45175         * lib/filename.h: Likewise.
45176         * lib/findprog.c: Likewise.
45177         * lib/get-rusage-as.c: Likewise.
45178         * lib/get-rusage-data.c: Likewise.
45179         * lib/getpagesize.c: Likewise.
45180         * lib/javaexec.c: Likewise.
45181         * lib/msvc-inval.c: Likewise.
45182         * lib/msvc-nothrow.c: Likewise.
45183         * lib/nanosleep.c: Likewise.
45184         * lib/nonblocking.c: Likewise.
45185         * lib/printf-parse.c: Likewise.
45186         * lib/setlocale.c: Likewise.
45187         * lib/sigaction.c: Likewise.
45188         * lib/strerror_r.c: Likewise.
45189         * lib/tmpdir.c: Likewise.
45190         * lib/vasnprintf.c: Likewise.
45191         * lib/w32spawn.h: Likewise.
45192         * lib/waitpid.c: Likewise.
45193         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
45194         * m4/locale-ar.m4: Likewise.
45195         * m4/locale-fr.m4: Likewise.
45196         * m4/locale-ja.m4: Likewise.
45197         * m4/locale-tr.m4: Likewise.
45198         * m4/locale-zh.m4: Likewise.
45199         * m4/printf.m4: Likewise.
45200         * tests/test-cloexec.c: Likewise.
45201         * tests/test-copy-acl.sh: Likewise.
45202         * tests/test-copy-file.sh: Likewise.
45203         * tests/test-file-has-acl.sh: Likewise.
45204         * tests/test-set-mode-acl.sh: Likewise.
45205         * tests/test-dup-safer.c: Likewise.
45206         * tests/test-dup2.c: Likewise.
45207         * tests/test-dup3.c: Likewise.
45208         * tests/test-fcntl.c: Likewise.
45209         * tests/test-nonblocking-pipe.h: Likewise.
45210         * tests/test-nonblocking-socket.h: Likewise.
45211         * tests/test-pipe.c: Likewise.
45212         * tests/test-pipe2.c: Likewise.
45213         * tests/test-spawn-pipe-child.c: Likewise.
45214         * doc/acl-resources.txt: Likewise.
45215         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
45216         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
45217         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
45218         * lib/localcharset.c: Update comments to mention native Windows.
45219         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
45220         * lib/localename.c: Likewise.
45221         * lib/progreloc.c: Likewise.
45222         * lib/relocatable.c: Likewise.
45223         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
45224         (windows_compute_revents): Renamed from win32_compute_revents.
45225         (windows_compute_revents_socket): Renamed from
45226         win32_compute_revents_socket.
45227         * lib/select.c: Update comments to mention native Windows.
45228         (windows_poll_handle): Renamed from win32_poll_handle.
45229         * m4/threadlib.m4: Update comments to mention native Windows.
45230         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
45231         --enable-threads=windows instead of --enable-threads=win32. Set
45232         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
45233         * lib/glthread/lock.h: Update comments to mention native Windows.
45234         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
45235         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
45236         USE_WIN32_THREADS.
45237         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
45238         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
45239         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
45240         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
45241         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
45242         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
45243         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
45244         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
45245         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
45246         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
45247         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
45248         * tests/test-tls.c: Likewise.
45249         Rationale:
45250         Microsoft renamed the "Win32 API" to "Windows API", as it is available
45251         on both 32-bit and 64-bit Windows systems.
45252         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
45253         line of distinction is between "native Windows" on one side and Unix/
45254         POSIX systems on the other side. More details in
45255         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
45256         Suggested by Paul Eggert.
45258 2012-01-03  Bruno Haible  <bruno@clisp.org>
45260         isatty: Support for MSVC 9.
45261         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
45262         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
45263         (_isatty_nothrow): New function.
45264         (isatty): Use it instead of _isatty.
45265         (IsConsoleHandle): Add comment, from Paolo Bonzini.
45266         * lib/poll.c (IsConsoleHandle): Likewise.
45267         * lib/select.c (IsConsoleHandle): Likewise.
45268         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
45269         (gl_PREREQ_ISATTY): New macro.
45270         * modules/isatty (Depends-on): Add msvc-inval.
45271         (configure.ac): Invoke gl_PREREQ_ISATTY.
45273 2012-01-03  Jim Meyering  <meyering@redhat.com>
45275         maint.mk: remove temporary transition aid from over 1.5 years ago
45276         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
45277         purpose was to aid in the transition (avoiding silent malfunction)
45278         from that old name to the new _sc_search_regexp.  This shim was
45279         added by commit 219c504b.
45281         init.sh: do not try to accommodate compare arguments starting with "-"
45282         * tests/init.sh (compare_dev_null_): Do not try to accommodate
45283         compare arguments that start with "-".  Besides, we do not worry
45284         about this when invoking diff or cmp; why start now with sed?
45285         Using "--" to separate options from argument would trigger sed
45286         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
45287         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
45289 2012-01-02  Bruno Haible  <bruno@clisp.org>
45291         Enhance tests for module 'isatty'.
45292         * modules/isatty-tests (Depends-on): Add pipe-posix.
45293         * tests/test-isatty.c: Include <fcntl.h>.
45294         (DEV_NULL): New macro.
45295         (main): Test the resut of isatty() also on regular files, pipes, and
45296         /dev/null.
45298         New module 'isatty'.
45299         * lib/unistd.in.h (isatty): New declaration.
45300         * lib/isatty.c: New file, based on an idea of
45301         Bastien Roucariès <roucaries.bastien@gmail.com>.
45302         * m4/isatty.m4: New file.
45303         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
45304         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
45305         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
45306         REPLACE_ISATTY.
45307         * modules/isatty: New file.
45308         * doc/posix-functions/isatty.texi: Mention the new module.
45309         Suggested by Paolo Bonzini.
45311 2012-01-02  Bruno Haible  <bruno@clisp.org>
45313         canonicalize: Tweak 2011-12-29 commit.
45314         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
45315         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
45317 2012-01-02  Jim Meyering  <meyering@redhat.com>
45319         gitlog-to-changelog: describe input syntax in --help output
45320         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
45322         gitlog-to-changelog: fix typo in --help: show backslash before email @
45323         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
45324         in sources, but not in actual output.
45326 2011-12-30  Jim Meyering  <meyering@redhat.com>
45328         gitlog-to-changelog: don't malfunction when name contains %-directive
45329         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
45330         in a name string cause trouble.  E.g., with a user name of "%s",
45331         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
45333 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
45335         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
45336         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
45337         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
45338         the "  (tiny change)" notation that is appended to the standard
45339         ChangeLog "date  name  email" header line.
45341 2012-01-01  Jim Meyering  <meyering@redhat.com>
45343         test-framework-sh: init.sh: fix "make dist" failure
45344         When using gnulib-tool's --with-tests option and any module that
45345         depends on test-framework-sh, "make dist" would fail due to the
45346         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
45347         in the gltests directory, and not in the gllib/ directory.
45348         One way to work around that is to move the EXTRA_DIST += init.sh
45349         from the primary module to the -tests one:
45350         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
45351         * modules/test-framework-sh (Makefile.am): ...not here.
45352         Reported by Tom G. Christensen in
45353         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
45355         version-etc: update copyright year reported by --version
45356         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
45358 2011-12-31  Pádraig Brady  <P@draigBrady.com>
45360         canonicalize: only stat() if required
45361         * lib/canonicalize.c (canonicalize_filename_mode):
45362         Avoid calling l?stat() when both CAN_MISSING,
45363         and CAN_NOLINKS are set, as we neither need
45364         to resolve symlinks or test component existence.
45366 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
45368         doc: cover st_ino issues once; add OpenVMS etc.
45369         * doc/posix-functions/stat.texi (stat):
45370         * doc/posix-functions/lstat.texi (lstat):
45371         * doc/posix-functions/fstatat.texi (fstatat):
45372         * doc/posix-functions/fstat.texi (fstat):
45373         Move general 'struct stat' stuff to sys_stat.texi,
45374         leaving behind a pointer.
45375         * doc/posix-headers/sys_stat.texi (sys/stat.h):
45376         Merge duplicate info about 'struct stat' problems into here.
45377         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
45378         and suggest partial workarounds.
45380         same-inode: port to OpenVMS
45381         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
45382         three st_ino values.
45384 2011-12-30  Pádraig Brady  <P@draigBrady.com>
45386         canonicalize: fix references to stat() and lstat()
45387         * lib/canonicalize.c (canonicalize_filename_mode):
45388         Ensure references always resolve to a replacement
45389         function if required (even via a macro).
45391 2011-12-30  Jim Meyering  <meyering@redhat.com>
45393         gitlog-to-changelog: remove a little duplication
45394         * build-aux/gitlog-to-changelog (main): Grep @lines once,
45395         rather than twice.
45397 2011-12-29  Pádraig Brady  <P@draigBrady.com>
45399         canonicalize: add support for not resolving symlinks
45400         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
45401         indicate we don't want to follow symlinks.  Also
45402         provide CAN_MODE_MASK to aid setting these existing
45403         mutually exclusive values.
45404         * lib/canonicalize.c (canonicalize_filename_mode):
45405         Extract the flags from can_mode parameter, which
45406         are currently just used to select between stat()
45407         and lstat().  Also ensure that mutually exclusive
45408         values are flagged immediately as invalid.
45409         * tests/test-canonicalize.c: Verify symlinks are
45410         not followed, and that invalid flag combinations
45411         are diagnosed.
45413 2011-12-25  Jim Meyering  <meyering@redhat.com>
45415         gitlog-to-changelog: do not clump multi-paragraph entries
45416         Identical header lines (date,name,email+coauthors) are suppressed,
45417         thus putting all entries with those same characteristics under
45418         a single header.  However, when a log entry consists of two or
45419         more paragraphs, it may not be clear where it starts and ends.
45420         This change makes it so that such an entry is always separated
45421         from others by a header line, even when that header would
45422         otherwise be suppressed.
45423         * build-aux/gitlog-to-changelog: Implement the above.
45424         Inspired by a related request from Stefano Lattarini in
45425         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
45427 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45429         announce-gen: fix `cmd' typo in diagnostic
45430         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
45431         diagnostic: a missing '$' meant that the command was not output.
45433 2011-12-23  Jim Meyering  <meyering@redhat.com>
45435         test-framework-sh: distribute init.sh
45436         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
45437         Otherwise, "make -C gnulib-tests check" (at least in grep) would
45438         fail due to the lack of init.sh.
45440         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
45441         * modules/atexit-tests: Rather than listing tests/init.sh,
45442         now that there's a module for it, simply depend on that new module.
45443         * modules/closein-tests: Likewise.
45444         * modules/exclude-tests: Likewise.
45445         * modules/getcwd-tests: Likewise.
45446         * modules/perror-tests: Likewise.
45447         * modules/pread-tests: Likewise.
45448         * modules/pwrite-tests: Likewise.
45449         * modules/vc-list-files-tests: Likewise.
45450         * modules/verify-tests: Likewise.
45451         * modules/xalloc-die-tests: Likewise.
45452         * modules/xstrtoimax-tests: Likewise.
45453         * modules/xstrtol-tests: Likewise.
45454         * modules/xstrtoll-tests: Likewise.
45455         * modules/xstrtoumax-tests: Likewise.
45456         * modules/yesno-tests: Likewise.
45458 2011-12-22  Jim Meyering  <meyering@redhat.com>
45460         test-framework-sh: add minimal tests of init.sh's compare function
45461         * modules/test-framework-sh-tests: New file.
45462         * tests/test-init.sh: New file.
45464         test-framework-sh: new module
45465         * modules/test-framework-sh: New file.
45466         * MODULES.html.sh (Support for maintaining and releasing projects):
45467         List it.
45469         init.sh: do not emit simulated diff output to stderr
45470         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
45472 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
45474         .gitignore: ignore gnulib.dvi and regex.info
45475         * doc/.gitignore:add gnulib.dvi and regex.info
45477 2011-12-22  Jim Meyering  <meyering@redhat.com>
45479         init.sh: correct previous change
45480         * tests/init.sh (compare): My previous change was wrong.
45481         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
45483         init.sh: avoid unwarranted test failure when using "set -e"
45484         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
45485         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
45486         a use like "compare exp out" would get evoke an unconditional failure.
45488 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
45490         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
45491         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
45492         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
45493         autoreconf that did not.
45494         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
45495         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
45497 2011-12-17  Jim Meyering  <meyering@redhat.com>
45499         bootstrap: remove some now-unneeded code
45500         This script arose back when gnulib-tool was young.
45501         Since then, it has seen improvements that render much of this
45502         script unnecessary.  In particular, it can now make symlinks
45503         to the files it uses.  Also, I no longer see as much value in
45504         marking files as read-only via comments.
45505         If you relied on the symlink-creation feature of the preceding
45506         version of this script, you can get most of that functionality
45507         by adding the --symlink option to the definition of
45508         gnulib_tool_option_extras in your bootstrap.conf file.
45509         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
45510         Run autopoint and libtoolize *before* gnulib-tool.
45511         After it, run an abbreviated autoreconf, rather than a loop around
45512         all tools.
45513         (slirp, bt_mark_as_generated): Remove functions.
45515 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45517         ftoastr: fix typo
45518         * lib/ftoastr.h: Fix misspelling in comment.
45520 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
45522         * top/README-release: fix punctuation.
45524 2011-12-17  Jim Meyering  <meyering@redhat.com>
45526         bootstrap: correct the recent buildreq change
45527         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
45528         had no effect.
45529         * build-aux/bootstrap (buildreq): Bracket each search term with
45530         "*...*", so that the shell "case" statement works as intended.
45531         Add comments.
45533 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
45535         build: let bootstrap resort to wget when downloading .po files
45536         * build-aux/bootstrap (download_po_files): Fallback to wget when
45537         downloading the .po files via rsync fails.  This is necessary to
45538         bootstrap from behind a strict firewall.
45540 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45542         stdint: don't assume C++11 when compiling with g++
45543         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
45544         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
45545         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
45546         work also in C++ before C++11, as that improperly inhibits
45547         generating a substitute stdint.h for that case.
45549 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45551         alloca: protect comment from gnulib-tool
45552         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
45553         that gnulib-tool doesn't think it's a license, and munge it to
45554         say "GCC version 3".
45556 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
45558         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
45559         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
45560         $(abs_top_builddir) instead of $(top_builddir).
45562 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
45564         strftime-tests: also test nanoseconds
45565         * tests/test-strftime.c (T): Add a test of %N.
45567 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
45569         inttypes, stdint: add C++11 support
45570         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
45571         when including inttypes.h and stdint.h.  Support this change to
45572         the standard.
45573         * doc/posix-headers/inttypes.texi (inttypes.h):
45574         * doc/posix-headers/stdint.texi (stdint.h): Document this.
45575         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
45576         Define if not defined already, for the benefit of pre-C++11 hosts.
45577         Define the standard format macros (e.g., PRId8) always.
45578         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
45579         Likewise, if __cpluspus.  Define the standard constant and limit
45580         macros (e.g., INT8_C, INT8_MAX) always.
45581         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
45582         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
45583         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
45584         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
45585         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
45586         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
45587         Likewise.
45589 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
45591         nonblocking tests: Fix test failure on Linux/PPC.
45592         Suggested by Prerna Saxena in
45593         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
45594         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
45595         Set to 1100000.
45597 2011-12-12  Jim Meyering  <meyering@redhat.com>
45599         argmatch: don't hard-code `' when listing valid option arguments
45600         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
45601         use the quote function to add quotes.  Use fputs rather than
45602         fprintf for the format string with no format directive.
45604 2011-12-07  Eric Blake  <eblake@redhat.com>
45606         bootstrap: detect tools required by gnulib-tool
45607         * build-aux/bootstrap (buildreq): Provide minimum implicit
45608         dependencies.
45609         * DEPENDENCIES: Mention patch as a prereq.
45611 2011-12-04  Bruno Haible  <bruno@clisp.org>
45613         sethostname: Port to Windows platforms.
45614         * lib/sethostname.c: Provide an alternate implementation for Windows
45615         platforms.
45616         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
45617         (main): Skip the test if sethostname() fails with EPERM. On Windows
45618         platforms, don't check the result of gethostname().
45620 2011-12-04  Bruno Haible  <bruno@clisp.org>
45621             Jim Meyering  <meyering@redhat.com>
45623         tests: Avoid spurious error message on platforms without mktemp program.
45624         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
45626 2011-12-04  Bruno Haible  <bruno@clisp.org>
45628         sethostname: Fix documentation.
45629         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
45630         "not fixed" section.
45632 2011-12-03  Bruno Haible  <bruno@clisp.org>
45634         gnulib-tool: Verify that the License field is present and non-empty.
45635         * gnulib-tool (func_get_license_raw): New function, extracted from
45636         func_get_license.
45637         (func_get_license): Use it. Warn if the module is not a test module and
45638         has no license.
45639         Suggested by Jim Meyering.
45641 2011-12-03  Bruno Haible  <bruno@clisp.org>
45643         sethostname tests: Fix link error on mingw.
45644         * tests/test-sethostname1.c: New file, extracted from
45645         tests/test-sethostname.c.
45646         * tests/test-sethostname2.c: New file, extracted from
45647         tests/test-sethostname.c.
45648         * tests/test-sethostname.c: Remove file.
45649         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
45650         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
45651         (Depends-on): Add gethostname.
45652         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
45653         Link the latter with $(GETHOSTNAME_LIB).
45655         sethostname tests: Fix compilation error on mingw.
45656         * tests/test-sethostname.c: Don't include <sys/types.h>.
45657         (geteuid): Use a dummy value without uid_t.
45658         * modules/sethostname-tests (Depends-on): Remove sys_types.
45660         sethostname tests: Avoid a gcc warning.
45661         * tests/test-sethostname.c (main): Remove an unused variable.
45663         Tweak last commit.
45664         * modules/sethostname-tests (Files): Sort by decreasing importance.
45665         (configure.ac): Check for geteuid.
45666         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
45667         the test when there's nothing to test. Drop an unnecessary cast.
45668         Improve an error message. Verify that the final sethostname() call
45669         succeeds.
45671 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45673         Add a test suite for the sethostname module.
45674         * modules/sethostname-tests: New file.  A test program
45675         for the sethostname module.
45676         * tests/test-sethostname.c: Likewise.
45678 2011-12-03  Bruno Haible  <bruno@clisp.org>
45680         Tweak last commit.
45681         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
45682         Fix preprocessor directives indentation. Fix typos.
45683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
45684         * modules/unistd (Makefile): Likewise.
45686 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45688         Integrate the sethostname module into unistd.
45689         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
45690         into the unistd.h header.
45691         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
45692         preprocessor directives.
45693         * modules/unistd: Setup the Makefile substitutions of the
45694         SETHOSTNAME preprocessor directives.
45696 2011-12-03  Bruno Haible  <bruno@clisp.org>
45698         Tweak last commit.
45699         * lib/sethostname.c: Don't include <string.h>.
45700         (sethostname): No need to copy the argument string to the stack. Don't
45701         call clearerr. Preserve errno when fprintf failed.
45702         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
45703         Don't invoke AC_REPLACE_FUNCS.
45704         * modules/sethostname (Link): Remove empty section.
45705         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
45706         failure problem.
45708 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45710         New module 'sethostname'.
45711         * lib/sethostname.c (sethostname): New file.  Provide sethostname
45712         for systems that lack it.
45713         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
45714         sethostname declaration and function.
45715         * modules/sethostname: New file.  Define the sethostname module.
45717 2011-12-03  Bruno Haible  <bruno@clisp.org>
45719         Tweak last commit.
45720         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
45722 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45724         Split the HOST_NAME_MAX detection into a separate m4 macro.
45725         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
45726         macro so it can be used by the pending sethostname module.
45728 2011-12-03  Bruno Haible  <bruno@clisp.org>
45730         Fix module descriptions syntax.
45731         * modules/argv-iter (License): Fix syntax.
45732         * modules/di-set (License): Likewise.
45733         * modules/ino-map (License): Likewise.
45734         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
45736 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45738         stdalign: port to Clang 3.0
45739         Problem reported by Simon Josefsson in
45740         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
45741         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
45742         which has <stdalign.h> but which does not define alignof.
45743         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
45745 2011-12-01  Eric Blake  <eblake@redhat.com>
45747         mktempd: silence dd usage
45748         * build-aux/mktempd (rand_bytes): Silence dd.
45750 2011-11-30  Simon Josefsson  <simon@josefsson.org>
45752         manywarnings: Don't mention gcc version in docstring.
45753         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
45754         Jim Meyering <meyering@redhat.com>.
45756 2011-11-30  Jim Meyering  <meyering@redhat.com>
45758         hash: mark a few floating point constants with "f" suffix
45759         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
45760         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
45761         floating point constants with "f", since they're destined to be
45762         saved/used as "float"s.
45764 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
45766         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
45767         * tests/test-float.c (test_long_double): Correct and re-enable the
45768         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
45770 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
45772         Avoid subtracting two pointers that don't point into the same block.
45773         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
45774         only pointers into the same memory block are subtracted. We cannot
45775         assume that sizeof (ptrdiff_t) == sizeof (void *).
45777 2011-11-29  Eric Blake  <eblake@redhat.com>
45779         maint.mk: add syntax check for use of compare from init.sh
45780         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
45781         moved here from coreutils.
45783         manywarnings: drop -Wunsuffixed-float-constants
45784         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
45785         '1.0D', which is the only way to silence this warning for 'double'.
45787 2011-11-29  Jim Meyering  <meyering@redhat.com>
45789         hash: mark compute_bucket_size with the pure attribute
45790         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
45792         quotearg, propername: correct pragma guard expression
45793         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
45794         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
45796 2011-11-28  Jim Meyering  <meyering@redhat.com>
45798         propername: do not mark proper_name with the const attribute
45799         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
45800         since it examines data pointed to by its parameter.
45801         * lib/propername.c (proper_name): Instead, add a pragma to suppress
45802         the suggestion from -Wsuggest-attribute=const.
45804         propername: mark one more function as const
45805         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
45807 2011-11-27  Jim Meyering  <meyering@redhat.com>
45809         mark functions with const and pure attributes
45811         Mark functions per suggestions from gcc-4.6 when using these options:
45812         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
45813         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
45814         Follow these guidelines: when possible, apply the attribute to
45815         an extern declaration, not to its definition.  Apply it to the
45816         definition only when the definition is static.
45817         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
45818         * lib/argv-iter.h (argv_iter_n_args): Likewise.
45819         * lib/base64.h (isbase64): Likewise.
45820         * lib/basename-lgpl.c (last_component, base_len): Likewise.
45821         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
45822         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
45823         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
45824         (c_tolower, c_toupper): Likewise.
45825         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
45826         * lib/chdir-long.c (find_non_slash): Likewise.
45827         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
45828         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
45829         * lib/file-type.h (file_type): Likewise.
45830         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
45831         * lib/filevercmp.c (verrevcmp): Likewise.
45832         * lib/freadahead.h (freadahead): Likewise.
45833         * lib/fts.c (fts_maxarglen): Likewise.
45834         * lib/hash-pjw.h (hash_pjw): Likewise.
45835         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
45836         * lib/hash.c (is_prime, next_prime): Likewise.
45837         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
45838         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
45839         (hash_table_ok, hash_get_first, hash_string): Likewise.
45840         (compute_bucket_size): Likewise.
45841         * lib/i-ring.h (i_ring_empty): Likewise.
45842         * lib/isnan.c (isnanl): Likewise.
45843         * lib/math.h (isnanl, rpl_isnanl): Likewise.
45844         * lib/memcasecmp.h (memcasecmp): Likewise.
45845         * lib/memchr2.h (memchr2): Likewise.
45846         * lib/memcmp2.h (memcmp2): Likewise.
45847         * lib/parse-datetime.y (lookup_zone): Likewise.
45848         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
45849         [!WINDOWS_SOCKETS]: Likewise.
45850         * lib/strnlen1.h (strnlen1): Likewise.
45851         * lib/uniwidth.in.h (uc_width): Likewise.
45852         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
45853         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
45854         (quoting_options_from_style): Add a comment.
45855         * lib/propername.h (proper_name): Add a comment.
45857 2011-11-27  Bruno Haible  <bruno@clisp.org>
45859         Remove unused macros from !_LIBC code in glibc-borrowed files.
45860         * lib/fnmatch.c (STRCOLL): Remove macro.
45861         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
45862         * lib/glob.c (__stat, __readdir64): Remove macros.
45863         * lib/tempname.c (__open64, __xstat64): Remove macros.
45864         Suggested by Paul Eggert.
45866 2011-11-27  Bruno Haible  <bruno@clisp.org>
45868         getcwd: Fix link error on MSVC 9.
45869         * modules/getcwd (Depends-on): Add readdir, rewinddir.
45871 2011-11-27  Bruno Haible  <bruno@clisp.org>
45873         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
45874         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
45875         HAVE_OPENDIR is 0.
45876         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
45877         HAVE_CLOSEDIR is 0.
45878         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
45879         is 0.
45880         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
45882 2011-11-27  Bruno Haible  <bruno@clisp.org>
45884         getcwd: Fix bug from 2011-08-17.
45885         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
45886         platforms that need it.
45887         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
45888         code of 4 to be a failure, not a success. This ensures that
45889         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
45891 2011-11-27  Bruno Haible  <bruno@clisp.org>
45893         binary-io tests: Avoid test failure on mingw when libtool is used.
45894         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
45895         Don't verify the size of t-bin-out1.tmp here.
45896         * tests/test-binary-io.sh: Verify it here.
45897         Reported by Simon Josefsson.
45899 2011-11-26  Bruno Haible  <bruno@clisp.org>
45901         Fix conflict between two instantiations of module 'unistd'.
45902         * gnulib-tool (func_emit_autoconf_snippet): Substitute
45903         ${include_guard_prefix} also in the autoconf snippet.
45904         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
45905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
45906         GNULIB_UNISTD_H_GETOPT.
45907         * modules/getopt-posix (configure.ac): Set the
45908         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
45909         * modules/getopt-gnu (configure.ac): Likewise.
45910         * modules/unistd (Makefile.am): Change the substitution value of
45911         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
45912         Reported by Simon Josefsson.
45914 2011-11-25  Bruno Haible  <bruno@clisp.org>
45916         pagealign_alloc: Doc and comments.
45917         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
45918         module.
45919         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
45921 2011-11-25  Jim Meyering  <meyering@redhat.com>
45923         test-update-copyright.sh: avoid false-positive failure
45924         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
45925         around false positive failure on Cygwin/Windows.  The latter was
45926         matching erroneously-created files with names like
45927         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
45929 2011-11-25  Simon Josefsson  <simon@josefsson.org>
45931         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
45932         * m4/valgrind-tests.m4: Check that the parameters that will be
45933         used works, not just a subset of them.  Reported by Bruno Haible
45934         <bruno@clisp.org>.
45936 2011-11-24  Jim Meyering  <meyering@redhat.com>
45938         test-stdalign.c: comment out long double tests
45939         * tests/test-stdalign.c: Don't try to reduce alignment of long double
45940         variables.  That provokes errors like this from gcc-4.7.0 20111124:
45941         error: '_Alignas' specifiers cannot reduce alignment of \
45942         'static_longdouble_alignas'.
45944 2011-11-22  Jim Meyering  <meyering@redhat.com>
45946         init.sh: make "compare /dev/null FILE" output more readable
45947         * tests/init.sh (compare_): Document the preferred order of arguments.
45948         (emit_diff_u_header_): New function.
45949         (compare_dev_null_): Emit a simulated diff, rather than just the
45950         contents of the unexpected file.  Suggestion from Bruno Haible.
45952 2011-11-21  Jim Meyering  <meyering@redhat.com>
45953             Eric Blake  <eblake@redhat.com>
45955         init.sh: work around OSF/1 5.1's mishandling of /dev/null
45956         * tests/init.sh: Make our compare function slightly more portable.
45957         Reported by Bruno Haible in
45958         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
45960 2011-11-21  Simon Josefsson  <simon@josefsson.org>
45962         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
45963         before using it, in code that ends up in config.h.
45965 2011-11-20  Bruno Haible  <bruno@clisp.org>
45967         getcwd: Work around getcwd bug on AIX 5..7.
45968         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
45969         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
45970         Use a different value for gl_cv_func_getcwd_path_max. Move the
45971         definition of HAVE_PARTLY_WORKING_GETCWD from here...
45972         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
45973         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
45974         Define HAVE_MINIMALLY_WORKING_GETCWD.
45975         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
45976         where it is not even minimally working, that is, on AIX.
45977         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
45978         m4/getcwd-path-max.m4.
45979         (main): Update exit code computation.
45980         * doc/posix-functions/getcwd.texi: Mention list of platforms where
45981         getcwd does not handle long file names.
45983 2011-11-20  Bruno Haible  <bruno@clisp.org>
45985         getcwd: Fix bug from 2009-09-10.
45986         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
45987         like "no".
45989 2011-11-20  Simon Josefsson  <simon@josefsson.org>
45991         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
45993 2011-11-20  Bruno Haible  <bruno@clisp.org>
45995         fma tests: Avoid shadowing local variables.
45996         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
45997         expected.
45999 2011-11-20  Bruno Haible  <bruno@clisp.org>
46001         copysignf tests: Fix.
46002         * tests/test-copysignf.c: Fix signature check.
46004 2011-11-20  Bruno Haible  <bruno@clisp.org>
46006         fma: Remove unused code.
46007         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
46008         unused macros.
46010 2011-11-20  Bruno Haible  <bruno@clisp.org>
46012         sethostname: Fix doc about AIX.
46013         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
46014         sethostname; it has it.
46016         sethostname: Mention more portability problems.
46017         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
46018         problem.
46019         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
46021 2011-11-19  Bruno Haible  <bruno@clisp.org>
46023         Depend on module fcntl-h when AT_FDCWD is used.
46024         * modules/utimens (Depends-on): Add fcntl-h.
46025         * modules/areadlinkat (Depends-on): Likewise.
46026         * modules/areadlinkat-with-size (Depends-on): Likewise.
46027         * modules/faccessat (Depends-on): Likewise.
46028         * modules/fchmodat (Depends-on): Likewise.
46029         * modules/fchownat (Depends-on): Likewise.
46030         * modules/getcwd (Depends-on): Likewise.
46031         * modules/mkdirat (Depends-on): Likewise.
46032         * modules/mkfifoat (Depends-on): Likewise.
46033         * modules/readlinkat (Depends-on): Likewise.
46034         * modules/symlinkat (Depends-on): Likewise.
46035         * modules/dup2-tests (Depends-on): Likewise.
46036         * modules/fdutimensat-tests (Depends-on): Likewise.
46037         * modules/futimens-tests (Depends-on): Likewise.
46039 2011-11-19  Bruno Haible  <bruno@clisp.org>
46041         euidaccess: Update a comment.
46042         * lib/euidaccess.c: Update comment about platforms with faccessat.
46044 2011-11-19  Bruno Haible  <bruno@clisp.org>
46046         openat: Fix file list.
46047         * modules/openat (Files): Remove lib/at-func.c.
46049 2011-11-19  Bruno Haible  <bruno@clisp.org>
46051         fstatat: Simplify.
46052         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
46053         gnulib should define rpl_fstatat, there is a
46054         "#define fstatat rpl_fstatat" in <sys/stat.h>.
46056 2011-11-19  Bruno Haible  <bruno@clisp.org>
46058         Ensure 'inline' can be used in tests/test-utimens-common.h.
46059         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
46060         * modules/futimens-tests (configure.ac): Likewise.
46061         * modules/utimens-tests (configure.ac): Likewise.
46062         * modules/utimensat-tests (configure.ac): Likewise.
46064 2011-11-19  Simon Josefsson  <simon@josefsson.org>
46066         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
46067         not hash_insert0.
46068         (hash_insert_if_absent): Doc fix.
46070 2011-11-19  Simon Josefsson  <simon@josefsson.org>
46072         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
46074 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
46076         test-getcwd: disambiguate exit status
46077         * tests/test-getcwd.c (test_long_name): Return 0..7.
46078         (main): Exit with an unambiguous exit status.  The old
46079         code yielded a mysterious mixture of two failure codes.
46081         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
46082         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
46083         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
46084         rpl_fstatat or fstatat.  This should fix the other problem
46085         reported by Kai Habel in
46086         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
46087         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
46088         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
46089         and I reproduced it on a Solaris 8 host we still have in production.
46091 2011-11-18  Jim Meyering  <meyering@redhat.com>
46093         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
46094         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
46095         Add a sentence to the comment.
46096         (hash_insert0): New function that simply calls hash_insert_if_absent.
46097         * lib/hash.h (hash_insert_if_absent): Declare it.
46098         (hash_insert0): Add deprecation attribute.
46099         (_GL_ATTRIBUTE_DEPRECATED): Define.
46100         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
46101         not hash_insert0.
46102         * NEWS: Mention it, even though it's not really an incompatible change.
46104 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
46106         openat: avoid compilation failure due to lack of <errno.h> inclusion
46107         * lib/openat.c: Include <errno.h>.
46109 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46111         * modules/getcwd (Depends-on): Add fdopendir.
46112         This fixes one of the two problems reported by Kai Habel in
46113         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
46115         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
46116         stdalign problem reported by Ian Beckwith in
46117         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
46118         * modules/crypto/gc-arcfour (Depends-on):
46119         Depend conditionally on crypto/arcfour.
46120         * modules/crypto/gc-arctwo (Depends-on):
46121         Depend conditionally on crypto/arctwo.
46122         * modules/crypto/gc-des (Depends-on):
46123         Depend conditionally on crypto/des.
46124         * modules/crypto/gc-hmac-md5 (Depends-on):
46125         Depend conditionally on crypto/hmac-md5.
46126         * modules/crypto/gc-hmac-sha1 (Depends-on):
46127         Depend conditionally on crypto/hmac-sha1.
46128         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
46129         * modules/crypto/gc-md4 (Depends-on):
46130         Depend conditionally on crypto/md4.
46131         * modules/crypto/gc-md5 (Depends-on):
46132         Depend conditionally on crypto/md5.
46133         * modules/crypto/gc-rijndael (Depends-on):
46134         Depend conditionally on crypto/rijndael.
46135         * modules/crypto/gc-sha1 (Depends-on):
46136         Depend conditionally on crypto/sha1.
46137         * modules/crypto/gc-arcfour:
46138         * modules/crypto/gc-arctwo:
46139         * modules/crypto/gc-des:
46140         * modules/crypto/gc-hmac-md5:
46141         * modules/crypto/gc-hmac-sha1:
46142         * modules/crypto/gc-md2:
46143         * modules/crypto/gc-md4:
46144         * modules/crypto/gc-md5:
46145         * modules/crypto/gc-rijndael:
46146         * modules/crypto/gc-sha1:
46147         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
46148         now that the conditional dependencies do the work for us.
46150 2011-11-17  Jim Meyering  <meyering@redhat.com>
46152         tests: factor st_ctime-comparison out of two headers
46153         * tests/test-utimens-common.h (ctime_compare): Define.
46154         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
46155         * tests/test-lutimens.h (test_lutimens): Likewise.
46156         * tests/test-utimens.h (test_utimens): Likewise.
46158         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
46159         Invoke the test program via an init.sh-using wrapper.
46160         * tests/test-getcwd.sh: New file.
46161         * modules/getcwd-tests (Files): Add it.
46162         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
46164 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
46166         gitlog-to-changelog: support multi-author commits.
46167         The FSF cares about keeping track of all authors of patches to its
46168         projects, but Git doesn't provide obvious support for multi-author
46169         changesets. Consensus seems to be forming around the use of extra
46170         Signed-off-by inspired lines in the log message formatted as
46171         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
46172         multi-author commits between version control systems.
46173         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
46174         log message and output in standard ChangeLog multi-author format.
46175         Reported by Peter Rosin <peda@lysator.liu.se>
46177 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
46178             Bruno Haible  <bruno@clisp.org>
46180         Fix some modules' file list.
46181         * modules/fstatat (Files): Add m4/lstat.m4.
46182         * modules/openat (Files): Likewise.
46183         * modules/unlinkat (Files): Likewise.
46185 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
46187         maint.mk: fix tight-scope.mk generation in VPATH builds.
46188         * top/maint.mk (tight-scope.mk): Make sure to prefix file
46189         reference with $(srcdir) so that the file is found correctly even
46190         when running `make syntax-check' in a VPATH build.
46192 2011-11-13  Bruno Haible  <bruno@clisp.org>
46193             Jim Meyering  <meyering@redhat.com>
46195         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
46196         * tests/init.sh (compare): Remove "No differences encountered" or
46197         synonymous output from the 'diff' program.
46199 2011-11-13  Bruno Haible  <bruno@clisp.org>
46201         Makefile: Tweak indentation.
46202         * Makefile: Use tab as first character in every line that contains rule
46203         commands.
46205 2011-11-13  Bruno Haible  <bruno@clisp.org>
46207         Syntax check for copyright statements.
46208         * check-copyright: New file.
46209         * Makefile (sc_check_copyright): New rule.
46211 2011-11-13  Simon Josefsson  <simon@josefsson.org>
46213         * build-aux/git-version-gen: Add --prefix to configure the tag
46214         match string.
46216 2011-11-13  Simon Josefsson  <simon@josefsson.org>
46218         * build-aux/git-version-gen: Add --help and --version.
46220 2011-11-12  Jim Meyering  <meyering@redhat.com>
46222         revamp the other test-exclude?.sh scripts to use init.sh, too
46223         * tests/test-exclude1.sh: Use init.sh.
46224         * tests/test-exclude2.sh: Likewise.
46225         * tests/test-exclude3.sh: Likewise.
46226         * tests/test-exclude4.sh: Likewise.
46227         * tests/test-exclude5.sh: Likewise.
46228         * tests/test-exclude6.sh: Likewise.
46229         * tests/test-exclude7.sh: Likewise.
46230         * tests/test-exclude8.sh: Likewise.
46231         * modules/exclude-tests (Files): List init.sh.
46233         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
46234         These shell scripts ignored failure of the binary test-exclude,
46235         so making the latter return 77 didn't cause them to be skipped.
46236         * tests/test-exclude5.sh: Exit with test-exclude's error status
46237         when that program fails.  Revamp to use init.sh.
46238         * tests/test-exclude2.sh: Likewise.
46240         test-exclude: fix a typo
46241         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
46243 2011-11-11  Bruno Haible  <bruno@clisp.org>
46245         obstack: Fix compilation error on MSVC 9.
46246         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
46248 2011-11-11  Jim Meyering  <meyering@redhat.com>
46250         test-exclude: skip tests rather than failing on deficient systems
46251         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
46252         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
46253         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
46254         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
46256 2011-11-10  Bruno Haible  <bruno@clisp.org>
46258         ptsname_r test: Avoid gcc warning on glibc systems.
46259         * tests/test-ptsname_r.c (null_ptr): New function.
46260         (test_errors): Use it.
46262 2011-11-10  Bruno Haible  <bruno@clisp.org>
46264         ptsname_r: Avoid compilation error on OSF/1 5.1.
46265         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
46266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
46267         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
46268         function is not declared or incompatibly declared.
46269         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
46270         * modules/ptsname_r (Depends-on, configure.ac): Update.
46271         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
46273 2011-11-10  Bruno Haible  <bruno@clisp.org>
46275         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
46276         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
46277         When cross-compiling, guess yes on all platforms except AIX.
46278         Reported by Ludovic Courtès <ludo@gnu.org>.
46280 2011-11-09  Bruno Haible  <bruno@clisp.org>
46282         ptsname_r tests: Fix bugs.
46283         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
46284         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
46286 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46288         fstatat: work with cross-compilation
46289         Problem reported by Ludovic Courtès in
46290         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
46291         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
46292         "cross-compiling" and assume the bug is present.  Replace
46293         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
46294         an inverted sense, to be more conservative about our assumptions.
46295         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
46297 2011-11-09  Bruno Haible  <bruno@clisp.org>
46299         Improve MODULES.html output.
46300         * modules/mkfifoat (Description): Use the word "function".
46301         * modules/readlinkat (Description): Likewise.
46302         * modules/symlinkat (Description): Likewise.
46304 2011-11-09  Eric Blake  <eblake@redhat.com>
46306         ptsname_r-tests: new test module
46307         * modules/ptsname_r-tests: New module.
46308         * tests/test-ptsname_r.c: New file.
46310         ptsname_r: new module
46311         * modules/ptsname_r: New module.
46312         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
46313         * lib/ptsname.c (__ptsname_r): Split...
46314         * lib/ptsname_r.c: ...into new file.
46315         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46316         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
46317         * modules/stdlib (Makefile.am): Substitute witnesses.
46318         * lib/stdlib.in.h (ptsname_r): Declare it.
46319         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
46320         * MODULES.html.sh (Misc): Likewise.
46321         * modules/ptsname (Depends-on): Alter dependency.
46322         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
46324 2011-11-09  Jim Meyering  <meyering@redhat.com>
46326         announce-gen: be more concise when there's only one URL+tarball
46327         * build-aux/announce-gen (get_tool_versions): When you distribute
46328         only one type of tarball, combine the first two "Here are..."
46329         sections and make the key-checking grammar independent of
46330         how many tarballs there are.
46332 2011-11-09  Eric Blake  <eblake@redhat.com>
46334         openpty: provide a stub on mingw
46335         * lib/pty.in.h (includes): Provide forward declarations.
46336         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
46338         raise: fix mingw handling of SIGPIPE
46339         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
46341 2011-11-08  Bruno Haible  <bruno@clisp.org>
46343         More conditional dependencies.
46344         * modules/faccessat (Depends-on): Add conditions.
46345         * modules/fchmodat (Depends-on): Likewise.
46346         * modules/fchownat (Depends-on): Likewise.
46347         * modules/fstatat (Depends-on): Likewise.
46348         * modules/mkfifoat (Depends-on): Likewise.
46349         * modules/readlinkat (Depends-on): Likewise.
46350         * modules/symlinkat (Depends-on): Likewise.
46351         * modules/unlinkat (Depends-on): Likewise.
46352         * modules/utimensat (Depends-on): Likewise.
46353         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
46354         * modules/linkat (Depends-on): Refine the conditions.
46355         * modules/renameat (Depends-on): Likewise.
46357 2011-11-08  Bruno Haible  <bruno@clisp.org>
46359         faccessat: Move AC_LIBOBJ invocation to module description.
46360         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
46361         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
46362         invocation from here...
46363         * modules/faccessat (configure.ac): ... to here. Invoke
46364         gl_PREREQ_FACCESSAT.
46366 2011-11-08  Bruno Haible  <bruno@clisp.org>
46368         faccessat: Simplify autoconf macro.
46369         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
46370         gl_FUNC_EUIDACCESS.
46372 2011-11-08  Bruno Haible  <bruno@clisp.org>
46374         renameat: Fix dependencies.
46375         * modules/renameat (Depends-on): Add stdbool.
46377 2011-11-08  Bruno Haible  <bruno@clisp.org>
46379         mkfifoat: Fix module description.
46380         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
46381         not gl_UNISTD_MODULE_INDICATOR.
46383 2011-11-08  Bruno Haible  <bruno@clisp.org>
46385         fstatat: Remove unused dependency.
46386         * modules/fstatat (Depends-on): Remove fstat.
46388 2011-11-08  Simon Josefsson  <simon@josefsson.org>
46390         GNUmakefile: behave when Makefile is missing.
46391         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
46393 2011-11-08  Bruno Haible  <bruno@clisp.org>
46395         openat: Conditionalize dependencies.
46396         * lib/openat.c: Reduce the scope of some #includes.
46397         * modules/openat (Depends-on): Add conditions.
46399 2011-11-07  Jim Meyering  <meyering@redhat.com>
46401         maint.mk: extract GPG key ID without using a temporary file
46402         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
46403         without using a temporary file.  Based on a suggestion from Werner Koch
46404         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
46406 2011-11-07  Eric Blake  <eblake@redhat.com>
46408         grantpt: fix typo
46409         * lib/stdlib.in.h (grantpt): Check correct function.
46411         maint.mk: silence new syntax check
46412         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
46414 2011-11-06  Bruno Haible  <bruno@clisp.org>
46416         Doc about floating-point and math API.
46417         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
46418         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
46420 2011-11-06  Bruno Haible  <bruno@clisp.org>
46422         stdalign tests: Skip the test when compiled by Sun C.
46423         * tests/test-stdalign.c (main): Skip the test on Sun C.
46425 2011-11-06  Bruno Haible  <bruno@clisp.org>
46427         ansi-c++-opt: Complete the 2011-06-05 change.
46428         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
46429         does not support namespaces, set the variable to "no", not to ":".
46431 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46433         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
46435 2011-11-06  Bruno Haible  <bruno@clisp.org>
46437         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
46438         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
46439         (minus_zerol) [HP-UX]: New macro.
46440         (unary_minus) [HP-UX]: New function.
46441         (copysignl) [HP-UX]: Use unary_minus function.
46443 2011-11-06  Bruno Haible  <bruno@clisp.org>
46445         ldexp, ldexpf, ldexpl: Enhance tests.
46446         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
46447         and tests/test-ldexpl.c.
46448         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
46449         LDEXP, MIN_EXP, MAX_EXP): New macros.
46450         Include test-ldexp.h.
46451         (main): Just call test_function.
46452         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
46453         infinity.h, nan.h.
46454         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
46455         MAX_EXP): New macros.
46456         Include test-ldexp.h.
46457         (x, y): Remove variables.
46458         (main): Just call test_function.
46459         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
46460         infinity.h, nan.h.
46461         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
46462         MAX_EXP): New macros.
46463         Include test-ldexp.h.
46464         (x, y): Remove variables.
46465         (main): Just call test_function.
46466         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
46467         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
46468         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
46469         (Depends-on): Add isnand-nolibm, signbit, float.
46470         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
46471         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
46472         (Depends-on): Add isnanf-nolibm, signbit, float.
46474 2011-11-06  Bruno Haible  <bruno@clisp.org>
46476         math tests: Cosmetics.
46477         * tests/test-math-c++.cc: Reorder declarations.
46479 2011-11-05  Bruno Haible  <bruno@clisp.org>
46481         fma*: Simplify test.
46482         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
46483         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
46485         Tests for module 'fmal'.
46486         * modules/fmal-tests: New file.
46487         * tests/test-fmal1.c: New file.
46488         * tests/test-fmal2.c: New file.
46490         New module 'fmal'.
46491         * lib/math.in.h (fmal): New declaration.
46492         * lib/fmal.c: New file.
46493         * m4/fmal.m4: New file.
46494         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
46495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
46496         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
46497         REPLACE_FMAL.
46498         * modules/fmal: New file.
46499         * doc/posix-functions/fmal.texi: Mention the new module and the various
46500         bugs.
46502         Tests for module 'fmaf'.
46503         * modules/fmaf-tests: New file.
46504         * tests/test-fmaf1.c: New file.
46505         * tests/test-fmaf2.c: New file.
46507         New module 'fmaf'.
46508         * lib/math.in.h (fmaf): New declaration.
46509         * lib/fmaf.c: New file.
46510         * m4/fmaf.m4: New file.
46511         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
46512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
46513         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
46514         REPLACE_FMAF.
46515         * modules/fmaf: New file.
46516         * doc/posix-functions/fmaf.texi: Mention the new module and the various
46517         bugs.
46519         Tests for module 'fma'.
46520         * modules/fma-tests: New file.
46521         * tests/test-fma1.c: New file.
46522         * tests/test-fma1.h: New file.
46523         * tests/test-fma2.c: New file.
46524         * tests/test-fma2.h: New file.
46526         New module 'fma'.
46527         * lib/math.in.h (fma): New declaration.
46528         * lib/fma.c: New file.
46529         * m4/fma.m4: New file.
46530         * m4/fegetround.m4: New file.
46531         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
46532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
46533         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
46534         REPLACE_FMA.
46535         * modules/fma: New file.
46536         * doc/posix-functions/fma.texi: Mention the new module and the various
46537         bugs.
46539         Extend gl_MATHFUNC.
46540         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
46541         Support 'void' as argument type.
46542         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
46544 2011-11-05  Jim Meyering  <meyering@redhat.com>
46546         maint.mk: also prohibit inclusion of dirent.h without use
46547         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
46549 2011-11-05  Bruno Haible  <bruno@clisp.org>
46551         ldexpl tests: Avoid test failure on MSVC 9.
46552         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
46553         value. Needed in order to enforce the conversion from a value greater
46554         than LDBL_MAX to Infinity.
46556 2011-11-05  Bruno Haible  <bruno@clisp.org>
46558         New modules 'at-internal', 'openat-h', split off from module 'openat'.
46559         * modules/at-internal: New file, extracted from modules/openat.
46560         * modules/openat-h: New file.
46561         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
46562         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
46563         * modules/openat (Description): Add reference to POSIX function.
46564         (Files): Remove lib/openat.h, lib/openat-proc.c.
46565         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
46566         intprops, unistd.
46567         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
46568         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
46569         gl_FCNTL_MODULE_INDICATOR.
46570         (Include): Remove unistd.h, openat.h.
46571         * modules/areadlinkat (Files): Add lib/at-func.c.
46572         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46573         openat-die, openat-h, save-cwd.
46574         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
46575         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46576         openat-die, openat-h, save-cwd, unistd.
46577         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
46578         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46579         openat-h, save-cwd. Remove fcntl-h, openat.
46580         * modules/fchmodat (Files): Remove lib/openat.h.
46581         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46582         openat, stdbool, unistd.
46583         * modules/fchownat (Files): Remove lib/openat.h.
46584         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46585         openat, stdbool, sys_stat.
46586         * modules/fdopendir (Files): Remove lib/openat-priv.h,
46587         lib/openat-proc.c.
46588         (Depends-on): Add at-internal.
46589         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
46590         * modules/fstatat (Files): Remove lib/openat.h.
46591         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46592         stdbool, unistd.
46593         * modules/fts (Depends-on): Add openat-h.
46594         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
46595         openat.
46596         * modules/mkdirat (Files): Remove lib/openat.h.
46597         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46598         openat, stdbool, sys_stat.
46599         * modules/mkfifoat (Files): Add lib/at-func.c.
46600         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46601         openat-h, save-cwd. Remove fcntl-h, openat.
46602         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
46603         * modules/readlinkat (Files): Add lib/at-func.c.
46604         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46605         openat-h, save-cwd. Remove fcntl-h, openat.
46606         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
46607         openat.
46608         * modules/selinux-at (Files): Add lib/at-func.c.
46609         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46610         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
46611         * modules/symlinkat (Files): Add lib/at-func.c.
46612         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46613         openat-h, save-cwd. Remove fcntl-h, openat.
46614         * modules/unlinkat (Files): Remove lib/openat.h.
46615         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46616         stdbool.
46617         * modules/utimensat (Files): Add lib/at-func.c.
46618         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
46619         openat-die, openat-h, save-cwd.
46620         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
46621         * modules/fdutimensat-tests (Depends-on): Add openat.
46622         * modules/fstatat-tests (Depends-on): Add openat-h.
46623         * modules/readlinkat-tests (Depends-on): Add openat.
46624         * modules/symlinkat-tests (Depends-on): Add openat.
46626 2011-11-05  Bruno Haible  <bruno@clisp.org>
46628         openat: Include <stdbool.h>.
46629         * lib/openat.c: Include <stdbool.h>.
46631 2011-11-04  Bruno Haible  <bruno@clisp.org>
46633         fchownat, renameat, unlinkat: Fix dependencies.
46634         * modules/fchownat (Depends-on): Add fstatat.
46635         * modules/renameat (Depends-on): Likewise.
46636         * modules/unlinkat (Depends-on): Likewise.
46638 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
46640         openat: remove direct dependency on dirent
46641         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
46642         and hasn't been needed ever since fdopendir was split into its own
46643         module on 2009-08-31.
46644         * modules/openat (Depends-on): Remove dirent.
46646 2011-11-04  Bruno Haible  <bruno@clisp.org>
46648         renameat: Optimize code size.
46649         * modules/renameat (configure.ac): Don't compile at-func2.c if
46650         REPLACE_RENAMEAT is 1.
46652 2011-11-04  Bruno Haible  <bruno@clisp.org>
46654         openat tests: Fix file list.
46655         * modules/openat-tests (Files): Add tests/test-open.h.
46657 2011-11-04  Bruno Haible  <bruno@clisp.org>
46659         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
46660         * modules/fchmodat (Depends-on): Add openat-die.
46661         * modules/fchownat (Depends-on): Likewise.
46662         * modules/linkat (Depends-on): Likewise.
46663         * modules/renameat (Depends-on): Likewise.
46664         * modules/openat (Depends-on): Add dirent.
46666 2011-11-04  Jim Meyering  <meyering@redhat.com>
46668         at-func*.c: fix comments
46669         * lib/at-func2.c: Correct/improve first-line comment.
46670         * lib/at-func.c: Correct grammar in first-line comment.
46672 2011-11-04  Bruno Haible  <bruno@clisp.org>
46674         New module 'mkdirat', split off from module 'openat'.
46675         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
46676         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
46677         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
46678         * modules/mkdirat: New file, extracted from modules/openat.
46679         * modules/openat (Files): Remove lib/mkdirat.c.
46680         (Depends-on): Remove mkdir.
46681         (configure.ac): Remove AC_LIBOBJ of mkdirat.
46682         (Include): Remove <sys/stat.h>.
46683         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
46684         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
46685         tests/test-mkdir.h.
46686         (Depends-on): Remove ignore-value.
46687         (Makefile.am): Remove rules for test-mkdirat.
46688         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
46689         of module 'openat'.
46690         * NEWS: Mention the change.
46692 2011-11-04  Bruno Haible  <bruno@clisp.org>
46694         closedir: Avoid warning on mingw.
46695         * lib/closedir.c: Include <unistd.h>.
46697 2011-11-04  Bruno Haible  <bruno@clisp.org>
46699         New module 'fstatat', split off from module 'openat'.
46700         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
46701         defined.
46702         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
46703         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
46704         gl_FUNC_FSTATAT.
46705         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
46706         * modules/fstatat: New file, extracted from modules/openat.
46707         * modules/openat (Files): Remove lib/fstatat.c.
46708         (Depends-on): Remove lstat.
46709         (configure.ac): Remove AC_LIBOBJ of fstatat.
46710         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
46711         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
46712         tests/test-lstat.h, tests/test-stat.h.
46713         (Depends-on): Remove getcwd-lgpl.
46714         (Makefile.am): Remove rules for test-fstatat.
46715         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
46716         of module 'openat'.
46717         * NEWS: Mention the change.
46718         * modules/getcwd (Depends-on): Add fstatat.
46719         * modules/linkat (Depends-on): Likewise.
46720         * modules/mkfifoat-tests (Depends-on): Likewise.
46721         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
46723 2011-11-03  Bruno Haible  <bruno@clisp.org>
46725         New module 'unlinkat', split off from module 'openat'.
46726         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
46727         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
46728         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
46729         * modules/unlinkat: New file, extracted from modules/openat. Correct
46730         the dependency conditions.
46731         * modules/openat (Files): Remove lib/unlinkat.c.
46732         (Depends-on): Remove rmdir, unlink.
46733         (configure.ac): Remove AC_LIBOBJ of unlinkat.
46734         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
46735         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
46736         tests/test-rmdir.h, tests/test-unlink.h.
46737         (Depends-on): Remove unlinkdir.
46738         (Makefile.am): Remove rules for test-unlinkat.
46739         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
46740         of module 'openat'.
46741         * NEWS: Mention the change.
46742         * modules/linkat-tests (Depends-on): Add unlinkat.
46743         * modules/mkfifoat-tests (Depends-on): Likewise.
46744         * modules/readlinkat-tests (Depends-on): Likewise.
46746 2011-11-02  Bruno Haible  <bruno@clisp.org>
46748         New module 'fchmodat', split off from module 'openat'.
46749         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
46750         defined.
46751         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
46752         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
46753         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
46754         * modules/fchmodat: New file, extracted from modules/openat.
46755         * modules/openat (Files): Remove lib/fchmodat.c.
46756         (configure.ac): Remove AC_LIBOBJ of fchmodat.
46757         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
46758         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
46759         (Makefile.am): Remove rules for test-fchmodat.
46760         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
46761         of module 'openat'.
46762         * NEWS: Mention the change.
46764 2011-11-02  Jim Meyering  <meyering@redhat.com>
46766         putenv: indent #definition of "environ" to placate cppi
46767         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
46769         gitlog-to-changelog: provide a ChangeLog-repair mechanism
46770         Git logs are often treated as immutable, because editing them
46771         changes the SHA1 checksums of all descendants.  Thus, errors in
46772         git logs tend to stay there forever.  However, when we generate
46773         a ChangeLog file -- typically for distribution -- from that git log,
46774         we can actually make corrections in the generated file.  The key
46775         lies in recording in machine-readable/applicable form the desired
46776         corrections.  See --help for description and an example.
46777         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
46778         (usage): Describe it; alphabetize option descriptions.
46779         (main): Honor the new option, carefully.
46781 2011-11-01  Jim Meyering  <meyering@redhat.com>
46783         gitlog-to-changelog: avoid an infloop
46784         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
46785         that ends up being empty.
46787 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46789         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
46790         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
46791         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
46792         contains (possibly-quoted) backslashes.  This should avoid
46793         all-too-common shell bugs if COMPLICATED contains backslashes in
46794         the "wrong" places.  Reported by David Evans in
46795         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
46796         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
46797         because we want ASCII ranges.  Is there some reason we don't use
46798         the C locale everywhere in this script?
46799         (func_module, top level): Avoid unwanted pathname expansion when
46800         $repo_url_prefix or $repo_url_suffix_repl contain shell
46801         metacharacters like '?' and '*'.
46803 2011-11-01  Bruno Haible  <bruno@clisp.org>
46805         fchownat: Improve description.
46806         * modules/fchownat (Description): Add link to function.
46808 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46810         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
46811         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
46812         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
46813         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
46815 2011-11-01  Bruno Haible  <bruno@clisp.org>
46817         alignof: Avoid collision with stdalign module.
46818         * lib/alignof.h (alignof): Remove macro.
46819         * NEWS: Mention the change.
46820         Reported by Paul Eggert.
46822 2011-11-01  Bruno Haible  <bruno@clisp.org>
46824         New module 'fchownat', split off from module 'openat'.
46825         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
46826         defined.
46827         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
46828         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
46829         invoke gl_FUNC_FCHOWNAT.
46830         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
46831         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
46832         * modules/fchownat: New file, extracted from modules/openat.
46833         * modules/openat (Files): Remove lib/fchownat.c.
46834         (Depends-on): Remove lchown.
46835         (configure.ac): Remove AC_LIBOBJ of fchownat.
46836         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
46837         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
46838         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
46839         (Depends-on): Remove mgetgroups, usleep, stat-time.
46840         (configure.ac): Remove test for getegid.
46841         (Makefile.am): Remove rules for test-fchownat.
46842         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
46843         of module 'openat'.
46844         * NEWS: Mention the change.
46846 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46848         stdalign: port better to MSVC and to Sun C 5.11
46849         This fixes some of the problems reported by Bruno Haible in
46850         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
46851         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
46852         shortcomings of MSVC and of Sun C 5.11.
46853         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
46854         around __declspec arg.
46855         * modules/stdalign-tests (Files): Add tests/macros.h.
46856         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
46857         Include macros.h, for ASSERT.
46858         (DECLARE_ALIGNED): Remove.
46859         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
46860         to catch bug), and to 1 if not (simplifies the rest of the code).
46861         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
46862         (CHECK_AUTO): Remove.
46863         (CHECK_ALIGNED): Check only the alignment of the static vars,
46864         since auto var alignment isn't supported by Sun C 5.11.
46865         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
46866         ASSERT failures are easier to diagnose.
46868 2011-10-31  Bruno Haible  <bruno@clisp.org>
46870         doc about some IRIX 5.3 problems.
46871         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
46872         on IRIX 5.3.
46873         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
46874         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
46875         5.3.
46876         * doc/posix-functions/grantpt.texi: Likewise.
46877         * doc/posix-functions/unlockpt.texi: Likewise.
46878         * doc/posix-functions/lgamma.texi: Likewise.
46879         * doc/posix-functions/nextafter.texi: Likewise.
46880         * doc/posix-functions/remainder.texi: Likewise.
46881         * doc/posix-functions/select.texi: Mention misplaced declaration on
46882         IRIX 5.3.
46883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46885 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
46887         gitlog-to-changelog: fix git-log invocation.
46888         git-log mishandles date strings before 1970-01-01 UTC, and there is
46889         no use to specify --since=1970-01-01 by default anyway.
46890         * build-aux/gitlog-to-changelog: By default, when no --since option
46891         was given, do not specify explicit --since option to git-log.
46893 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
46895         gitlog-to-changelog: new option --append-dot.
46896         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
46897         first non-blank line of each commit message terminated with a dot.
46899 2011-10-30  Bruno Haible  <bruno@clisp.org>
46901         ffsl, ffsll: Avoid compilation error due to 'restrict'.
46902         * lib/ffsl.h: Include <config.h>.
46903         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
46905 2011-10-30  Jim Meyering  <meyering@redhat.com>
46907         GNUmakefile: reenable "make syntax-check" for most projects
46908         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
46909         build-aux variable", "syntax-check" would do nothing but succeed with
46910         the "No version control files detected..." diagnostic (unless you
46911         happened to override _build-aux via cfg.mk).
46912         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
46913         to precede inclusion of maint.mk.  Otherwise, these variables would
46914         be used undefined in any project that does not override the default.
46916 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
46918         gitlog-to-changelog: treat a message with only blank lines as empty.
46919         * build-aux/gitlog-to-changelog: Move the code that removes leading and
46920         trailing blank lines before the code that issues a warning about an
46921         empty commit message.
46923 2011-10-30  Jim Meyering  <meyering@redhat.com>
46925         test-parse-datetime.c: avoid new DST-related false positive test failure
46926         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
46927         based on the time/date we'll convert, not the current time.
46928         Otherwise, the moment we cross a DST boundary like today's in
46929         Europe, (CEST to CET), that offset ends up being one hour off.
46931 2011-10-27  Bruno Haible  <bruno@clisp.org>
46933         fstat: Tweak documentation.
46934         * modules/fstat (Description): More precise description.
46936 2011-10-27  Bruno Haible  <bruno@clisp.org>
46938         Update documentation regarding 'largefile' module.
46939         * doc/posix-functions/fstat.texi: Tweak wording.
46940         * doc/posix-functions/opendir.texi: Mention that the module fixes the
46941         problems with huge directories and/or small ino_t types.
46942         * doc/posix-functions/readdir.texi: Likewise.
46943         * doc/posix-functions/rewinddir.texi: Likewise.
46945 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
46947         maint.mk: don't maintain a second build-aux variable.
46948         * maint.mk (build_aux): Removed.  The maintainer-makefile module
46949         depends on GNUmakefile, which already maintains a cfg.mk
46950         overridable $(_build-aux) for projects with a non-standard
46951         build-aux directory location, although without the $(srcdir)
46952         prefix.  Use that variable consistently instead of introducing a
46953         second one.  Adjust all call sites.
46955 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46957         Add stdalign module and use it in other modules.
46958         This is based on a previous proposal by Bruno Haible
46959         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
46961         stdalign: new module
46962         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
46963         * modules/stdalign: New files.
46964         * MODULES.html.sh (c1x_core_properties): Add stdalign.
46965         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
46967         stdalign-tests: new module
46968         * modules/stdalign-tests, tests/test-stdalign.c: New files.
46970         argp: use stdalign
46971         * lib/argp-parse.c: Include <stdalign.h>.
46972         (alignof): Remove.
46973         * modules/argp (Depends-on): Add stdalign.
46975         crypto libraries: use stdalign
46976         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
46977         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
46978         Do not include <stdlib.h> twice, in md4.c.
46979         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
46980         because we are accessing a pointer's bit-pattern, not a size.
46981         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
46982         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
46983         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
46984         * modules/crypto/sha512: Likewise.
46986         sys_socket: use stdalign, not alignof
46987         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
46988         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
46990 2011-10-27  Bruno Haible  <bruno@clisp.org>
46992         raise test: Avoid a test failure on Linux/MIPS.
46993         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
46994         because 99 is a valid signal on Linux/MIPS.
46996 2011-10-27  Bruno Haible  <bruno@clisp.org>
46998         nonblocking tests: Fix test failure on Linux/MIPS.
46999         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
47000         Set to 270000.
47002 2011-10-27  Bruno Haible  <bruno@clisp.org>
47004         utimensat: Work around problem on Linux/hppa.
47005         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
47006         values.
47007         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
47009 2011-10-25  Jim Meyering  <meyering@redhat.com>
47011         maint.mk: fix a bug in sc_prohibit_stddef_without_use
47012         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
47013         after symbols like NULL, size_t, etc.
47014         Reported by Alfred M. Szmidt.
47016         maint.mk: exempt ENODATA from a syntax-check rule
47017         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
47018         from the sc_prohibit_always-defined_macros syntax-check rule.
47019         Add a comment.  See this for more details:
47020         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
47022 2011-10-23  Jim Meyering  <meyering@redhat.com>
47024         fts: close parent dir FD before returning from post-traversal fts_read
47025         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
47026         unlink A, even though an FD open on A remained.  This is suboptimal
47027         (holding a file descriptor open longer than needed), but otherwise not
47028         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
47029         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
47030         that represents a real problem: it causes the removal of A to fail
47031         with e.g., "rm: cannot remove `A': Device or resource busy"
47033         fts visits each directory twice and keeps a cache (fts_fd_ring) of
47034         directory file descriptors.  After completing the final, FTS_DP,
47035         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
47036         cache, but then proceeded to add a new FD to it via the subsequent
47037         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
47038         final file descriptor would be closed only via fts_close's call to
47039         fd_ring_clear.  Now, it is usually closed earlier, via the final
47040         FTS_DP-returning fts_read call.
47041         * lib/fts.c (restore_initial_cwd): New function, converted from
47042         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
47043         Update callers.
47044         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
47045         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
47047 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
47048             Bruno Haible  <bruno@clisp.org>
47049             Jim Meyering  <jim@meyering.net>
47051         readme-release: improve safety of release prep instructions.
47052         * README-release: Don't git pull all branches when only master
47053         is needed for the release process.
47054         Run make maintainer-clean before changing trees and merging.
47055         Don't try to run ./configure right after git pull in case files
47056         that influence the bootstrap process have changed, move the
47057         ./configure step to after running ./bootstrap.
47058         Don't bootstrap "one last time"... it's the first time!
47060 2011-10-22  Bruno Haible  <bruno@clisp.org>
47062         errno, strerror-override: Support for MSVC 10.
47063         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
47064         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
47065         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
47066         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
47067         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
47068         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
47069         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
47070         Assign values compatible with MSVC 10.
47071         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
47072         New macros.
47073         (GNULIB_defined_EWINSOCK): New macro.
47074         * lib/strerror-override.c (strerror_override): Update accordingly.
47075         * lib/strerror-override.h: Likewise.
47076         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
47077         longer equal to the corresponding errno value.
47078         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
47080 2011-10-22  Bruno Haible  <bruno@clisp.org>
47082         perror: Recognize when test program crashes.
47083         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
47084         strerror, set gl_cv_func_perror_works to no.
47085         Reported by Daniel Richard G. <skunk@iskunk.org>.
47087         perror: Fix indentation.
47088         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
47090 2011-10-22  Bruno Haible  <bruno@clisp.org>
47092         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
47093         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
47094         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
47095         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
47096         functions, not as a macro.
47097         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
47098         macros.
47099         (isfinite, isinf, isnan, signbit): Check overloaded functions and
47100         absence of macro.
47101         Suggested by Eric Blake.
47102         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
47104 2011-10-21  Bruno Haible  <bruno@clisp.org>
47106         relocatable-prog-wrapper: Don't leave object files behind.
47107         * build-aux/install-reloc: Re-synchronize list of .o files to be
47108         removed with list of compilation units.
47110 2011-10-20  Bruno Haible  <bruno@clisp.org>
47112         openpty, posix_openpt: Remove code duplication.
47113         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
47114         * lib/openpty.c: Include <stdlib.h>.
47115         (openpty): Use posix_openpt on all platforms except IRIX.
47116         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
47118 2011-10-20  Bruno Haible  <bruno@clisp.org>
47120         unlockpt: Detect invalid argument.
47121         * lib/unlockpt.c: Include <fcntl.h>.
47122         (unlockpt): Check whether fd is valid, using fcntl().
47123         * modules/unlockpt (Depends-on): Add fcntl-h.
47125 2011-10-20  Bruno Haible  <bruno@clisp.org>
47127         openpty: Avoid compilation error on AIX 6.1.
47128         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
47130 2011-10-20  Bruno Haible  <bruno@clisp.org>
47132         posix_openpt: Support for OpenBSD.
47133         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
47134         (posix_openpt) [OpenBSD]: New code.
47135         * lib/grantpt.c: Include <fcntl.h>.
47136         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
47137         * modules/grantpt (Depends-on): Add fcntl-h.
47139 2011-10-20  Bruno Haible  <bruno@clisp.org>
47141         posix_openpt test: Coding style.
47142         * tests/test-posix_openpt.c: Use GNU coding style.
47144 2011-10-20  Bruno Haible  <bruno@clisp.org>
47146         grantpt: Support --avoid=pt_chown.
47147         * modules/grantpt (Files): Add lib/pty-private.h.
47149 2011-10-20  Bruno Haible  <bruno@clisp.org>
47151         posix_openpt: Fix autoconf macro.
47152         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
47153         unneeded check for _getpty.
47155 2011-10-20  Bruno Haible  <bruno@clisp.org>
47157         openpty: Update comments.
47158         * lib/openpty.c: Add comments about Minix.
47160 2011-10-19  Eric Blake  <eblake@redhat.com>
47162         openpty: relax license
47163         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
47165         pt_chown: use configmake to simplify build
47166         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
47168         ptsname and others: relax license
47169         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
47170         * modules/unlockpt (License): Likewise.
47171         * modules/pt_chown (License): Likewise.
47172         * modules/ptsname (License): Likewise.
47173         * modules/ttyname_r (License): Likewise.
47175 2011-10-19  Jim Meyering  <meyering@redhat.com>
47177         posix_openpt: remove spurious #endif
47178         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
47180 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
47182         maint.mk: Respect $(build_aux) in web-manual rule.
47183         * top/maint.mk (web-manual): Find gen-announce script in user's
47184         $(build_aux) directory instead of hard-coding 'build-aux'.
47186 2011-10-19  Bruno Haible  <bruno@clisp.org>
47188         posix_openpt: Fix compilation error.
47189         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
47190         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
47191         Mention the openpty module as an alternative.
47193 2011-10-19  Bruno Haible  <bruno@clisp.org>
47195         Support for old NeXTstep 3.3 frexp().
47196         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
47197         execution time of the test to 5 seconds.
47198         Reported by Daniel Richard G. <skunk@iskunk.org>.
47200 2011-10-19  Bruno Haible  <bruno@clisp.org>
47202         Support for old NeXTstep 3.3 sed.
47203         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
47204         part, use /.../, not \|...|. Escape periods in the header file name.
47205         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
47206         Reported by Daniel Richard G. <skunk@iskunk.org>.
47208 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
47210         Support for old NeXTstep 3.3 gcc.
47211         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
47212         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
47213         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
47214         * lib/spawn.in.h (_Restrict_arr_): Likewise.
47215         * lib/regex.h (_Restrict_arr_): Likewise.
47216         * lib/regex_internal.h (re_token_t): Likewise.
47217         * lib/regexec.c (check_node_accept_bytes): Likewise.
47218         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
47220 2011-10-18  Eric Blake  <eblake@redhat.com>
47222         posix_openpt: new module
47223         * modules/posix_openpt: New module.
47224         * m4/posix_openpt.m4: New file.
47225         * lib/posix_openpt.c: Likewise.
47226         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
47227         (gl_STDLIB_H_DEFAULTS): Set defaults.
47228         * modules/stdlib (Makefile.am): Substitute macros.
47229         * lib/stdlib.in.h (posix_openpt): Declare.
47230         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
47231         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
47232         * modules/posix_openpt-tests: New test module.
47233         * tests/test-posix_openpt.c: New test.
47235 2011-10-15  Bruno Haible  <bruno@clisp.org>
47237         xstrtoll: Fix compilation failure.
47238         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
47239         from lib/strtol.c.
47240         * doc/posix-headers/limits.texi: Mention missing numerical limits on
47241         some platforms.
47242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47244 2011-10-15  Bruno Haible  <bruno@clisp.org>
47246         vasnprintf: Optimize bit search operation.
47247         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
47248         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
47249         gl_DOUBLE_EXPONENT_LOCATION.
47250         * modules/vasnprintf (Files): Add m4/exponentd.m4.
47251         * modules/unistdio/u8-vasnprintf (Files): Likewise.
47252         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
47253         * modules/unistdio/u16-vasnprintf (Files): Likewise.
47254         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
47255         * modules/unistdio/u32-vasnprintf (Files): Likewise.
47256         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
47257         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
47258         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
47260 2011-10-15  Bruno Haible  <bruno@clisp.org>
47262         vasnprintf: Fix comments.
47263         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
47265 2011-10-14  Bruno Haible  <bruno@clisp.org>
47267         Tests for module 'integer_length_ll'.
47268         * modules/integer_length_ll-tests: New file.
47269         * tests/test-integer_length_ll.c: New file.
47271         New module 'integer_length_ll'.
47272         * lib/integer_length_ll.c: New file.
47273         * modules/integer_length_ll: New file.
47275 2011-10-14  Bruno Haible  <bruno@clisp.org>
47277         Tests for module 'integer_length_l'.
47278         * modules/integer_length_l-tests: New file.
47279         * tests/test-integer_length_l.c: New file.
47281         New module 'integer_length_l'.
47282         * lib/integer_length_l.c: New file.
47283         * modules/integer_length_l: New file.
47285 2011-10-14  Bruno Haible  <bruno@clisp.org>
47287         Tests for module 'integer_length'.
47288         * modules/integer_length-tests: New file.
47289         * tests/test-integer_length.c: New file.
47291         New module 'integer_length'.
47292         * lib/integer_length.h: New file.
47293         * lib/integer_length.c: New file.
47294         * modules/integer_length: New file.
47296 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
47298         popen: Fix dependency conditions.
47299         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
47301 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
47303         perror: Fix autoconf test.
47304         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
47305         <stdlib.h> and <string.h>.
47307 2011-10-14  Bruno Haible  <bruno@clisp.org>
47309         ffsl: Optimize on 64-bit platforms.
47310         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
47311         unrolling.
47313 2011-10-13  Bruno Haible  <bruno@clisp.org>
47315         ffsl: Optimize on 32-bit platforms.
47316         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
47317         use ffs() without a loop.
47319         ffsl, ffsll: Optimize for GCC.
47320         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
47321         * lib/ffsl.c (GCC_BUILTIN): New macro.
47322         * lib/ffsll.c (GCC_BUILTIN): Likewise.
47324 2011-10-13  Bruno Haible  <bruno@clisp.org>
47326         ffs, bcopy, memset: Support symbol renaming via config.h.
47327         * lib/ffs.c: Include <config.h>.
47328         * lib/bcopy.c: Likewise.
47329         * lib/memset.c: Likewise.
47331 2011-10-10  Bruno Haible  <bruno@clisp.org>
47333         atanl: Simplify for platforms where 'long double' == 'double'.
47334         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47335         alternative implementation.
47336         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47337         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47338         * modules/atanl (Depends-on): Add atan. Update conditions.
47340 2011-10-10  Bruno Haible  <bruno@clisp.org>
47342         acosl: Simplify for platforms where 'long double' == 'double'.
47343         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47344         alternative implementation.
47345         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47346         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47347         * modules/acosl (Depends-on): Add acos. Update conditions.
47349 2011-10-10  Bruno Haible  <bruno@clisp.org>
47351         asinl: Simplify for platforms where 'long double' == 'double'.
47352         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47353         alternative implementation.
47354         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47355         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47356         * modules/asinl (Depends-on): Add asin. Update conditions.
47358 2011-10-10  Bruno Haible  <bruno@clisp.org>
47360         tanl: Simplify for platforms where 'long double' == 'double'.
47361         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47362         implementation.
47363         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47364         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47365         * modules/tanl (Depends-on): Add tan. Update conditions.
47366         (configure.ac): Don't compile trigl.c if
47367         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47369 2011-10-10  Bruno Haible  <bruno@clisp.org>
47371         cosl: Simplify for platforms where 'long double' == 'double'.
47372         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47373         implementation.
47374         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47375         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47376         * modules/cosl (Depends-on): Add cos. Update conditions.
47377         (configure.ac): Don't compile sincosl.c and trigl.c if
47378         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47380 2011-10-10  Bruno Haible  <bruno@clisp.org>
47382         sinl: Simplify for platforms where 'long double' == 'double'.
47383         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47384         implementation.
47385         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47386         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47387         * modules/sinl (Depends-on): Add sin. Update conditions.
47388         (configure.ac): Don't compile sincosl.c and trigl.c if
47389         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47391 2011-10-10  Bruno Haible  <bruno@clisp.org>
47393         logl: Simplify for platforms where 'long double' == 'double'.
47394         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47395         implementation.
47396         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47397         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47398         * modules/logl (Depends-on): Add log. Update conditions.
47400 2011-10-10  Bruno Haible  <bruno@clisp.org>
47402         expl: Simplify for platforms where 'long double' == 'double'.
47403         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47404         implementation.
47405         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47406         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47407         * modules/expl (Depends-on): Add exp. Update conditions.
47409 2011-10-10  Bruno Haible  <bruno@clisp.org>
47411         sqrtl: Simplify for platforms where 'long double' == 'double'.
47412         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47413         alternative implementation.
47414         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47415         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47416         * modules/sqrtl (Depends-on): Update conditions.
47418 2011-10-10  Bruno Haible  <bruno@clisp.org>
47420         ldexpl: Simplify for platforms where 'long double' == 'double'.
47421         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47422         alternative implementation.
47423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47424         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47425         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
47427 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
47429         ffsll: set correct witness
47430         * modules/ffsll (configure.ac): Fix typo.
47432 2011-10-10  Bruno Haible  <bruno@clisp.org>
47434         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
47435         * lib/printf-frexpl.c: Include <config.h>.
47436         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47437         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
47438         second time.
47439         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
47440         gl_LONG_DOUBLE_VS_DOUBLE.
47441         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
47442         conditions.
47444 2011-10-10  Bruno Haible  <bruno@clisp.org>
47446         frexpl: Simplify for platforms where 'long double' == 'double'.
47447         * lib/frexpl.c: Include <config.h>.
47448         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47449         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47450         time.
47451         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47452         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47453         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
47454         * modules/frexpl (Depends-on): Add frexp. Update conditions.
47455         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
47456         conditions.
47458 2011-10-10  Jim Meyering  <meyering@redhat.com>
47460         test-renameat: don't leave behind a temporary file
47461         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
47462           ERROR: files left in build directory after distclean:
47463           ./gltests/test-renameat.too
47464           make[1]: *** [distcleancheck] Error 1
47465         Reported by Tom G. Christensen.
47467 2011-10-09  Bruno Haible  <bruno@clisp.org>
47469         rint: Determine RINT_LIBM correctly on AIX 7.
47470         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
47471         directly, not only through a function pointer. Also accept an optional
47472         4th argument with extra code.
47473         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
47474         rintf() call by gcc when optimizing.
47476         mathfunc.m4: Refactor.
47477         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
47478         m4 variable.
47480 2011-10-09  Bruno Haible  <bruno@clisp.org>
47482         rintl: Simplify for platforms where 'long double' == 'double'.
47483         * lib/rintl.c: Include <config.h>.
47484         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47485         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47486         time.
47487         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47488         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47489         * modules/rintl (Depends-on): Add rint. Update conditions.
47491 2011-10-09  Bruno Haible  <bruno@clisp.org>
47493         roundl: Simplify for platforms where 'long double' == 'double'.
47494         * lib/roundl.c: Include <config.h>.
47495         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47496         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47497         time.
47498         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47499         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47500         * modules/roundl (Depends-on): Add round. Update conditions.
47502 2011-10-09  Bruno Haible  <bruno@clisp.org>
47504         truncl: Simplify for platforms where 'long double' == 'double'.
47505         * lib/truncl.c: Include <config.h>.
47506         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47507         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47508         time.
47509         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47510         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47511         * modules/truncl (Depends-on): Add trunc. Update conditions.
47513 2011-10-09  Bruno Haible  <bruno@clisp.org>
47515         ceill: Simplify for platforms where 'long double' == 'double'.
47516         * lib/ceill.c: Include <config.h>.
47517         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47518         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47519         time.
47520         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47521         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47522         * modules/ceill (Depends-on): Add ceil. Update conditions.
47524 2011-10-09  Bruno Haible  <bruno@clisp.org>
47526         floorl: Simplify for platforms where 'long double' == 'double'.
47527         * lib/floorl.c: Include <config.h>.
47528         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47529         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47530         time.
47531         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47532         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47533         * modules/floorl (Depends-on): Add floor. Update conditions.
47535 2011-10-09  Bruno Haible  <bruno@clisp.org>
47537         rint: Fix ordering constraints.
47538         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
47539         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
47540         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
47542 2011-10-09  Bruno Haible  <bruno@clisp.org>
47544         copysignl: Simplify for platforms where 'long double' == 'double'.
47545         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47546         alternative.
47547         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47548         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47549         * modules/copysignl (Depends-on): Add copysign. Update conditions.
47551 2011-10-09  Bruno Haible  <bruno@clisp.org>
47553         Tests for module 'rintl'.
47554         * modules/rintl-tests: New file.
47555         * tests/test-rintl.c: New file.
47557         New module 'rintl'.
47558         * lib/math.in.h (rintl): New declaration.
47559         * lib/rintl.c: New file.
47560         * m4/rintl.m4: New file.
47561         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
47562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
47563         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
47564         * modules/rintl: New file.
47565         * tests/test-math-c++.cc: Check the declaration of rintl.
47566         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47567         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
47568         * doc/posix-functions/rintl.texi: Mention the new module.
47570 2011-10-09  Bruno Haible  <bruno@clisp.org>
47572         Tests for module 'rintf'.
47573         * modules/rintf-tests: New file.
47574         * tests/test-rintf.c: New file.
47576         New module 'rintf'.
47577         * lib/math.in.h (rintf): New declaration.
47578         * lib/rintf.c: New file.
47579         * m4/rintf.m4: New file.
47580         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
47581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
47582         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
47583         * modules/rintf: New file.
47584         * tests/test-math-c++.cc: Check the declaration of rintf.
47585         * doc/posix-functions/rintf.texi: Mention the new module.
47587 2011-10-09  Bruno Haible  <bruno@clisp.org>
47589         rint: Support for MSVC.
47590         * lib/math.in.h (rint): New declaration.
47591         * lib/rint.c: New file.
47592         * m4/rint.m4: New file.
47593         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
47594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
47595         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
47596         * modules/rint (Description): Fix.
47597         (Files): Add lib/rint.c, m4/rint.m4.
47598         (Depends-on): Add math.
47599         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
47600         gl_MATH_MODULE_INDICATOR.
47601         * tests/test-math-c++.cc: Check the declaration of rint.
47602         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47603         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
47604         * doc/posix-functions/rint.texi: Mention the replacement provided by
47605         the module.
47607         rint tests: More tests.
47608         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
47609         minus-zero.h, infinity.h, nan.h.
47610         (main): Skip the test if the current rounding mode is not standard. Add
47611         tests for negative numbers, minus zero, infinity, NaN.
47612         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
47613         tests/nan.h.
47614         (Depends-on): Add isnand-nolibm.
47616 2011-10-09  Bruno Haible  <bruno@clisp.org>
47618         Tests for module 'copysignl'.
47619         * modules/copysignl-tests: New file.
47620         * tests/test-copysignl.c: New file.
47622         New module 'copysignl'.
47623         * lib/math.in.h (copysignl): New declaration.
47624         * lib/copysignl.c: New file.
47625         * m4/copysignl.m4: New file.
47626         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
47627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
47628         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
47629         HAVE_COPYSIGNL.
47630         * modules/copysignl: New file.
47631         * tests/test-math-c++.cc: Check the declaration of copysignl.
47632         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47633         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
47634         * doc/posix-functions/copysignl.texi: Mention the new module.
47636 2011-10-09  Bruno Haible  <bruno@clisp.org>
47638         Tests for module 'copysignf'.
47639         * modules/copysignf-tests: New file.
47640         * tests/test-copysignf.c: New file.
47642         New module 'copysignf'.
47643         * lib/math.in.h (copysignf): New declaration.
47644         * lib/copysignf.c: New file.
47645         * m4/copysignf.m4: New file.
47646         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
47647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
47648         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
47649         HAVE_COPYSIGNF.
47650         * modules/copysignf: New file.
47651         * tests/test-math-c++.cc: Check the declaration of copysignf.
47652         * doc/posix-functions/copysignf.texi: Mention the new module.
47654 2011-10-09  Bruno Haible  <bruno@clisp.org>
47656         Ensure that HAVE_* variables are set to 1 before they are set to 0.
47657         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
47658         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
47659         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47660         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
47661         gl_SIGNAL_H_DEFAULTS.
47663 2011-10-09  Bruno Haible  <bruno@clisp.org>
47665         poll: Make macro safer.
47666         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
47667         ac_cv_header_poll_h is not set.
47669 2011-10-09  Bruno Haible  <bruno@clisp.org>
47671         copysign: Provide replacement.
47672         * lib/math.in.h (copysign): New declaration.
47673         * lib/copysign.c: New file.
47674         * m4/copysign.m4: New file.
47675         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
47676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
47677         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
47678         HAVE_COPYSIGN.
47679         * modules/copysign (Description): Clarify.
47680         (Files): Add lib/copysign.c, m4/copysign.m4.
47681         (Depends-on): Add math, signbit.
47682         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
47683         gl_MATH_MODULE_INDICATOR.
47684         * tests/test-math-c++.cc: Check the declaration of copysign.
47685         * doc/posix-functions/copysign.texi: Mention the effects of the module
47686         on Minix and MSVC.
47688 2011-10-09  Bruno Haible  <bruno@clisp.org>
47690         isinf: Ensure macro on AIX 5.1.
47691         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
47692         macro.
47693         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
47695 2011-10-09  Bruno Haible  <bruno@clisp.org>
47697         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
47698         * modules/snprintf-posix-tests (configure.ac): Require
47699         gl_LONG_DOUBLE_VS_DOUBLE.
47700         * modules/sprintf-posix-tests (configure.ac): Likewise.
47701         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
47702         * modules/vasprintf-posix-tests (configure.ac): Likewise.
47703         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
47704         * modules/vsprintf-posix-tests (configure.ac): Likewise.
47705         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
47706         tests on platforms where 'long double' is the same as 'double'.
47707         * tests/test-sprintf-posix.h (test_function): Likewise.
47708         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47709         * tests/test-vasprintf-posix.c (test_function): Likewise.
47711         *printf: Fix for platforms where 'long double' == 'double'.
47712         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47713         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
47714         * modules/dprintf-posix (Files): Add m4/math_h.m4.
47715         * modules/fprintf-posix (Files): Likewise.
47716         * modules/obstack-printf-posix (Files): Likewise.
47717         * modules/snprintf-posix (Files): Likewise.
47718         * modules/sprintf-posix (Files): Likewise.
47719         * modules/vasnprintf (Files): Likewise.
47720         * modules/vasnprintf-posix (Files): Likewise.
47721         * modules/vasprintf-posix (Files): Likewise.
47722         * modules/vdprintf-posix (Files): Likewise.
47723         * modules/vfprintf-posix (Files): Likewise.
47724         * modules/vsnprintf-posix (Files): Likewise.
47725         * modules/vsprintf-posix (Files): Likewise.
47726         * modules/unistdio/u8-vasnprintf (Files): Likewise.
47727         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
47728         * modules/unistdio/u16-vasnprintf (Files): Likewise.
47729         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
47730         * modules/unistdio/u32-vasnprintf (Files): Likewise.
47731         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
47732         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
47734         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
47735         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
47736         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47737         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
47738         'long double'.
47739         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
47741         isinf: Fix for platforms where 'long double' == 'double'.
47742         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47743         Don't blindly assume 80-bit 'long double'.
47745         isfinite: Fix for platforms where 'long double' == 'double'.
47746         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47747         Don't blindly assume 80-bit 'long double'.
47749         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
47750         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
47751         * modules/isfinite-tests (configure.ac): Require
47752         gl_LONG_DOUBLE_VS_DOUBLE.
47753         * modules/isinf-tests (configure.ac): Likewise.
47754         * modules/isnan-tests (configure.ac): Likewise.
47755         * modules/isnanl-tests (configure.ac): Likewise.
47756         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
47757         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
47758         tests on platforms where 'long double' is the same as 'double'.
47759         * tests/test-isinf.c (test_isinfl): Likewise.
47760         * tests/test-isnan.c (test_long_double): Likewise.
47761         * tests/test-isnanl.h (main): Likewise.
47763 2011-10-08  Bruno Haible  <bruno@clisp.org>
47765         Tests for module 'tanhf'.
47766         * modules/tanhf-tests: New file.
47767         * tests/test-tanhf.c: New file.
47769         New module 'tanhf'.
47770         * lib/math.in.h (tanhf): New declaration.
47771         * lib/tanhf.c: New file.
47772         * m4/tanhf.m4: New file.
47773         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
47774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
47775         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
47776         * modules/tanhf: New file.
47777         * tests/test-math-c++.cc: Check the declaration of tanhf.
47778         * doc/posix-functions/tanhf.texi: Mention the new module.
47780         tanh: Use a .m4 file.
47781         * m4/tanh.m4: New file.
47782         * modules/tanh (Files): Add it.
47783         (configure.ac): Just invoke gl_FUNC_TANH.
47785 2011-10-08  Bruno Haible  <bruno@clisp.org>
47787         Tests for module 'coshf'.
47788         * modules/coshf-tests: New file.
47789         * tests/test-coshf.c: New file.
47791         New module 'coshf'.
47792         * lib/math.in.h (coshf): New declaration.
47793         * lib/coshf.c: New file.
47794         * m4/coshf.m4: New file.
47795         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
47796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
47797         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
47798         * modules/coshf: New file.
47799         * tests/test-math-c++.cc: Check the declaration of coshf.
47800         * doc/posix-functions/coshf.texi: Mention the new module.
47802         cosh: Use a .m4 file.
47803         * m4/cosh.m4: New file.
47804         * modules/cosh (Files): Add it.
47805         (configure.ac): Just invoke gl_FUNC_COSH.
47807 2011-10-08  Bruno Haible  <bruno@clisp.org>
47809         Tests for module 'sinhf'.
47810         * modules/sinhf-tests: New file.
47811         * tests/test-sinhf.c: New file.
47813         New module 'sinhf'.
47814         * lib/math.in.h (sinhf): New declaration.
47815         * lib/sinhf.c: New file.
47816         * m4/sinhf.m4: New file.
47817         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
47818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
47819         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
47820         * modules/sinhf: New file.
47821         * tests/test-math-c++.cc: Check the declaration of sinhf.
47822         * doc/posix-functions/sinhf.texi: Mention the new module.
47824         sinh: Use a .m4 file.
47825         * m4/sinh.m4: New file.
47826         * modules/sinh (Files): Add it.
47827         (configure.ac): Just invoke gl_FUNC_SINH.
47829 2011-10-08  Bruno Haible  <bruno@clisp.org>
47831         Tests for module 'atan2f'.
47832         * modules/atan2f-tests: New file.
47833         * tests/test-atan2f.c: New file.
47835         New module 'atan2f'.
47836         * lib/math.in.h (atan2f): New declaration.
47837         * lib/atan2f.c: New file.
47838         * m4/atan2f.m4: New file.
47839         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
47840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
47841         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
47842         * modules/atan2f: New file.
47843         * tests/test-math-c++.cc: Check the declaration of atan2f.
47844         * doc/posix-functions/atan2f.texi: Mention the new module.
47846         atan2: Use a .m4 file.
47847         * m4/atan2.m4: New file.
47848         * modules/atan2 (Files): Add it.
47849         (configure.ac): Just invoke gl_FUNC_ATAN2.
47851 2011-10-08  Bruno Haible  <bruno@clisp.org>
47853         Tests for module 'atanf'.
47854         * modules/atanf-tests: New file.
47855         * tests/test-atanf.c: New file.
47857         New module 'atanf'.
47858         * lib/math.in.h (atanf): New declaration.
47859         * lib/atanf.c: New file.
47860         * m4/atanf.m4: New file.
47861         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
47862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
47863         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
47864         * modules/atanf: New file.
47865         * tests/test-math-c++.cc: Check the declaration of atanf.
47866         * doc/posix-functions/atanf.texi: Mention the new module.
47868         atan: Use a .m4 file.
47869         * m4/atan.m4: New file.
47870         * modules/atan (Files): Add it.
47871         (configure.ac): Just invoke gl_FUNC_ATAN.
47873 2011-10-08  Bruno Haible  <bruno@clisp.org>
47875         Tests for module 'acosf'.
47876         * modules/acosf-tests: New file.
47877         * tests/test-acosf.c: New file.
47879         New module 'acosf'.
47880         * lib/math.in.h (acosf): New declaration.
47881         * lib/acosf.c: New file.
47882         * m4/acosf.m4: New file.
47883         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
47884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
47885         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
47886         * modules/acosf: New file.
47887         * tests/test-math-c++.cc: Check the declaration of acosf.
47888         * doc/posix-functions/acosf.texi: Mention the new module.
47890         acos: Use a .m4 file.
47891         * m4/acos.m4: New file.
47892         * modules/acos (Files): Add it.
47893         (configure.ac): Just invoke gl_FUNC_ACOS.
47895 2011-10-08  Bruno Haible  <bruno@clisp.org>
47897         Tests for module 'asinf'.
47898         * modules/asinf-tests: New file.
47899         * tests/test-asinf.c: New file.
47901         New module 'asinf'.
47902         * lib/math.in.h (asinf): New declaration.
47903         * lib/asinf.c: New file.
47904         * m4/asinf.m4: New file.
47905         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
47906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
47907         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
47908         * modules/asinf: New file.
47909         * tests/test-math-c++.cc: Check the declaration of asinf.
47910         * doc/posix-functions/asinf.texi: Mention the new module.
47912         asin: Use a .m4 file.
47913         * m4/asin.m4: New file.
47914         * modules/asin (Files): Add it.
47915         (configure.ac): Just invoke gl_FUNC_ASIN.
47917 2011-10-08  Bruno Haible  <bruno@clisp.org>
47919         Tests for module 'tanf'.
47920         * modules/tanf-tests: New file.
47921         * tests/test-tanf.c: New file.
47923         New module 'tanf'.
47924         * lib/math.in.h (tanf): New declaration.
47925         * lib/tanf.c: New file.
47926         * m4/tanf.m4: New file.
47927         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
47928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
47929         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
47930         * modules/tanf: New file.
47931         * tests/test-math-c++.cc: Check the declaration of tanf.
47932         * doc/posix-functions/tanf.texi: Mention the new module.
47934         tan: Use a .m4 file.
47935         * m4/tan.m4: New file.
47936         * modules/tan (Files): Add it.
47937         (configure.ac): Just invoke gl_FUNC_TAN.
47939 2011-10-08  Bruno Haible  <bruno@clisp.org>
47941         Tests for module 'cosf'.
47942         * modules/cosf-tests: New file.
47943         * tests/test-cosf.c: New file.
47945         New module 'cosf'.
47946         * lib/math.in.h (cosf): New declaration.
47947         * lib/cosf.c: New file.
47948         * m4/cosf.m4: New file.
47949         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
47950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
47951         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
47952         * modules/cosf: New file.
47953         * tests/test-math-c++.cc: Check the declaration of cosf.
47954         * doc/posix-functions/cosf.texi: Mention the new module.
47956         cos: Use a .m4 file.
47957         * m4/cos.m4: New file.
47958         * modules/cos (Files): Add it.
47959         (configure.ac): Just invoke gl_FUNC_COS.
47961 2011-10-08  Bruno Haible  <bruno@clisp.org>
47963         Tests for module 'sinf'.
47964         * modules/sinf-tests: New file.
47965         * tests/test-sinf.c: New file.
47967         New module 'sinf'.
47968         * lib/math.in.h (sinf): New declaration.
47969         * lib/sinf.c: New file.
47970         * m4/sinf.m4: New file.
47971         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
47972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
47973         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
47974         * modules/sinf: New file.
47975         * tests/test-math-c++.cc: Check the declaration of sinf.
47976         * doc/posix-functions/sinf.texi: Mention the new module.
47978         sin: Use a .m4 file.
47979         * m4/sin.m4: New file.
47980         * modules/sin (Files): Add it.
47981         (configure.ac): Just invoke gl_FUNC_SIN.
47983 2011-10-08  Bruno Haible  <bruno@clisp.org>
47985         Tests for module 'powf'.
47986         * modules/powf-tests: New file.
47987         * tests/test-powf.c: New file.
47989         New module 'powf'.
47990         * lib/math.in.h (powf): New declaration.
47991         * lib/powf.c: New file.
47992         * m4/powf.m4: New file.
47993         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
47994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
47995         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
47996         * modules/powf: New file.
47997         * tests/test-math-c++.cc: Check the declaration of powf.
47998         * doc/posix-functions/powf.texi: Mention the new module.
48000         pow: Use a .m4 file.
48001         * m4/pow.m4: New file.
48002         * modules/pow (Files): Add it.
48003         (configure.ac): Just invoke gl_FUNC_POW.
48005 2011-10-08  Bruno Haible  <bruno@clisp.org>
48007         Tests for module 'log10f'.
48008         * modules/log10f-tests: New file.
48009         * tests/test-log10f.c: New file.
48011         New module 'log10f'.
48012         * lib/math.in.h (log10f): New declaration.
48013         * lib/log10f.c: New file.
48014         * m4/log10f.m4: New file.
48015         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
48016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
48017         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
48018         * modules/log10f: New file.
48019         * tests/test-math-c++.cc: Check the declaration of log10f.
48020         * doc/posix-functions/log10f.texi: Mention the new module.
48022         log10: Use a .m4 file.
48023         * m4/log10.m4: New file.
48024         * modules/log10 (Files): Add it.
48025         (configure.ac): Just invoke gl_FUNC_LOG10.
48027 2011-10-08  Bruno Haible  <bruno@clisp.org>
48029         Tests for module 'logf'.
48030         * modules/logf-tests: New file.
48031         * tests/test-logf.c: New file.
48033         New module 'logf'.
48034         * lib/math.in.h (logf): New declaration.
48035         * lib/logf.c: New file.
48036         * m4/logf.m4: New file.
48037         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
48038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
48039         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
48040         * modules/logf: New file.
48041         * tests/test-math-c++.cc: Check the declaration of logf.
48042         * doc/posix-functions/logf.texi: Mention the new module.
48044         log: Use a .m4 file.
48045         * m4/log.m4: New file.
48046         * modules/log (Files): Add it.
48047         (configure.ac): Just invoke gl_FUNC_LOG.
48049 2011-10-08  Bruno Haible  <bruno@clisp.org>
48051         Tests for module 'expf'.
48052         * modules/expf-tests: New file.
48053         * tests/test-expf.c: New file.
48055         New module 'expf'.
48056         * lib/math.in.h (expf): New declaration.
48057         * lib/expf.c: New file.
48058         * m4/expf.m4: New file.
48059         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
48060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
48061         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
48062         * modules/expf: New file.
48063         * tests/test-math-c++.cc: Check the declaration of expf.
48064         * doc/posix-functions/expf.texi: Mention the new module.
48066         exp: Use a .m4 file.
48067         * m4/exp.m4: New file.
48068         * modules/exp (Files): Add it.
48069         (configure.ac): Just invoke gl_FUNC_EXP.
48071 2011-10-08  Bruno Haible  <bruno@clisp.org>
48073         Tests for module 'sqrtf'.
48074         * modules/sqrtf-tests: New file.
48075         * tests/test-sqrtf.c: New file.
48077         New module 'sqrtf'.
48078         * lib/math.in.h (sqrtf): New declaration.
48079         * lib/sqrtf.c: New file.
48080         * m4/sqrtf.m4: New file.
48081         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
48082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
48083         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
48084         * modules/sqrtf: New file.
48085         * tests/test-math-c++.cc: Check the declaration of sqrtf.
48086         * doc/posix-functions/sqrtf.texi: Mention the new module.
48088 2011-10-08  Bruno Haible  <bruno@clisp.org>
48090         Tests: Avoid link failures w.r.t. libintl.
48091         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
48092         $(LIBINTL).
48093         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
48094         $(LIBINTL).
48095         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
48096         against $(LIBINTL).
48097         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
48098         $(LIBINTL).
48099         * modules/openat-tests (Makefile.am): Link test-fchmodat against
48100         $(LIBINTL).
48101         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
48103 2011-10-08  Bruno Haible  <bruno@clisp.org>
48105         pow tests: Defeat compiler optimizations.
48106         * tests/test-pow.c (main): Assign arguments to x and y before use.
48108 2011-10-08  Bruno Haible  <bruno@clisp.org>
48110         gnulib-tool: Improve last commit.
48111         * gnulib-tool (func_modules_transitive_closure): Simplify code.
48112         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
48113         ignore dependencies that are not among the modules list.
48115 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
48117         gnulib-tool: don't follow dependencies to avoided modules
48118         This fixes a bug that is related to the previous one.
48119         * gnulib-tool (func_modules_transitive_closure)
48120         (func_emit_autoconf_snippets):
48121         Check whether a dependency is acceptable before using it.
48122         (--extract-dependencies): Report an error if --avoid is also used,
48123         since this combination of options is not yet supported.
48125         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
48126         Problem reported by Peter Dyballa in
48127         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
48128         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
48129         when echoing "$condition".
48131 2011-10-07  Bruno Haible  <bruno@clisp.org>
48133         Fix documentation about math functions on MacOS X.
48134         * doc/posix-functions/exp2.texi: Don't say the function is missing on
48135         MacOS X 10.5.
48136         * doc/posix-functions/fdim.texi: Likewise.
48137         * doc/posix-functions/feclearexcept.texi: Likewise.
48138         * doc/posix-functions/fegetenv.texi: Likewise.
48139         * doc/posix-functions/fegetround.texi: Likewise.
48140         * doc/posix-functions/feholdexcept.texi: Likewise.
48141         * doc/posix-functions/feraiseexcept.texi: Likewise.
48142         * doc/posix-functions/fesetenv.texi: Likewise.
48143         * doc/posix-functions/fesetround.texi: Likewise.
48144         * doc/posix-functions/fetestexcept.texi: Likewise.
48145         * doc/posix-functions/feupdateenv.texi: Likewise.
48146         * doc/posix-functions/fmax.texi: Likewise.
48147         * doc/posix-functions/fmin.texi: Likewise.
48148         * doc/posix-functions/log2.texi: Likewise.
48149         * doc/posix-functions/modff.texi: Likewise.
48150         * doc/posix-functions/nan.texi: Likewise.
48151         * doc/posix-functions/nanf.texi: Likewise.
48152         * doc/posix-functions/nextafterf.texi: Likewise.
48153         * doc/posix-functions/remquo.texi: Likewise.
48155 2011-10-07  Bruno Haible  <bruno@clisp.org>
48157         modff: Drop assumption about library that defines modff.
48158         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
48159         AC_CHECK_FUNCS.
48160         * modules/modff (Files): Add m4/mathfunc.m4.
48162 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
48164         raise tests: Avoid a GCC warning.
48165         * tests/test-raise.c (handler): Use _Noreturn.
48167 2011-10-07  Bruno Haible  <bruno@clisp.org>
48169         Tests for module 'ldexpf'.
48170         * modules/ldexpf-tests: New file.
48171         * tests/test-ldexpf.c: New file.
48173         New module 'ldexpf'.
48174         * lib/math.in.h (ldexpf): New declaration.
48175         * lib/ldexpf.c: New file.
48176         * m4/ldexpf.m4: New file.
48177         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
48178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
48179         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
48180         * modules/ldexpf: New file.
48181         * tests/test-math-c++.cc: Check the declaration of ldexpf.
48182         * doc/posix-functions/ldexpf.texi: Mention the new module.
48184 2011-10-06  Bruno Haible  <bruno@clisp.org>
48186         frexpf: Work around problems on IRIX and mingw.
48187         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
48188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
48189         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
48190         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
48191         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
48192         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
48193         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
48195 2011-10-06  Bruno Haible  <bruno@clisp.org>
48197         fabsf: Drop assumption about library that defines fabsf.
48198         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
48199         AC_CHECK_FUNCS.
48200         * modules/fabsf (Files): Add m4/mathfunc.m4.
48202 2011-10-06  Bruno Haible  <bruno@clisp.org>
48204         frexpf: Drop assumption about library that defines frexpf.
48205         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
48206         'int *', 'float *', 'long double *', 'float', 'long double'.
48207         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
48208         AC_CHECK_FUNCS.
48209         * modules/frexpf (Files): Add m4/mathfunc.m4.
48211         Tests for module 'frexpf'.
48212         * modules/frexpf-tests: New file.
48213         * tests/test-frexpf.c: New file.
48215         New module 'frexpf'.
48216         * lib/math.in.h (frexpf): New declaration.
48217         * lib/frexpf.c: New file.
48218         * m4/frexpf.m4: New file.
48219         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
48220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
48221         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
48222         * modules/frexpf: New file.
48223         * tests/test-math-c++.cc: Check the declaration of frexpf.
48224         * doc/posix-functions/frexpf.texi: Mention the new module.
48226 2011-10-06  Bruno Haible  <bruno@clisp.org>
48228         math: Sort function declarations of math.in.h.
48229         * lib/math.in.h (frexp, logb): Move declarations.
48231 2011-10-05  Bruno Haible  <bruno@clisp.org>
48233         Tests for module 'modff'.
48234         * modules/modff-tests: New file.
48235         * tests/test-modff.c: New file.
48237         New module 'modff'.
48238         * lib/math.in.h (modff): New declaration.
48239         * lib/modff.c: New file.
48240         * m4/modff.m4: New file.
48241         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
48242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
48243         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
48244         * modules/modff: New file.
48245         * tests/test-math-c++.cc: Check the declaration of modff.
48246         * doc/posix-functions/modff.texi: Mention the new module.
48248         modf tests: Make test sharper.
48249         * tests/test-modf.c (main): Strengthen upper bound.
48251         modf: Use a .m4 file.
48252         * m4/modf.m4: New file.
48253         * modules/modf (Files): Add it.
48254         (configure.ac): Just invoke gl_FUNC_MODF.
48256 2011-10-05  Bruno Haible  <bruno@clisp.org>
48258         Tests for module 'fmodf'.
48259         * modules/fmodf-tests: New file.
48260         * tests/test-fmodf.c: New file.
48262         New module 'fmodf'.
48263         * lib/math.in.h (fmodf): New declaration.
48264         * lib/fmodf.c: New file.
48265         * m4/fmodf.m4: New file.
48266         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
48267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
48268         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
48269         * modules/fmodf: New file.
48270         * tests/test-math-c++.cc: Check the declaration of fmodf.
48271         * doc/posix-functions/fmodf.texi: Mention the new module.
48273         fmod: Use a .m4 file.
48274         * m4/fmod.m4: New file.
48275         * modules/fmod (Files): Add it.
48276         (configure.ac): Just invoke gl_FUNC_FMOD.
48278 2011-10-05  Bruno Haible  <bruno@clisp.org>
48280         Tests for module 'fabsf'.
48281         * modules/fabsf-tests: New file.
48282         * tests/test-fabsf.c: New file.
48284         New module 'fabsf'.
48285         * lib/math.in.h (fabsf): New declaration.
48286         * lib/fabsf.c: New file.
48287         * m4/fabsf.m4: New file.
48288         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
48289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
48290         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
48291         * modules/fabsf: New file.
48292         * tests/test-math-c++.cc: Check the declaration of fabsf.
48293         * doc/posix-functions/fabsf.texi: Mention the new module.
48295         fabs: Use a .m4 file.
48296         * m4/fabs.m4: New file.
48297         * modules/fabs (Files): Add it.
48298         (configure.ac): Just invoke gl_FUNC_FABS.
48300 2011-10-05  Jim Meyering  <meyering@redhat.com>
48302         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
48303         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
48304         ls -lL regression introduced in coreutils-8.12, it does so at the
48305         cost of an additional stat call in the common case.  Besides, now
48306         that the kernel change that prompted commit 95f7c57f has been reverted
48307         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
48308         we have no use for commit 95f7c57f, "file-has-acl: use
48309         acl_extended_file_nofollow if available".
48311 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
48313         file-has-acl: revert unintended change in behavior of ls -L
48314         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
48315         derived from...
48316         (file_has_acl): ...code here.  Call it.
48317         This problem was introduced with 2011-07-22 commit 95f7c57f,
48318         "file-has-acl: use acl_extended_file_nofollow if available".
48319         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
48321 2011-10-03  Bruno Haible  <bruno@clisp.org>
48323         poll: Avoid link errors on MSVC.
48324         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
48325         * modules/poll (Depends-on): Add sockets.
48326         (Link): New section.
48327         * NEWS: Mention the change.
48328         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
48329         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
48330         $(LIB_POLL) instead of $(LIBSOCKET).
48332 2011-10-03  Bruno Haible  <bruno@clisp.org>
48334         sys_select tests: Fix link error on MSVC 9.
48335         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
48336         with $(LIB_SELECT) instead of $(LIBSOCKET).
48338 2011-10-03  Bruno Haible  <bruno@clisp.org>
48340         sys_select: Fix compilation error on mingw.
48341         * lib/sys_select.in.h: On native Windows, include <io.h>.
48343 2011-10-03  Bruno Haible  <bruno@clisp.org>
48345         wmemset: Support for MSVC.
48346         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
48347         whether wmemset() exists.
48349 2011-10-03  Bruno Haible  <bruno@clisp.org>
48351         wmemmove: Support for MSVC.
48352         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
48353         whether wmemmove() exists.
48355 2011-10-03  Bruno Haible  <bruno@clisp.org>
48357         wmemcpy: Support for MSVC.
48358         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
48359         whether wmemcpy() exists.
48361 2011-10-03  Bruno Haible  <bruno@clisp.org>
48363         wmemcmp: Support for MSVC.
48364         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
48365         whether wmemcmp() exists.
48367 2011-10-03  Bruno Haible  <bruno@clisp.org>
48369         wmemchr: Support for MSVC.
48370         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
48371         whether wmemchr() exists.
48373 2011-10-03  Bruno Haible  <bruno@clisp.org>
48375         glthread/*, strsignal: Support for MSVC.
48376         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
48377         including <winsock.h> on MSVC 9.
48378         * lib/glthread/lock.h: Likewise.
48379         * lib/glthread/thread.h: Likewise.
48380         * lib/glthread/tls.h: Likewise.
48381         * lib/glthread/yield.h: Likewise.
48382         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
48383         if HAVE_UNISTD_H is false.
48384         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
48386 2011-10-03  Bruno Haible  <bruno@clisp.org>
48388         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
48389         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
48390         Set to 100000.
48392 2011-10-03  Bruno Haible  <bruno@clisp.org>
48394         acl: Fix specification.
48395         * lib/file-has-acl.c (file_has_acl): Fix specification.
48397 2011-10-03  Bruno Haible  <bruno@clisp.org>
48399         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
48400         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
48401         (compute_curr_prefix, shared_library_fullname,
48402         find_shared_library_fullname, get_shared_library_fullname, relocate):
48403         Use it together with PIC && INSTALLDIR.
48404         Reported by <jojelino@gmail.com>
48405         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
48407 2011-10-01  Jim Meyering  <meyering@redhat.com>
48409         maint.mk: adjust a release-related rule not to require use of gzip
48410         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
48411         Instead, check each file in $(DIST_ARCHIVES).  This is better for
48412         projects that build only .tar.xz files.  Also fix an erroneous test.
48414         test-linkat: don't leave behind a temporary file
48415         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
48416         Otherwise, coreutils' "make distcheck" would fail with this:
48417           Only in /c/cu/tests/torture/coreutils/test/\
48418             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
48419           make[2]: *** [my-distcheck] Error 1
48421         float, math: add omitted file
48422         * lib/itold.c: Add file, required for yesterday's float change.
48424 2011-10-01  Bruno Haible  <bruno@clisp.org>
48426         isinf: Fix for OpenBSD/x86.
48427         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
48428         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
48429         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
48431 2011-10-01  Bruno Haible  <bruno@clisp.org>
48433         isfinite: Fix syntax error in configure test.
48434         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
48436         isfinite: Fix typo.
48437         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
48438         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
48440 2011-10-01  Bruno Haible  <bruno@clisp.org>
48442         nonblocking tests: Fix test failure on Linux/IA-64.
48443         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
48444         Set to 270000.
48446 2011-10-01  Bruno Haible  <bruno@clisp.org>
48448         mkfifoat tests: Fix a test failure on mingw.
48449         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
48450         with error ENOSYS.
48452 2011-09-30  Bruno Haible  <bruno@clisp.org>
48454         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
48455         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
48456         'long double'. Set REPLACE_ITOLD.
48457         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
48458         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
48459         * lib/itold.c: New file.
48460         * modules/float (Files): Add lib/itold.c.
48461         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
48462         (Makefile.am): Substitute REPLACE_ITOLD.
48463         * modules/math (Depends-on): Add float.
48464         (Makefile.am): Substitute REPLACE_ITOLD.
48465         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
48466         * doc/posix-headers/math.texi: Likewise.
48467         * doc/posix-functions/logl.texi: Likewise.
48469 2011-09-30  Bruno Haible  <bruno@clisp.org>
48471         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
48472         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
48473         Set to 140000.
48475 2011-09-30  Bruno Haible  <bruno@clisp.org>
48477         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
48478         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
48479         invocation, say "right after AC_PROG_CC_STDC", not "right after
48480         AC_PROG_CC".
48481         Reported by Gary V. Vaughan <gary@gnu.org>.
48483 2011-09-30  Bruno Haible  <bruno@clisp.org>
48485         Centralize C99 requirement.
48486         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
48487         * modules/stdarg (configure.ac-early): Invoke it instead of
48488         AC_PROG_CC_STDC.
48489         Reported by Gary V. Vaughan and Paul Eggert.
48491 2011-09-29  Bruno Haible  <bruno@clisp.org>
48493         float: Fix LDBL_MAX value on Linux/PowerPC.
48494         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
48495         on Linux/PowerPC.
48496         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
48497         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
48498         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
48499         platform.
48500         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
48502 2011-09-29  Bruno Haible  <bruno@clisp.org>
48504         doc: Improve doc about gl_EARLY.
48505         * doc/gnulib-tool.texi (Initial import): Mention where to place an
48506         AC_PROG_CC_STDC invocation.
48507         Reported by Gary V. Vaughan <gary@gnu.org>.
48509 2011-09-28  Bruno Haible  <bruno@clisp.org>
48511         fgetc, fputc, fread, fwrite tests: Fix link error.
48512         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
48513         on non-MSVC platforms.
48514         * tests/test-fputc.c (main): Likewise.
48515         * tests/test-fread.c (main): Likewise.
48516         * tests/test-fwrite.c (main): Likewise.
48517         Reported by Jim Meyering.
48519 2011-09-27  Bruno Haible  <bruno@clisp.org>
48521         fputc, fwrite tests: Avoid test failure on MSVC.
48522         * tests/test-fgetc.c: Include msvc-inval.h.
48523         (main): Invoke gl_msvc_inval_ensure_handler.
48524         * tests/test-fputc.c: Include msvc-inval.h.
48525         (main): Invoke gl_msvc_inval_ensure_handler.
48526         * tests/test-fread.c: Include msvc-inval.h.
48527         (main): Invoke gl_msvc_inval_ensure_handler.
48528         * tests/test-fwrite.c: Include msvc-inval.h.
48529         (main): Invoke gl_msvc_inval_ensure_handler.
48530         * modules/fgetc-tests (Depends-on): Add msvc-inval.
48531         * modules/fputc-tests (Depends-on): Likewise.
48532         * modules/fread-tests (Depends-on): Likewise.
48533         * modules/fwrite-tests (Depends-on): Likewise.
48535 2011-09-27  Bruno Haible  <bruno@clisp.org>
48537         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
48538         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
48539         (raise): Remove older, duplicated declaration.
48540         (_gl_raise_SIGPIPE): New declaration.
48541         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
48542         (rpl_raise): Remove function.
48543         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
48544         a gnulib-defined SIGPIPE here.
48545         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
48546         'sigprocmask' has detected missing signal-blocking and the module
48547         'sigpipe' is enabled.
48548         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48550 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
48552         base64-tests: avoid memory leak
48553         * tests/test-base64.c (main): Plug memory leak.
48555         base32: new module
48556         * modules/base32: New module.
48557         * lib/base32.c: New file.
48558         * lib/base32.h: Likewise.
48559         * m4/base32.m4: Likewise.
48560         * modules/base32-tests: New test.
48561         * tests/test-base32.c: Likewise.
48562         * MODULES.html.sh (Misc): Mention it.
48564 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48566         gnulib: use more-standard license notice wording
48567         * gnulib-tool (func_emit_copyright_notice): When emitting a
48568         license notice into a file, use the standard wording as suggested
48569         by the current information for GNU maintainers, except say "file"
48570         rather than "program".  The new wording gives a license version
48571         number, which addresses an issue raised by Glenn Morris in
48572         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
48573         * m4/onceonly.m4: Use that same wording here, too.
48575         dup2: minor simplification
48576         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
48577         as lib/dup2.c no longer uses 'inline'.
48579 2011-09-25  Bruno Haible  <bruno@clisp.org>
48581         strings: Fix compilation error on MSVC.
48582         * lib/strings.in.h: Include <stddef.h> for size_t.
48584 2011-09-25  Bruno Haible  <bruno@clisp.org>
48586         fflush et al.: Document limitation on MSVC.
48587         * doc/posix-functions/fflush.texi: Document possible crash in handling
48588         mode other than DEFAULT_HANDLING.
48589         * doc/posix-functions/fgetc.texi: Likewise.
48590         * doc/posix-functions/fputc.texi: Likewise.
48591         * doc/posix-functions/fread.texi: Likewise.
48592         * doc/posix-functions/fwrite.texi: Likewise.
48594 2011-09-25  Bruno Haible  <bruno@clisp.org>
48596         msvc-inval: Allow three invalid parameter handling modes.
48597         * lib/msvc-inval.h: Don't include <stdlib.h> here.
48598         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
48599         macros.
48600         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
48601         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
48602         SANE_LIBRARY_HANDLING as a no-op.
48603         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
48604         <stdlib.h>.
48605         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
48607 2011-09-25  Bruno Haible  <bruno@clisp.org>
48609         msvc-inval: Make handler multithread-safe.
48610         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
48611         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
48612         declarations.
48613         (gl_msvc_inval_current): New declaration.
48614         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48615         Operate on the structure returned by gl_msvc_inval_current().
48616         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
48617         Remove varaiables.
48618         (tls_index, tls_initialized): New variables.
48619         (not_per_thread): New variable.
48620         (gl_msvc_inval_current): New function.
48621         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
48622         returned by gl_msvc_inval_current().
48624 2011-09-25  Bruno Haible  <bruno@clisp.org>
48626         msvc-inval: Install handler globally.
48627         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
48628         !_MSC_VER.
48629         (gl_msvc_invalid_parameter_handler): Remove declaration.
48630         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
48631         declarations.
48632         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48633         Install the handler globally, don't uninstall it.
48634         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
48635         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
48636         currently valid, call RaiseException instead.
48637         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
48638         for !_MSC_VER.
48640 2011-09-25  Bruno Haible  <bruno@clisp.org>
48642         strerror_r-posix: Fix for MSVC 9.
48643         * lib/strerror_r.c (local_snprintf): New function.
48644         (snprintf): Define to local_snprintf, not to _snprintf.
48646 2011-09-25  Bruno Haible  <bruno@clisp.org>
48648         ftruncate: Support for MSVC 9.
48649         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
48650         (chsize_nothrow): New function.
48651         (chsize): Redefine as a macro.
48652         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
48653         * modules/ftruncate (Depends-on): Add msvc-inval.
48655 2011-09-25  Bruno Haible  <bruno@clisp.org>
48657         New module 'fstat'.
48658         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
48659         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
48660         * lib/fchdir.c (rpl_fstat): Remove function.
48661         * m4/fstat.m4: New file.
48662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
48663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
48664         declared.
48665         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
48666         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
48667         * modules/fstat: New file.
48668         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
48669         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
48670         is set.
48671         * doc/posix-functions/fstat.texi: Mention the new module and the
48672         problem on MSVC.
48673         * NEWS: Mention the change.
48674         * modules/acl (Depends-on): Add fstat.
48675         * modules/chdir-safer (Depends-on): Likewise.
48676         * modules/chown (Depends-on): Likewise.
48677         * modules/copy-file (Depends-on): Likewise.
48678         * modules/fchdir (Depends-on): Likewise.
48679         * modules/fdopendir (Depends-on): Likewise.
48680         * modules/fopen (Depends-on): Likewise.
48681         * modules/fts (Depends-on): Likewise.
48682         * modules/getcwd (Depends-on): Likewise.
48683         * modules/isapipe (Depends-on): Likewise.
48684         * modules/linkat (Depends-on): Likewise.
48685         * modules/lseek (Depends-on): Likewise.
48686         * modules/mkdir-p (Depends-on): Likewise.
48687         * modules/open (Depends-on): Likewise.
48688         * modules/openat (Depends-on): Likewise.
48689         * modules/read-file (Depends-on): Likewise.
48690         * modules/renameat (Depends-on): Likewise.
48691         * modules/utimens (Depends-on): Likewise.
48693 2011-09-25  Bruno Haible  <bruno@clisp.org>
48695         linkat: Fix compilation on MSVC 9.
48696         * lib/linkat.c: Don't include <stdint.h>.
48698 2011-09-25  Bruno Haible  <bruno@clisp.org>
48700         fclose: Support for MSVC 9.
48701         * lib/fclose.c: Include msvc-inval.h.
48702         (fclose_nothrow): New function.
48703         (rpl_fclose): Use it.
48704         * modules/fclose (Depends-on): Add msvc-inval.
48705         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
48707 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48709         dup2: minor simplifications
48710         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
48711         that it's a performance win.
48712         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
48713         ! defined __CYGWIN__)" to "ifdef F_GETFL".
48715 2011-09-24  Jim Meyering  <meyering@redhat.com>
48717         test-futimens: avoid a warning from gcc -Wshadow
48718         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
48719         to avoid a shadowing warning.
48721 2011-09-24  Bruno Haible  <bruno@clisp.org>
48723         fdopen: Support for MSVC 9.
48724         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
48725         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
48726         * lib/fdopen.c: Include msvc-inval.h.
48727         (fdopen_nothrow): New function.
48728         (rpl_fdopen): Use it.
48729         * modules/fdopen (Depends-on): Add msvc-inval.
48730         * modules/fclose-tests (Depends-on): Add fdopen.
48731         * modules/fflush-tests (Depends-on): Likewise.
48732         * modules/fgetc-tests (Depends-on): Likewise.
48733         * modules/fputc-tests (Depends-on): Likewise.
48734         * modules/fread-tests (Depends-on): Likewise.
48735         * modules/freopen-tests (Depends-on): Likewise.
48736         * modules/fseeko-tests (Depends-on): Likewise.
48737         * modules/ftello-tests (Depends-on): Likewise.
48738         * modules/fwrite-tests  (Depends-on): Likewise.
48739         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
48741 2011-09-24  Bruno Haible  <bruno@clisp.org>
48743         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
48744         * modules/fgetc-tests (Depends-on): Add unistd.
48745         * modules/fputc-tests (Depends-on): Likewise.
48746         * modules/fread-tests (Depends-on): Likewise.
48747         * modules/fwrite-tests (Depends-on): Likewise.
48749 2011-09-24  Bruno Haible  <bruno@clisp.org>
48751         dup: Simplify autoconf test.
48752         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
48753         on gl_MSVC_INVAL's result.
48755 2011-09-24  Bruno Haible  <bruno@clisp.org>
48757         Tests for function fwrite().
48758         * modules/fwrite-tests: New file.
48759         * tests/test-fwrite.c: New file.
48760         * modules/stdio-tests (Depends-on): Add fwrite-tests.
48762         Tests for function fread().
48763         * modules/fread-tests: New file.
48764         * tests/test-fread.c: New file.
48765         * modules/stdio-tests (Depends-on): Add fread-tests.
48767         Activate fputc tests.
48768         * modules/stdio-tests (Depends-on): Add fputc-tests.
48770         Enhance fgetc, fputc tests.
48771         * tests/test-fgetc.c (main): Also test the stream's error indicator.
48772         * tests/test-fputc.c (main): Likewise.
48774 2011-09-24  Bruno Haible  <bruno@clisp.org>
48776         write: Support for MSVC 9.
48777         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48778         is not 1.
48779         * lib/write.c (write_nothrow): New function.
48780         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
48781         not 1. Use write_nothrow.
48782         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
48783         invalid parameter handler.
48784         (gl_PREREQ_WRITE): New macro.
48785         * modules/write (Depends-on): Add msvc-inval.
48786         (configure.ac): Invoke gl_PREREQ_WRITE.
48787         * doc/posix-functions/write.texi: Mention the problem on MSVC.
48789 2011-09-24  Bruno Haible  <bruno@clisp.org>
48791         read: Fix last commit.
48792         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
48794 2011-09-24  Bruno Haible  <bruno@clisp.org>
48796         dup2: Fix last commit.
48797         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
48798         (rpl_dup2): Disable fcntl workaround on native Windows.
48800         sigprocmask: Make code safer.
48801         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
48802         section that changes macro definitions for this compilation unit.
48804 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48806         dup2: clarify by coalescing Windows-specific material
48807         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
48808         "msvc-nothrow.h"' to the Windows-specific section, so that the
48809         Emacs source need not contain these include files.
48810         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
48811         Windows-specific fixes into this function rather than just the
48812         nothrow fix, as this shortens and clarifies the code.  Always
48813         define as a function, as that's a bit cleaner than having it be
48814         sometimes a function and sometimes a macro.
48815         (rpl_dup2): Move the Windows-specific stuff out of here and into
48816         ms_windows_dup2.  Don't protect the Haiku-related fix with
48817         "#if !defined __linux__", as the same code also works around
48818         a Linux kernel bug, and it doesn't add any system calls on any
48819         platform.  Add comment about FreeBSD 6.1.
48821         sigprocmask: move #include directive
48822         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
48823         Windows-specific section, so that the Emacs source need not
48824         contain msvc-inval.h.
48826 2011-09-23  Bruno Haible  <bruno@clisp.org>
48828         read: Support for MSVC 9.
48829         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48830         is not 1.
48831         * lib/read.c (read_nothrow): New function.
48832         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
48833         read_nothrow.
48834         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
48835         invalid parameter handler.
48836         (gl_PREREQ_READ): New macro.
48837         * modules/read (Depends-on): Add msvc-inval.
48838         (configure.ac): Invoke gl_PREREQ_READ.
48839         * doc/posix-functions/read.texi: Mention the problem on MSVC.
48841 2011-09-23  Bruno Haible  <bruno@clisp.org>
48843         close: Support for MSVC 9.
48844         * lib/close.c: Include <errno.h>, msvc-inval.h.
48845         (close_nothrow): New function.
48846         (rpl_close): Use it.
48847         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
48848         invalid parameter handler.
48849         * modules/close (Depends-on): Add msvc-inval.
48850         * modules/dup2-tests (Depends-on): Add close.
48851         * modules/dup3-tests (Depends-on): Likewise.
48852         * modules/fcntl-tests (Depends-on): Likewise.
48853         * modules/spawn-pipe-tests (Depends-on): Likewise.
48854         * modules/unistd-safer-tests (Depends-on): Likewise.
48855         * doc/posix-functions/close.texi: Mention the problem on MSVC.
48857 2011-09-23  Bruno Haible  <bruno@clisp.org>
48859         New module 'dup'.
48860         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
48861         Allow replacement.
48862         * lib/dup.c: New file.
48863         * lib/fchdir.c (rpl_dup): Remove function.
48864         * m4/dup.m4: New file.
48865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
48866         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
48867         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
48868         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
48869         * modules/dup: New file.
48870         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
48871         'dup' module is in use.
48872         * modules/fdopendir (Depends-on): Add dup.
48873         * modules/fdutimensat-tests (Depends-on): Likewise.
48874         * modules/fts (Depends-on): Likewise.
48875         * modules/futimens-tests (Depends-on): Likewise.
48876         * modules/posix_spawnp-tests (Depends-on): Likewise.
48877         * modules/unistd-safer-tests (Depends-on): Likewise.
48878         * modules/utimens-tests (Depends-on): Likewise.
48879         * doc/posix-functions/dup.texi: Mention the new module and the problem
48880         on MSVC.
48882 2011-09-23  Bruno Haible  <bruno@clisp.org>
48884         getdtablesize: Support for MSVC 9.
48885         * lib/getdtablesize.c: Include msvc-inval.h.
48886         (_setmaxstdio_nothrow): New function.
48887         (_setmaxstdio): Redefine it.
48888         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
48889         * modules/getdtablesize (Depends-on): Add msvc-inval.
48890         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
48892 2011-09-23  Bruno Haible  <bruno@clisp.org>
48894         signal-h: Rename from signal.
48895         * modules/signal-h: Renamed from modules/signal.
48896         * modules/pthread_sigmask (Depends-on): Update.
48897         * modules/raise (Depends-on): Likewise.
48898         * modules/sigaction (Depends-on): Likewise.
48899         * modules/sigpipe (Depends-on): Likewise.
48900         * modules/sigprocmask (Depends-on): Likewise.
48901         * modules/sys_select (Depends-on): Likewise.
48902         * modules/signal-h-tests: Renamed from modules/signal-tests.
48903         (Files, Depends-on, Makefile.am): Update.
48904         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
48905         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
48906         (Files, Makefile.am): Update.
48907         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
48908         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
48909         * modules/signal: New placeholder file.
48910         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
48911         * doc/posix-headers/signal.texi: Update.
48912         * NEWS: Mention the change.
48914 2011-09-23  Bruno Haible  <bruno@clisp.org>
48916         sigprocmask: Avoid crashes through signal() on MSVC 9.
48917         * lib/sigprocmask.c: Include msvc-inval.h.
48918         (signal_nothrow): New function.
48919         (signal): Redefine it.
48920         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
48921         * modules/sigprocmask (Depends-on): Add msvc-inval.
48922         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
48924 2011-09-23  Bruno Haible  <bruno@clisp.org>
48926         Tests for module 'raise'.
48927         * modules/raise-tests: New file.
48928         * tests/test-raise.c: New file.
48930         raise: Support for MSVC.
48931         * lib/signal.in.h (raise): New declaration.
48932         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
48933         for native Windows platforms.
48934         * m4/raise.m4: New file.
48935         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
48936         HAVE_RAISE, REPLACE_RAISE.
48937         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
48938         REPLACE_RAISE.
48939         * modules/raise (Status, Notice): Remove fields.
48940         (Files): Add m4/raise.m4.
48941         (Depends-on): Add signal, msvc-inval.
48942         (configure.ac): Use the common idioms.
48943         (Maintainer): Add me.
48944         * tests/test-signal-c++.cc: Check the signature of raise.
48945         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
48947 2011-09-23  Bruno Haible  <bruno@clisp.org>
48949         pipe2: Fix compilation on pre-C99 compilers.
48950         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
48952 2011-09-23  Bruno Haible  <bruno@clisp.org>
48954         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
48955         * lib/msvc-nothrow.h: New file.
48956         * lib/msvc-nothrow.c: New file.
48957         * m4/msvc-nothrow.m4: New file.
48958         * modules/msvc-nothrow: New file.
48959         * lib/dup2.c: Include msvc-nothrow.h.
48960         (rpl_dup2): No need to protect _get_osfhandle call here.
48961         * lib/accept4.c: Include msvc-nothrow.h.
48962         * lib/error.c: Likewise.
48963         * lib/fcntl.c: Likewise.
48964         * lib/lseek.c: Likewise.
48965         * lib/nonblocking.c: Likewise.
48966         * lib/poll.c: Likewise.
48967         * lib/read.c: Likewise.
48968         * lib/select.c: Likewise.
48969         * lib/sockets.h: Likewise.
48970         * lib/sockets.c: Likewise.
48971         * lib/stdio-read.c: Likewise.
48972         * lib/stdio-write.c: Likewise.
48973         * lib/write.c: Likewise.
48974         * lib/w32sock.h: Likewise.
48975         * lib/w32spawn.h: Likewise.
48976         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
48977         * lib/fsync.c: Likewise.
48978         * lib/isapipe.c: Likewise.
48979         * modules/dup2 (Depends-on): Add msvc-nothrow.
48980         * modules/accept4 (Depends-on): Likewise.
48981         * modules/error (Depends-on): Likewise.
48982         * modules/fcntl (Depends-on): Likewise.
48983         * modules/lseek (Depends-on): Likewise.
48984         * modules/nonblocking (Depends-on): Likewise.
48985         * modules/poll (Depends-on): Likewise.
48986         * modules/read (Depends-on): Likewise.
48987         * modules/select (Depends-on): Likewise.
48988         * modules/sockets (Depends-on): Likewise.
48989         * modules/sigpipe (Depends-on): Likewise.
48990         * modules/write (Depends-on): Likewise.
48991         * modules/accept (Depends-on): Likewise.
48992         * modules/bind (Depends-on): Likewise.
48993         * modules/connect (Depends-on): Likewise.
48994         * modules/gethostname (Depends-on): Likewise.
48995         * modules/getpeername (Depends-on): Likewise.
48996         * modules/getsockname (Depends-on): Likewise.
48997         * modules/getsockopt (Depends-on): Likewise.
48998         * modules/ioctl (Depends-on): Likewise.
48999         * modules/listen (Depends-on): Likewise.
49000         * modules/recv (Depends-on): Likewise.
49001         * modules/recvfrom (Depends-on): Likewise.
49002         * modules/send (Depends-on): Likewise.
49003         * modules/sendto (Depends-on): Likewise.
49004         * modules/setsockopt (Depends-on): Likewise.
49005         * modules/shutdown (Depends-on): Likewise.
49006         * modules/socket (Depends-on): Likewise.
49007         * modules/execute (Depends-on): Likewise.
49008         * modules/spawn-pipe (Depends-on): Likewise.
49009         * modules/flock (Depends-on): Likewise.
49010         * modules/fsync (Depends-on): Likewise.
49011         * modules/isapipe (Depends-on): Likewise.
49012         * tests/test-cloexec.c: Include msvc-nothrow.h.
49013         * tests/test-dup-safer.c: Likewise.
49014         * tests/test-dup2.c: Likewise.
49015         * tests/test-dup3.c: Likewise.
49016         * tests/test-fcntl.c: Likewise.
49017         * tests/test-pipe.c: Likewise.
49018         * tests/test-pipe2.c: Likewise.
49019         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
49020         * modules/unistd-safer-tests (Depends-on): Likewise.
49021         * modules/dup2-tests (Depends-on): Likewise.
49022         * modules/dup3-tests (Depends-on): Likewise.
49023         * modules/fcntl-tests (Depends-on): Likewise.
49024         * modules/pipe-posix-tests (Depends-on): Likewise.
49025         * modules/pipe2-tests (Depends-on): Likewise.
49027 2011-09-23  Bruno Haible  <bruno@clisp.org>
49029         dup2: Make code more maintainable.
49030         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
49031         (rpl_dup2): Use it.
49032         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
49033         * modules/dup2 (configure.ac): Invoke it.
49034         Reported by Paul Eggert.
49036 2011-09-23  Bruno Haible  <bruno@clisp.org>
49038         msvc-inval: Fix compilation error.
49039         * lib/msvc-inval.h: Include <excpt.h>.
49041 2011-09-23  Bruno Haible  <bruno@clisp.org>
49043         mkdir: Tweak for MSVC 9.
49044         * lib/sys_stat.in.h: Update comments.
49045         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
49047         Tests for module 'chdir'.
49048         * modules/chdir-tests: New file.
49049         * tests/test-chdir.c: New file.
49051         New module 'chdir'.
49052         * modules/chdir: New file.
49053         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
49054         (chdir): New declaration.
49055         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
49056         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
49057         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
49058         * tests/test-unistd-c++.cc: Check signature of chdir.
49059         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
49060         * modules/chdir-long (Depends-on): Add chdir.
49061         * modules/fchdir (Depends-on): Likewise.
49062         * modules/rename (Depends-on): Likewise.
49063         * modules/savewd (Depends-on): Likewise.
49065         rmdir: Support for mingw, MSVC 9.
49066         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
49067         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
49069         getcwd: Tweak for MSVC 9.
49070         * lib/unistd.in.h: Update comments.
49071         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
49073 2011-09-22  Bruno Haible  <bruno@clisp.org>
49075         strerror_r-posix: Avoid a link error on MSVC.
49076         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
49077         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
49079 2011-09-22  Bruno Haible  <bruno@clisp.org>
49081         select: Avoid link errors on MSVC.
49082         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
49083         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
49084         * modules/pselect (Link): Likewise.
49085         * NEWS: Mention the change.
49086         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
49087         test-select-stdin against $(LIB_SELECT).
49088         * modules/pselect-tests (Makefile.am): Link test-pselect against
49089         $(LIB_SELECT).
49091 2011-09-22  Bruno Haible  <bruno@clisp.org>
49093         select: Avoid compilation error on MSVC.
49094         * lib/select.c: Don't include <stdbool.h>.
49096 2011-09-21  Bruno Haible  <bruno@clisp.org>
49098         Consolidate all uses of PATH_MAX in *.m4 files.
49099         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
49100         macros.
49101         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
49102         and gl_PATHMAX_SNIPPET.
49103         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49104         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49105         * modules/chdir-long (Files): Add m4/pathmax.m4.
49106         * modules/getcwd (Files): Likewise.
49108 2011-09-21  Bruno Haible  <bruno@clisp.org>
49110         ftruncate: Un-deprecate, concentrate on Win32 support.
49111         * modules/ftruncate (Status, Notice): Remove sections.
49112         (Depends-on): Add largefile.
49113         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
49114         non-mingw platforms.
49115         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
49116         include <io.h>.
49117         * modules/perror-tests (Depends-on): Add ftruncate.
49118         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
49119         'ftruncate' module.
49121 2011-09-21  Bruno Haible  <bruno@clisp.org>
49123         Add dependencies to new dirent related modules.
49124         * modules/opendir (Depends-on): Add closedir.
49125         * modules/getcwd (Depends-on): Add opendir, closedir.
49126         * modules/dirent-safer-tests (Depends-on): Likewise.
49127         * modules/fdopendir-tests (Depends-on): Likewise.
49128         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
49129         * modules/renameat-tests (Depends-on): Likewise.
49131 2011-09-21  Bruno Haible  <bruno@clisp.org>
49133         opendir: Avoid compilation error on mingw.
49134         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
49135         * modules/opendir (Depends-on): Add unistd.
49137 2011-09-21  Bruno Haible  <bruno@clisp.org>
49139         ftruncate tests: Avoid a test failure on mingw.
49140         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
49142 2011-09-21  Bruno Haible  <bruno@clisp.org>
49144         select tests: Avoid test failures on OSF/1 5.1 and mingw.
49145         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
49146         native Windows.
49148 2011-09-21  Bruno Haible  <bruno@clisp.org>
49150         New module 'fdopen'.
49151         * lib/stdio.in.h (fdopen): New declaration.
49152         * lib/fdopen.c: New file.
49153         * m4/fdopen.m4: New file.
49154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
49155         REPLACE_FDOPEN.
49156         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
49157         REPLACE_FDOPEN.
49158         * modules/fdopen: New file.
49159         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
49160         * tests/test-stdio-c++.cc: Check signature of fdopen.
49161         * doc/posix-functions/fdopen.texi: Mention the new module.
49163 2011-09-21  Bruno Haible  <bruno@clisp.org>
49165         unlockpt tests: Avoid test failure on NetBSD 5.1.
49166         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
49167         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
49169 2011-09-21  Bruno Haible  <bruno@clisp.org>
49171         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
49172         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
49173         * tests/test-getlogin_r.c (main): Likewise.
49175 2011-09-20  Bruno Haible  <bruno@clisp.org>
49177         time tests: Don't require pid_t.
49178         * doc/posix-headers/time.texi: Revert last change.
49179         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
49180         * tests/test-time.c: Comment out the check for pid_t.
49182 2011-09-20  Bruno Haible  <bruno@clisp.org>
49184         fsync tests: Avoid a test failure on mingw.
49185         * tests/test-fsync.c (main): Allow a failure with EIO.
49187 2011-09-20  Bruno Haible  <bruno@clisp.org>
49189         euidaccess: Update comments.
49190         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
49192 2011-09-20  Bruno Haible  <bruno@clisp.org>
49194         Ensure EBADF returns for socket functions on mingw.
49195         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
49196         descriptor is invalid.
49197         * lib/bind.c (rpl_bind): Likewise.
49198         * lib/connect.c (rpl_connect): Likewise.
49199         * lib/getpeername.c (rpl_getpeername): Likewise.
49200         * lib/getsockname.c (rpl_getsockname): Likewise.
49201         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49202         * lib/listen.c (rpl_listen): Likewise.
49203         * lib/recv.c (rpl_recv): Likewise.
49204         * lib/recvfrom.c (rpl_recvfrom): Likewise.
49205         * lib/send.c (rpl_send): Likewise.
49206         * lib/sendto.c (rpl_sendto): Likewise.
49207         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49208         * lib/shutdown.c (rpl_shutdown): Likewise.
49210 2011-09-20  Bruno Haible  <bruno@clisp.org>
49212         select tests: EBADF tests.
49213         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
49214         test_bad_fd): New functions.
49215         (test_function): Invoke also test_bad_fd.
49217 2011-09-20  Bruno Haible  <bruno@clisp.org>
49219         Tests for module 'posix_spawn_file_actions_addopen.
49220         * modules/posix_spawn_file_actions_addopen-tests: New file.
49221         * tests/test-posix_spawn_file_actions_addopen.c: New file.
49223         Tests for module 'posix_spawn_file_actions_adddup2'.
49224         * modules/posix_spawn_file_actions_adddup2-tests: New file.
49225         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
49227         Tests for module 'posix_spawn_file_actions_addclose'.
49228         * modules/posix_spawn_file_actions_addclose-tests: New file.
49229         * tests/test-posix_spawn_file_actions_addclose.c: New file.
49231 2011-09-20  Bruno Haible  <bruno@clisp.org>
49233         Tests for module 'unlockpt'.
49234         * modules/unlockpt-tests: New file.
49235         * tests/test-unlockpt.c: New file.
49236         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
49238         Tests for module 'grantpt'.
49239         * modules/grantpt-tests: New file.
49240         * tests/test-grantpt.c: New file.
49241         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
49243 2011-09-20  Bruno Haible  <bruno@clisp.org>
49245         freopen tests: EBADF tests.
49246         * tests/test-freopen.c: Include errno.h, unistd.h.
49247         (main): Add tests for EBADF, commented out for the moment.
49249         fclose tests: EBADF tests.
49250         * tests/test-fclose.c (main): Add tests for EBADF.
49252         fflush tests: EBADF tests.
49253         * tests/test-fflush.c: Include errno.h, macros.h.
49254         (main): Add tests for EBADF.
49256         ftello tests: EBADF tests.
49257         * tests/test-ftello4.sh: New file.
49258         * tests/test-ftello4.c: New file.
49259         * modules/ftello-tests (Files): Add them.
49260         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
49262         fseeko tests: EBADF tests.
49263         * tests/test-fseeko4.sh: New file.
49264         * tests/test-fseeko4.c: New file.
49265         * modules/fseeko-tests (Files): Add them.
49266         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
49268         Tests for function fputc().
49269         * modules/fputc-tests: New file.
49270         * tests/test-fputc.c: New file.
49271         * modules/stdio-tests (Depends-on): Add fputc-tests.
49273         Tests for function fgetc().
49274         * modules/fgetc-tests: New file.
49275         * tests/test-fgetc.c: New file.
49276         * modules/stdio-tests (Depends-on): Add fgetc-tests.
49278         Tests for function fdopen().
49279         * modules/fdopen-tests: New file.
49280         * tests/test-fdopen.c: New file.
49281         * modules/stdio-tests (Depends-on): Add fdopen-tests.
49283         Tests for module 'vdprintf'.
49284         * modules/vdprintf-tests: New file.
49285         * tests/test-vdprintf.c: New file.
49287         Tests for module 'dprintf'.
49288         * modules/dprintf-tests: New file.
49289         * tests/test-dprintf.c: New file.
49291 2011-09-20  Bruno Haible  <bruno@clisp.org>
49293         Tests for module 'ioctl'.
49294         * modules/ioctl-tests: New file.
49295         * tests/test-ioctl.c: New file.
49297 2011-09-20  Bruno Haible  <bruno@clisp.org>
49299         fcntl tests: EBADF tests.
49300         * tests/test-fcntl.c (main): Add more tests for EBADF.
49302 2011-09-20  Bruno Haible  <bruno@clisp.org>
49304         utimensat tests: EBADF tests.
49305         * tests/test-utimensat.c (main): Add tests for EBADF.
49307         renameat tests: EBADF tests.
49308         * tests/test-renameat.c (main): Add tests for EBADF.
49310         mkfifoat tests: EBADF tests.
49311         * tests/test-mkfifoat.c (main): Add tests for EBADF.
49313         readlinkat tests: EBADF tests.
49314         * tests/test-readlinkat.c (main): Add tests for EBADF.
49316         symlinkat tests: EBADF tests.
49317         * tests/test-symlinkat.c (main): Add tests for EBADF.
49319         linkat tests: EBADF tests.
49320         * tests/test-linkat.c (main): Add tests for EBADF.
49322         Tests for module 'faccessat'.
49323         * modules/faccessat-tests: New file.
49324         * tests/test-faccessat.c: New file.
49326         fdopendir tests: EBADF tests.
49327         * tests/test-fdopendir.c (main): Add more tests for EBADF.
49329         openat tests: EBADF tests.
49330         * tests/test-fchownat.c (main): Add tests for EBADF.
49331         * tests/test-fstatat.c (main): Likewise.
49332         * tests/test-mkdirat.c (main): Likewise.
49333         * tests/test-openat.c (main): Likewise.
49334         * tests/test-unlinkat.c (main): Likewise.
49335         * tests/test-fchmodat.c: New file.
49336         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
49337         (Makefile.am): Also run 'test-fchmodat'.
49339 2011-09-20  Bruno Haible  <bruno@clisp.org>
49341         utimens, futimens, fdutimensat tests: EBADF tests.
49342         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
49344         Tests for function fstat().
49345         * modules/fstat-tests: New file.
49346         * tests/test-fstat.c: New file.
49347         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
49349 2011-09-20  Bruno Haible  <bruno@clisp.org>
49351         test-ttyname_r tests: EBADF tests.
49352         * tests/test-ttyname_r.c (main): Add tests for EBADF.
49354         Tests for module 'isatty'.
49355         * modules/isatty-tests: New file.
49356         * tests/test-isatty.c: New file.
49358         Tests for module 'write'.
49359         * modules/write-tests: New file.
49360         * tests/test-write.c: New file.
49362         Tests for module 'read'.
49363         * modules/read-tests: New file.
49364         * tests/test-read.c: New file.
49366         pwrite tests: EBADF tests.
49367         * tests/test-pwrite.c (main): Add tests for EBADF.
49369         pread tests: EBADF tests.
49370         * tests/test-pread.c (main): Add tests for EBADF.
49372         lseek tests: EBADF tests.
49373         * tests/test-lseek.c (main): Add more tests for EBADF.
49375         Tests for module 'ftruncate'.
49376         * modules/ftruncate-tests: New file.
49377         * tests/test-ftruncate.sh: New file.
49378         * tests/test-ftruncate.c: New file.
49380         fsync tests: EBADF tests.
49381         * tests/test-fsync.c (main): Add more tests for EBADF.
49383         fdatasync tests: EBADF tests.
49384         * tests/test-fdatasync.c (main): Add more tests for EBADF.
49386         Tests for module 'fchown'.
49387         * modules/fchown-tests: New file.
49388         * tests/test-fchown.c: New file.
49390         Tests for module 'fchmod'.
49391         * modules/fchmod-tests: New file.
49392         * tests/test-fchmod.c: New file.
49394         fchdir tests: EBADF tests.
49395         * tests/test-fchdir.c (main): Add more tests for EBADF.
49397         dup2 tests: EBADF tests.
49398         * tests/test-dup2.c (main): Add more tests for EBADF.
49400         Tests for module 'dup'.
49401         * modules/dup-tests: New file.
49402         * tests/test-dup.c: New file.
49404         Tests for module 'close'.
49405         * modules/close-tests: New file.
49406         * tests/test-close.c: New file.
49408 2011-09-20  Bruno Haible  <bruno@clisp.org>
49410         Tests for module 'shutdown'.
49411         * modules/shutdown-tests: New file.
49412         * tests/test-shutdown.c: New file.
49414         Tests for module 'setsockopt'.
49415         * modules/setsockopt-tests: New file.
49416         * tests/test-setsockopt.c: New file.
49418         Tests for module 'sendto'.
49419         * modules/sendto-tests: New file.
49420         * tests/test-sendto.c: New file.
49422         Tests for module 'send'.
49423         * modules/send-tests: New file.
49424         * tests/test-send.c: New file.
49426         Tests for module 'recvfrom'.
49427         * modules/recvfrom-tests: New file.
49428         * tests/test-recvfrom.c: New file.
49430         Tests for module 'recv'.
49431         * modules/recv-tests: New file.
49432         * tests/test-recv.c: New file.
49434         Tests for module 'listen'.
49435         * modules/listen-tests: New file.
49436         * tests/test-listen.c: New file.
49438         Tests for module 'getsockopt'.
49439         * modules/getsockopt-tests: New file.
49440         * tests/test-getsockopt.c: New file.
49442         Tests for module 'getsockname'.
49443         * modules/getsockname-tests: New file.
49444         * tests/test-getsockname.c: New file.
49446         Tests for module 'getpeername'.
49447         * modules/getpeername-tests: New file.
49448         * tests/test-getpeername.c: New file.
49450         Tests for module 'connect'.
49451         * modules/connect-tests: New file.
49452         * tests/test-connect.c: New file.
49454         Tests for module 'bind'.
49455         * modules/bind-tests: New file.
49456         * tests/test-bind.c: New file.
49458         accept4 tests: Fix for native Windows.
49459         * tests/test-accept4.c: Include sockets.h.
49460         (main): Invoke gl_sockets_startup.
49461         * modules/accept4-tests (Depends-on): Add sockets.
49463         accept tests: Fix for native Windows.
49464         * tests/test-accept.c: Include sockets.h.
49465         (main): Invoke gl_sockets_startup.
49466         * modules/accept-tests (Depends-on): Add sockets.
49468 2011-09-19  Bruno Haible  <bruno@clisp.org>
49470         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
49471         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
49472         do...while(0).
49473         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
49474         Suggested by Paul Eggert.
49476 2011-09-19  Bruno Haible  <bruno@clisp.org>
49478         sched: Ensure pid_t is defined.
49479         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
49480         not define pid_t.
49481         * lib/sched.in.h: Include <sys/types.h>.
49482         * doc/posix-headers/sched.texi: Mention the pid_t problem.
49483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49485 2011-09-19  Bruno Haible  <bruno@clisp.org>
49487         msvc-inval: Ensure the entire expansion is a single statement.
49488         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
49489         of braces.
49491 2011-09-19  Jim Meyering  <meyering@redhat.com>
49493         tests: use printf, not echo in init.sh's warn_ function
49494         * tests/init.sh (warn_): Use printf, not echo.  The latter would
49495         misbehave when given strings containing a backslash or starting
49496         with e.g., -n.  James Youngman suggested setting IFS.
49498 2011-09-19  Eric Blake  <eblake@redhat.com>
49500         futimens: enhance test
49501         * tests/test-futimens.h (test_futimens): Also check for EBADF on
49502         closed non-negative fd.
49504         date: accept 'hence' as opposite of 'ago'
49505         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
49506         * tests/test-parse-datetime.c (main): Enhance test.
49507         Suggested by Jesse Wilson.
49509 2011-09-19  Jim Meyering  <meyering@redhat.com>
49511         getcwd: don't fail in a deep directory on a system without openat
49512         Before this change, getcwd would fail when called from a directory
49513         of depth PATH_MAX / 3 or greater.  That was due to the fact that
49514         the non-openat implementation used "..", "../..", "../../..", etc.
49515         to access ancestor directories.  With too many, that string would
49516         be longer than PATH_MAX.
49517         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
49518         using gnulib's openat replacement.
49519         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
49520         we're using the replacement function.
49522 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
49524         maint.mk: avoid warnings from perl about missing files
49525         * top/maint.mk (def_sym_regex): Ignore files listed in
49526         $(gl_other_headers_) that do not exist, say because a project
49527         does not use a corresponding module.
49529 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49531         stat: use pathmax.h only if needed
49532         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
49533         This is better for Emacs, which does not have a mingw port and
49534         therefore can avoid the pathmax module.
49536         utimens: remove dependency on dup2
49537         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
49538         to work around the Linux kernel bug.
49539         * modules/utimens (Depends-on): Remove dup2.
49541 2011-09-18  Bruno Haible  <bruno@clisp.org>
49543         inet_ntop, inet_pton: Look for it also in libresolv.
49544         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
49545         libnsl, search for it in libresolv.
49546         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49547         Needed on Solaris 7.
49549 2011-09-18  Bruno Haible  <bruno@clisp.org>
49551         accept, accept4 tests: Avoid link error on Solaris.
49552         * modules/accept-tests (Makefile.am): Link test-accept against
49553         $(LIBSOCKET).
49554         * modules/accept4-tests (Makefile.am): Link test-accept4 against
49555         $(LIBSOCKET).
49557         accept4: Avoid link error on Solaris.
49558         * modules/accept4 (Link): New section.
49560         socket functions: Avoid link errors on Solaris.
49561         * modules/accept (Depends-on): Add socketlib.
49562         (Link): New section.
49563         * modules/bind (Depends-on): Add socketlib.
49564         (Link): New section.
49565         * modules/connect (Depends-on): Add socketlib.
49566         (Link): New section.
49567         * modules/getpeername (Depends-on): Add socketlib.
49568         (Link): New section.
49569         * modules/getsockname (Depends-on): Add socketlib.
49570         (Link): New section.
49571         * modules/getsockopt (Depends-on): Add socketlib.
49572         (Link): New section.
49573         * modules/listen (Depends-on): Add socketlib.
49574         (Link): New section.
49575         * modules/recv (Depends-on): Add socketlib.
49576         (Link): New section.
49577         * modules/recvfrom (Depends-on): Add socketlib.
49578         (Link): New section.
49579         * modules/send (Depends-on): Add socketlib.
49580         (Link): New section.
49581         * modules/sendto (Depends-on): Add socketlib.
49582         (Link): New section.
49583         * modules/setsockopt (Depends-on): Add socketlib.
49584         (Link): New section.
49585         * modules/shutdown (Depends-on): Add socketlib.
49586         (Link): New section.
49587         * modules/socket (Depends-on): Add socketlib.
49588         (Link): New section.
49590 2011-09-18  Bruno Haible  <bruno@clisp.org>
49592         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
49593         * tests/test-ptsname.c (main): Terminate the test if it takes longer
49594         than 5 seconds.
49595         * modules/ptsname-tests (configure.ac): Test for alarm.
49597 2011-09-18  Bruno Haible  <bruno@clisp.org>
49599         posix_spawn_file_actions_add*: Fix module dependencies.
49600         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
49601         posix_spawn_file_actions_init.
49602         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
49603         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
49605 2011-09-18  Bruno Haible  <bruno@clisp.org>
49607         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
49608         * tests/test-rename.h (test_rename): Allow error code EEXIST.
49609         * tests/test-renameat.c (main): Likewise.
49611 2011-09-18  Bruno Haible  <bruno@clisp.org>
49613         Tests for module 'accept4'.
49614         * modules/accept4-tests: New file.
49615         * tests/test-accept4.c: New file.
49617 2011-09-18  Bruno Haible  <bruno@clisp.org>
49619         Tests for module 'accept'.
49620         * modules/accept-tests: New file.
49621         * tests/test-accept.c: New file.
49623 2011-09-18  Bruno Haible  <bruno@clisp.org>
49625         dup2: Support for MSVC.
49626         * lib/dup2.c: Include msvc-inval.h.
49627         (rpl_dup2): Handle invalid parameter notifications during dup2 and
49628         _get_osfhandle calls.
49629         * modules/dup2 (Depends-on): Add msvc-inval.
49630         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
49632         New module 'msvc-inval'.
49633         * lib/msvc-inval.h: New file.
49634         * lib/msvc-inval.c: New file.
49635         * m4/msvc-inval.m4: New file.
49636         * modules/msvc-inval: New file.
49638 2011-09-17  Bruno Haible  <bruno@clisp.org>
49640         Tests for module 'pclose'.
49641         * modules/pclose-tests: New file.
49643         New module 'pclose'.
49644         * lib/stdio.in.h (pclose): New declaration.
49645         * lib/pclose.c: New file.
49646         * m4/pclose.m4: New file.
49647         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
49648         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
49649         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
49650         * modules/pclose: New file.
49651         * modules/popen-tests (Depends-on): Add pclose.
49652         * modules/popen-safer-tests (Depends-on): Likewise.
49653         * doc/posix-functions/pclose.texi: Mention the new module.
49655 2011-09-17  Bruno Haible  <bruno@clisp.org>
49657         popen: Support for MSVC.
49658         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
49659         * lib/popen.c (popen): Provide alternate definition for native Windows.
49660         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
49661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
49662         * modules/popen (Depends-on, configure.ac): Update condition.
49663         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
49664         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
49665         fixed.
49667 2011-09-17  Bruno Haible  <bruno@clisp.org>
49669         isnanl, isnand, isnanf: Work around MSVC bug.
49670         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
49672 2011-09-17  Bruno Haible  <bruno@clisp.org>
49674         sys_socket tests: Fix recent mistake.
49675         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
49677 2011-09-17  Bruno Haible  <bruno@clisp.org>
49679         putenv: Support for MSVC.
49680         * modules/putenv (Depends-on): Add environ.
49681         * lib/putenv.c (environ): Disable declaration.
49682         * lib/unistd.in.h: Update comment.
49684 2011-09-17  Bruno Haible  <bruno@clisp.org>
49686         math: Avoid macro redefinition warnings on MSVC.
49687         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
49688         Undefine before redefining.
49690 2011-09-17  Bruno Haible  <bruno@clisp.org>
49692         doc: Mention functions which are declared as macros.
49693         * doc/posix-functions/*[fl].texi: Mention that some functions are
49694         defined as macros with arguments only.
49696 2011-09-17  Bruno Haible  <bruno@clisp.org>
49698         Add dependencies to new dirent related modules.
49699         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
49700         * modules/fts (Depends-on): Likewise.
49701         * modules/glob (Depends-on): Likewise.
49702         * modules/savedir (Depends-on): Likewise.
49703         * modules/scandir (Depends-on): Likewise.
49704         * modules/dirent-safer (Depends-on): Add opendir, closedir.
49705         * modules/fdopendir (Depends-on): Add opendir.
49707 2011-09-17  Bruno Haible  <bruno@clisp.org>
49709         inet_pton: Support for MSVC on Windows Vista or newer.
49710         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
49711         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
49712         HAVE_DECL_INET_PTON is defined.
49713         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49714         On platforms with <winsock2.h>, test whether inet_pton is declared in
49715         <ws2tcpip.h>. If so, arrange to replace it.
49716         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49717         REPLACE_INET_PTON.
49718         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
49719         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
49720         (Depends-on, configure.ac): Update condition.
49721         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
49723 2011-09-17  Bruno Haible  <bruno@clisp.org>
49725         inet_ntop: Support for MSVC on Windows Vista or newer.
49726         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
49727         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
49728         HAVE_DECL_INET_NTOP is defined.
49729         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49730         On platforms with <winsock2.h>, test whether inet_ntop is declared in
49731         <ws2tcpip.h>. If so, arrange to replace it.
49732         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49733         REPLACE_INET_NTOP.
49734         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
49735         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
49736         (Depends-on, configure.ac): Update condition.
49737         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
49739 2011-09-16  Eric Blake  <eblake@redhat.com>
49741         test-fsync: yet another enhancement
49742         * tests/test-fsync.c (main): Also test behavior on read-only text
49743         file.
49745 2011-09-16  Bruno Haible  <bruno@clisp.org>
49747         Enhance fsync, fdatasync tests.
49748         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
49749         * tests/test-fdatasync.c (main): Likewise.
49751 2011-09-16  Bruno Haible  <bruno@clisp.org>
49753         Support for MSVC compiler: Ensure mode_t gets defined.
49754         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
49755         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49757         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
49758         * tests/test-fcntl-h.c: Check that mode_t is defined.
49759         * tests/test-sys_stat.c: Likewise.
49760         * tests/test-sys_types.c: Likewise.
49761         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
49762         * doc/posix-headers/sys_stat.texi: Likewise.
49763         * doc/posix-headers/sys_types.texi: Likewise.
49765 2011-09-16  Bruno Haible  <bruno@clisp.org>
49767         sys_stat: Support for MSVC.
49768         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
49769         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
49770         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
49771         MSVC.
49773 2011-09-16  Bruno Haible  <bruno@clisp.org>
49775         Support for MSVC compiler: Ensure off_t gets defined.
49776         * lib/unistd.in.h: Include <sys/types.h>.
49777         * tests/test-fcntl-h.c: Check that off_t is defined.
49778         * tests/test-sys_stat.c: Likewise.
49779         * tests/test-sys_types.c: Likewise.
49781 2011-09-16  Eric Blake  <eblake@redhat.com>
49783         fdatasync: port to Solaris
49784         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
49785         * modules/fdatasync (Link): Document it.
49786         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
49788         fdatasync: port to MacOS X 10.7
49789         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
49790         declared.
49791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
49792         * modules/unistd (Makefile.am): Substitute it.
49793         * lib/unistd.in.h (fdatasync): Declare on MacOS.
49794         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
49796         fdatasync: minor improvements
49797         * modules/fdatasync (Depends-on): Add condition for fsync.
49798         * lib/fdatasync.c (fdatasync): Add comment.
49799         * tests/test-unistd-c++.cc: Test fdatasync.
49801         unistd: update refs to newer POSIX
49802         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
49803         Suggested by Bruno Haible.
49805         fdatasync: new module
49806         * modules/fsync (Description): Document difference to fdatasync.
49807         * modules/fdatasync: New module.
49808         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
49809         * lib/fdatasync.c (fdatasync): Likewise.
49810         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
49811         defaults.
49812         * modules/unistd (Makefile.am): Set witnesses.
49813         * lib/unistd.in.h (fdatasync): Declare.
49814         * MODULES.html.sh: Document it.
49815         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
49816         * modules/fdatasync-tests: New test.
49817         * tests/test-fdatasync.c: Likewise.
49819 2011-09-16  Eric Blake  <eblake@redhat.com>
49821         test-fsync: enhance tests
49822         * modules/fsync-tests (Depends-on): Add errno, for mingw.
49823         * tests/test-fsync.c (main): Enhance test.
49825 2011-09-15  Bruno Haible  <bruno@clisp.org>
49827         Support for MSVC compiler: Ensure ssize_t gets defined.
49828         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
49829         * doc/posix-headers/stdio.texi: Likewise.
49830         * modules/stdio (Depends-on): Add ssize_t.
49831         * modules/sys_socket (Depends-on): Likewise.
49832         * modules/sys_types (Depends-on): Likewise.
49833         * modules/sys_uio (Depends-on): Likewise.
49834         * modules/unistd (Depends-on): Likewise.
49835         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
49836         * tests/test-sys_types.c: Check that ssize_t is defined.
49838 2011-09-14  Bruno Haible  <bruno@clisp.org>
49840         Avoid using #, the m4 comment starter character, near brackets.
49841         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
49842         delimiter character in sed expressions.
49843         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
49844         Suggested by Eric Blake.
49846         Properly quote AC_CHECK_DECLS' 4th argument.
49847         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
49848         argument.
49849         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49850         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49851         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49852         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49853         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49854         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
49855         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
49856         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
49857         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
49858         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49859         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
49860         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49861         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49862         * m4/isinf.m4 (gl_ISINF): Likewise.
49863         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49864         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49865         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49866         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49867         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
49868         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
49869         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49870         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
49871         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
49872         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49873         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49874         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
49876         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49878         Reported by Eric Blake.
49880         Properly quote AC_CHECK_DECL's 4th argument.
49881         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
49882         argument.
49883         * m4/argp.m4 (gl_ARGP): Likewise.
49884         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49885         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49886         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49887         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49888         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
49889         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
49890         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
49891         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49892         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49893         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49894         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49895         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49896         Reported by Eric Blake.
49898 2011-09-14  Eric Blake  <eblake@redhat.com>
49900         opendir: avoid compile warning
49901         * lib/opendir.c (includes): Always include errno.h.
49902         Reported by Tatsuro MATSUOKA.
49904 2011-09-14  Jim Meyering  <meyering@redhat.com>
49906         maint.mk: sc_tight_scope: propagate failure from sub-make
49907         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
49908         Reported by Martin von Gagern.
49910 2011-09-13  Bruno Haible  <bruno@clisp.org>
49912         tempname: Support for MSVC.
49913         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
49914         MSVC.
49915         * modules/tempname (Depends-on): Add fcntl-h.
49917 2011-09-13  Bruno Haible  <bruno@clisp.org>
49919         sys_time: Support for MSVC.
49920         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
49921         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
49922         include <winsock2.h>.
49923         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
49924         function declarations that collide with POSIX.
49925         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
49926         (Makefile.am): Substitute HAVE_WINSOCK2_H.
49928 2011-09-13  Bruno Haible  <bruno@clisp.org>
49930         stat: Support for MSVC.
49931         * lib/stat.c: Include pathmax.h.
49932         * modules/stat (Depends-on): Add pathmax.
49934         pathmax: Support for native Windows.
49935         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
49937 2011-09-12  Bruno Haible  <bruno@clisp.org>
49939         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
49940         * lib/dirent.in.h (struct dirent): New type.
49941         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
49942         DT_WHT): New macros.
49943         (DIR): New type.
49944         (opendir, closedir): Declare only if the module 'opendir' is enabled.
49945         (readdir, rewinddir): New declarations.
49946         * lib/dirent-private.h: New file.
49947         * lib/opendir.c: New file.
49948         * lib/readdir.c: New file.
49949         * lib/rewinddir.c: New file.
49950         * lib/closedir.c: New file.
49951         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
49952         * m4/opendir.m4: New file.
49953         * m4/readdir.m4: New file.
49954         * m4/rewinddir.m4: New file.
49955         * m4/closedir.m4: New file.
49956         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
49957         REPLACE_CLOSEDIR here.
49958         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
49959         readdir, rewinddir are declared.
49960         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
49961         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
49962         HAVE_REWINDDIR, HAVE_CLOSEDIR.
49963         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
49964         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
49965         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
49966         * modules/opendir: New file.
49967         * modules/readdir: New file.
49968         * modules/rewinddir: New file.
49969         * modules/closedir: New file.
49970         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
49971         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
49972         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
49973         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
49974         * NEWS: Mention the 'fchdir' change.
49976 2011-09-11  Bruno Haible  <bruno@clisp.org>
49978         asm-underscore.m4: Support for MSVC.
49979         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49980         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
49982 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
49984         Doc about crypt functions.
49985         * doc/posix-functions/crypt.texi: Expand range of glibc versions
49986         needing for _GNU_SOURCE to get crypt.
49987         * doc/posix-functions/encrypt.texi: Likewise.
49988         * doc/posix-functions/setkey.texi: Likewise.
49990 2011-09-11  Bruno Haible  <bruno@clisp.org>
49992         doc: Update regarding MSVC 9.
49993         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
49994         tested".
49995         * doc/posix-functions/*.texi: Update with info about MSVC 9.
49996         * doc/posix-headers/*.texi: Likewise.
49997         * doc/pastposix-functions/*.texi: Likewise.
49998         * doc/glibc-functions/*.texi: Likewise.
49999         * doc/glibc-headers/*.texi: Likewise.
50001 2011-09-11  Bruno Haible  <bruno@clisp.org>
50003         unistd et al.: Don't assume <unistd.h> exists.
50004         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
50005         does not exist.
50006         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
50007         exist. But include <stdlib.h>.
50008         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
50009         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
50010         symlink() does not exist.
50011         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
50012         include <io.h> instead.
50013         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
50014         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
50015         include <direct.h> instead.
50016         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
50017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50018         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
50019         <io.h> instead.
50020         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
50021         correctly if the system does not have hard links.
50022         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
50023         <direct.h> instead.
50024         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
50025         it when looking for function declarations.
50026         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
50027         <direct.h> and <io.h> instead.
50028         * doc/posix-headers/unistd.texi: More details about MSVC problem.
50030 2011-09-11  Bruno Haible  <bruno@clisp.org>
50032         strcase: Support for MSVC.
50033         * modules/strcase (Status, Notice): Remove obsoletion mark.
50034         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
50035         * doc/posix-functions/strncasecmp.texi: Likewise.
50037         strings: Don't assume <strings.h> exists.
50038         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
50039         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
50040         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
50041         * doc/posix-headers/strings.texi: Mention the MSVC problem.
50043 2011-09-11  Bruno Haible  <bruno@clisp.org>
50045         dirent: Don't assume <dirent.h> exists.
50046         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
50047         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
50048         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
50049         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
50051 2011-09-11  Bruno Haible  <bruno@clisp.org>
50053         Fix wint_t on MSVC.
50054         * lib/wchar.in.h (wint_t): On MSVC, override it.
50055         * lib/wctype.in.h (wint_t): Likewise.
50056         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
50057         MSVC.
50058         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
50059         * doc/posix-headers/wctype.texi: Likewise.
50061 2011-09-11  Bruno Haible  <bruno@clisp.org>
50063         sys_types: Fix typo.
50064         * lib/sys_types.in.h: Fix typo in comment.
50065         Reported by Paul Eggert.
50067         Support for MSVC compiler: Ensure size_t gets defined.
50068         * modules/strings (Depends-on): Add 'sys_types'.
50069         * modules/sys_uio (Depends-on): Likewise.
50070         * lib/sys_uio.in.h: Update comment.
50072         C++ tests for module 'sys_types'.
50073         * modules/sys_types-c++-tests: New file.
50074         * tests/test-sys_types-c++.cc: New file.
50076         Tests for module 'sys_types'.
50077         * modules/sys_types-tests: New file.
50078         * tests/test-sys_types.c: New file.
50080         New module 'sys_types'.
50081         * lib/sys_types.in.h: New file.
50082         * m4/sys_types_h.m4: New file.
50083         * modules/sys_types: New file.
50084         * doc/posix-headers/sys_types.texi: Mention the new module and the
50085         size_t problem on MSVC 9.
50087 2011-09-11  Bruno Haible  <bruno@clisp.org>
50089         Support for MSVC compiler: Avoid division by a literal 0.
50090         * lib/math.in.h (NAN): Define through a function call also on MSVC.
50091         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
50092         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
50093         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
50094         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
50095         * tests/infinity.h: New file.
50096         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
50097         on MSVC.
50098         * tests/test-ceilf1.c: Include infinity.h.
50099         (main): Use Infinityf.
50100         * tests/test-ceil1.c: Include infinity.h.
50101         (main): Use Infinityd.
50102         * tests/test-ceill.c: Include infinity.h.
50103         (main): Use Infinityl.
50104         * tests/test-dprintf-posix.c: Include infinity.h.
50105         (test_function): Use Infinityd.
50106         * tests/test-floorf1.c: Include infinity.h.
50107         (main): Use Infinityf.
50108         * tests/test-floor1.c: Include infinity.h.
50109         (main): Use Infinityd.
50110         * tests/test-floorl.c: Include infinity.h.
50111         (main): Use Infinityl.
50112         * tests/test-fprintf-posix.c: Include infinity.h.
50113         (test_function): Use Infinityd.
50114         * tests/test-frexp.c: Include infinity.h.
50115         (main): Use Infinityd.
50116         * tests/test-frexpl.c: Include infinity.h.
50117         (main): Use Infinityl.
50118         * tests/test-isfinite.c: Include infinity.h.
50119         (test_isfinitef): Use Infinityf.
50120         (test_isfinited): Use Infinityd.
50121         (test_isfinitel): Use Infinityl.
50122         * tests/test-isinf.c: Include infinity.h.
50123         (test_isinff): Use Infinityf.
50124         (test_isinfd): Use Infinityd.
50125         (test_isinfl): Use Infinityl.
50126         * tests/test-isnan.c: Include infinity.h.
50127         (test_float): Use Infinityf.
50128         (test_double): Use Infinityd.
50129         (test_long_double): Use Infinityl.
50130         * tests/test-isnanf.h: Include infinity.h.
50131         (main): Use Infinityf.
50132         * tests/test-isnand.h: Include infinity.h.
50133         (main): Use Infinityd.
50134         * tests/test-isnanl.h: Include infinity.h.
50135         (main): Use Infinityl.
50136         * tests/test-ldexpl.c: Include infinity.h.
50137         (main): Use Infinityl.
50138         * tests/test-printf-posix.h: Include infinity.h.
50139         (test_function): Use Infinityd.
50140         * tests/test-roundf1.c: Include infinity.h.
50141         (main): Use Infinityf.
50142         * tests/test-round1.c: Include infinity.h.
50143         (main): Use Infinityd.
50144         * tests/test-roundl.c: Include infinity.h.
50145         (main): Use Infinityl.
50146         * tests/test-signbit.c: Include infinity.h.
50147         (test_signbitf): Use Infinityf.
50148         (test_signbitd): Use Infinityd.
50149         (test_signbitl): Use Infinityl.
50150         * tests/test-snprintf-posix.h: Include infinity.h.
50151         (test_function): Use Infinityd, Infinityl.
50152         * tests/test-sprintf-posix.h: Include infinity.h.
50153         (test_function): Use Infinityd, Infinityl.
50154         * tests/test-truncf1.c: Include infinity.h.
50155         (main): Use Infinityf.
50156         * tests/test-trunc1.c: Include infinity.h.
50157         (main): Use Infinityd.
50158         * tests/test-truncl.c: Include infinity.h.
50159         (main): Use Infinityl.
50160         * tests/test-vasnprintf-posix.c: Include infinity.h.
50161         (test_function): Use Infinityd, Infinityl.
50162         * tests/test-vasprintf-posix.c: Include infinity.h.
50163         (test_function): Use Infinityd, Infinityl.
50164         * modules/ceilf-tests (Files): Add tests/infinity.h.
50165         * modules/ceil-tests (Files): Likewise.
50166         * modules/ceill-tests (Files): Likewise.
50167         * modules/dprintf-posix-tests (Files): Likewise.
50168         * modules/floorf-tests (Files): Likewise.
50169         * modules/floor-tests (Files): Likewise.
50170         * modules/floorl-tests (Files): Likewise.
50171         * modules/fprintf-posix-tests (Files): Likewise.
50172         * modules/frexp-tests (Files): Likewise.
50173         * modules/frexp-nolibm-tests (Files): Likewise.
50174         * modules/frexpl-tests (Files): Likewise.
50175         * modules/frexpl-nolibm-tests (Files): Likewise.
50176         * modules/isfinite-tests (Files): Likewise.
50177         * modules/isinf-tests (Files): Likewise.
50178         * modules/isnan-tests (Files): Likewise.
50179         * modules/isnanf-tests (Files): Likewise.
50180         * modules/isnanf-nolibm-tests (Files): Likewise.
50181         * modules/isnand-tests (Files): Likewise.
50182         * modules/isnand-nolibm-tests (Files): Likewise.
50183         * modules/isnanl-tests (Files): Likewise.
50184         * modules/isnanl-nolibm-tests (Files): Likewise.
50185         * modules/ldexpl-tests (Files): Likewise.
50186         * modules/printf-posix-tests (Files): Likewise.
50187         * modules/roundf-tests (Files): Likewise.
50188         * modules/round-tests (Files): Likewise.
50189         * modules/roundl-tests (Files): Likewise.
50190         * modules/signbit-tests (Files): Likewise.
50191         * modules/snprintf-posix-tests (Files): Likewise.
50192         * modules/sprintf-posix-tests (Files): Likewise.
50193         * modules/truncf-tests (Files): Likewise.
50194         * modules/trunc-tests (Files): Likewise.
50195         * modules/truncl-tests (Files): Likewise.
50196         * modules/vasnprintf-posix-tests (Files): Likewise.
50197         * modules/vasprintf-posix-tests (Files): Likewise.
50198         * modules/vdprintf-posix-tests (Files): Likewise.
50199         * modules/vfprintf-posix-tests (Files): Likewise.
50200         * modules/vprintf-posix-tests (Files): Likewise.
50201         * modules/vsnprintf-posix-tests (Files): Likewise.
50202         * modules/vsprintf-posix-tests (Files): Likewise.
50203         * modules/xprintf-posix-tests (Files): Likewise.
50205 2011-09-11  Bruno Haible  <bruno@clisp.org>
50207         Ensure pid_t gets defined.
50208         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
50209         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
50210         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50211         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
50212         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
50213         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
50214         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50215         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50216         * tests/test-fcntl-h.c: Check that pid_t is defined.
50217         * tests/test-sched.c: Likewise.
50218         * tests/test-termios.c: Likewise.
50219         * tests/test-time.c: Likewise.
50220         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
50221         * doc/posix-headers/signal.texi: Likewise.
50222         * doc/posix-headers/sys_types.texi: Likewise.
50223         * doc/posix-headers/time.texi: Likewise.
50225 2011-09-11  Bruno Haible  <bruno@clisp.org>
50227         acl: Fix compilation on Solaris 10 (older version).
50228         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
50229         of ACE_EVERYONE.
50230         * lib/set-mode-acl.c (qset_acl): Likewise.
50231         Reported by Christian Jullien <eligis@orange.fr>.
50233 2011-09-10  Bruno Haible  <bruno@clisp.org>
50235         iconv, unsetenv: Add support for MSVC compiler.
50236         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
50237         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
50239 2011-09-10  Bruno Haible  <bruno@clisp.org>
50241         *printf: Add support for MSVC compiler.
50242         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
50243         handles the exception caused by the %n directive. When cross-compiling,
50244         guess no on native Windows.
50245         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
50246         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
50247         emulate it through vsnprintf.
50248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
50249         * doc/posix-functions/dprintf.texi: Update documentation regarding
50250         MSVC 9.
50251         * doc/posix-functions/fprintf.texi: Likewise.
50252         * doc/posix-functions/printf.texi: Likewise.
50253         * doc/posix-functions/snprintf.texi: Likewise.
50254         * doc/posix-functions/sprintf.texi: Likewise.
50255         * doc/posix-functions/swprintf.texi: Likewise.
50256         * doc/posix-functions/vdprintf.texi: Likewise.
50257         * doc/posix-functions/vfprintf.texi: Likewise.
50258         * doc/posix-functions/vprintf.texi: Likewise.
50259         * doc/posix-functions/vsnprintf.texi: Likewise.
50260         * doc/posix-functions/vsprintf.texi: Likewise.
50261         * doc/glibc-functions/asprintf.texi: Likewise.
50262         * doc/glibc-functions/obstack_printf.texi: Likewise.
50263         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50264         * doc/glibc-functions/vasprintf.texi: Likewise.
50266 2011-09-10  Bruno Haible  <bruno@clisp.org>
50268         nocrash: Add support for native Windows.
50269         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
50271 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
50272             Bruno Haible  <bruno@clisp.org>
50274         absolute-header, include-next: Add support for MSVC compiler.
50275         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
50276         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
50277         directory separator in #line directives.
50278         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
50279         recognize also backslash as directory separator in #line directives.
50281 2011-09-08  Jim Meyering  <meyering@redhat.com>
50283         maint.mk: mark the post-release commit log with "maint: " prefix
50284         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
50285         one-line commit-log summary.
50287 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
50288             Bruno Haible  <bruno@clisp.org>
50290         Doc about crypt functions.
50291         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
50292         systems.
50293         * doc/posix-functions/encrypt.texi: Likewise.
50294         * doc/posix-functions/setkey.texi: Likewise.
50296 2011-09-08  Simon Josefsson  <simon@josefsson.org>
50298         * lib/gc.h: Fix copyright header.
50300 2011-09-07  Bruno Haible  <bruno@clisp.org>
50302         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
50303         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
50304         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
50306 2011-09-07  Bruno Haible  <bruno@clisp.org>
50308         openat: Work around compilation error with OSF/1 5.1 DTK cc.
50309         * lib/fopen.c: Use different syntax for include of <stdio.h>.
50310         * lib/freopen.c: Likewise.
50311         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
50312         * lib/lstat.c: Likewise.
50313         * lib/stat.c: Likewise.
50314         * lib/open.c: Use different syntax for include of <fcntl.h>.
50315         * lib/openat.c: Include fcntl.h again, explicitly.
50317 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
50319         parse-datetime: document the newly accepted format
50320         * doc/parse-datetime.texi (Combined date and time of day items):
50321         New section.
50323 2011-09-06  Bruno Haible  <bruno@clisp.org>
50325         acl: Fix a test failure on newer Solaris 10 with ZFS.
50326         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
50327         ENOSYS as no ACL.
50328         Reported by Jim Meyering.
50330 2011-09-06  Bruno Haible  <bruno@clisp.org>
50332         acl: Update for AIX >= 5.3 with NFS.
50333         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
50334         ENOSYS as no ACL.
50336         acl: Fix a test failure on AIX >= 5.3 with NFS.
50337         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
50338         as no ACL.
50340 2011-09-06  Bruno Haible  <bruno@clisp.org>
50342         acl: Fix a test failure on IRIX 6.5 with NFS.
50343         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
50344         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
50345         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
50346         * lib/copy-acl.c (qcopy_acl): Likewise.
50348 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50350         openat: port to AIX 7.1 with large files
50351         AIX 7.1 does a "#define openat open64at" if large files are in use,
50352         so we can't simply #undef openat.  Use the orig_openat trick (similar
50353         to orig_open in lib/open.c) to work around the problem.  Problem
50354         reported by Kevin Brott for GNU tar, in the thread containing
50355         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
50356         * lib/openat.c (__need_system_fcntl_h): Define first.
50357         Include <fcntl.h> and <sys/types.h> before undefining.
50358         (orig_openat) [HAVE_OPENAT]: New inline function.
50359         (openat) [HAVE_OPENAT]: Do not undef.
50360         (rpl_openat): Use orig_openat, not openat.
50362 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
50363             Bruno Haible  <bruno@clisp.org>
50365         acl: Avoid errors on NonStop Kernel.
50366         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
50367         ENOTSUP errors.
50369 2011-09-05  Bruno Haible  <bruno@clisp.org>
50371         acl: Clean up Solaris code.
50372         * lib/acl-internal.h: Remove no-op #if.
50373         * lib/file-has-acl.c: Likewise.
50374         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
50375         * lib/copy-acl.c (qcopy_acl): Likewise.
50377 2011-09-05  Bruno Haible  <bruno@clisp.org>
50379         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
50380         binaries built on the original Solaris 10.
50381         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
50382         trivial.
50384 2011-09-05  Bruno Haible  <bruno@clisp.org>
50386         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
50387         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
50388         10.
50389         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
50390         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
50391         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
50392         instead of acl_get, facl_get, acl_set, facl_set.
50394 2011-09-05  Bruno Haible  <bruno@clisp.org>
50396         copy-file: Try unit tests on more file systems.
50397         * tests/test-copy-file-1.sh: New file.
50398         * tests/test-copy-file-2.sh: New file.
50399         * modules/copy-file-tests (Files): Add them.
50400         (Makefile.am): Add them to TESTS.
50402         acl: Try unit tests on more file systems.
50403         * tests/test-file-has-acl-1.sh: New file.
50404         * tests/test-file-has-acl-2.sh: New file.
50405         * tests/test-set-mode-acl-1.sh: New file.
50406         * tests/test-set-mode-acl-2.sh: New file.
50407         * tests/test-copy-acl-1.sh: New file.
50408         * tests/test-copy-acl-2.sh: New file.
50409         * modules/acl-tests (Files): Add them.
50410         (Makefile.am): Add them to TESTS.
50412 2011-09-04  Bruno Haible  <bruno@clisp.org>
50414         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
50415         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
50416         10.
50417         (OLD_ALLOW, OLD_DENY): New macros.
50418         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
50419         ACE_ACCESS_ALLOWED_ACE_TYPE.
50420         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
50421         ACE_ACCESS_DENIED_ACE_TYPE.
50422         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
50423         (NEW_ACE_EXECUTE): Fix value.
50424         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
50425         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
50426         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
50427         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
50428         NEW_ACE_SYNCHRONIZE): New macros.
50429         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
50430         instead of acl_fromtext, acl_set, facl_set.
50431         Fixes a coreutils/tests/cp/perm failure.
50433 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
50435         openat: test for fstatat (..., 0) bug
50436         Further testing with tar suggests that fstatat (..., 0)
50437         does not work in general, on AIX 7.1; see
50438         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
50439         So, give up entirely on AIX 7.1's fstatat, and fall back on our
50440         replacement fstatat (which is what older AIX releases were using
50441         anyway).
50442         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
50443         use is now changed to orig_fstatat.  This was probably the right
50444         thing to do anyway.
50445         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
50446         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
50447         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
50448         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
50449         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
50450         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
50451         if the bug is found.
50453         openat: test for fstatat (AT_FDCWD, ..., 0) bug
50454         This tests for another fstatat bug on AIX 7.1:
50455         fstatat (AT_FDCWD, ..., 0) does not work.  See
50456         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
50457         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
50458         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
50459         (rpl_fstatat): Adjust so that it works around either (or both)
50460         bugs if present.
50461         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
50463 2011-09-03  Karl Berry  <karl@gnu.org>
50465         * doc/regex.texi (Character Class Operators): Avoid literal ":"
50466         in index entries.
50468 2011-09-02  Bruno Haible  <bruno@clisp.org>
50470         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
50471         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
50472         values of AR, ARFLAGS, RANLIB.
50473         Reported by John W. Eaton <jwe@gnu.org> for Octave.
50475 2011-09-02  Bruno Haible  <bruno@clisp.org>
50477         Find 'ar' program that fits with --host argument.
50478         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
50480 2011-09-02  Bruno Haible  <bruno@clisp.org>
50482         tests: init.sh: Support any non-GNU diff.
50483         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
50484         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
50485         Solaris 8.
50487 2011-09-02  Bruno Haible  <bruno@clisp.org>
50489         tests: init.sh: work also with any non-GNU diff that supports -u
50490         * tests/init.sh: Relax check for diff -u support.
50491         Rather than checking for GNU diff via --version, simply check
50492         for support for -u itself.  Useful at least on OpenBSD 4.9,
50493         AIX 7.1, IRIX 6.5, and Solaris 10.
50495 2011-09-01  Bruno Haible  <bruno@clisp.org>
50497         strtoimax, strtoumax: Document problem on HP-UX 11.
50498         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
50499         * doc/posix-functions/strtoumax.texi: Likewise.
50501 2011-09-01  Bruno Haible  <bruno@clisp.org>
50503         strtoumax: Avoid link error on OSF/1 with DTK cc.
50504         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
50505         defined as a function.
50506         * modules/strtoumax (Depends-on, configure.ac): Test only whether
50507         strtoumax is defined, not whether it is declared.
50509 2011-09-01  Bruno Haible  <bruno@clisp.org>
50511         strtoimax: Avoid link error on OSF/1 with DTK cc.
50512         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
50513         defined as a function.
50514         * modules/strtoimax (Depends-on, configure.ac): Test only whether
50515         strtoimax is defined, not whether it is declared.
50517 2011-09-01  Bruno Haible  <bruno@clisp.org>
50519         imaxdiv: Avoid link error on OSF/1 with DTK cc.
50520         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
50521         as a function.
50522         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
50523         whether it is declared.
50525 2011-09-01  Bruno Haible  <bruno@clisp.org>
50527         imaxabs: Avoid link error on OSF/1 with DTK cc.
50528         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
50529         as a function.
50530         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
50531         whether it is declared.
50533 2011-09-01  Bruno Haible  <bruno@clisp.org>
50535         Tests for module 'strtoumax'.
50536         * modules/strtoumax-tests: New file.
50537         * tests/test-strtoumax.c: New file.
50539         Tests for module 'strtoimax'.
50540         * modules/strtoimax-tests: New file.
50541         * tests/test-strtoimax.c: New file.
50543         Tests for module 'imaxdiv'.
50544         * modules/imaxdiv-tests: New file.
50545         * tests/test-imaxdiv.c: New file.
50547         Tests for module 'imaxabs'.
50548         * modules/imaxabs-tests: New file.
50549         * tests/test-imaxabs.c: New file.
50551 2011-09-01  Bruno Haible  <bruno@clisp.org>
50553         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
50554         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
50555         pthread_create.
50557 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50559         openat: work around AIX 7.1 fstatat issue
50560         This should fix the problem that was not properly fixed
50561         in the previous change, dated 2011-08-30.
50562         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
50563         __need_system_stat_h defined.
50564         (orig_fstatat) [HAVE_FSTATAT]: New function.
50565         (rpl_fstatat): Go back to the old way of doing things,
50566         except call orig_fstatat instead of fstatat.
50567         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
50568         Remove unnecessary check whether fstatat fills in st_size etc.
50570 2011-09-01  Bruno Haible  <bruno@clisp.org>
50572         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
50573         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
50574         just include the system's header.
50576 2011-08-31  Jim Meyering  <meyering@redhat.com>
50578         tests: avoid spurious assertion failure in test-float.c on ppc64
50579         * tests/test-float.c (test_long_double): Comment out an assertion,
50580         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
50581         with gcc-4.4.4.
50583         maint: indent with spaces, not TABs
50584         I need to get in the habit of running gnulib's "make check".
50585         Both of these would have been caught.
50586         * m4/largefile.m4: Indent with spaces, not TABs.
50587         * lib/parse-datetime.y (iso_8601_time): Likewise.
50588         Spotted by Pádraig Brady.
50590         test-parse-datetime.c: accommodate a relatively strict gcc warning
50591         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
50592         to avoid a warning from gcc's -Werror=missing-declarations.
50593         Insert a few spaces-before-funcall-parenthesis.
50595 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
50597         parse-datetime: accept ISO 8601 date and time rep with "T" separator
50598         The parser now accepts ISO 8601 date-time strings with "T" as the
50599         separator.  It has long parsed dates like "2004-02-29 16:21:42"
50600         with a space between the date and time strings.  Now it also parses
50601         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
50602         variants like "2004-02-29T16:21:42.333-07:00"
50603         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
50604         of day representation using the 'T' separator character.
50605         * doc/parse-datetime.texi (General date syntax): replace use of
50606         deprecated --iso-8601 option with --rfc-3339 in example of date
50607         command output formats that can be parsed.
50608         * tests/test-parse-datetime.c (tm_diff): New function, taken from
50609         lib/parse-datetime.y.
50610         (gmt_offset): New function.
50611         (main): Add additional test cases to validate ISO8601 extended
50612         date and time of day parsing.
50614 2011-08-31  Bruno Haible  <bruno@clisp.org>
50616         freopen: Documentation.
50617         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
50618         name.
50619         Reported by Claudio Bley <claudio.bley@gmail.com>.
50621 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
50623         freopen: Don't crash if the filename argument is NULL.
50624         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
50625         NULL.
50627 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50629         openat: work around AIX 7.1 fstatat bug
50630         Problem reported by Kevin Brott for GNU tar, in the thread containing
50631         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
50632         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
50633         FSTATAT_ST_SIZE_ETC_BROKEN.
50634         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
50635         rpl_fstatat.
50636         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
50637         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
50638         AC_CHECK_FUNCS_ONCE for fstatat.
50639         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
50640         fchmodat, mkdirat, openat and unlinkat.
50642 2011-08-30  Bruno Haible  <bruno@clisp.org>
50644         Avoid endless recursions if config.h includes some header files.
50645         * lib/fopen.c (__need_FILE): Define already before including config.h.
50646         * lib/freopen.c (__need_FILE): Likewise.
50647         * lib/open.c (__need_system_fcntl_h): Likewise.
50648         * lib/stat.c (__need_system_sys_stat_h): Likewise.
50649         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
50650         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
50652 2011-08-25  Karl Berry  <karl@gnu.org>
50654         * config/srclist.txt (ylwrap): new try.
50655         * build-aux/ylwrap: new file.
50657 2011-08-23  Bruno Haible  <bruno@clisp.org>
50659         tmpdir: Use a good default directory on native Windows.
50660         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
50661         (P_tmpdir): Default to _P_tmpdir on native Windows.
50662         (path_search): On native Windows, try the value returned by GetTempPath
50663         before trying P_tmpdir.
50664         * modules/tmpdir (Depends-on): Add pathmax.
50665         Suggested by John Darrington <john@darrington.wattle.id.au>.
50667 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
50669         doc: fix typo in README-release
50670         * top/README-release: Capitalize first word of a sentence.
50672 2011-08-19  Jim Meyering  <meyering@redhat.com>
50674         fts: do not exhaust memory when processing million-entry directories
50675         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
50676         directory would require about 256*N bytes of memory.  Thus, it was
50677         easy to construct a directory too large to be processed by any of
50678         those tools.  With this change, fts' maximum memory utilization is
50679         now limited to around 30MB.
50680         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
50681         (fts_read): When we've processed the final entry (i.e., when
50682         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
50683         using the parent entry to read any remaining entries.  Dispatch
50684         depending on what fts_build returns:
50685         - NULL+stop, aka failure: stop
50686         - NULL otherwise: move up in the dir hierarchy
50687         - non-NULL: handle this new entry
50688         (fts_build): Declare and use new local, continue_readdir.
50689         Prepare to be called from fts_read, when the entries
50690         from a partially-read directory have just been exhausted.
50691         In that case, we'll skip the opendir and instead use the parent's
50692         fts_dirp and derive dir_fd from that.
50693         Finally, in the readdir loop, if we read max_entries entries,
50694         exit the loop ensuring *not* to call closedir.  This is required
50695         so that fts_dirp can be reused on a subsequent call.
50696         Prompted by Ben England's report of memory exhaustion in find
50697         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
50699         maint: fts: move decl of `dp' down into while loop; split a long line
50700         * lib/fts.c (fts_build): No semantic change.
50702         fts: add/use new struct member, fts_dirp
50703         We are about to use this to manage any directory with
50704         too many entries to read all of them into memory at once.
50705         To do that, we'll need to save the DIR* pointer in each
50706         affected FTSENT struct.
50707         * lib/fts_.h: Include <dirent.h>.
50708         (struct FTSENT) [fts_dirp]: New member.
50709         * lib/fts.c (closedir_and_clear): Define.
50710         Use it in place of closedir so that we are sure to
50711         clear the new fts_dirp member when done with it.
50712         (fts_alloc): Initialize the new member.
50713         (fts_lfree): Free, if needed.
50715         maint: fts: give __opendir2 a new parameter and rename
50716         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
50717         than surreptitiously using sole caller's "dir_fd".
50718         (fts_opendir): Rename from __opendir2.
50720         maint: fts.c: remove __opendir2's now-unused parameter, oflag
50721         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
50723         maint: fts.c: correct off-by-one indentation
50724         * lib/fts.c (fts_build): Correct indentation, change style
50725         of a couple of block comments, and bracing style.
50727         maint: fts.c: move __opendir2 #define "up" out of function body
50728         * lib/fts.c (__opendir2): Move "up".  No semantic change.
50730         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
50731         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
50732         out for a long time and besides was useful only on BSD systems.
50734 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50736         regex: port to Stratus OpenVOS
50737         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
50738         define to empty, rather than attempting nonportable optimizations.
50739         Problem reported by Paul Green in:
50740         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
50741         and fix suggested by Eric Blake in:
50742         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
50744 2011-08-17  Eric Blake  <eblake@redhat.com>
50746         getcwd: fix test failures on mingw
50747         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
50748         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
50749         test if long directory cannot be created, and allow mingw errno.
50751         getcwd-lgpl: fix m4 to match relaxed test for BSD
50752         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
50753         (gl_FUNC_GETCWD_SIGNATURE): New macro.
50754         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
50755         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
50756         signature problem.
50758         getcwd: fix compilation on mingw64
50759         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
50760         getcwd.
50761         Reported by Marc-André Lureau.
50763         pipe2: silence compiler warning
50764         * lib/pipe2.c (pipe2): Hide label if it is not used.
50766 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
50768         relocatable-prog: fix link error
50769         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
50770         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
50771         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
50772         into modules/relocatable-lib without noticing that
50773         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
50774         also needs to build relocatable.c.
50776 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50778         getaddrinfo: fix sh typo in gai_strerrorA decl checking
50779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
50780         shell code: it contained a 'break' that was not in a loop.
50781         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
50782         via a shell-language loop; this may have been true in old Autoconf
50783         versions, but it's not true in Autoconf 2.68.  I found this bug
50784         when testing coreutils git on Solaris 8, whose shell complains
50785         about the syntax error.
50787 2011-08-12  Simon Josefsson  <simon@josefsson.org>
50789         * lib/base64.c: Fix comment to reference RFC 4648.
50790         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
50791         <gvtulder@gmail.com>.
50793 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50795         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
50797         po/Makefile.in.in: fix make -q problem
50798         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
50799         rule, since there's no file named 'check-macro-version' and its
50800         use as a file breaks make -q.
50801         (all): Don't depend on check-macro-version.
50802         (CHECK_MACRO_VERSION): New macro.
50803         (stamp-po): Use it.
50805         configmake: fix make -q problem
50806         * modules/configmake (configmake.h): Update configmake.h's time stamp
50807         even if the file does not change.  Otherwise, 'make -q' fails.
50808         Problem reported by Simon Josefsson in
50809         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
50811 2011-08-11  Jim Meyering  <meyering@redhat.com>
50813         git-version-gen: correct the advice in a comment
50814         * build-aux/git-version-gen: Correct comment.
50815         Don't recommend to list .tarball-version in .gitignore.
50817 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50819         base64: fix off-by-one buffer size bug
50820         Problem and (trivial) fix reported by Gijs van Tulder in
50821         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
50822         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
50823         * tests/test-base64.c (main): Catch the bug.
50825 2011-08-10  Eric Blake  <eblake@redhat.com>
50827         closein: correct comments
50828         * lib/closein.c (close_stdin): Improve comments.
50830 2011-08-09  Bruno Haible  <bruno@clisp.org>
50832         More tests for 'fseeko'.
50833         * tests/test-fseeko3.c: New file, from Eric Blake.
50834         * tests/test-fseeko3.sh: New file.
50835         * modules/fseeko-tests (Files): Add them.
50836         (TESTS): Add test-fseeko3.sh.
50837         (check_PROGRAMS): Add test-fseeko3.
50839 2011-08-09  Eric Blake  <eblake@redhat.com>
50841         fseeko: remove unneeded hack
50842         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
50844         fseeko: fix bug on glibc
50845         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
50846         Reported by John W. Eaton.
50848 2011-08-08  Bruno Haible  <bruno@clisp.org>
50850         unictype/base: Fix interoperability with preinstalled libunistring.
50851         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
50852         Reported by Simon Josefsson.
50854 2011-08-08  Bruno Haible  <bruno@clisp.org>
50856         iswblank: Detect declaration correctly.
50857         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
50858         AC_CHECK_DECLS invocation.
50860 2011-08-08  Bruno Haible  <bruno@clisp.org>
50862         tcgetsid: Detect declaration correctly.
50863         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
50864         AC_CHECK_DECLS invocation.
50865         Reported by Simon Josefsson.
50867 2011-08-08  Eric Blake  <eblake@redhat.com>
50869         largefile: fix typo that regressed large file support
50870         * modules/largefile (configure.ac-early): Fix section name.
50872 2011-08-06  Karl Berry  <karl@gnu.org>
50874         * MODULES.html.sh (func_all_files): _Noreturn is no longer
50875         a separate module.
50877 2011-08-05  Simon Josefsson  <simon@josefsson.org>
50879         openat: Fix warnings and commens when building unlinkat.c on Hurd.
50880         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
50881         get prototype for free.
50883 2011-08-04  Bruno Haible  <bruno@clisp.org>
50885         Tests for module 'pathmax'.
50886         * modules/pathmax-tests: New file.
50887         * tests/test-pathmax.c: New file.
50889         canonicalize-lgpl: Support larger filenames on the Hurd.
50890         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
50891         Reported by Paul Eggert.
50893         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
50894         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
50895         * lib/chdir-long.h: Include pathmax.h.
50896         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
50897         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
50898         (PATH_MAX): Remove code that is done by pathmax.h.
50899         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
50900         * lib/tmpfile.c: Add a comment.
50901         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
50902         * modules/chdir-long (Depends-on): Add pathmax.
50903         * modules/getcwd (Depends-on): Add pathmax.
50904         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
50905         is not defined.
50906         * doc/posix-headers/limits.texi: Mention the pathmax module.
50907         * NEWS: Mention the change.
50909 2011-08-02  Bruno Haible  <bruno@clisp.org>
50911         pthread_sigmask: Actually use results of gl_THREADLIB.
50912         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
50913         gl_THREADLIB, not gl_[]THREADLIB.
50914         Reported by Eric Blake.
50916 2011-08-02  Jim Meyering  <meyering@redhat.com>
50918         maint.mk: relax the default _gl_TS_function_match regexp
50919         * top/maint.mk (_gl_TS_function_match): Don't require at least one
50920         space between function name and "(" in an "extern" declaration.
50921         That would fail to match a decl with no space there: extern void foo();
50923 2011-07-31  Iain Nicol  <iain@thenicols.net>
50925         git-version-gen: document that EXTRA_DIST must include .version
50926         * build-aux/git-version-gen: In the how-to-use comment, document
50927         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
50928         will fail when run from an unpacked distribution tarball.
50930 2011-08-01  Bruno Haible  <bruno@clisp.org>
50932         wctype-h: Fix last change.
50933         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
50934         REPLACE_TOWLOWER to 0.
50935         Reported by Sam Steingold <sds@gnu.org>.
50937 2011-07-31  Bruno Haible  <bruno@clisp.org>
50939         frexpl: Update autoconf test.
50940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
50941         according to changes of 2011-06-20.
50943 2011-07-31  Bruno Haible  <bruno@clisp.org>
50945         sys_utsname: Add support for Minix.
50946         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
50947         <sys/utsname.h>.
50948         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50949         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
50951 2011-07-31  Bruno Haible  <bruno@clisp.org>
50953         strings: Add support for Minix.
50954         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
50955         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50956         * doc/posix-headers/strings.texi: Document the Minix problem.
50958 2011-07-31  Bruno Haible  <bruno@clisp.org>
50960         wctype-h: Add support for Minix.
50961         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
50962         REPLACE_TOWLOWER.
50963         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
50964         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
50965         REPLACE_ISWCNTRL.
50967 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
50969         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
50970         This is a performance improvement for 64-bit hosts: it causes the
50971         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
50973 2011-07-31  Bruno Haible  <bruno@clisp.org>
50975         stdioext: Add support for Minix.
50976         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
50977         * lib/fpurge.c (fpurge): Likewise.
50978         * lib/freadahead.c (freadahead): Likewise.
50979         * lib/freadable.c (freadable): Likewise.
50980         * lib/freading.c (freading): Likewise.
50981         * lib/freadptr.c (freadptr): Likewise.
50982         * lib/freadseek.c (freadptrinc): Likewise.
50983         * lib/fseeko.c (rpl_fseeko): Likewise.
50984         * lib/fseterr.c (fseterr): Likewise.
50985         * lib/fwritable.c (fwritable): Likewise.
50986         * lib/fwriting.c (fwriting): Likewise.
50987         * lib/fflush.c (clear_ungetc_buffer): Update comment.
50988         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
50990 2011-07-31  Bruno Haible  <bruno@clisp.org>
50992         errno: Port to Minix.
50993         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
50994         ECONNABORTED are defined.
50995         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
50996         GNULIB_defined_ECONNABORTED): New macros.
50997         * lib/strerror-override.h (strerror_override): Test also
50998         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
50999         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
51000         ECONNABORTED.
51001         * doc/posix-headers/errno.texi: Mention the Minix problem.
51003 2011-07-31  Bruno Haible  <bruno@clisp.org>
51005         Work around declaration collisions on Minix.
51006         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
51007         defined, set REPLACE_MBSINIT.
51008         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
51009         defined, set REPLACE_MBRTOWC.
51010         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
51011         set REPLACE_MBRLEN.
51012         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
51013         defined, set REPLACE_MBSRTOWCS.
51014         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
51015         defined, set REPLACE_WCRTOMB.
51016         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
51017         defined, set REPLACE_WCSRTOMBS.
51019 2011-07-31  Bruno Haible  <bruno@clisp.org>
51021         Add support for Minix with ACK compiler.
51022         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
51023         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
51024         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
51026 2011-07-31  Bruno Haible  <bruno@clisp.org>
51028         Documentation about Minix.
51029         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
51030         * doc/glibc-headers/*.texi: Likewise.
51031         * doc/posix-functions/*.texi: Likewise.
51032         * doc/glibc-functions/*.texi: Likewise.
51034 2011-07-31  Bruno Haible  <bruno@clisp.org>
51036         snippet/warn-on-use: Fix indentation.
51037         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
51039 2011-07-25  Jim Meyering  <meyering@redhat.com>
51041         tests: test-update-copyright.sh: remove unnecessary "rm" commands
51042         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
51043         commands.
51045 2011-07-27  Jim Meyering  <meyering@redhat.com>
51047         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
51048         * top/maint.mk (gl_extract_significant_defines_): Now that
51049         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
51050         gnulib/lib/signal.in.h, and now that we recommend to
51051         define-if-undefined those two symbols in application code,
51052         we must filter them out of the "significant" list.
51053         This avoids a "make syntax-check" failure in coreutils.
51055 2011-07-26  Eric Blake  <eblake@redhat.com>
51057         warnings: add comments about previous patch
51058         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
51059         * m4/include_next.m4: Likewise.
51060         * m4/warn-on-use.m4: Likewise.
51061         * m4/warnings.m4: Likewise, and simplify use.
51062         Suggested by Stefano Lattarini.
51064         include-next, warnings: support older autoconf
51065         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
51066         AS_VAR_PUSHDEF in a way that works with older autoconf.
51067         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
51068         Reported by Daniel P. Berrange.
51070 2011-07-25  Bruno Haible  <bruno@clisp.org>
51072         fseek, ftell: Fix doc.
51073         * doc/posix-functions/fseek.texi: Reword statement about
51074         AC_SYS_LARGEFILE.
51075         * doc/posix-functions/ftell.texi: Likewise.
51077 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51078             Bruno Haible  <bruno@clisp.org>
51080         Add dependencies to the 'largefile' module.
51081         * modules/fopen (Depends-on): Add 'largefile'.
51082         * modules/freopen (Depends-on): Likewise.
51083         * modules/fseeko (Depends-on): Likewise.
51084         * modules/ftello (Depends-on): Likewise.
51085         * modules/glob (Depends-on): Likewise.
51086         * modules/lseek (Depends-on): Likewise.
51087         * modules/lstat (Depends-on): Likewise.
51088         * modules/mkostemp (Depends-on): Likewise.
51089         * modules/mkostemps (Depends-on): Likewise.
51090         * modules/mkstemp (Depends-on): Likewise.
51091         * modules/mkstemps (Depends-on): Likewise.
51092         * modules/open (Depends-on): Likewise.
51093         * modules/openat (Depends-on): Likewise.
51094         * modules/pread (Depends-on): Likewise.
51095         * modules/pwrite (Depends-on): Likewise.
51096         * modules/scandir (Depends-on): Likewise.
51097         * modules/stat (Depends-on): Likewise.
51098         * modules/tmpfile (Depends-on): Likewise.
51099         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
51100         since the containing module now depends on the largefile module.
51101         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
51102         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
51103         off_t is fixed by gnulib.
51104         * doc/posix-functions/freopen.texi: Likewise.
51105         * doc/posix-functions/fseeko.texi: Likewise.
51106         * doc/posix-functions/fstatat.texi: Likewise.
51107         * doc/posix-functions/ftello.texi: Likewise.
51108         * doc/posix-functions/glob.texi: Likewise.
51109         * doc/posix-functions/lseek.texi: Likewise.
51110         * doc/posix-functions/lstat.texi: Likewise.
51111         * doc/posix-functions/mkstemp.texi: Likewise.
51112         * doc/posix-functions/open.texi: Likewise.
51113         * doc/posix-functions/openat.texi: Likewise.
51114         * doc/posix-functions/pread.texi: Likewise.
51115         * doc/posix-functions/pwrite.texi: Likewise.
51116         * doc/posix-functions/scandir.texi: Likewise.
51117         * doc/posix-functions/stat.texi: Likewise.
51118         * doc/posix-functions/tmpfile.texi: Likewise.
51119         * doc/glibc-functions/mkostemp.texi: Likewise.
51120         * doc/glibc-functions/mkostemps.texi: Likewise.
51121         * doc/glibc-functions/mkstemps.texi: Likewise.
51123 2011-07-25  Bruno Haible  <bruno@clisp.org>
51125         fcntl: Move AC_LIBOBJ invocation to module description.
51126         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
51127         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
51129         fcntl: Remove call-in from fchdir.m4.
51130         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
51131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
51133         dup3: Remove potential call-in from fchdir.m4.
51134         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
51135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
51137         dup2: Move AC_LIBOBJ invocation to module description.
51138         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
51139         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
51140         Don't invoke AC_LIBOBJ.
51141         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
51143         dup2: Remove call-in from fchdir.m4.
51144         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
51145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
51147         fclose: Move AC_LIBOBJ invocation to module description.
51148         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
51149         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
51150         to 1.
51151         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
51153         fclose: Remove call-in from close.m4.
51154         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
51155         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
51157         close: Move AC_LIBOBJ invocation to module description.
51158         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
51159         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
51160         1.
51161         * modules/close (configure.ac): Invoke AC_LIBOBJ.
51163         close: Remove call-in from fchdir.m4.
51164         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
51165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
51167         open: Move AC_LIBOBJ invocation to module description.
51168         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
51169         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
51170         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
51172         open: Remove call-in from fchdir.m4.
51173         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
51174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
51176         fchdir: Start to remove gl_REPLACE_* idiom.
51177         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
51178         (gl_FUNC_FCHDIR): Invoke it.
51180 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51182         * lib/ftell.c (ftell): Comment out cast.
51184         close: use gl_REPLACE_FCLOSE only if defined
51185         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
51186         is defined.  The close module doesn't depend on the fclose module
51187         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
51188         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
51189         I reproduced the problem with "./gnulib-tool --test close sys_socket".
51191 2011-07-24  Jim Meyering  <meyering@redhat.com>
51193         test-select.h: avoid warning when using gcc's -Wmissing-declarations
51194         * tests/test-select.h (test_function): Declare as "static".
51196 2011-07-24  Bruno Haible  <bruno@clisp.org>
51198         doc: Mention the effects of AC_SYS_LARGEFILE.
51199         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
51200         on this function.
51201         * doc/posix-functions/aio_error.texi: Likewise.
51202         * doc/posix-functions/aio_fsync.texi: Likewise.
51203         * doc/posix-functions/aio_read.texi: Likewise.
51204         * doc/posix-functions/aio_return.texi: Likewise.
51205         * doc/posix-functions/aio_suspend.texi: Likewise.
51206         * doc/posix-functions/aio_write.texi: Likewise.
51207         * doc/posix-functions/fgetpos.texi: Likewise.
51208         * doc/posix-functions/fopen.texi: Likewise.
51209         * doc/posix-functions/freopen.texi: Likewise.
51210         * doc/posix-functions/fsetpos.texi: Likewise.
51211         * doc/posix-functions/fstatvfs.texi: Likewise.
51212         * doc/posix-functions/ftruncate.texi: Likewise.
51213         * doc/posix-functions/ftw.texi: Likewise.
51214         * doc/posix-functions/getrlimit.texi: Likewise.
51215         * doc/posix-functions/glob.texi: Likewise.
51216         * doc/posix-functions/lio_listio.texi: Likewise.
51217         * doc/posix-functions/lockf.texi: Likewise.
51218         * doc/posix-functions/mkstemp.texi: Likewise.
51219         * doc/posix-functions/mmap.texi: Likewise.
51220         * doc/posix-functions/nftw.texi: Likewise.
51221         * doc/posix-functions/openat.texi: Likewise.
51222         * doc/posix-functions/opendir.texi: Likewise.
51223         * doc/posix-functions/posix_fadvise.texi: Likewise.
51224         * doc/posix-functions/posix_fallocate.texi: Likewise.
51225         * doc/posix-functions/pread.texi: Likewise.
51226         * doc/posix-functions/pwrite.texi: Likewise.
51227         * doc/posix-functions/readdir.texi: Likewise.
51228         * doc/posix-functions/readdir_r.texi: Likewise.
51229         * doc/posix-functions/rewinddir.texi: Likewise.
51230         * doc/posix-functions/scandir.texi: Likewise.
51231         * doc/posix-functions/seekdir.texi: Likewise.
51232         * doc/posix-functions/setrlimit.texi: Likewise.
51233         * doc/posix-functions/statvfs.texi: Likewise.
51234         * doc/posix-functions/telldir.texi: Likewise.
51235         * doc/posix-functions/tmpfile.texi: Likewise.
51236         * doc/posix-functions/truncate.texi: Likewise.
51237         * doc/glibc-functions/fallocate.texi: Likewise.
51238         * doc/glibc-functions/fstatfs.texi: Likewise.
51239         * doc/glibc-functions/fts_children.texi: Likewise.
51240         * doc/glibc-functions/fts_read.texi: Likewise.
51241         * doc/glibc-functions/getdirentries.texi: Likewise.
51242         * doc/glibc-functions/mkostemp.texi: Likewise.
51243         * doc/glibc-functions/mkostemps.texi: Likewise.
51244         * doc/glibc-functions/mkstemps.texi: Likewise.
51245         * doc/glibc-functions/preadv.texi: Likewise.
51246         * doc/glibc-functions/pwritev.texi: Likewise.
51247         * doc/glibc-functions/sendfile.texi: Likewise.
51248         * doc/glibc-functions/statfs.texi: Likewise.
51250 2011-07-24  Bruno Haible  <bruno@clisp.org>
51252         doc: Fix typo.
51253         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
51255 2011-07-24  Bruno Haible  <bruno@clisp.org>
51257         doc: Mention fsusage.
51258         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
51260 2011-07-24  Bruno Haible  <bruno@clisp.org>
51262         doc: Mention new glibc headers and functions.
51263         * doc/glibc-headers/gshadow.texi: New file.
51264         * doc/glibc-functions/endsgent.texi: New file.
51265         * doc/glibc-functions/fgetsgent.texi: New file.
51266         * doc/glibc-functions/fgetsgent_r.texi: New file.
51267         * doc/glibc-functions/getsgent.texi: New file.
51268         * doc/glibc-functions/getsgent_r.texi: New file.
51269         * doc/glibc-functions/getsgnam.texi: New file.
51270         * doc/glibc-functions/getsgnam_r.texi: New file.
51271         * doc/glibc-functions/putsgent.texi: New file.
51272         * doc/glibc-functions/setsgent.texi: New file.
51273         * doc/glibc-functions/sgetsgent.texi: New file.
51274         * doc/glibc-functions/sgetsgent_r.texi: New file.
51275         * doc/glibc-functions/malloc_info.texi: New file.
51276         * doc/glibc-functions/preadv.texi: New file.
51277         * doc/glibc-functions/pwritev.texi: New file.
51278         * doc/glibc-functions/register_printf_modifier.texi: New file.
51279         * doc/glibc-functions/register_printf_specifier.texi: New file.
51280         * doc/glibc-functions/register_printf_type.texi: New file.
51281         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
51282         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
51283         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
51284         * doc/glibc-functions/pthread_getname_np.texi: New file.
51285         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
51286         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
51287         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
51288         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
51289         * doc/glibc-functions/pthread_setname_np.texi: New file.
51290         * doc/glibc-functions/pthread_sigqueue.texi: New file.
51291         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
51292         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
51293         * doc/glibc-functions/qsort_r.texi: New file.
51294         * doc/glibc-functions/quick_exit.texi: New file.
51295         * doc/glibc-functions/syncfs.texi: New file.
51296         * doc/gnulib.texi: Include them.
51297         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
51298         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
51299         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
51300         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
51301         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
51302         * doc/glibc-functions/execvpe.texi: Likewise.
51304 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51306         ftell: don't include <unistd.h>
51307         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
51308         guaranteed to define off_t, and the ftell module depends on the
51309         stdio module.
51311         ftell: do not assume wraparound signed arithmetic
51312         * lib/ftell.c: Include <limits.h>.
51313         (ftell): Don't assume wraparound signed arithmetic.
51315 2011-07-24  Bruno Haible  <bruno@clisp.org>
51317         close: No longer depend on module 'fclose'.
51318         * modules/close (Depends-on): Remove fclose.
51319         * NEWS: Mention the change.
51320         Suggested by Sam Steingold <sds@gnu.org>.
51322 2011-07-24  Bruno Haible  <bruno@clisp.org>
51324         fsusage: Enable large volume support on AIX >= 5.2.
51325         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
51326         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
51327         instead of STAT_STATVFS.
51328         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
51330         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
51331         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
51332         f_blocks field only on MacOS X.
51334         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
51335         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
51336         * modules/fsusage (Depends-on): Add largefile.
51338 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51340         * README: Modernize discussion of signed integers.
51341         Assuming overflow wraparound is no longer safe.
51342         Mention ones' complement and signed magnitude.
51344 2011-07-22  Bruno Haible  <bruno@clisp.org>
51346         select tests, pselect tests: Refactor.
51347         * tests/test-select.h: New file, extracted from tests/test-select.c.
51348         (select_fn): New type.
51349         (test, do_select, do_select_nowait, do_select_wait, test_tty,
51350         test_connect_first, test_accept_first, test_pair, test_socket_pair,
51351         test_pipe): Add my_select argument.
51352         (test_function): Renamed from main. Add my_select argument.
51353         * tests/test-select.c: Move most code to tests/test-select.h. Include
51354         test-select.h.
51355         * modules/select-tests (Files): Add tests/test-select.h.
51356         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
51357         (my_select, main): New functions.
51358         * modules/pselect-tests (Files): Add tests/test-select.h,
51359         tests/macros.h, tests/signature.h.
51360         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
51361         (configure.ac): Check for <sys/wait.h>.
51363 2011-07-22  Bruno Haible  <bruno@clisp.org>
51365         sys_select tests: Check the signature of FD_*.
51366         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
51367         signature tests from here...
51368         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
51369         here.
51370         * modules/sys_select-tests (Files): Add tests/signature.h.
51372 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51374         largefile: new module, replacing large-inode
51375         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
51376         * MODULES.html.sh: Add largefile, remove large-inode.
51377         * modules/largefile, m4/largefile.m4: New files.
51378         * modules/large-inode, m4/large-inode.m4: Remove.
51380         fsusage: port to MacOS X 10.7 with 4 TiB file systems
51381         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
51382         implementations that use only 32 bits to count blocks.
51383         On typical hosts with 1024-byte blocks, this fails with file
51384         systems as small as 4 TiB.  Problem reported by Herb Wartens
51385         <http://debbugs.gnu.org/9140> and this should also fix a similar
51386         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
51388         large-inode: New module
51389         * MODULES.html.sh: Add it.
51390         * modules/large-inode, m4/large-inode.m4: New files.
51392         extensions: Enable extensions on MacOS X 10.5 and later.
51393         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
51395 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
51397         file-has-acl: use acl_extended_file_nofollow if available
51398         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
51399         (acl_extended_file): New macro.
51400         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
51401         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
51403 2011-07-21  Bruno Haible  <bruno@clisp.org>
51405         Declare system functions in a way that works with C++.
51406         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
51407         declare fdopendir as extern "C".
51408         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
51409         declare frexpl as extern "C".
51410         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
51411         declare gai_strerror as extern "C".
51412         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
51413         programs, declare gai_strerror as extern "C".
51414         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
51415         declare getlogin_r as extern "C".
51416         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
51417         as extern "C".
51418         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
51419         declare ldexpl as extern "C".
51420         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
51421         as extern "C".
51422         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
51423         program, declare getmntinfo as extern "C".
51424         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
51425         stpncpy as extern "C".
51426         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
51427         program, declare __xpg_strerror_r as extern "C".
51428         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
51429         strndup as extern "C".
51430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
51431         declare memset and bzero as extern "C".
51432         Reported by Sam Steingold <sds@gnu.org>.
51434 2011-07-12  Jim Meyering  <meyering@redhat.com>
51436         maint.mk: prohibit inclusion of "verify.h" without use
51437         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
51439 2011-07-19  Pádraig Brady  <P@draigBrady.com>
51441         timer-time: A new module to check for timer_settime()
51442         * m4/timer_time.m4: Check for the posix function.
51443         * modules/timer-time: Add the new module.
51444         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
51445         Mention it.
51447 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
51448             Bruno Haible  <bruno@clisp.org>
51450         pthread_sigmask: assume POSIX threads if --avoid=threadlib
51451         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
51452         not defined, assume POSIX threads and look for pthread_sigmask in
51453         $LIBS, without changing $CPPFLAGS.
51455 2011-07-19  Bruno Haible  <bruno@clisp.org>
51457         strstr: Update cross-compilation guess.
51458         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
51459         CPUs, guess no, in view of glibc
51460         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
51461         Suggested by Eric Blake. Reported by Reuben Thomas.
51463 2011-07-19  Pádraig Brady  <P@draigBrady.com>
51465         getopt-gnu: suppress core dumps from detection code
51466         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
51467         to suppress core dumps that may well occur on glibc systems.
51468         * modules/getopt-gnu: Depend on nocrash.
51470 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51472         pthread_sigmask: ensure usleep is declared
51473         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
51474         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
51476 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51478         doc: Document NonStop portability issues.
51479         * doc/posix-functions/sigaction.texi (sigaction):
51480         * doc/posix-headers/signal.texi (signal.h):
51481         Document NonStop.  See Joachim Schmitz in
51482         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
51484 2011-07-15  Bruno Haible  <bruno@clisp.org>
51486         ffsl, ffsll: Avoid unportable behaviour.
51487         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
51489 2011-07-15  Bruno Haible  <bruno@clisp.org>
51491         ffs: More tests.
51492         * tests/test-ffs.c (NBITS): New macro.
51493         (main): Add more tests.
51494         * tests/test-ffsl.c (NBITS): New macro.
51495         (main): Add more tests.
51496         * tests/test-ffsll.c (NBITS): New macro.
51497         (main): Add more tests.
51499 2011-07-15  Eric Blake  <eblake@redhat.com>
51501         ffsl, ffsll: new modules
51502         * modules/ffsl: New file.
51503         * modules/ffsll: Likewise.
51504         * m4/ffsl.m4: Likewise.
51505         * m4/ffsll.m4: Likewise.
51506         * lib/ffsl.c: Likewise.
51507         * lib/ffsl.h: Likewise.
51508         * lib/ffsll.c: Likewise.
51509         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
51510         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
51511         * modules/string (Makefile.am): Substitute witnesses.
51512         * lib/strings.in.h (ffsl, ffsll): Declare.
51513         * modules/ffsl-tests: New test file.
51514         * modules/ffsll-tests: Likewise.
51515         * tests/test-ffsl.c: Likewise.
51516         * tests/test-ffsll.c: Likewise.
51517         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51518         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
51519         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
51521         ffs: fix m4 prerequisite
51522         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
51524         ffs: avoid undefined behavior
51525         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
51526         * tests/test-ffs.c (naive, main): Avoid signed shifts.
51527         Reported by Bruno Haible.
51529 2011-07-12  Bruno Haible  <bruno@clisp.org>
51531         pthread_sigmask: Rely on module 'threadlib'.
51532         * modules/pthread_sigmask (Depends-on): Add threadlib.
51533         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
51534         is defined.
51536 2011-07-12  Bruno Haible  <bruno@clisp.org>
51538         regex: Depend on module 'strcase'.
51539         * modules/regex (Depends-on): Add strcase, for strcasecmp().
51541 2011-07-12  Jim Meyering  <meyering@redhat.com>
51543         warn-on-use: fix typo in file name
51544         * modules/snippet/warn-on-use (Files): Correct file name:
51545         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
51547 2011-07-12  Bruno Haible  <bruno@clisp.org>
51549         strings: Document module.
51550         * doc/posix-headers/strings.texi: Mention module 'strings'.
51552 2011-07-12  Bruno Haible  <bruno@clisp.org>
51554         Rename module '_Noreturn' to 'snippet/_Noreturn'.
51555         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
51556         (Files, Makefile.am): Update.
51557         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
51558         * modules/stdlib (Depends-on): Update.
51560 2011-07-12  Bruno Haible  <bruno@clisp.org>
51562         * NEWS: Mention the changes.
51564         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
51565         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
51566         (Files, Makefile.am): Update.
51567         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
51568         * modules/arpa_inet (Depends-on): Update.
51569         * modules/ctype (Depends-on): Update.
51570         * modules/dirent (Depends-on): Update.
51571         * modules/fcntl-h (Depends-on): Update.
51572         * modules/glob (Depends-on): Update.
51573         * modules/iconv-h (Depends-on): Update.
51574         * modules/inttypes-incomplete (Depends-on): Update.
51575         * modules/langinfo (Depends-on): Update.
51576         * modules/locale (Depends-on): Update.
51577         * modules/math (Depends-on): Update.
51578         * modules/netdb (Depends-on): Update.
51579         * modules/poll-h (Depends-on): Update.
51580         * modules/pty (Depends-on): Update.
51581         * modules/search (Depends-on): Update.
51582         * modules/signal (Depends-on): Update.
51583         * modules/spawn (Depends-on): Update.
51584         * modules/stdio (Depends-on): Update.
51585         * modules/stdlib (Depends-on): Update.
51586         * modules/string (Depends-on): Update.
51587         * modules/strings (Depends-on): Update.
51588         * modules/sys_file (Depends-on): Update.
51589         * modules/sys_ioctl (Depends-on): Update.
51590         * modules/sys_select (Depends-on): Update.
51591         * modules/sys_socket (Depends-on): Update.
51592         * modules/sys_stat (Depends-on): Update.
51593         * modules/sys_time (Depends-on): Update.
51594         * modules/sys_times (Depends-on): Update.
51595         * modules/sys_utsname (Depends-on): Update.
51596         * modules/sys_wait (Depends-on): Update.
51597         * modules/termios (Depends-on): Update.
51598         * modules/time (Depends-on): Update.
51599         * modules/unistd (Depends-on): Update.
51600         * modules/wchar (Depends-on): Update.
51601         * modules/wctype-h (Depends-on): Update.
51602         * MODULES.html.sh (Support for building libraries and executables):
51603         Update.
51605         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
51606         * modules/snippet/unused-parameter: Renamed from
51607         modules/unused-parameter.
51608         (Files, Makefile.am): Update.
51609         * build-aux/snippet/unused-parameter.h: Renamed from
51610         build-aux/unused-parameter.h.
51611         * modules/selinux-h (Depends-on): Update.
51612         * modules/unistr/base (Depends-on): Update.
51613         * MODULES.html.sh (Core language properties): Update.
51615         Rename module 'link-warning' to 'snippet/link-warning'.
51616         * modules/snippet/link-warning: Renamed from modules/link-warning.
51617         (Files, Makefile.am): Update.
51618         * build-aux/snippet/link-warning.h: Renamed from
51619         build-aux/link-warning.h.
51620         * MODULES.html.sh (Support for building libraries and executables):
51621         Update.
51623         Rename module 'c++defs' to 'snippet/c++defs'.
51624         * modules/snippet/c++defs: Renamed from modules/c++defs.
51625         (Files, Makefile.am): Update.
51626         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
51627         * modules/arpa_inet (Depends-on): Update.
51628         * modules/ctype (Depends-on): Update.
51629         * modules/dirent (Depends-on): Update.
51630         * modules/fcntl-h (Depends-on): Update.
51631         * modules/glob (Depends-on): Update.
51632         * modules/iconv-h (Depends-on): Update.
51633         * modules/langinfo (Depends-on): Update.
51634         * modules/locale (Depends-on): Update.
51635         * modules/math (Depends-on): Update.
51636         * modules/netdb (Depends-on): Update.
51637         * modules/poll-h (Depends-on): Update.
51638         * modules/pty (Depends-on): Update.
51639         * modules/search (Depends-on): Update.
51640         * modules/signal (Depends-on): Update.
51641         * modules/spawn (Depends-on): Update.
51642         * modules/stdio (Depends-on): Update.
51643         * modules/stdlib (Depends-on): Update.
51644         * modules/string (Depends-on): Update.
51645         * modules/strings (Depends-on): Update.
51646         * modules/sys_ioctl (Depends-on): Update.
51647         * modules/sys_select (Depends-on): Update.
51648         * modules/sys_socket (Depends-on): Update.
51649         * modules/sys_stat (Depends-on): Update.
51650         * modules/sys_time (Depends-on): Update.
51651         * modules/sys_wait (Depends-on): Update.
51652         * modules/termios (Depends-on): Update.
51653         * modules/time (Depends-on): Update.
51654         * modules/unistd (Depends-on): Update.
51655         * modules/wchar (Depends-on): Update.
51656         * modules/wctype-h (Depends-on): Update.
51658         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
51659         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
51660         (Files, Makefile.am): Update.
51661         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
51662         * modules/argv-iter (Depends-on): Update.
51663         * modules/arpa_inet (Depends-on): Update.
51664         * modules/dirent (Depends-on): Update.
51665         * modules/fcntl-h (Depends-on): Update.
51666         * modules/fnmatch (Depends-on): Update.
51667         * modules/getopt-posix (Depends-on): Update.
51668         * modules/glob (Depends-on): Update.
51669         * modules/iconv-h (Depends-on): Update.
51670         * modules/inttypes-incomplete (Depends-on): Update.
51671         * modules/locale (Depends-on): Update.
51672         * modules/math (Depends-on): Update.
51673         * modules/netdb (Depends-on): Update.
51674         * modules/search (Depends-on): Update.
51675         * modules/signal (Depends-on): Update.
51676         * modules/spawn (Depends-on): Update.
51677         * modules/stdio (Depends-on): Update.
51678         * modules/stdlib (Depends-on): Update.
51679         * modules/string (Depends-on): Update.
51680         * modules/strings (Depends-on): Update.
51681         * modules/sys_socket (Depends-on): Update.
51682         * modules/sys_stat (Depends-on): Update.
51683         * modules/sys_time (Depends-on): Update.
51684         * modules/sys_times (Depends-on): Update.
51685         * modules/sys_utsname (Depends-on): Update.
51686         * modules/time (Depends-on): Update.
51687         * modules/unistd (Depends-on): Update.
51688         * modules/wchar (Depends-on): Update.
51689         * MODULES.html.sh (Support for building libraries and executables):
51690         Update.
51692 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51694         Improvements on _Noreturn and related modules.
51696         modules/_Exit-tests: test _Noreturn too
51697         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
51698         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
51699         (main): Use them.
51701         stdnoreturn, stdnoreturn-tests: remove modules
51702         They're not needed here and a bit premature for use elsewhere.  See
51703         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
51704         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
51705         * tests/test-stdnoreturn.c: Remove files.
51706         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
51707         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
51708         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
51709         and using noreturn.
51710         * modules/openat, modules/sigpipe-die, modules/xalloc:
51711         * modules/xmemdup0, modules/xstrtol:
51712         Remove dependency on stdnoreturn.
51714         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
51715         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
51716         Reparenthesize to avoid GCC warning.
51717         Support Microsoft's syntax.
51718         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
51720         _Noreturn-tests: remove module
51721         * modules/_Noreturn-tests: Remove.
51722         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
51723         * tests/test-_Noreturn.c: Remove.
51724         * tests/test-stdnoreturn.c: Merge from the old
51725         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
51727 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51729         _Noreturn, stdnoreturn, and related modules.
51731         * top/maint.mk: Adjust to new noreturn support.
51732         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
51733         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
51735         xalloc: use stdnoreturn.h
51736         * lib/xalloc.h: Include <stdnoreturn.h>.
51737         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51738         * modules/xalloc (Depends-on): Add stdnoreturn.
51740         xstrtol: use stdnoreturn.h
51741         * lib/xstrtol.h: Include <stdnoreturn.h>.
51742         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51743         * modules/xstrtol (Depends-on): Add stdnoreturn.
51745         xmemdup0: use stdnoreturn.h
51746         * lib/xmemdup0.h: Include <stdnoreturn.h>.
51747         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51748         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
51750         sigpipe-die: use stdnoreturn.h
51751         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
51752         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51753         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
51755         openat: use stdnoreturn.h
51756         * lib/openat.h: Include <stdnoreturn.h>.
51757         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51758         * modules/openat (Depends-on): Add stdnoreturn.
51760         * lib/openat-die.c (openat_save_fail): Modernize comment.
51762         * lib/xalloc-die.c (xalloc_die): Modernize comment.
51764         * lib/glthread/thread.h: Modernize comment.
51766         obstack: use _Noreturn
51767         * lib/obstack.c (__attribute__): Remove macro.
51768         (print_and_abort): Use _Noreturn.
51770         c-stack: use _Noreturn
51771         * lib/c-stack.c (die, overflow_handler, segv_handler):
51772         Use _Noreturn rather than __attribute__((noreturn)).
51774         argmatch-tests, exclude_tests: use _Noreturn
51775         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
51776         Remove.
51777         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
51779         stdlib: use _Noreturn
51780         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
51781         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
51782         * modules/stdlib (Depends-on): Add _Noreturn.
51783         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
51785         stdnoreturn-tests: new module
51786         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
51788         stdnoreturn: new module
51789         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
51790         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
51792         _Noreturn-tests: new module
51793         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
51795         _Noreturn: new module
51796         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
51797         New section, mentioning it.
51798         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
51800         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
51802 2011-07-11  Eric Blake  <eblake@redhat.com>
51804         ffs: new module
51805         * modules/ffs: New file.
51806         * m4/ffs.m4: Likewise.
51807         * lib/ffs.c: Likewise.
51808         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
51809         * modules/strings (Makefile.am): Substitute witness.
51810         (Depends-on): Add c++defs.
51811         * lib/strings.in.h (ffs): Declare.
51812         * modules/ffs-tests: New test file.
51813         * tests/test-ffs.c: Test new module.
51814         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51815         * doc/posix-functions/ffs.texi (ffs): Likewise.
51817         regex: avoid compiler warning
51818         * lib/regex.c (includes): Include <strings.h>, for use of
51819         strcasecmp in regcomp.c.
51820         Reported by Joachim Schmitz.
51822 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51824         stdint: respect system's intmax_t if INTMAX_MAX
51825         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
51826         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
51827         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
51828         long but int64_t is long long, and where we will clash with the
51829         system intmax_t if we override it.  See
51830         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
51831         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
51832         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
51833         similarly for UINTMAX_C.
51835 2011-07-08  Bruno Haible  <bruno@clisp.org>
51837         pthread_sigmask tests: Avoid a compiler warning.
51838         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
51839         non-zero.
51841         sigprocmask tests: A better way to avoid a compiler warning.
51842         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
51843         (main): Complain if system() returns non-zero.
51844         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
51846 2011-07-08  Bruno Haible  <bruno@clisp.org>
51848         pthread_sigmask: Work around IRIX bug.
51849         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
51850         bug.
51851         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
51852         there may be unblocked pending signals.
51853         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
51855 2011-07-08  Bruno Haible  <bruno@clisp.org>
51857         pthread_sigmask: Work around Cygwin bug.
51858         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
51859         bug.
51860         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
51861         the system's pthread_sigmask function.
51862         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
51864 2011-07-08  Bruno Haible  <bruno@clisp.org>
51866         pthread_sigmask: Work around bug in single-threaded implementation.
51867         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
51868         FreeBSD, HP-UX, Solaris bug.
51869         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
51870         * lib/pthread_sigmask.c: Include <stddef.h>.
51871         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
51872         the system's pthread_sigmask function.
51873         * modules/pthread_sigmask (configure.ac): Invoke
51874         gl_PREREQ_PTHREAD_SIGMASK.
51875         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
51876         HP-UX, Solaris.
51878 2011-07-08  Eric Blake  <eblake@redhat.com>
51880         test-sigprocmask: avoid compiler warning
51881         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
51882         * tests/test-sigprocmask.c (main): Use it to silence warning.
51883         Reported by Jim Meyering.
51885         test-snprintf: avoid compiler warning
51886         * tests/test-snprintf.c (main): Avoid shadowed declaration.
51887         * tests/test-vsnprintf.c (main): Likewise.
51888         Reported by Jim Meyering.
51890 2011-07-08  Bruno Haible  <bruno@clisp.org>
51892         Tests for module 'pthread_sigmask'.
51893         * modules/pthread_sigmask-tests: New file.
51894         * tests/test-pthread_sigmask1.c: New file, based on
51895         tests/test-sigprocmask.c.
51896         * tests/test-pthread_sigmask2.c: New file.
51898 2011-07-08  Jim Meyering  <meyering@redhat.com>
51900         test-getopt.h: avoid warning about an unused variable
51901         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
51903 2011-07-07  Jim Meyering  <meyering@redhat.com>
51905         maint: reduce list of files exempt from sc_prohibit_leading_TABs
51906         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
51907         now that it no longer contains leading TABs.
51908         Remove unused "url=FIXME" statement.
51910 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51912         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
51913         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51914         When gl_THREADLIB is not in use, assume that the POSIX sematics
51915         are desired.  This is better for Emacs, which uses POSIX semantics
51916         on GNUish and/or POSIXish platforms, and does not use threads at
51917         all otherwise.
51919         pthread_sigmask: fix typo when testing for libraries
51920         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51921         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
51923 2011-07-08  Eric Blake  <eblake@redhat.com>
51925         fts: introduce FTS_NOATIME
51926         * lib/fts_.h (FTS_NOATIME): New bit flag.
51927         (FTS_OPTIONMASK): Adjust.
51928         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
51929         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
51931 2011-07-08  Bruno Haible  <bruno@clisp.org>
51933         Tests for module 'thread'.
51934         * modules/thread-tests: New file.
51935         * tests/test-thread_self.c: New file.
51936         * tests/test-thread_create.cc: New file.
51938 2011-07-08  Bruno Haible  <bruno@clisp.org>
51940         thread: Avoid gcc warnings when using gl_thread_self().
51941         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
51942         'void *'.
51943         (gl_thread_self_pointer): Update.
51945 2011-07-07  Bruno Haible  <bruno@clisp.org>
51947         signal-c++-tests: Check declaration of pthread_sigmask.
51948         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
51949         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
51950         $(LIB_PTHREAD_SIGMASK).
51952 2011-07-07  Bruno Haible  <bruno@clisp.org>
51954         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
51955         * lib/signal.in.h (pthread_sigmask): Override if
51956         REPLACE_PTHREAD_SIGMASK is 1.
51957         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51958         REPLACE_PTHREAD_SIGMASK.
51959         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51960         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
51961         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
51962         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51963         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
51965 2011-07-07  Bruno Haible  <bruno@clisp.org>
51967         pthread_sigmask: Ensure declaration in <signal.h>.
51968         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
51969         include <pthread.h>.
51970         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
51971         problem.
51973 2011-07-07  Bruno Haible  <bruno@clisp.org>
51975         pthread_sigmask: Document the module.
51976         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
51978 2011-07-07  Bruno Haible  <bruno@clisp.org>
51980         pthread_sigmask: Follow gnulib conventions.
51981         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
51982         gl_PTHREAD_SIGMASK.
51983         * modules/pthread_sigmask (configure.ac): Update.
51985 2011-07-07  Bruno Haible  <bruno@clisp.org>
51987         pthread_sigmask: Make declaration C++ safe.
51988         * lib/signal.in.h: In two special conditions, just do an #include_next.
51989         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51990         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
51991         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51992         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51993         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
51994         not REPLACE_PTHREAD_MASK.
51995         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
51996         not REPLACE_PTHREAD_MASK.
51997         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51999 2011-07-07  Bruno Haible  <bruno@clisp.org>
52001         pthread_sigmask: Fix return value.
52002         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
52003         * lib/pthread_sigmask.c: New file.
52004         * modules/pthread_sigmask (Files): Add it.
52005         (configure.ac): Invoke AC_LIBOBJ.
52007 2011-07-07  Eric Blake  <eblake@redhat.com>
52009         getopt: more portable argv creation
52010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
52011         const, use char arrays rather than strings.
52012         Suggested by Paul Eggert.
52014 2011-07-07  Bruno Haible  <bruno@clisp.org>
52016         Tests for module 'sigprocmask'.
52017         * modules/sigprocmask-tests: New file.
52018         * tests/test-sigprocmask.c: New file.
52020 2011-07-07  Bruno Haible  <bruno@clisp.org>
52022         float tests: Tweak.
52023         * tests/test-float.c (main): Tweak skip message.
52025 2011-07-07  Eric Blake  <eblake@redhat.com>
52027         getopt: avoid compiler warning during configure
52028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
52029         assigning string literals to non-const pointer.
52031         getopt-gnu: avoid crash in glibc getopt
52032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
52033         * tests/test-getopt.h (test_getopt): Enhance test.
52034         * tests/test-getopt_long.h (test_getopt_long): Likewise.
52035         * doc/posix-functions/getopt.texi (getopt): Document it.
52036         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
52037         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52038         Likewise.
52040 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
52042         getopt: handle W; without long options in getopt [BZ #12922]
52043         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
52044         but no long options are defined, just return 'W'.
52046 2011-07-07  Bruno Haible  <bruno@clisp.org>
52048         Avoid literal tabs.
52049         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
52050         variable containing a tab instead of a literal tab.
52051         Reported by Jim Meyering.
52053 2011-07-07  Bruno Haible  <bruno@clisp.org>
52055         Comments.
52056         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
52058 2011-07-06  Bruno Haible  <bruno@clisp.org>
52060         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
52061         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
52062         <winsock2.h>.
52063         (rpl_fd_isset, FD_ISSET): New definitions, copied from
52064         lib/sys_socket.in.h.
52065         (close, gethostname): Hide declarations from <winsock2.h>.
52066         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52067         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
52068         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
52069         (select): Don't override if gnulib's <sys/select.h> was already
52070         included.
52071         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
52072         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
52073         setsockopt, shutdown, select): Tweak indentation.
52075 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52077         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
52078         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
52079         in an application that does not use the sys_select module.
52081 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
52083         poll: do not return 0 on timeout=-1
52084         * lib/poll.c: Loop with yield if no events occurred.
52086 2011-07-06  Eric Blake  <eblake@redhat.com>
52088         pthread_sigmask: always replace when not using pthread
52089         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
52090         replacement when using some threading other than pthread.  Fix
52091         logic bug.
52093 2011-07-06  Bruno Haible  <bruno@clisp.org>
52095         Comments.
52096         * m4/printf.m4: Update comments about mingw.
52098 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52100         sys_select: define sigset_t more portably
52101         * lib/sys_select.in.h: Always include <sys/types.h>, since
52102         we now need sigset_t and mingw defines it there.
52103         Include <signal.h> before split inclusion guard, to avoid
52104         mishaps on Solaris, whose <signal.h> eventually includes us.
52105         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
52106         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
52107         which come from ...
52108         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52109         gl_CHECK_TYPE_SIGSET_T.
52110         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
52111         does the real work.
52112         * modules/sys_select (Depends-on): Add 'signal'.
52114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
52115         Suggested by Bruno Haible.
52117         pselect: Use pthread_sigmask, not sigprocmask.
52118         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
52119         multithreaded apps better than sigprocmask does.
52120         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
52121         sigprocmask directly.
52123 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52125         * lib/pselect.c (pselect): Use plain name, without "rpl_".
52126         Don't #undef,  since we don't need any underlying pselect.
52127         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
52128         (Depends-on): Add select.
52129         (Link): Add $(LIBSOCKET).
52130         These changes suggested by Bruno Haible.
52132         pselect: document better
52133         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
52134         * doc/posix-functions/pselect.texi (pselect): Document new module.
52136         pthread_sigmask: new module
52137         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
52138         * doc/posix-functions/pthread_sigmask.texi: Document new module.
52139         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
52140         This is done only as a macro; I don't know how well that'll
52141         work for C++.  Move <sys/types.h> include before the include_next,
52142         to avoid mishap on Solaris.
52143         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
52144         * modules/signal (Makefile.am): Substitute the check's results.
52145         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
52147         test-pselect: new module
52148         * modules/pselect-tests, tests/test-pselect.c: New files.
52149         * tests/test-select.c, tests/test-sys_select-c++.cc:
52150         If TEST_PSELECT is defined, test pselect instead of testing select.
52152         * tests/test-sys_select.c (sigset_t): Test for it, too.
52153         Suggested by Bruno Haible.
52155 2011-07-05  Eric Blake  <eblake@redhat.com>
52157         snprintf: guarantee %1$d, for libintl
52158         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
52159         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52160         * doc/posix-functions/snprintf.texi (snprintf): Update.
52161         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52162         * tests/test-snprintf.c (main): Enhance test.
52163         * tests/test-vsnprintf.c (main): Likewise.
52165 2011-07-05  Jim Meyering  <meyering@redhat.com>
52167         maint: exempt stdio-read.c and stdio-write.c from the cppi check
52168         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
52169         per Bruno's request, to accommodate this idiom (no space after "#")
52170         even when the function is inside an #if block:
52171         char *
52172         gets (char *s)
52173         #undef gets
52174         {
52175           ...
52176         }
52178 2011-07-04  Jim Meyering  <meyering@redhat.com>
52180         maint: indent with spaces, not TABs, and add a rule to check this
52181         * tests/test-userspec.c: Indent with spaces, not TABs.
52182         * tests/test-argp.c: Likewise.
52183         * tests/test-c-stack2.sh: Likewise.
52184         * tests/test-parse-duration.sh: Likewise
52185         * m4/strtod.m4: Likewise.
52186         * m4/alloca.m4: Likewise.
52187         * m4/pselect.m4: Likewise.
52188         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
52190 2011-07-03  Jim Meyering  <meyering@redhat.com>
52192         maint.mk: correct omissions in prohibit_argmatch_without_use check
52193         This rule would mistakenly report that argmatch.h is included without
52194         use even when both the argmatch and invalid_arg macro were used.
52195         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
52196         of argmatch and invalid_arg.
52198 2011-07-03  Bruno Haible  <bruno@clisp.org>
52200         Comments about EINTR.
52201         * lib/safe-read.h: Explain the purpose of this module.
52202         * lib/safe-write.h: Likewise.
52203         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
52204         module.
52205         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
52206         module.
52207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52209 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52211         xnanosleep: Rewrite to use new dtotimespec module.
52212         It has the conversion code that used to be in xnanosleep.
52213         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
52214         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
52215         (TIME_T_MAX): Remove.
52216         (xnanosleep): Rewrite in terms of dtotimespec.
52217         * modules/xnanosleep (Depends-on): Add dtotimespec.
52218         Remove intprops, stdbool.
52220         timespec-add, timespec-sub: new modules
52221         * lib/timespec.h (timespec_add, timespec_sub): New decls.
52222         * lib/timespec-add.c, lib/timespec-sub.c:
52223         * modules/timespec-add, modules/timespec-sub: New files.
52225         dtotimespec: new module
52226         * lib/timespec.h (dtotimespec): New decl.
52227         * lib/dtotimespec.c, modules/dtotimespec: New files.
52229         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
52231         pselect: new module
52232         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
52233         (pselect): New decls.
52234         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
52235         since the standard pselect decl uses 'restrict'.
52236         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
52237         HAVE_PSELECT, REPLACE_PSELECT.
52238         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
52239         HAVE_PSELECT, REPLACE_PSELECT.
52240         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
52242         sys_select: don't depend on sys_socket
52243         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
52244         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
52245         This fix works on GNU and GNU-like platforms, but has not been tested
52246         on native Windows.
52247         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
52248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
52249         gl_HEADER_SYS_SOCKET.
52250         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
52251         gl_PREREQ_SYS_H_WINSOCK2.
52253 2011-06-29  Eric Blake  <eblake@redhat.com>
52255         pipe2: fix C89 compile problem
52256         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
52257         Reported by Bruno Haible.
52259         pipe, pipe2: don't corrupt fd on error
52260         * lib/pipe.c (pipe): Leave fd unchanged on error.
52261         * lib/pipe2.c (pipe2): Likewise.
52262         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
52263         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52265 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
52267         mmap-anon: do not use regular expressions inadvertently
52268         * m4/mmap-anon.m4: Remove trailing period from strings sought
52269         in the output.
52271 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
52273         nanosleep: fix integer overflow problem
52274         * lib/nanosleep.c (my_usleep): Don't assume signed integer
52275         arithmetic wraps around on overflow.
52277         nanosleep: simplify carrying
52278         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
52279         first call to the underyling nanosleep, not for the last one.
52280         This doesn't fix any bugs, but it simplifies the computation of
52281         the remaining delay.  Found while auditing integer overflow issues.
52283         dup2: remove test for existence of fcntl
52284         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
52285         "#if HAVE_FCNTL", in the configure-time test program.
52286         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
52287         and therefore speeds up "configure" a bit.  Found while
52288         adding the dup2 module to Emacs.
52290 2011-06-24  Eric Blake  <eblake@redhat.com>
52292         maint.mk: enhance useless header checks
52293         * top/maint.mk (_sc_header_without_use): Check both include
52294         styles.
52295         (sc_prohibit_assert_without_use)
52296         (sc_prohibit_close_stream_without_use)
52297         (sc_prohibit_getopt_without_use)
52298         (sc_prohibit_quotearg_without_use)
52299         (sc_prohibit_quote_without_use)
52300         (sc_prohibit_long_options_without_use)
52301         (sc_prohibit_inttostr_without_use)
52302         (sc_prohibit_ignore_value_without_use)
52303         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
52304         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
52305         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
52306         (sc_prohibit_hash_pjw_without_use)
52307         (sc_prohibit_safe_read_without_use)
52308         (sc_prohibit_argmatch_without_use)
52309         (sc_prohibit_canonicalize_without_use)
52310         (sc_prohibit_root_dev_ino_without_use)
52311         (sc_prohibit_openat_without_use)
52312         (sc_prohibit_c_ctype_without_use)
52313         (sc_prohibit_signal_without_use)
52314         (sc_prohibit_stdio--_without_use)
52315         (sc_prohibit_stdio-safer_without_use)
52316         (sc_prohibit_strings_without_use)
52317         (sc_prohibit_intprops_without_use)
52318         (sc_prohibit_stddef_without_use)
52319         (sc_prohibit_xfreopen_without_use): Update clients.
52321 2011-06-24  Jim Meyering  <meyering@redhat.com>
52323         syntax-check: keep one maint.mk rule in sync with its header
52324         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
52325         of the bug Eric has just fixed, with today's commit 25e4c2ec.
52326         I prefer to avoid temporary files here, so use <(...), but that
52327         is not supported by /bin/sh, so...
52328         (SHELL): Define to /bin/bash.
52330 2011-06-24  Eric Blake  <eblake@redhat.com>
52332         maint.mk: update sc_prohibit_intprops_without_use
52333         * top/maint.mk (_intprops_names): Match recent changes.
52335 2011-06-24  Bruno Haible  <bruno@clisp.org>
52337         strerror-override: No-op tweak.
52338         * lib/strerror-override.h (strerror_override): Reorder conditions,
52339         for consistency with lib/strerror-override.c.
52341 2011-06-23  Eric Blake  <eblake@redhat.com>
52343         maint.mk: test further PATH_MAX issues
52344         * top/maint.mk (sc_prohibit_path_max_array): Rename...
52345         (sc_prohibit_path_max_allocation): ...and also test alloca.
52346         Suggested by Jim Meyering.
52348 2011-06-22  Eric Blake  <eblake@redhat.com>
52350         maint.mk: add syntax-check to avoid char[PATH_MAX]
52351         * top/maint.mk (sc_prohibit_path_max_array): New rule.
52353         stat: be robust to PATH_MAX definition
52354         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
52355         * modules/stat (Depends-on): Add verify.
52357         link: work around IRIX bug
52358         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
52359         * lib/link.c (rpl_link): Work around it.
52360         * tests/test-link.h (test_link): Enhance test.
52361         * doc/posix-functions/link.texi (link): Document the bug.
52363         getopt: silence clang warning
52364         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
52365         dereference.
52366         Reported by Gustavo Martin Domato.
52368 2011-06-22  Jim Meyering  <meyering@redhat.com>
52370         bootstrap: do not insert a blank line into each .gitignore file
52371         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
52373 2011-06-21  Eric Blake  <eblake@redhat.com>
52375         perror: test for output mismatch
52376         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
52377         perror on IRIX.
52379         strerror_r: fix OpenBSD behavior on out-of-range
52380         * lib/strerror_r.c (strerror_r): Always use maximal string.
52381         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52383         strerror_r: fix OpenBSD behavior on 0
52384         * lib/strerror-override.c (strerror_override): Also override 0
52385         when needed.
52386         * lib/strerror-override.h (strerror_override): Likewise.
52387         * lib/strerror.c (strerror): Simplify, now that 0 override is done
52388         earlier.
52389         * lib/strerror_r.c (strerror_r): Likewise.
52390         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
52391         behavior...
52392         (gl_FUNC_STRERROR_0): ...into new macro.
52393         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
52394         is overridden.
52395         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
52396         * modules/strerror-override (Files): Add strerror.m4.
52397         (configure.ac): Also provide override for 0 when needed.
52398         * doc/posix-functions/strerror.texi (strerror): Document this.
52399         * doc/posix-functions/perror.texi (perror): Likewise.
52401         perror: adjust array size
52402         * modules/perror (Depends-on): Add strerror-override.
52403         * lib/perror.c (perror): Use it to avoid magic number.
52405         strerror-override: reduce size
52406         * lib/strerror-override.c (strerror_override): Use fewer lines.
52408 2011-06-20  Bruno Haible  <bruno@clisp.org>
52410         pathmax: Ensure correct value for PATH_MAX on HP-UX.
52411         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
52413 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52415         alloca: port to compilers that can optimize like GCC 4.6.0
52416         * lib/alloca.c (find_stack_direction): New signature, taken from
52417         Autoconf git.  This works with GCC 4.6.0.  This code should never
52418         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
52419         be used with other compilers that optimize as well as GCC 4.6.0 does.
52420         (alloca): Adjust to new signature.
52421         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
52422         New macro, which patches Autoconf in a similar way.
52424         c-stack: stop worrying about stack direction
52425         * lib/c-stack.c (find_stack_direction): Remove.
52426         (segv_handler): Don't worry about stack direction growth, as it's
52427         too much of a pain to configure this correctly, given how compilers
52428         are optimizing-away our stack-growth detection code.  Instead, assume
52429         that any access to just before or just after the stack is OK.
52430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52431         Don't require AC_FUNC_ALLOCA; no longer needed.
52433 2011-06-20  Eric Blake  <eblake@redhat.com>
52435         test-stat: don't allocate PATH_MAX bytes
52436         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
52437         PATH_MAX-sized buffer.
52438         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
52439         * modules/stat-tests (Depends-on): Likewise.
52440         * tests/test-fstatat.c (includes): Drop pathmax.h.
52441         * tests/test-stat.c (includes): Likewise.
52442         Reported by Bruno Haible.
52444 2011-06-20  Bruno Haible  <bruno@clisp.org>
52446         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
52447         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
52448         * lib/float.c: New file.
52449         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
52450         REPLACE_FLOAT_LDBL.
52451         * modules/float (Files): Add lib/float.c.
52452         (configure.ac): Invoke AC_LIBOBJ.
52453         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
52455 2011-06-20  Bruno Haible  <bruno@clisp.org>
52457         Tests for module 'float'.
52458         * modules/float-tests: New file.
52459         * tests/test-float.c: New file.
52461 2011-06-19  Bruno Haible  <bruno@clisp.org>
52463         isinf: Coding style.
52464         * lib/isinf.c: Use GNU coding style.
52466 2011-06-19  Bruno Haible  <bruno@clisp.org>
52468         linkat test: Avoid test failure on AIX 7.1.
52469         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
52470         * tests/test-link.h (test_link): Likewise.
52472 2011-06-19  Bruno Haible  <bruno@clisp.org>
52474         pread test: Avoid test failure on OpenBSD 4.9.
52475         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
52477 2011-06-19  Bruno Haible  <bruno@clisp.org>
52479         sprintf-posix: Fix test failure on AIX 7.1.
52480         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
52481         * doc/posix-functions/dprintf.texi: Mention limited precision problem
52482         on AIX.
52483         * doc/posix-functions/fprintf.texi: Likewise.
52484         * doc/posix-functions/printf.texi: Likewise.
52485         * doc/posix-functions/snprintf.texi: Likewise.
52486         * doc/posix-functions/sprintf.texi: Likewise.
52487         * doc/posix-functions/vdprintf.texi: Likewise.
52488         * doc/posix-functions/vfprintf.texi: Likewise.
52489         * doc/posix-functions/vprintf.texi: Likewise.
52490         * doc/posix-functions/vsnprintf.texi: Likewise.
52491         * doc/posix-functions/vsprintf.texi: Likewise.
52493 2011-06-19  Bruno Haible  <bruno@clisp.org>
52495         roundl-ieee: Fix test failure on AIX 7.1.
52496         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
52497         * doc/posix-functions/roundl.texi: Mention problem with negative
52498         arguments.
52500 2011-06-19  Bruno Haible  <bruno@clisp.org>
52502         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
52503         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
52504         * doc/posix-functions/round.texi: Mention problem with negative
52505         arguments.
52506         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
52508 2011-06-19  Bruno Haible  <bruno@clisp.org>
52510         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
52511         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
52512         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
52513         * doc/posix-functions/roundf.texi: Mention problem with negative
52514         arguments.
52515         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
52517 2011-06-19  Bruno Haible  <bruno@clisp.org>
52519         ceilf-ieee: Work around bug on MacOS X 10.5.
52520         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
52522         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
52523         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
52524         IEEE compliant, avoid compiler optimizations.
52525         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
52526         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52527         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
52528         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
52529         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
52530         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
52531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
52532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
52533         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
52534         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
52536 2011-06-19  Bruno Haible  <bruno@clisp.org>
52538         ceilf-ieee: Work around bug on AIX 7.1.
52539         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
52540         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
52542 2011-06-19  Bruno Haible  <bruno@clisp.org>
52544         ceil-ieee: Work around bug on AIX 7.1.
52545         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
52546         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
52548 2011-06-18  Bruno Haible  <bruno@clisp.org>
52550         fsync test: Avoid test failure on MacOS X and AIX.
52551         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
52552         EINVAL.
52554 2011-06-18  Bruno Haible  <bruno@clisp.org>
52556         openat, fdopendir tests: Fix link errors.
52557         * modules/openat-tests (Depends-on): Add progname.
52558         * modules/fdopendir-tests (Depends-on): Likewise.
52559         * tests/test-fchownat.c: Include progname.h.
52560         (main): Call set_program_name.
52561         * tests/test-fstatat.c: Include progname.h.
52562         (main): Call set_program_name.
52563         * tests/test-mkdirat.c: Include progname.h.
52564         (main): Call set_program_name.
52565         * tests/test-openat.c: Include progname.h.
52566         (main): Call set_program_name.
52567         * tests/test-unlinkat.c: Include progname.h.
52568         (main): Call set_program_name.
52569         * tests/test-fdopendir.c: Include progname.h.
52570         (main): Call set_program_name.
52572 2011-06-18  Bruno Haible  <bruno@clisp.org>
52574         Doc update.
52575         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
52576         HP-UX.
52577         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
52579 2011-06-18  Bruno Haible  <bruno@clisp.org>
52581         getcwd tests: Avoid compilation error on HP-UX 11.31.
52582         * modules/getcwd-tests (Depends-on): Add pathmax.
52583         * tests/test-getcwd.c: Include pathmax.h.
52585 2011-06-18  Bruno Haible  <bruno@clisp.org>
52587         isfinite, isinf: Fix link error on AIX 6 and 7.
52588         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
52589         needed, also test the macro with a 'float' argument.
52590         * m4/isinf.m4 (gl_ISINF): Likewise.
52592 2011-06-18  Bruno Haible  <bruno@clisp.org>
52594         getloadavg: Don't clobber LIBS. Regression from previous commit.
52595         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
52596         AC_CHECK_LIB from here...
52597         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
52598         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
52599         gl_func_getloadavg_done.
52600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52602 2011-06-18  Bruno Haible  <bruno@clisp.org>
52604         clean-temp: Improve documentation.
52605         * lib/clean-temp.h: Explain better how to use this module.
52606         Reported by John Darrington <john@darrington.wattle.id.au>.
52608 2011-06-17  Bruno Haible  <bruno@clisp.org>
52610         pread, pwrite: Avoid cc warning on AIX.
52611         * lib/unistd.in.h (pread): Undefine before defining as a macro.
52612         (pwrite): Likewise.
52614 2011-06-17  Bruno Haible  <bruno@clisp.org>
52616         spawn-pipe tests: Fix link error.
52617         * tests/test-spawn-pipe-child.c: Undefine fprintf.
52618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52620 2011-06-17  Bruno Haible  <bruno@clisp.org>
52622         Tests: Remove unnecessary dependency.
52623         * modules/canonicalize-tests (Depends-on): Remove progname.
52624         * modules/chown-tests (Depends-on): Likewise.
52625         * modules/dirname-tests (Depends-on): Likewise.
52626         * modules/fdopendir-tests (Depends-on): Likewise.
52627         * modules/fdutimensat-tests (Depends-on): Likewise.
52628         * modules/hash-tests (Depends-on): Likewise.
52629         * modules/lchown-tests (Depends-on): Likewise.
52630         * modules/linkat-tests (Depends-on): Likewise.
52631         * modules/renameat-tests (Depends-on): Likewise.
52632         * modules/spawn-pipe-tests (Depends-on): Likewise.
52633         * modules/utimensat-tests (Depends-on): Likewise.
52635 2011-06-17  Bruno Haible  <bruno@clisp.org>
52637         spawn-pipe tests: Fix link error.
52638         * tests/test-spawn-pipe-child.c: Undefine fflush.
52640 2011-06-17  Bruno Haible  <bruno@clisp.org>
52642         Fix tests link errors.
52643         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
52644         * modules/chown-tests (Makefile.am): Don't link test-chown with
52645         LIBINTL.
52646         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
52647         LIBINTL.
52648         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
52649         LIBINTL.
52650         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
52651         LIBINTL.
52653 2011-06-16  Bruno Haible  <bruno@clisp.org>
52655         crypto/gc-sha1: Fix recent regression.
52656         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
52657         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
52659         crypto/gc-md5: Fix recent regression.
52660         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
52662         crypto/gc-md4: Fix recent regression.
52663         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
52664         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
52666         crypto/gc-arctwo: Fix recent regression.
52667         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
52668         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
52670         crypto/gc-rijndael: Fix recent regression.
52671         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
52672         (configure.ac): Invoke AC_LIBOBJ here.
52673         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
52674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52676         crypto/gc-hmac-sha1: Fix recent regression.
52677         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
52678         (configure.ac): Invoke AC_LIBOBJ here.
52679         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
52680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52682         crypto/gc-hmac-md5: Fix recent regression.
52683         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
52684         (configure.ac): Invoke AC_LIBOBJ here.
52685         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
52686         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52688         crypto/gc-des: Fix recent regression.
52689         * modules/crypto/gc-des (Files): Remove m4/des.m4.
52690         (configure.ac): Invoke AC_LIBOBJ here.
52691         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
52692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52694         crypto/gc-arcfour: Fix recent regression.
52695         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
52696         (configure.ac): Invoke AC_LIBOBJ here.
52697         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
52698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52700 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
52702         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
52703         After the 2011-05-21 change, this macro requires
52704         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
52705         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52707 2011-06-16  Bruno Haible  <bruno@clisp.org>
52709         fprintftime: Move AC_LIBOBJ invocations to module description.
52710         * m4/fprintftime.m4: Remove file.
52711         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
52712         (configure.ac): Remove gl_FPRINTFTIME call.
52713         (Makefile.am): Augment lib_SOURCES.
52714         Reported by Jim Meyering.
52716 2011-06-16  Bruno Haible  <bruno@clisp.org>
52718         tmpfile-safer: Finish 2011-05-23 commit.
52719         * m4/stdio-safer.m4: Really remove file.
52720         Reported by Jim Meyering.
52722 2011-06-16  Bruno Haible  <bruno@clisp.org>
52724         syntax-check: Fix typo.
52725         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
52726         printf-posix.m4.
52727         Reported by Jim Meyering.
52729 2011-06-13  Jim Meyering  <meyering@redhat.com>
52731         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
52732         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
52734 2011-05-23  Bruno Haible  <bruno@clisp.org>
52736         yesno: Move AC_LIBOBJ invocations to module description.
52737         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
52738         * modules/yesno (Makefile.am): Augment lib_SOURCES.
52740 2011-05-23  Bruno Haible  <bruno@clisp.org>
52742         xstrtol: Move AC_LIBOBJ invocations to module description.
52743         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
52744         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
52746 2011-05-23  Bruno Haible  <bruno@clisp.org>
52748         xstrtold: Move AC_LIBOBJ invocations to module description.
52749         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
52750         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
52752 2011-05-23  Bruno Haible  <bruno@clisp.org>
52754         xstrtod: Move AC_LIBOBJ invocations to module description.
52755         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
52756         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
52758 2011-05-23  Bruno Haible  <bruno@clisp.org>
52760         xnanosleep: Move AC_LIBOBJ invocations to module description.
52761         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
52762         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
52764 2011-05-23  Bruno Haible  <bruno@clisp.org>
52766         xgetcwd: Move AC_LIBOBJ invocations to module description.
52767         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
52768         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
52770 2011-05-23  Bruno Haible  <bruno@clisp.org>
52772         xalloc: Move AC_LIBOBJ invocations to module description.
52773         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
52774         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
52776 2011-05-23  Bruno Haible  <bruno@clisp.org>
52778         write-any-file: Move AC_LIBOBJ invocations to module description.
52779         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
52780         invocation.
52781         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
52783 2011-05-23  Bruno Haible  <bruno@clisp.org>
52785         utimens: Move AC_LIBOBJ invocations to module description.
52786         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
52787         * modules/utimens (Makefile.am): Augment lib_SOURCES.
52789 2011-05-23  Bruno Haible  <bruno@clisp.org>
52791         utimecmp: Move AC_LIBOBJ invocations to module description.
52792         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
52793         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
52795 2011-05-23  Bruno Haible  <bruno@clisp.org>
52797         userspec: Move AC_LIBOBJ invocations to module description.
52798         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
52799         * modules/userspec (Makefile.am): Augment lib_SOURCES.
52801 2011-05-23  Bruno Haible  <bruno@clisp.org>
52803         unlinkdir: Move AC_LIBOBJ invocations to module description.
52804         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
52805         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
52807 2011-05-23  Bruno Haible  <bruno@clisp.org>
52809         unistd-safer: Move AC_LIBOBJ invocations to module description.
52810         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
52811         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
52813 2011-05-23  Bruno Haible  <bruno@clisp.org>
52815         tempname: Move AC_LIBOBJ invocations to module description.
52816         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
52817         * modules/tempname (Makefile.am): Augment lib_SOURCES.
52819 2011-05-23  Bruno Haible  <bruno@clisp.org>
52821         strftime: Move AC_LIBOBJ invocations to module description.
52822         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
52823         * modules/strftime (Makefile.am): Augment lib_SOURCES.
52825 2011-05-23  Bruno Haible  <bruno@clisp.org>
52827         stdlib-safer: Move AC_LIBOBJ invocations to module description.
52828         * m4/stdlib-safer.m4: Remove file.
52829         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
52830         (configure.ac): Remove gl_STDLIB_SAFER call.
52831         (Makefile.am): Augment lib_SOURCES.
52833 2011-05-23  Bruno Haible  <bruno@clisp.org>
52835         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
52836         * m4/stdio-safer.m4: Remove file.
52837         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
52838         (configure.ac): Remove gl_TMPFILE_SAFER call.
52839         (Makefile.am): Augment lib_SOURCES.
52841 2011-05-23  Bruno Haible  <bruno@clisp.org>
52843         popen-safer: Move AC_LIBOBJ invocations to module description.
52844         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
52845         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
52846         (configure.ac): Remove gl_POPEN_SAFER call.
52847         (Makefile.am): Augment lib_SOURCES.
52849 2011-05-23  Bruno Haible  <bruno@clisp.org>
52851         freopen-safer: Move AC_LIBOBJ invocations to module description.
52852         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
52853         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
52854         (configure.ac): Remove gl_FREOPEN_SAFER call.
52855         (Makefile.am): Augment lib_SOURCES.
52857 2011-05-23  Bruno Haible  <bruno@clisp.org>
52859         fopen-safer: Move AC_LIBOBJ invocations to module description.
52860         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
52861         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
52862         (configure.ac): Remove gl_FOPEN_SAFER call.
52863         (Makefile.am): Augment lib_SOURCES.
52865 2011-05-23  Bruno Haible  <bruno@clisp.org>
52867         crypto/sha512: Move AC_LIBOBJ invocations to module description.
52868         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
52869         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
52871 2011-05-23  Bruno Haible  <bruno@clisp.org>
52873         crypto/sha256: Move AC_LIBOBJ invocations to module description.
52874         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
52875         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
52877 2011-05-23  Bruno Haible  <bruno@clisp.org>
52879         crypto/sha1: Move AC_LIBOBJ invocations to module description.
52880         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
52881         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
52883 2011-05-23  Bruno Haible  <bruno@clisp.org>
52885         settime: Move AC_LIBOBJ invocations to module description.
52886         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
52887         * modules/settime (Makefile.am): Augment lib_SOURCES.
52889 2011-05-23  Bruno Haible  <bruno@clisp.org>
52891         savedir: Move AC_LIBOBJ invocations to module description.
52892         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
52893         * modules/savedir (Makefile.am): Augment lib_SOURCES.
52895 2011-05-23  Bruno Haible  <bruno@clisp.org>
52897         save-cwd: Move AC_LIBOBJ invocations to module description.
52898         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
52899         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
52901 2011-05-23  Bruno Haible  <bruno@clisp.org>
52903         same: Move AC_LIBOBJ invocations to module description.
52904         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
52905         * modules/same (Makefile.am): Augment lib_SOURCES.
52907 2011-05-23  Bruno Haible  <bruno@clisp.org>
52909         safe-write: Move AC_LIBOBJ invocations to module description.
52910         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
52911         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
52912         instead of gl_SAFE_WRITE.
52913         (Makefile.am): Augment lib_SOURCES.
52915 2011-05-23  Bruno Haible  <bruno@clisp.org>
52917         safe-read: Move AC_LIBOBJ invocations to module description.
52918         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
52919         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
52920         of gl_SAFE_READ.
52921         (Makefile.am): Augment lib_SOURCES.
52923 2011-05-23  Bruno Haible  <bruno@clisp.org>
52925         safe-alloc: Move AC_LIBOBJ invocations to module description.
52926         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
52927         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
52929 2011-05-23  Bruno Haible  <bruno@clisp.org>
52931         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
52932         * m4/rijndael.m4: Remove file.
52933         * modules/crypto/rijndael (Files): Remove it.
52934         (configure.ac): Remove gl_RIJNDAEL call.
52935         (Makefile.am): Augment lib_SOURCES.
52937 2011-05-23  Bruno Haible  <bruno@clisp.org>
52939         readtokens: Move AC_LIBOBJ invocations to module description.
52940         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
52941         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
52943 2011-05-23  Bruno Haible  <bruno@clisp.org>
52945         read-file: Move AC_LIBOBJ invocations to module description.
52946         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
52947         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
52948         of gl_FUNC_READ_FILE.
52949         (Makefile.am): Augment lib_SOURCES.
52951 2011-05-23  Bruno Haible  <bruno@clisp.org>
52953         quotearg: Move AC_LIBOBJ invocations to module description.
52954         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
52955         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
52957 2011-05-23  Bruno Haible  <bruno@clisp.org>
52959         quote: Move AC_LIBOBJ invocations to module description.
52960         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
52961         * modules/quote (Makefile.am): Augment lib_SOURCES.
52963 2011-05-23  Bruno Haible  <bruno@clisp.org>
52965         posixver: Move AC_LIBOBJ invocations to module description.
52966         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
52967         * modules/posixver (Makefile.am): Augment lib_SOURCES.
52969 2011-05-23  Bruno Haible  <bruno@clisp.org>
52971         posixtm: Move AC_LIBOBJ invocations to module description.
52972         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
52973         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
52975 2011-05-23  Bruno Haible  <bruno@clisp.org>
52977         physmem: Move AC_LIBOBJ invocations to module description.
52978         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
52979         * modules/physmem (Makefile.am): Augment lib_SOURCES.
52981 2011-05-23  Bruno Haible  <bruno@clisp.org>
52983         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
52984         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
52985         invocation.
52986         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
52988 2011-05-23  Bruno Haible  <bruno@clisp.org>
52990         mpsort: Move AC_LIBOBJ invocations to module description.
52991         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
52992         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
52994 2011-05-23  Bruno Haible  <bruno@clisp.org>
52996         modechange: Move AC_LIBOBJ invocations to module description.
52997         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
52998         * modules/modechange (Makefile.am): Augment lib_SOURCES.
53000 2011-05-23  Bruno Haible  <bruno@clisp.org>
53002         mkdir-p: Move AC_LIBOBJ invocations to module description.
53003         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
53004         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
53006 2011-05-23  Bruno Haible  <bruno@clisp.org>
53008         mkancesdirs: Move AC_LIBOBJ invocations to module description.
53009         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
53010         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
53012 2011-05-23  Bruno Haible  <bruno@clisp.org>
53014         mgetgroups: Move AC_LIBOBJ invocations to module description.
53015         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
53016         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
53018 2011-05-23  Bruno Haible  <bruno@clisp.org>
53020         memxor: Move AC_LIBOBJ invocations to module description.
53021         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
53022         * modules/memxor (Makefile.am): Augment lib_SOURCES.
53024 2011-05-23  Bruno Haible  <bruno@clisp.org>
53026         memcoll: Move AC_LIBOBJ invocations to module description.
53027         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
53028         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
53030 2011-05-23  Bruno Haible  <bruno@clisp.org>
53032         memcasecmp: Move AC_LIBOBJ invocations to module description.
53033         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
53034         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
53036 2011-05-23  Bruno Haible  <bruno@clisp.org>
53038         crypto/md5: Move AC_LIBOBJ invocations to module description.
53039         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
53040         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
53042 2011-05-23  Bruno Haible  <bruno@clisp.org>
53044         crypto/md4: Move AC_LIBOBJ invocations to module description.
53045         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
53046         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
53048 2011-05-23  Bruno Haible  <bruno@clisp.org>
53050         crypto/md2: Move AC_LIBOBJ invocations to module description.
53051         * m4/md2.m4: Remove file.
53052         * modules/crypto/md2 (Files): Remove it.
53053         (configure.ac): Remove gl_MD2 call.
53054         (Makefile.am): Augment lib_SOURCES.
53056 2011-05-23  Bruno Haible  <bruno@clisp.org>
53058         long-options: Move AC_LIBOBJ invocations to module description.
53059         * m4/long-options.m4: Remove file.
53060         * modules/long-options (Files): Remove it.
53061         (configure.ac): Remove gl_LONG_OPTIONS call.
53062         (Makefile.am): Augment lib_SOURCES.
53064 2011-05-23  Bruno Haible  <bruno@clisp.org>
53066         i-ring: Move AC_LIBOBJ invocations to module description.
53067         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
53068         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
53070 2011-05-23  Bruno Haible  <bruno@clisp.org>
53072         idcache: Move AC_LIBOBJ invocations to module description.
53073         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
53074         * modules/idcache (Makefile.am): Augment lib_SOURCES.
53076 2011-05-23  Bruno Haible  <bruno@clisp.org>
53078         human: Move AC_LIBOBJ invocations to module description.
53079         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
53080         * modules/human (Makefile.am): Augment lib_SOURCES.
53082 2011-05-23  Bruno Haible  <bruno@clisp.org>
53084         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
53085         * m4/hmac-sha1.m4: Remove file.
53086         * modules/crypto/hmac-sha1 (Files): Remove it.
53087         (configure.ac): Remove gl_HMAC_SHA1 call.
53088         (Makefile.am): Augment lib_SOURCES.
53090 2011-05-23  Bruno Haible  <bruno@clisp.org>
53092         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
53093         * m4/hmac-md5.m4: Remove file.
53094         * modules/crypto/hmac-md5 (Files): Remove it.
53095         (configure.ac): Remove gl_HMAC_MD5 call.
53096         (Makefile.am): Augment lib_SOURCES.
53098 2011-05-23  Bruno Haible  <bruno@clisp.org>
53100         hash: Move AC_LIBOBJ invocations to module description.
53101         * m4/hash.m4: Remove file.
53102         * modules/hash (Files): Remove it.
53103         (configure.ac): Remove gl_HASH call.
53104         (Makefile.am): Augment lib_SOURCES.
53106 2011-05-23  Bruno Haible  <bruno@clisp.org>
53108         hard-locale: Move AC_LIBOBJ invocations to module description.
53109         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
53110         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
53112 2011-05-23  Bruno Haible  <bruno@clisp.org>
53114         getugroups: Move AC_LIBOBJ invocations to module description.
53115         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
53116         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
53118 2011-05-23  Bruno Haible  <bruno@clisp.org>
53120         gettime: Move AC_LIBOBJ invocations to module description.
53121         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
53122         * modules/gettime (Makefile.am): Augment lib_SOURCES.
53124 2011-05-23  Bruno Haible  <bruno@clisp.org>
53126         getndelim2: Move AC_LIBOBJ invocations to module description.
53127         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
53128         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
53130 2011-05-23  Bruno Haible  <bruno@clisp.org>
53132         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
53133         * m4/gc-pbkdf2-sha1.m4: Remove file.
53134         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
53135         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
53136         (Makefile.am): Augment lib_SOURCES.
53138 2011-05-23  Bruno Haible  <bruno@clisp.org>
53140         fts: Move AC_LIBOBJ invocations to module description.
53141         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
53142         * modules/fts (configure.ac): ... to here.
53144 2011-05-23  Bruno Haible  <bruno@clisp.org>
53146         file-type: Move AC_LIBOBJ invocations to module description.
53147         * m4/file-type.m4: Remove file.
53148         * modules/file-type (Files): Remove it.
53149         (configure.ac): Remove gl_FILE_TYPE call.
53150         (Makefile.am): Augment lib_SOURCES.
53152 2011-05-23  Bruno Haible  <bruno@clisp.org>
53154         filenamecat*: Respect rules for use of AC_LIBOBJ.
53155         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
53156         Remove AC_LIBOBJ invocation.
53157         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
53158         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
53160 2011-05-23  Bruno Haible  <bruno@clisp.org>
53162         filemode: Move AC_LIBOBJ invocations to module description.
53163         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
53164         * modules/filemode (Makefile.am): Augment lib_SOURCES.
53166 2011-05-23  Bruno Haible  <bruno@clisp.org>
53168         openat-safer: Move AC_LIBOBJ invocations to module description.
53169         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
53170         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
53172 2011-05-23  Bruno Haible  <bruno@clisp.org>
53174         fcntl-safer: Move AC_LIBOBJ invocations to module description.
53175         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
53176         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
53178 2011-05-23  Bruno Haible  <bruno@clisp.org>
53180         exclude: Move AC_LIBOBJ invocations to module description.
53181         * m4/exclude.m4: Remove file.
53182         * modules/exclude (Files): Remove it.
53183         (configure.ac): Remove gl_EXCLUDE call.
53184         (Makefile.am): Augment lib_SOURCES.
53186 2011-05-23  Bruno Haible  <bruno@clisp.org>
53188         dirname*: Respect rules for use of AC_LIBOBJ.
53189         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
53190         invocations.
53191         * modules/dirname (Makefile.am): Augment lib_SOURCES.
53192         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
53194 2011-05-23  Bruno Haible  <bruno@clisp.org>
53196         dirent-safer: Move AC_LIBOBJ invocations to module description.
53197         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
53198         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
53200 2011-05-23  Bruno Haible  <bruno@clisp.org>
53202         crypto/des: Move AC_LIBOBJ invocations to module description.
53203         * m4/des.m4: Remove file.
53204         * modules/crypto/des (Files): Remove it.
53205         (configure.ac): Remove gl_DES call.
53206         (Makefile.am): Augment lib_SOURCES.
53208 2011-05-23  Bruno Haible  <bruno@clisp.org>
53210         cycle-check: Move AC_LIBOBJ invocations to module description.
53211         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
53212         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
53214 2011-05-23  Bruno Haible  <bruno@clisp.org>
53216         c-strtold: Move AC_LIBOBJ invocations to module description.
53217         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
53218         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
53220 2011-05-23  Bruno Haible  <bruno@clisp.org>
53222         c-strtod: Move AC_LIBOBJ invocations to module description.
53223         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
53224         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
53226 2011-05-23  Bruno Haible  <bruno@clisp.org>
53228         crc: Move AC_LIBOBJ invocations to module description.
53229         * m4/crc.m4: Remove file.
53230         * modules/crc (Files): Remove it.
53231         (configure.ac): Remove gl_CRC call.
53232         (Makefile.am): Augment lib_SOURCES.
53234 2011-05-23  Bruno Haible  <bruno@clisp.org>
53236         close-stream: Move AC_LIBOBJ invocations to module description.
53237         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
53238         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
53240 2011-05-23  Bruno Haible  <bruno@clisp.org>
53242         closeout: Move AC_LIBOBJ invocations to module description.
53243         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
53244         * modules/closeout (Makefile.am): Augment lib_SOURCES.
53246 2011-05-23  Bruno Haible  <bruno@clisp.org>
53248         closein: Move AC_LIBOBJ invocations to module description.
53249         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
53250         * modules/closein (Makefile.am): Augment lib_SOURCES.
53252 2011-05-23  Bruno Haible  <bruno@clisp.org>
53254         cloexec: Move AC_LIBOBJ invocations to module description.
53255         * m4/cloexec.m4: Remove file.
53256         * modules/cloexec (Files): Remove it.
53257         (configure.ac): Remove gl_CLOEXEC call.
53258         (Makefile.am): Augment lib_SOURCES.
53260 2011-05-23  Bruno Haible  <bruno@clisp.org>
53262         check-version: Move AC_LIBOBJ invocations to module description.
53263         * m4/check-version.m4: Remove file.
53264         * modules/check-version (Files): Remove it.
53265         (configure.ac): Remove gl_CHECK_VERSION call.
53266         (Makefile.am): Augment lib_SOURCES.
53268 2011-05-23  Bruno Haible  <bruno@clisp.org>
53270         chdir-safer: Move AC_LIBOBJ invocations to module description.
53271         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
53272         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
53274 2011-05-23  Bruno Haible  <bruno@clisp.org>
53276         canonicalize: Move AC_LIBOBJ invocations to module description.
53277         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
53278         AC_LIBOBJ invocation.
53279         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
53281 2011-05-23  Bruno Haible  <bruno@clisp.org>
53283         canon-host: Move AC_LIBOBJ invocations to module description.
53284         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
53285         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
53286         instead of gl_CANON_HOST.
53287         (Makefile.am): Augment lib_SOURCES.
53289 2011-05-23  Bruno Haible  <bruno@clisp.org>
53291         backupfile: Move AC_LIBOBJ invocations to module description.
53292         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
53293         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
53295 2011-05-23  Bruno Haible  <bruno@clisp.org>
53297         argmatch: Move AC_LIBOBJ invocations to module description.
53298         * m4/argmatch.m4: Remove file.
53299         * modules/argmatch (Files): Remove it.
53300         (configure.ac): Remove gl_ARGMATCH call.
53301         (Makefile.am): Augment lib_SOURCES.
53303 2011-05-23  Bruno Haible  <bruno@clisp.org>
53305         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
53306         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
53307         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
53309 2011-05-23  Bruno Haible  <bruno@clisp.org>
53311         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
53312         * m4/arcfour.m4: Remove file.
53313         * modules/crypto/arcfour (Files): Remove it.
53314         (configure.ac): Remove gl_ARCFOUR call.
53315         (Makefile.am): Augment lib_SOURCES.
53317 2011-05-22  Bruno Haible  <bruno@clisp.org>
53319         write: Move AC_LIBOBJ invocations to module description.
53320         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
53321         * modules/write (configure.ac): ... to here.
53323 2011-05-22  Bruno Haible  <bruno@clisp.org>
53325         wmemset: Move AC_LIBOBJ invocations to module description.
53326         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
53327         here...
53328         * modules/wmemset (configure.ac): ... to here.
53330 2011-05-22  Bruno Haible  <bruno@clisp.org>
53332         wmemmove: Move AC_LIBOBJ invocations to module description.
53333         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
53334         here...
53335         * modules/wmemmove (configure.ac): ... to here.
53337 2011-05-22  Bruno Haible  <bruno@clisp.org>
53339         wmemcpy: Move AC_LIBOBJ invocations to module description.
53340         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
53341         here...
53342         * modules/wmemcpy (configure.ac): ... to here.
53344 2011-05-22  Bruno Haible  <bruno@clisp.org>
53346         wmemcmp: Move AC_LIBOBJ invocations to module description.
53347         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
53348         here...
53349         * modules/wmemcmp (configure.ac): ... to here.
53351 2011-05-22  Bruno Haible  <bruno@clisp.org>
53353         wmemchr: Move AC_LIBOBJ invocations to module description.
53354         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
53355         here...
53356         * modules/wmemchr (configure.ac): ... to here.
53358 2011-05-22  Bruno Haible  <bruno@clisp.org>
53360         wcswidth: Move AC_LIBOBJ invocations to module description.
53361         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
53362         here...
53363         * modules/wcswidth (configure.ac): ... to here.
53365 2011-05-22  Bruno Haible  <bruno@clisp.org>
53367         wcwidth: Respect rules for use of AC_LIBOBJ.
53368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
53369         invocation from here...
53370         * modules/wcwidth (configure.ac): ... to here.
53371         (Depends-on): Update conditions.
53373 2011-05-22  Bruno Haible  <bruno@clisp.org>
53375         wctype: Move AC_LIBOBJ invocations to module description.
53376         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
53377         invocation from here...
53378         * modules/wctype (configure.ac): ... to here.
53379         (Depends-on): Update conditions.
53381 2011-05-22  Bruno Haible  <bruno@clisp.org>
53383         wctrans: Move AC_LIBOBJ invocations to module description.
53384         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
53385         invocation from here...
53386         * modules/wctrans (configure.ac): ... to here.
53388 2011-05-22  Bruno Haible  <bruno@clisp.org>
53390         wctomb: Move AC_LIBOBJ invocations to module description.
53391         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
53392         invocations from here...
53393         * modules/wctomb (configure.ac): ... to here.
53395 2011-05-22  Bruno Haible  <bruno@clisp.org>
53397         wctob: Move AC_LIBOBJ invocations to module description.
53398         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
53399         gl_PREREQ_WCTOB invocations from here...
53400         * modules/wctob (configure.ac): ... to here.
53401         (Depends-on): Update conditions.
53403 2011-05-22  Bruno Haible  <bruno@clisp.org>
53405         wcsxfrm: Move AC_LIBOBJ invocations to module description.
53406         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
53407         here...
53408         * modules/wcsxfrm (configure.ac): ... to here.
53410 2011-05-22  Bruno Haible  <bruno@clisp.org>
53412         wcstok: Move AC_LIBOBJ invocations to module description.
53413         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
53414         * modules/wcstok (configure.ac): ... to here.
53416 2011-05-22  Bruno Haible  <bruno@clisp.org>
53418         wcsstr: Move AC_LIBOBJ invocations to module description.
53419         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
53420         * modules/wcsstr (configure.ac): ... to here.
53422 2011-05-22  Bruno Haible  <bruno@clisp.org>
53424         wcsspn: Move AC_LIBOBJ invocations to module description.
53425         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
53426         * modules/wcsspn (configure.ac): ... to here.
53428 2011-05-22  Bruno Haible  <bruno@clisp.org>
53430         wcsrtombs: Move AC_LIBOBJ invocations to module description.
53431         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
53432         gl_PREREQ_WCSRTOMBS invocations from here...
53433         * modules/wcsrtombs (configure.ac): ... to here.
53435 2011-05-22  Bruno Haible  <bruno@clisp.org>
53437         wcsrchr: Move AC_LIBOBJ invocations to module description.
53438         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
53439         here...
53440         * modules/wcsrchr (configure.ac): ... to here.
53442 2011-05-22  Bruno Haible  <bruno@clisp.org>
53444         wcspbrk: Move AC_LIBOBJ invocations to module description.
53445         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
53446         here...
53447         * modules/wcspbrk (configure.ac): ... to here.
53449 2011-05-22  Bruno Haible  <bruno@clisp.org>
53451         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
53452         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
53453         gl_PREREQ_WCSNRTOMBS invocations from here...
53454         * modules/wcsnrtombs (configure.ac): ... to here.
53456 2011-05-22  Bruno Haible  <bruno@clisp.org>
53458         wcsnlen: Move AC_LIBOBJ invocations to module description.
53459         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
53460         here...
53461         * modules/wcsnlen (configure.ac): ... to here.
53463 2011-05-22  Bruno Haible  <bruno@clisp.org>
53465         wcsncpy: Move AC_LIBOBJ invocations to module description.
53466         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
53467         here...
53468         * modules/wcsncpy (configure.ac): ... to here.
53470 2011-05-22  Bruno Haible  <bruno@clisp.org>
53472         wcsncmp: Move AC_LIBOBJ invocations to module description.
53473         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
53474         here...
53475         * modules/wcsncmp (configure.ac): ... to here.
53477 2011-05-22  Bruno Haible  <bruno@clisp.org>
53479         wcsncat: Move AC_LIBOBJ invocations to module description.
53480         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
53481         here...
53482         * modules/wcsncat (configure.ac): ... to here.
53484 2011-05-22  Bruno Haible  <bruno@clisp.org>
53486         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
53487         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
53488         from here...
53489         * modules/wcsncasecmp (configure.ac): ... to here.
53491 2011-05-22  Bruno Haible  <bruno@clisp.org>
53493         wcslen: Move AC_LIBOBJ invocations to module description.
53494         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
53495         * modules/wcslen (configure.ac): ... to here.
53497 2011-05-22  Bruno Haible  <bruno@clisp.org>
53499         wcsdup: Move AC_LIBOBJ invocations to module description.
53500         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
53501         * modules/wcsdup (configure.ac): ... to here.
53503 2011-05-22  Bruno Haible  <bruno@clisp.org>
53505         wcscspn: Move AC_LIBOBJ invocations to module description.
53506         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
53507         here...
53508         * modules/wcscspn (configure.ac): ... to here.
53510 2011-05-22  Bruno Haible  <bruno@clisp.org>
53512         wcscpy: Move AC_LIBOBJ invocations to module description.
53513         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
53514         * modules/wcscpy (configure.ac): ... to here.
53516 2011-05-22  Bruno Haible  <bruno@clisp.org>
53518         wcscoll: Move AC_LIBOBJ invocations to module description.
53519         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
53520         here...
53521         * modules/wcscoll (configure.ac): ... to here.
53523 2011-05-22  Bruno Haible  <bruno@clisp.org>
53525         wcscmp: Move AC_LIBOBJ invocations to module description.
53526         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
53527         * modules/wcscmp (configure.ac): ... to here.
53529 2011-05-22  Bruno Haible  <bruno@clisp.org>
53531         wcschr: Move AC_LIBOBJ invocations to module description.
53532         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
53533         * modules/wcschr (configure.ac): ... to here.
53535 2011-05-22  Bruno Haible  <bruno@clisp.org>
53537         wcscat: Move AC_LIBOBJ invocations to module description.
53538         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
53539         * modules/wcscat (configure.ac): ... to here.
53541 2011-05-22  Bruno Haible  <bruno@clisp.org>
53543         wcscasecmp: Move AC_LIBOBJ invocations to module description.
53544         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
53545         here...
53546         * modules/wcscasecmp (configure.ac): ... to here.
53548 2011-05-22  Bruno Haible  <bruno@clisp.org>
53550         wcrtomb: Move AC_LIBOBJ invocations to module description.
53551         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
53552         invocations from here...
53553         * modules/wcrtomb (configure.ac): ... to here.
53555 2011-05-22  Bruno Haible  <bruno@clisp.org>
53557         wcpncpy: Move AC_LIBOBJ invocations to module description.
53558         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
53559         here...
53560         * modules/wcpncpy (configure.ac): ... to here.
53562 2011-05-22  Bruno Haible  <bruno@clisp.org>
53564         wcpcpy: Move AC_LIBOBJ invocations to module description.
53565         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
53566         * modules/wcpcpy (configure.ac): ... to here.
53568 2011-05-22  Bruno Haible  <bruno@clisp.org>
53570         waitpid: Move AC_LIBOBJ invocations to module description.
53571         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
53572         invocation from here...
53573         * modules/waitpid (configure.ac): ... to here.
53575 2011-05-22  Bruno Haible  <bruno@clisp.org>
53577         utimensat: Move AC_LIBOBJ invocations to module description.
53578         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
53579         here...
53580         * modules/utimensat (configure.ac): ... to here.
53582 2011-05-22  Bruno Haible  <bruno@clisp.org>
53584         usleep: Move AC_LIBOBJ invocations to module description.
53585         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
53586         here...
53587         * modules/usleep (configure.ac): ... to here.
53589 2011-05-22  Bruno Haible  <bruno@clisp.org>
53591         unlockpt: Move AC_LIBOBJ invocations to module description.
53592         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
53593         gl_PREREQ_UNLOCKPT invocations from here...
53594         * modules/unlockpt (configure.ac): ... to here.
53596 2011-05-22  Bruno Haible  <bruno@clisp.org>
53598         unlink: Respect rules for use of AC_LIBOBJ.
53599         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
53600         * modules/unlink (configure.ac): ... to here.
53602 2011-05-22  Bruno Haible  <bruno@clisp.org>
53604         uname: Move AC_LIBOBJ invocations to module description.
53605         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
53606         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
53607         here...
53608         * modules/uname (configure.ac): ... to here.
53610 2011-05-22  Bruno Haible  <bruno@clisp.org>
53612         ttyname_r: Move AC_LIBOBJ invocations to module description.
53613         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
53614         gl_PREREQ_TTYNAME_R invocations from here...
53615         * modules/ttyname_r (configure.ac): ... to here.
53617 2011-05-22  Bruno Haible  <bruno@clisp.org>
53619         tsearch: Move AC_LIBOBJ invocations to module description.
53620         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
53621         invocations from here...
53622         * modules/tsearch (configure.ac): ... to here.
53624 2011-05-22  Bruno Haible  <bruno@clisp.org>
53626         towctrans: Move AC_LIBOBJ invocations to module description.
53627         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
53628         AC_LIBOBJ invocation from here...
53629         * modules/towctrans (configure.ac): ... to here.
53631 2011-05-22  Bruno Haible  <bruno@clisp.org>
53633         tmpfile: Move AC_LIBOBJ invocations to module description.
53634         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
53635         invocations from here...
53636         * modules/tmpfile (configure.ac): ... to here.
53638 2011-05-22  Bruno Haible  <bruno@clisp.org>
53640         times: Move AC_LIBOBJ invocations to module description.
53641         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
53642         * modules/times (configure.ac): ... to here.
53644 2011-05-22  Bruno Haible  <bruno@clisp.org>
53646         time_r: Move AC_LIBOBJ invocations to module description.
53647         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
53648         invocations from here...
53649         * modules/time_r (configure.ac): ... to here.
53651 2011-05-22  Bruno Haible  <bruno@clisp.org>
53653         timegm: Move AC_LIBOBJ invocations to module description.
53654         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
53655         invocations from here...
53656         * modules/timegm (configure.ac): ... to here.
53658 2011-05-22  Bruno Haible  <bruno@clisp.org>
53660         tcgetsid: Move AC_LIBOBJ invocations to module description.
53661         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
53662         and gl_PREREQ_TCGETSID invocations from here...
53663         * modules/tcgetsid (configure.ac): ... to here.
53664         (Depends-on): Update conditions.
53666 2011-05-22  Bruno Haible  <bruno@clisp.org>
53668         symlinkat: Move AC_LIBOBJ invocations to module description.
53669         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
53670         here...
53671         * modules/symlinkat (configure.ac): ... to here.
53673 2011-05-22  Bruno Haible  <bruno@clisp.org>
53675         symlink: Move AC_LIBOBJ invocations to module description.
53676         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
53677         here...
53678         * modules/symlink (configure.ac): ... to here.
53680 2011-05-22  Bruno Haible  <bruno@clisp.org>
53682         strverscmp: Move AC_LIBOBJ invocations to module description.
53683         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
53684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
53685         from here...
53686         * modules/strverscmp (configure.ac): ... to here.
53688 2011-05-22  Bruno Haible  <bruno@clisp.org>
53690         strtok_r: Move AC_LIBOBJ invocations to module description.
53691         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
53692         and gl_PREREQ_STRTOK_R invocations from here...
53693         * modules/strtok_r (configure.ac): ... to here.
53694         (Depends-on): Update conditions.
53696 2011-05-22  Bruno Haible  <bruno@clisp.org>
53698         strtoumax: Move AC_LIBOBJ invocations to module description.
53699         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
53700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
53701         from here...
53702         * modules/strtoumax (configure.ac): ... to here.
53704 2011-05-22  Bruno Haible  <bruno@clisp.org>
53706         strtoimax: Move AC_LIBOBJ invocations to module description.
53707         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
53708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
53709         from here...
53710         * modules/strtoimax (configure.ac): ... to here.
53712 2011-05-22  Bruno Haible  <bruno@clisp.org>
53714         strtoull: Move AC_LIBOBJ invocations to module description.
53715         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
53716         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
53717         from here...
53718         * modules/strtoull (configure.ac): ... to here.
53720 2011-05-22  Bruno Haible  <bruno@clisp.org>
53722         strtoll: Move AC_LIBOBJ invocations to module description.
53723         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
53724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
53725         here...
53726         * modules/strtoll (configure.ac): ... to here.
53728 2011-05-22  Bruno Haible  <bruno@clisp.org>
53730         strtoul: Move AC_LIBOBJ invocations to module description.
53731         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
53732         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53733         * modules/strtoul (configure.ac): ... to here.
53735 2011-05-22  Bruno Haible  <bruno@clisp.org>
53737         strtol: Move AC_LIBOBJ invocations to module description.
53738         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
53739         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53740         * modules/strtol (configure.ac): ... to here.
53742 2011-05-22  Bruno Haible  <bruno@clisp.org>
53744         strtod: Move AC_LIBOBJ invocations to module description.
53745         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
53746         invocations from here...
53747         * modules/strtod (configure.ac): ... to here.
53749 2011-05-22  Bruno Haible  <bruno@clisp.org>
53751         strstr*: Move AC_LIBOBJ invocations to module description.
53752         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
53753         invocations from here...
53754         * modules/strstr-simple (configure.ac): ... to here.
53755         * modules/strstr (configure.ac): ... and here.
53757 2011-05-22  Bruno Haible  <bruno@clisp.org>
53759         strsignal: Move AC_LIBOBJ invocations to module description.
53760         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
53761         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
53762         * modules/strsignal (configure.ac): ... to here.
53763         (Depends-on): Update conditions.
53765 2011-05-22  Bruno Haible  <bruno@clisp.org>
53767         strsep: Move AC_LIBOBJ invocations to module description.
53768         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
53769         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
53770         here...
53771         * modules/strsep (configure.ac): ... to here.
53773 2011-05-22  Bruno Haible  <bruno@clisp.org>
53775         strptime: Move AC_LIBOBJ invocations to module description.
53776         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
53777         gl_PREREQ_STRPTIME invocations from here...
53778         * modules/strptime (configure.ac): ... to here.
53780 2011-05-22  Bruno Haible  <bruno@clisp.org>
53782         strpbrk: Move AC_LIBOBJ invocations to module description.
53783         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
53784         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
53785         here...
53786         * modules/strpbrk (configure.ac): ... to here.
53788 2011-05-22  Bruno Haible  <bruno@clisp.org>
53790         strnlen: Move AC_LIBOBJ invocations to module description.
53791         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
53792         invocations from here...
53793         * modules/strnlen (configure.ac): ... to here.
53795 2011-05-22  Bruno Haible  <bruno@clisp.org>
53797         strndup: Move AC_LIBOBJ invocations to module description.
53798         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
53799         invocations from here...
53800         * modules/strndup (configure.ac): ... to here.
53801         (Depends-on): Update conditions.
53803 2011-05-22  Bruno Haible  <bruno@clisp.org>
53805         strncat: Move AC_LIBOBJ invocations to module description.
53806         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
53807         invocations from here...
53808         * modules/strncat (configure.ac): ... to here.
53810 2011-05-22  Bruno Haible  <bruno@clisp.org>
53812         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
53813         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
53814         invocations from here...
53815         * modules/strdup (configure.ac): ... to here.
53816         * modules/strdup-posix (configure.ac): ... and here.
53818 2011-05-22  Bruno Haible  <bruno@clisp.org>
53820         strcspn: Move AC_LIBOBJ invocations to module description.
53821         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
53822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
53823         here...
53824         * modules/strcspn (configure.ac): ... to here.
53826 2011-05-22  Bruno Haible  <bruno@clisp.org>
53828         strchrnul: Move AC_LIBOBJ invocations to module description.
53829         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
53830         gl_PREREQ_STRCHRNUL invocations from here...
53831         * modules/strchrnul (configure.ac): ... to here.
53833 2011-05-22  Bruno Haible  <bruno@clisp.org>
53835         strcasestr*: Move AC_LIBOBJ invocations to module description.
53836         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53837         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
53838         * modules/strcasestr-simple (configure.ac): ... to here.
53839         * modules/strcasestr (configure.ac): ... and here.
53841 2011-05-22  Bruno Haible  <bruno@clisp.org>
53843         strcase: Move AC_LIBOBJ invocations to module description.
53844         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
53845         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
53846         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
53847         gl_PREREQ_STRNCASECMP invocations from here...
53848         * modules/strcase (configure.ac): ... to here.
53850 2011-05-22  Bruno Haible  <bruno@clisp.org>
53852         stpncpy: Move AC_LIBOBJ invocations to module description.
53853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
53854         here...
53855         * modules/stpncpy (configure.ac): ... to here.
53857 2011-05-22  Bruno Haible  <bruno@clisp.org>
53859         stpcpy: Move AC_LIBOBJ invocations to module description.
53860         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
53861         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
53862         here...
53863         * modules/stpcpy (configure.ac): ... to here.
53865 2011-05-21  Bruno Haible  <bruno@clisp.org>
53867         stat: Move AC_LIBOBJ invocations to module description.
53868         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
53869         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
53870         here...
53871         * modules/stat (configure.ac): ... to here.
53873 2011-05-21  Bruno Haible  <bruno@clisp.org>
53875         sleep: Move AC_LIBOBJ invocations to module description.
53876         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
53877         * modules/sleep (configure.ac): ... to here.
53879 2011-05-21  Bruno Haible  <bruno@clisp.org>
53881         signbit: Move AC_LIBOBJ invocations to module description.
53882         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
53883         * modules/signbit (configure.ac): ... to here.
53885 2011-05-21  Bruno Haible  <bruno@clisp.org>
53887         sigprocmask: Move AC_LIBOBJ invocations to module description.
53888         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
53889         gl_PREREQ_SIGPROMASK invocations from here...
53890         * modules/sigprocmask (configure.ac): ... to here.
53892 2011-05-21  Bruno Haible  <bruno@clisp.org>
53894         sigaction: Move AC_LIBOBJ invocations to module description.
53895         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
53896         gl_PREREQ_SIGACTION invocations from here...
53897         * modules/sigaction (configure.ac): ... to here.
53899 2011-05-21  Bruno Haible  <bruno@clisp.org>
53901         sig2str: Move AC_LIBOBJ invocations to module description.
53902         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
53903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
53904         here...
53905         * modules/sig2str (configure.ac): ... to here.
53907 2011-05-21  Bruno Haible  <bruno@clisp.org>
53909         setlocale: Move AC_LIBOBJ invocations to module description.
53910         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
53911         gl_PREREQ_SETLOCALE invocations from here...
53912         * modules/setlocale (configure.ac): ... to here.
53914 2011-05-21  Bruno Haible  <bruno@clisp.org>
53916         unsetenv: Move AC_LIBOBJ invocations to module description.
53917         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
53918         and gl_PREREQ_UNSETENV invocations from here...
53919         * modules/unsetenv (configure.ac): ... to here.
53920         (Depends-on): Update.
53922 2011-05-21  Bruno Haible  <bruno@clisp.org>
53924         setenv: Move AC_LIBOBJ invocations to module description.
53925         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
53926         here...
53927         * modules/setenv (configure.ac): ... to here.
53929 2011-05-21  Bruno Haible  <bruno@clisp.org>
53931         selinux-h: Move AC_LIBOBJ invocations to module description.
53932         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
53933         AC_LIBOBJ invocation from here...
53934         * modules/selinux-h (configure.ac): ... to here.
53936 2011-05-21  Bruno Haible  <bruno@clisp.org>
53938         select: Respect rules for use of AC_LIBOBJ.
53939         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
53940         here...
53941         * modules/select (configure.ac): ... to here.
53943 2011-05-21  Bruno Haible  <bruno@clisp.org>
53945         scandir: Move AC_LIBOBJ invocations to module description.
53946         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
53947         invocations from here...
53948         * modules/scandir (configure.ac): ... to here.
53950 2011-05-21  Bruno Haible  <bruno@clisp.org>
53952         rpmatch: Move AC_LIBOBJ invocations to module description.
53953         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
53954         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
53955         here...
53956         * modules/rpmatch (configure.ac): ... to here.
53958 2011-05-21  Bruno Haible  <bruno@clisp.org>
53960         rmdir: Respect rules for use of AC_LIBOBJ.
53961         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
53962         * modules/rmdir (configure.ac): ... to here.
53964 2011-05-21  Bruno Haible  <bruno@clisp.org>
53966         renameat: Move AC_LIBOBJ invocations to module description.
53967         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
53968         here...
53969         * modules/renameat (configure.ac): ... to here.
53971 2011-05-21  Bruno Haible  <bruno@clisp.org>
53973         rename: Respect rules for use of AC_LIBOBJ.
53974         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
53975         here...
53976         * modules/rename (configure.ac): ... to here.
53978 2011-05-21  Bruno Haible  <bruno@clisp.org>
53980         remove: Move AC_LIBOBJ invocations to module description.
53981         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
53982         here...
53983         * modules/remove (configure.ac): ... to here.
53985 2011-05-21  Bruno Haible  <bruno@clisp.org>
53987         relocatable-lib: Move AC_LIBOBJ invocations to module description.
53988         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
53989         macro.
53990         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
53991         * modules/relocatable-lib (configure.ac): ... to here.
53992         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53993         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
53995 2011-05-21  Bruno Haible  <bruno@clisp.org>
53997         relocatable-prog: Move AC_LIBOBJ invocations to module description.
53998         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
53999         here...
54000         * modules/relocatable-prog (configure.ac): ... to here.
54002 2011-05-21  Bruno Haible  <bruno@clisp.org>
54004         regex: Move AC_LIBOBJ invocations to module description.
54005         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
54006         invocations from here...
54007         * modules/regex (configure.ac): ... to here.
54009 2011-05-21  Bruno Haible  <bruno@clisp.org>
54011         realloc-*: Move AC_LIBOBJ invocations to module description.
54012         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
54013         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
54014         AC_LIBOBJ invocations from here...
54015         * modules/realloc-gnu (configure.ac): ... to here.
54016         * modules/realloc-posix (configure.ac): ... and here.
54018 2011-05-21  Bruno Haible  <bruno@clisp.org>
54020         readutmp: Move AC_LIBOBJ invocations to module description.
54021         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
54022         * modules/readutmp (configure.ac): ... to here.
54024 2011-05-21  Bruno Haible  <bruno@clisp.org>
54026         readlinkat: Move AC_LIBOBJ invocations to module description.
54027         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
54028         here...
54029         * modules/readlinkat (configure.ac): ... to here.
54031 2011-05-21  Bruno Haible  <bruno@clisp.org>
54033         readlink: Move AC_LIBOBJ invocations to module description.
54034         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
54035         gl_PREREQ_READLINK invocations from here...
54036         * modules/readlink (configure.ac): ... to here.
54038 2011-05-21  Bruno Haible  <bruno@clisp.org>
54040         readline: Move AC_LIBOBJ invocations to module description.
54041         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
54042         gl_PREREQ_READLINE invocations from here...
54043         * modules/readline (configure.ac): ... to here.
54045 2011-05-21  Bruno Haible  <bruno@clisp.org>
54047         read: Move AC_LIBOBJ invocations to module description.
54048         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
54049         * modules/read (configure.ac): ... to here.
54051 2011-05-21  Bruno Haible  <bruno@clisp.org>
54053         rawmemchr: Move AC_LIBOBJ invocations to module description.
54054         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
54055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
54056         from here...
54057         * modules/rawmemchr (configure.ac): ... to here.
54059 2011-05-21  Bruno Haible  <bruno@clisp.org>
54061         random_r: Move AC_LIBOBJ invocations to module description.
54062         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
54063         gl_PREREQ_RANDOM_R invocations from here...
54064         * modules/random_r (configure.ac): ... to here.
54066 2011-05-21  Bruno Haible  <bruno@clisp.org>
54068         pwrite: Move AC_LIBOBJ invocations to module description.
54069         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
54070         * modules/pwrite (configure.ac): ... to here.
54072 2011-05-21  Bruno Haible  <bruno@clisp.org>
54074         putenv: Move AC_LIBOBJ invocations to module description.
54075         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
54076         * modules/putenv (configure.ac): ... to here.
54078 2011-05-21  Bruno Haible  <bruno@clisp.org>
54080         login_tty: Move AC_LIBOBJ invocations to module description.
54081         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
54082         * modules/login_tty (configure.ac): ... to here.
54084 2011-05-21  Bruno Haible  <bruno@clisp.org>
54086         openpty: Move AC_LIBOBJ invocations to module description.
54087         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
54088         * modules/openpty (configure.ac): ... to here.
54090 2011-05-21  Bruno Haible  <bruno@clisp.org>
54092         forkpty: Move AC_LIBOBJ invocations to module description.
54093         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
54094         * modules/forkpty (configure.ac): ... to here.
54096 2011-05-21  Bruno Haible  <bruno@clisp.org>
54098         ptsname: Move AC_LIBOBJ invocations to module description.
54099         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
54100         invocations from here...
54101         * modules/ptsname (configure.ac): ... to here.
54103 2011-05-21  Bruno Haible  <bruno@clisp.org>
54105         pread: Move AC_LIBOBJ invocations to module description.
54106         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
54107         * modules/pread (configure.ac): ... to here.
54109 2011-05-21  Bruno Haible  <bruno@clisp.org>
54111         posix_spawn*: Move AC_LIBOBJ invocations to module description.
54112         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
54113         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
54114         * modules/posix_spawn (configure.ac): ... to here.
54115         * modules/posix_spawnp (configure.ac): ... and here.
54117 2011-05-21  Bruno Haible  <bruno@clisp.org>
54119         popen: Move AC_LIBOBJ invocations to module description.
54120         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
54121         invocations from here...
54122         * modules/popen (configure.ac): ... to here.
54124 2011-05-21  Bruno Haible  <bruno@clisp.org>
54126         poll: Move AC_LIBOBJ invocations to module description.
54127         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
54128         invocations from here...
54129         * modules/poll (configure.ac): ... to here.
54131 2011-05-21  Bruno Haible  <bruno@clisp.org>
54133         pipe-posix: Move AC_LIBOBJ invocations to module description.
54134         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
54135         * modules/pipe-posix (configure.ac): ... to here.
54137 2011-05-21  Bruno Haible  <bruno@clisp.org>
54139         openat: Respect rules for use of AC_LIBOBJ.
54140         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
54141         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
54142         * modules/openat (configure.ac): ... to here.
54144 2011-05-21  Bruno Haible  <bruno@clisp.org>
54146         obstack-printf*: Move AC_LIBOBJ invocations to module description.
54147         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
54148         invocation from here...
54149         * modules/obstack-printf (configure.ac): ... to here.
54150         * modules/obstack-printf-posix (configure.ac): ... and here.
54152 2011-05-21  Bruno Haible  <bruno@clisp.org>
54154         nl_langinfo: Move AC_LIBOBJ invocations to module description.
54155         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
54156         from here...
54157         * modules/nl_langinfo (configure.ac): ... to here.
54159 2011-05-21  Bruno Haible  <bruno@clisp.org>
54161         nanosleep: Move AC_LIBOBJ invocations to module description.
54162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
54163         gl_PREREQ_NANOSLEEP invocations from here...
54164         * modules/nanosleep (configure.ac): ... to here.
54166 2011-05-21  Bruno Haible  <bruno@clisp.org>
54168         mountlist: Move AC_LIBOBJ invocations to module description.
54169         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
54170         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
54171         * modules/mountlist (configure.ac): ... to here.
54173 2011-05-21  Bruno Haible  <bruno@clisp.org>
54175         mktime: Respect rules for use of AC_LIBOBJ.
54176         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
54177         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
54178         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
54179         (gl_FUNC_MKTIME_INTERNAL): ... and here...
54180         * modules/mktime (configure.ac): ... to here.
54181         * modules/mktime-internal (configure.ac): ... and here.
54182         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
54184 2011-05-21  Bruno Haible  <bruno@clisp.org>
54186         mkstemps: Move AC_LIBOBJ invocations to module description.
54187         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
54188         here...
54189         * modules/mkstemps (configure.ac): ... to here.
54191 2011-05-21  Bruno Haible  <bruno@clisp.org>
54193         mkstemp: Move AC_LIBOBJ invocations to module description.
54194         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
54195         gl_PREREQ_MKSTEMP invocations from here...
54196         * modules/mkstemp (configure.ac): ... to here.
54198 2011-05-21  Bruno Haible  <bruno@clisp.org>
54200         mkostemps: Move AC_LIBOBJ invocations to module description.
54201         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
54202         here...
54203         * modules/mkostemps (configure.ac): ... to here.
54205 2011-05-21  Bruno Haible  <bruno@clisp.org>
54207         mkostemp: Move AC_LIBOBJ invocations to module description.
54208         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
54209         gl_PREREQ_MKOSTEMP invocations from here...
54210         * modules/mkostemp (configure.ac): ... to here.
54212 2011-05-21  Bruno Haible  <bruno@clisp.org>
54214         mknod: Move AC_LIBOBJ invocations to module description.
54215         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
54216         * modules/mknod (configure.ac): ... to here.
54218 2011-05-21  Bruno Haible  <bruno@clisp.org>
54220         mkfifoat: Move AC_LIBOBJ invocations to module description.
54221         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
54222         here...
54223         * modules/mkfifoat (configure.ac): ... to here.
54225 2011-05-21  Bruno Haible  <bruno@clisp.org>
54227         mkfifo: Respect rules for use of AC_LIBOBJ.
54228         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
54229         here...
54230         * modules/mkfifo (configure.ac): ... to here.
54232 2011-05-21  Bruno Haible  <bruno@clisp.org>
54234         mkdtemp: Move AC_LIBOBJ invocations to module description.
54235         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
54236         invocations from here...
54237         * modules/mkdtemp (configure.ac): ... to here.
54239 2011-05-21  Bruno Haible  <bruno@clisp.org>
54241         mkdir: Move AC_LIBOBJ invocations to module description.
54242         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
54243         * modules/mkdir (configure.ac): ... to here.
54245 2011-05-21  Bruno Haible  <bruno@clisp.org>
54247         memset: Move AC_LIBOBJ invocations to module description.
54248         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
54249         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
54250         here...
54251         * modules/memset (configure.ac): ... to here.
54253 2011-05-21  Bruno Haible  <bruno@clisp.org>
54255         memrchr: Move AC_LIBOBJ invocations to module description.
54256         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
54257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
54258         here...
54259         * modules/memrchr (configure.ac): ... to here.
54261 2011-05-21  Bruno Haible  <bruno@clisp.org>
54263         mempcpy: Move AC_LIBOBJ invocations to module description.
54264         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
54265         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
54266         here...
54267         * modules/mempcpy (configure.ac): ... to here.
54269 2011-05-21  Bruno Haible  <bruno@clisp.org>
54271         memmove: Move AC_LIBOBJ invocations to module description.
54272         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
54273         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
54274         here...
54275         * modules/memmove (configure.ac): ... to here.
54277 2011-05-21  Bruno Haible  <bruno@clisp.org>
54279         memmem*: Move AC_LIBOBJ invocations to module description.
54280         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
54281         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
54282         here...
54283         (gl_FUNC_MEMMEM): ... and here...
54284         * modules/memmem-simple (configure.ac): ... to here.
54285         * modules/memmem (configure.ac): ... and here.
54287 2011-05-21  Bruno Haible  <bruno@clisp.org>
54289         memcpy: Move AC_LIBOBJ invocations to module description.
54290         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
54291         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
54292         here...
54293         * modules/memcpy (configure.ac): ... to here.
54295 2011-05-21  Bruno Haible  <bruno@clisp.org>
54297         memcmp: Simplify autoconf macro.
54298         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
54299         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
54300         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
54302 2011-05-21  Bruno Haible  <bruno@clisp.org>
54304         memcmp: Move AC_LIBOBJ invocations to module description.
54305         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
54306         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
54307         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
54308         * modules/memcmp (configure.ac): ... to here.
54309         (Depends-on): Update conditions.
54311 2011-05-21  Bruno Haible  <bruno@clisp.org>
54313         memchr: Respect rules for use of AC_LIBOBJ.
54314         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
54315         invocations from here...
54316         * modules/memchr (configure.ac): ... to here.
54318 2011-05-21  Bruno Haible  <bruno@clisp.org>
54320         mbtowc: Move AC_LIBOBJ invocations to module description.
54321         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
54322         invocations from here...
54323         * modules/mbtowc (configure.ac): ... to here.
54325 2011-05-21  Bruno Haible  <bruno@clisp.org>
54327         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
54328         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
54329         gl_PREREQ_MBSRTOWCS invocations from here...
54330         * modules/mbsrtowcs (configure.ac): ... to here.
54332 2011-05-21  Bruno Haible  <bruno@clisp.org>
54334         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
54335         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
54336         gl_PREREQ_MBSNRTOWCS invocations from here...
54337         * modules/mbsnrtowcs (configure.ac): ... to here.
54339 2011-05-21  Bruno Haible  <bruno@clisp.org>
54341         mbsinit: Move AC_LIBOBJ invocations to module description.
54342         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
54343         invocations from here...
54344         * modules/mbsinit (configure.ac): ... to here.
54346 2011-05-21  Bruno Haible  <bruno@clisp.org>
54348         mbrlen: Move AC_LIBOBJ invocations to module description.
54349         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
54350         invocations from here...
54351         * modules/mbrlen (configure.ac): ... to here.
54353 2011-05-21  Bruno Haible  <bruno@clisp.org>
54355         mbrtowc: Respect rules for use of AC_LIBOBJ.
54356         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
54357         invocations from here...
54358         * modules/mbrtowc (configure.ac): ... to here.
54360 2011-05-21  Bruno Haible  <bruno@clisp.org>
54362         malloc-*: Move AC_LIBOBJ invocations to module description.
54363         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
54364         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
54365         AC_LIBOBJ invocations from here...
54366         * modules/malloc-gnu (configure.ac): ... to here.
54367         * modules/malloc-posix (configure.ac): ... and here.
54369 2011-05-21  Bruno Haible  <bruno@clisp.org>
54371         lstat, openat: Respect rules for use of AC_LIBOBJ.
54372         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
54373         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
54374         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
54375         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
54376         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
54377         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
54378         here.
54379         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
54381 2011-05-21  Bruno Haible  <bruno@clisp.org>
54383         lseek: Move AC_LIBOBJ invocations to module description.
54384         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
54385         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54386         * modules/lseek (configure.ac): ... to here.
54388 2011-05-21  Bruno Haible  <bruno@clisp.org>
54390         linkat: Move AC_LIBOBJ invocations to module description.
54391         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
54392         here...
54393         * modules/linkat (configure.ac): ... to here.
54395 2011-05-21  Bruno Haible  <bruno@clisp.org>
54397         link: Respect rules for use of AC_LIBOBJ.
54398         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
54399         * modules/link (configure.ac): ... to here.
54401 2011-05-21  Bruno Haible  <bruno@clisp.org>
54403         lchown: Move AC_LIBOBJ invocations to module description.
54404         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54405         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
54406         * modules/lchown (configure.ac): ... to here.
54408 2011-05-21  Bruno Haible  <bruno@clisp.org>
54410         iswctype: Move AC_LIBOBJ invocations to module description.
54411         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
54412         here...
54413         * modules/iswctype (configure.ac): ... to here.
54415 2011-05-21  Bruno Haible  <bruno@clisp.org>
54417         iswblank: Move AC_LIBOBJ invocations to module description.
54418         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
54419         here...
54420         * modules/iswblank (configure.ac): ... to here.
54422 2011-05-21  Bruno Haible  <bruno@clisp.org>
54424         atanl: Move AC_LIBOBJ invocations to module description.
54425         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
54426         * modules/atanl (configure.ac): ... to here.
54428 2011-05-21  Bruno Haible  <bruno@clisp.org>
54430         acosl: Move AC_LIBOBJ invocations to module description.
54431         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
54432         * modules/acosl (configure.ac): ... to here.
54434 2011-05-21  Bruno Haible  <bruno@clisp.org>
54436         asinl: Respect rules for use of AC_LIBOBJ.
54437         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
54438         * modules/asinl (configure.ac): ... to here.
54440 2011-05-21  Bruno Haible  <bruno@clisp.org>
54442         tanl: Move AC_LIBOBJ invocations to module description.
54443         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
54444         * modules/tanl (configure.ac): ... to here.
54446 2011-05-21  Bruno Haible  <bruno@clisp.org>
54448         cosl: Move AC_LIBOBJ invocations to module description.
54449         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
54450         * modules/cosl (configure.ac): ... to here.
54452 2011-05-21  Bruno Haible  <bruno@clisp.org>
54454         sinl: Move AC_LIBOBJ invocations to module description.
54455         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
54456         * modules/sinl (configure.ac): ... to here.
54458 2011-05-21  Bruno Haible  <bruno@clisp.org>
54460         logl: Move AC_LIBOBJ invocations to module description.
54461         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
54462         * modules/logl (configure.ac): ... to here.
54464 2011-05-21  Bruno Haible  <bruno@clisp.org>
54466         expl: Move AC_LIBOBJ invocations to module description.
54467         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
54468         * modules/expl (configure.ac): ... to here.
54470 2011-05-21  Bruno Haible  <bruno@clisp.org>
54472         roundl: Move AC_LIBOBJ invocations to module description.
54473         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
54474         * modules/roundl (configure.ac): ... to here.
54476 2011-05-21  Bruno Haible  <bruno@clisp.org>
54478         round: Move AC_LIBOBJ invocations to module description.
54479         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
54480         * modules/round (configure.ac): ... to here.
54482 2011-05-21  Bruno Haible  <bruno@clisp.org>
54484         roundf: Move AC_LIBOBJ invocations to module description.
54485         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
54486         * modules/roundf (configure.ac): ... to here.
54488 2011-05-21  Bruno Haible  <bruno@clisp.org>
54490         truncl: Move AC_LIBOBJ invocations to module description.
54491         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
54492         * modules/truncl (configure.ac): ... to here.
54494 2011-05-21  Bruno Haible  <bruno@clisp.org>
54496         trunc: Move AC_LIBOBJ invocations to module description.
54497         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
54498         * modules/trunc (configure.ac): ... to here.
54500 2011-05-21  Bruno Haible  <bruno@clisp.org>
54502         truncf: Move AC_LIBOBJ invocations to module description.
54503         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
54504         * modules/truncf (configure.ac): ... to here.
54506 2011-05-21  Bruno Haible  <bruno@clisp.org>
54508         ceill: Move AC_LIBOBJ invocations to module description.
54509         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
54510         * modules/ceill (configure.ac): ... to here.
54512 2011-05-21  Bruno Haible  <bruno@clisp.org>
54514         ceil: Move AC_LIBOBJ invocations to module description.
54515         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
54516         * modules/ceil (configure.ac): ... to here.
54518 2011-05-21  Bruno Haible  <bruno@clisp.org>
54520         ceilf: Move AC_LIBOBJ invocations to module description.
54521         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
54522         * modules/ceilf (configure.ac): ... to here.
54524 2011-05-21  Bruno Haible  <bruno@clisp.org>
54526         floorl: Respect rules for use of AC_LIBOBJ.
54527         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
54528         * modules/floorl (configure.ac): ... to here.
54530 2011-05-21  Bruno Haible  <bruno@clisp.org>
54532         floor: Respect rules for use of AC_LIBOBJ.
54533         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
54534         * modules/floor (configure.ac): ... to here.
54536 2011-05-21  Bruno Haible  <bruno@clisp.org>
54538         floorf: Move AC_LIBOBJ invocations to module description.
54539         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
54540         * modules/floorf (configure.ac): ... to here.
54542 2011-05-20  Bruno Haible  <bruno@clisp.org>
54544         sqrtl: Respect rules for use of AC_LIBOBJ.
54545         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
54546         * modules/sqrtl (configure.ac): ... to here.
54548 2011-05-20  Bruno Haible  <bruno@clisp.org>
54550         ldexpl: Respect rules for use of AC_LIBOBJ.
54551         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
54552         * modules/ldexpl (configure.ac): ... to here.
54554 2011-05-20  Bruno Haible  <bruno@clisp.org>
54556         frexpl*: Respect rules for use of AC_LIBOBJ.
54557         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
54558         invocation from here...
54559         * modules/frexpl (configure.ac): ... to here.
54560         * modules/frexpl-nolibm (configure.ac): ... and here.
54562 2011-05-20  Bruno Haible  <bruno@clisp.org>
54564         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
54565         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
54566         invocation from here...
54567         * modules/frexp (configure.ac): ... to here.
54568         * modules/frexp-nolibm (configure.ac): ... and here.
54570 2011-05-20  Bruno Haible  <bruno@clisp.org>
54572         isnan: Respect rules for use of AC_LIBOBJ.
54573         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
54574         invocations here.
54575         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
54576         REPLACE_ISNAN.
54577         * modules/isnand (configure.ac): Likewise.
54578         * modules/isnanl (configure.ac): Likewise.
54580 2011-05-20  Bruno Haible  <bruno@clisp.org>
54582         isnanl*: Respect rules for use of AC_LIBOBJ.
54583         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
54584         invocation from here...
54585         * modules/isnanl (configure.ac): ... to here.
54586         * modules/isnanl-nolibm (configure.ac): ... and here.
54588 2011-05-20  Bruno Haible  <bruno@clisp.org>
54590         isnand*: Move AC_LIBOBJ invocations to module description.
54591         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
54592         invocation from here...
54593         * modules/isnand (configure.ac): ... to here.
54594         * modules/isnand-nolibm (configure.ac): ... and here.
54596 2011-05-20  Bruno Haible  <bruno@clisp.org>
54598         isnanf*: Move AC_LIBOBJ invocations to module description.
54599         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
54600         invocation from here...
54601         * modules/isnanf (configure.ac): ... to here.
54602         * modules/isnanf-nolibm (configure.ac): ... and here.
54604 2011-05-20  Bruno Haible  <bruno@clisp.org>
54606         isnan*: Separate the AC_LIBOBJ invocations.
54607         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
54608         AC_LIBOBJ invocation.
54609         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
54610         here.
54611         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
54612         AC_LIBOBJ invocation.
54613         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
54614         here.
54615         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
54616         AC_LIBOBJ invocation.
54617         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
54618         here.
54619         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
54621 2011-05-08  Bruno Haible  <bruno@clisp.org>
54623         isinf: Move AC_LIBOBJ invocations to module description.
54624         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
54625         * modules/isinf (configure.ac): ... to here.
54627 2011-05-08  Bruno Haible  <bruno@clisp.org>
54629         isfinite: Move AC_LIBOBJ invocations to module description.
54630         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
54631         * modules/isfinite (configure.ac): ... to here.
54633 2011-05-08  Bruno Haible  <bruno@clisp.org>
54635         isblank: Move AC_LIBOBJ invocations to module description.
54636         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
54637         here...
54638         * modules/isblank (configure.ac): ... to here.
54640 2011-05-08  Bruno Haible  <bruno@clisp.org>
54642         isapipe: Move AC_LIBOBJ invocations to module description.
54643         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
54644         gl_PREREQ_ISAPIPE invocations from here...
54645         * modules/isapipe (configure.ac): ... to here.
54646         (Depends-on): Update condition.
54648 2011-05-08  Bruno Haible  <bruno@clisp.org>
54650         ioctl: Move AC_LIBOBJ invocations to module description.
54651         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
54652         invocations from here...
54653         * modules/ioctl (configure.ac): ... to here.
54654         (Depends-on): Update condition.
54656 2011-05-08  Bruno Haible  <bruno@clisp.org>
54658         imaxdiv: Move AC_LIBOBJ invocations to module description.
54659         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
54660         invocations from here...
54661         * modules/imaxdiv (configure.ac): ... to here.
54663 2011-05-08  Bruno Haible  <bruno@clisp.org>
54665         imaxabs: Move AC_LIBOBJ invocations to module description.
54666         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
54667         invocations from here...
54668         * modules/imaxabs (configure.ac): ... to here.
54670 2011-05-08  Bruno Haible  <bruno@clisp.org>
54672         getaddrinfo: Move AC_LIBOBJ invocations to module description.
54673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
54674         AC_LIBOBJ invocations from here...
54675         * modules/getaddrinfo (configure.ac): ... to here.
54676         (Depends-on): Add conditions.
54678 2011-05-08  Bruno Haible  <bruno@clisp.org>
54680         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54681         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
54682         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54683         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
54684         (gl_PREREQ_INET_PTON): ... from here.
54685         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
54686         gl_PREREQ_INET_PTON here.
54687         (Depends-on): Update condition.
54689 2011-05-08  Bruno Haible  <bruno@clisp.org>
54691         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54692         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
54693         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54694         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
54695         (gl_PREREQ_INET_NTOP): ... from here.
54696         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
54697         gl_PREREQ_INET_NTOP here.
54698         (Depends-on): Update condition.
54700 2011-05-08  Bruno Haible  <bruno@clisp.org>
54702         iconv_open: Move AC_LIBOBJ invocations to module description.
54703         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
54704         AC_LIBOBJ invocations from here...
54705         * modules/iconv_open (configure.ac): ... to here.
54707 2011-05-08  Bruno Haible  <bruno@clisp.org>
54709         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
54710         If module 'iconv_open' is among the main modules and module
54711         'iconv_open-utf' is among the tests dependencies, then
54712         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
54713         return the special iconv_t values. Therefore iconv() and iconv_close()
54714         must support these special iconv_t values, already in lib, not only in
54715         tests.
54716         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
54717         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
54718         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
54719         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
54720         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
54721         (Depends-on): Add the dependencies of iconv_open-utf.
54722         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
54723         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
54724         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
54726 2011-05-08  Bruno Haible  <bruno@clisp.org>
54728         group-member: Move AC_LIBOBJ invocations to module description.
54729         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
54730         gl_PREREQ_GROUP_MEMBER invocations from here...
54731         * modules/group-member (configure.ac): ... to here.
54733 2011-05-08  Bruno Haible  <bruno@clisp.org>
54735         grantpt: Move AC_LIBOBJ invocations to module description.
54736         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
54737         invocations from here...
54738         * modules/grantpt (configure.ac): ... to here.
54740 2011-05-08  Bruno Haible  <bruno@clisp.org>
54742         glob: Move AC_LIBOBJ invocations to module description.
54743         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
54744         from here...
54745         * modules/glob (configure.ac): ... to here.
54747 2011-05-08  Bruno Haible  <bruno@clisp.org>
54749         getusershell: Move AC_LIBOBJ invocations to module description.
54750         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
54751         Move AC_LIBOBJ invocation from here...
54752         * modules/getusershell (configure.ac): ... to here.
54753         (Depends-on): Update condition.
54755 2011-05-08  Bruno Haible  <bruno@clisp.org>
54757         gettimeofday: Move AC_LIBOBJ invocations to module description.
54758         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54759         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
54760         gl_PREREQ_GETTIMEOFDAY invocations from here...
54761         * modules/gettimeofday (configure.ac): ... to here.
54763 2011-05-08  Bruno Haible  <bruno@clisp.org>
54765         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
54766         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
54767         just gl_FUNC_TZSET.
54768         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
54769         (gl_FUNC_TZSET_CLOBBER): Remove actions.
54770         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
54771         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
54773 2011-05-08  Bruno Haible  <bruno@clisp.org>
54775         getsubopt: Move AC_LIBOBJ invocations to module description.
54776         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
54777         gl_PREREQ_GETSUBOPT invocations from here...
54778         * modules/getsubopt (configure.ac): ... to here.
54780 2011-05-08  Bruno Haible  <bruno@clisp.org>
54782         getpass-gnu: Move AC_LIBOBJ invocations to module description.
54783         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
54784         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
54785         * modules/getpass-gnu (configure.ac): ... to here.
54787 2011-05-08  Bruno Haible  <bruno@clisp.org>
54789         getpass: Move AC_LIBOBJ invocations to module description.
54790         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
54791         gl_PREREQ_GETPASS invocations from here...
54792         * modules/getpass (configure.ac): ... to here.
54794 2011-05-08  Bruno Haible  <bruno@clisp.org>
54796         getpagesize: Move AC_LIBOBJ invocations to module description.
54797         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
54798         from here...
54799         * modules/getpagesize (configure.ac): ... to here.
54801 2011-05-08  Bruno Haible  <bruno@clisp.org>
54803         getopt: Move AC_LIBOBJ invocations to module description.
54804         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
54805         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
54806         invocations from here...
54807         * modules/getopt-gnu (configure.ac): ... to here.
54808         * modules/getopt-posix (configure.ac): ... and here.
54809         (Depends-on): Update condition.
54811 2011-05-08  Bruno Haible  <bruno@clisp.org>
54813         getopt, argp: Respect rules for use of AC_LIBOBJ.
54814         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
54815         (gl_REPLACE_GETOPT_ALWAYS): New macro.
54816         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
54817         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
54819 2011-05-08  Bruno Haible  <bruno@clisp.org>
54821         getlogin_r: Move AC_LIBOBJ invocations to module description.
54822         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
54823         gl_PREREQ_GETLOGIN_R invocations from here...
54824         * modules/getlogin_r (configure.ac): ... to here.
54826 2011-05-08  Bruno Haible  <bruno@clisp.org>
54828         getlogin: Move AC_LIBOBJ invocations to module description.
54829         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
54830         here...
54831         * modules/getlogin (configure.ac): ... to here.
54833 2011-05-08  Bruno Haible  <bruno@clisp.org>
54835         getloadavg: Move AC_LIBOBJ invocations to module description.
54836         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
54837         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
54838         * modules/getloadavg (configure.ac): ... to here.
54840 2011-05-08  Bruno Haible  <bruno@clisp.org>
54842         gethrxtime: Move AC_LIBOBJ invocations to module description.
54843         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
54844         LIB_GETHRXTIME from here...
54845         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
54846         invocations from here...
54847         * modules/gethrxtime (configure.ac): ... to here.
54849 2011-05-08  Bruno Haible  <bruno@clisp.org>
54851         gethostname: Move AC_LIBOBJ invocations to module description.
54852         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
54853         gl_PREREQ_GETHOSTNAME invocations from here...
54854         * modules/gethostname (configure.ac): ... to here.
54856 2011-05-08  Bruno Haible  <bruno@clisp.org>
54858         getgroups: Move AC_LIBOBJ invocations to module description.
54859         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
54860         here...
54861         * modules/getgroups (configure.ac): ... to here.
54863 2011-05-08  Bruno Haible  <bruno@clisp.org>
54865         getdtablesize: Move AC_LIBOBJ invocations to module description.
54866         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
54867         invocation from here...
54868         * modules/getdtablesize (configure.ac): ... to here.
54870 2011-05-08  Bruno Haible  <bruno@clisp.org>
54872         getdomainname: Move AC_LIBOBJ invocations to module description.
54873         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
54874         gl_PREREQ_GETDOMAINNAME invocations from here...
54875         * modules/getdomainname (configure.ac): ... to here.
54877 2011-05-08  Bruno Haible  <bruno@clisp.org>
54879         getline: Move AC_LIBOBJ invocations to module description.
54880         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
54881         invocations from here...
54882         * modules/getline (configure.ac): ... to here.
54884 2011-05-08  Bruno Haible  <bruno@clisp.org>
54886         getline: Simplify.
54887         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
54888         It's already handled through the module dependency.
54890 2011-05-08  Bruno Haible  <bruno@clisp.org>
54892         getdelim: Move AC_LIBOBJ invocations to module description.
54893         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
54894         and gl_PREREQ_GETDELIM invocations from here...
54895         * modules/getdelim (configure.ac): ... to here.
54896         (Depends-on): Fix condition.
54898 2011-05-08  Bruno Haible  <bruno@clisp.org>
54900         getcwd: Move AC_LIBOBJ invocations to module description.
54901         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
54902         invocations from here...
54903         * modules/getcwd (configure.ac): ... to here.
54905 2011-05-08  Bruno Haible  <bruno@clisp.org>
54907         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
54908         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
54909         here...
54910         * modules/getcwd-lgpl (configure.ac): ... to here.
54912 2011-05-07  Bruno Haible  <bruno@clisp.org>
54914         crypto/gc: Move AC_LIBOBJ invocations to module description.
54915         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
54916         * modules/crypto/gc (configure.ac): ... to here.
54918 2011-05-07  Bruno Haible  <bruno@clisp.org>
54920         fwriting: Move AC_LIBOBJ invocations to module description.
54921         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
54922         here...
54923         * modules/fwriting (configure.ac): ... to here.
54925 2011-05-07  Bruno Haible  <bruno@clisp.org>
54927         fwritable: Move AC_LIBOBJ invocations to module description.
54928         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
54929         here...
54930         * modules/fwritable (configure.ac): ... to here.
54932 2011-05-07  Bruno Haible  <bruno@clisp.org>
54934         futimens: Move AC_LIBOBJ invocations to module description.
54935         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
54936         here...
54937         * modules/futimens (configure.ac): ... to here.
54939 2011-05-07  Bruno Haible  <bruno@clisp.org>
54941         ftruncate: Move AC_LIBOBJ invocations to module description.
54942         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
54943         gl_PREREQ_FTRUNCATE invocations from here...
54944         * modules/ftruncate (configure.ac): ... to here.
54946 2011-05-07  Bruno Haible  <bruno@clisp.org>
54948         fsync: Move AC_LIBOBJ invocations to module description.
54949         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
54950         invocations from here...
54951         * modules/fsync (configure.ac): ... to here.
54953 2011-05-07  Bruno Haible  <bruno@clisp.org>
54955         fsusage: Move AC_LIBOBJ invocations to module description.
54956         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
54957         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
54958         * modules/fsusage (configure.ac): ... to here.
54960 2011-05-07  Bruno Haible  <bruno@clisp.org>
54962         freopen: Move AC_LIBOBJ invocations to module description.
54963         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
54964         invocations from here...
54965         * modules/freopen (configure.ac): ... to here.
54967 2011-05-07  Bruno Haible  <bruno@clisp.org>
54969         free: Move AC_LIBOBJ invocations to module description.
54970         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54971         invocations from here...
54972         * modules/free (configure.ac): ... to here.
54974 2011-05-07  Bruno Haible  <bruno@clisp.org>
54976         freadable: Move AC_LIBOBJ invocations to module description.
54977         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
54978         here...
54979         * modules/freadable (configure.ac): ... to here.
54981 2011-05-07  Bruno Haible  <bruno@clisp.org>
54983         fpurge: Move AC_LIBOBJ invocations to module description.
54984         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
54985         invocations from here...
54986         * modules/fpurge (configure.ac): ... to here.
54988 2011-05-07  Bruno Haible  <bruno@clisp.org>
54990         fpending: Move AC_LIBOBJ invocations to module description.
54991         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
54992         gl_FUNC_FPENDING.
54993         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
54994         invocations from here...
54995         * modules/fpending (configure.ac): ... to here.
54997 2011-05-07  Bruno Haible  <bruno@clisp.org>
54999         fopen: Move AC_LIBOBJ invocations to module description.
55000         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
55001         invocations from here...
55002         * modules/fopen (configure.ac): ... to here.
55004 2011-05-07  Bruno Haible  <bruno@clisp.org>
55006         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
55007         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
55008         gl_FUNC_FNMATCH_POSIX.
55009         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
55010         invocations from here...
55011         * modules/fnmatch (configure.ac): ... to here.
55012         * modules/fnmatch-gnu (configure.ac): ... and here.
55014 2011-05-07  Bruno Haible  <bruno@clisp.org>
55016         flock: Move AC_LIBOBJ invocations to module description.
55017         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
55018         invocations from here...
55019         * modules/flock (configure.ac): ... to here.
55021 2011-05-07  Bruno Haible  <bruno@clisp.org>
55023         fileblocks: Move AC_LIBOBJ invocations to module description.
55024         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
55025         gl_PREREQ_FILEBLOCKS invocations from here...
55026         * modules/fileblocks (configure.ac): ... to here.
55028 2011-05-06  Bruno Haible  <bruno@clisp.org>
55030         fflush: Move AC_LIBOBJ invocations to module description.
55031         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
55032         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
55033         invocations from here...
55034         * modules/fflush (configure.ac): ... to here.
55036 2011-05-06  Bruno Haible  <bruno@clisp.org>
55038         fdopendir: Move AC_LIBOBJ invocations to module description.
55039         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
55040         here...
55041         * modules/fdopendir (configure.ac): ... to here.
55042         (Depends-on): Improve conditions.
55044 2011-05-06  Bruno Haible  <bruno@clisp.org>
55046         _Exit: Move AC_LIBOBJ invocations to module description.
55047         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
55048         invocations from here...
55049         * modules/_Exit (configure.ac): ... to here.
55051 2011-05-21  Bruno Haible  <bruno@clisp.org>
55053         euidaccess: Respect rules for use of AC_LIBOBJ.
55054         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
55055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
55056         from here...
55057         * modules/euidaccess (configure.ac): ... to here.
55059 2011-05-06  Bruno Haible  <bruno@clisp.org>
55061         error: Move AC_LIBOBJ invocations to module description.
55062         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
55063         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
55064         invocations from here...
55065         * modules/error (configure.ac): ... to here.
55067 2011-05-06  Bruno Haible  <bruno@clisp.org>
55069         duplocale: Move AC_LIBOBJ invocations to module description.
55070         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
55071         gl_PREREQ_DUPLOCALE invocations from here...
55072         * modules/duplocale (configure.ac): ... to here.
55074 2011-05-05  Bruno Haible  <bruno@clisp.org>
55076         dirfd: Move AC_LIBOBJ invocations to module description.
55077         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
55078         gl_FUNC_DIRFD.
55079         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
55080         here...
55081         * modules/dirfd (configure.ac): ... to here.
55082         (Depends-on): Fix condition.
55084 2011-05-05  Bruno Haible  <bruno@clisp.org>
55086         chown: Respect rules for use of AC_LIBOBJ.
55087         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
55088         * modules/chown (configure.ac): ... to here.
55090 2011-05-05  Bruno Haible  <bruno@clisp.org>
55092         chdir-long: Move AC_LIBOBJ invocations to module description.
55093         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
55094         gl_PREREQ_CHDIR_LONG invocations from here...
55095         * modules/chdir-long (configure.ac): ... to here.
55097 2011-05-05  Bruno Haible  <bruno@clisp.org>
55099         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
55100         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
55101         from here...
55102         * modules/canonicalize-lgpl (configure.ac): ... to here.
55104 2011-05-05  Bruno Haible  <bruno@clisp.org>
55106         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
55107         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
55108         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
55109         REPLACE_CALLOC.
55110         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
55111         * modules/calloc-gnu (configure.ac): Likewise.
55113 2011-05-05  Bruno Haible  <bruno@clisp.org>
55115         btowc: Move AC_LIBOBJ invocations to module description.
55116         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
55117         invocations from here...
55118         * modules/btowc (configure.ac): ... to here.
55120 2011-05-21  Bruno Haible  <bruno@clisp.org>
55122         atexit: Move AC_LIBOBJ invocations to module description.
55123         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
55124         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
55125         here...
55126         * modules/atexit (configure.ac): ... to here.
55128 2011-05-05  Bruno Haible  <bruno@clisp.org>
55130         atoll: Move AC_LIBOBJ invocations to module description.
55131         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
55132         invocations from here...
55133         * modules/atoll (configure.ac): ... to here.
55135 2011-05-05  Bruno Haible  <bruno@clisp.org>
55137         argz: Move AC_LIBOBJ invocations to module description.
55138         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
55139         * modules/argz (configure.ac): ... to here.
55141 2011-05-05  Bruno Haible  <bruno@clisp.org>
55143         alphasort: Move AC_LIBOBJ invocations to module description.
55144         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
55145         gl_PREREQ_ALPHASORT invocations from here...
55146         * modules/alphasort (configure.ac): ... to here.
55148 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55150         verify: new macro verify_expr; verify_true deprecated
55151         * NEWS: Mention this.
55152         * doc/verify.texi (Compile-time Assertions): Document this.
55153         * lib/verify.h (verify_true): Deprecate.
55154         (verify_expr): New macro.
55155         * tests/test-verify.c (function): Test verify_expr.
55157 2011-06-14  Jim Meyering  <meyering@redhat.com>
55159         init.sh: give more portable redirection-related advice in a comment
55160         * tests/init.sh (stderr_fileno_): Update the advice in comments.
55161         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
55162         for lots of discussion.  Stefano Lattarini suggested the solution
55163         of putting "9>&2" after the command.  Reported by Bruno Haible.
55165 2011-06-13  Bruno Haible  <bruno@clisp.org>
55167         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
55168         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
55169         'none'.
55171 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
55173         ftoastr: use strtof only if HAVE_STRTOF
55174         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
55175         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
55176         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
55177         * modules/ftoastr (configure.ac): Check for strtof.
55179 2011-06-13  Bruno Haible  <bruno@clisp.org>
55181         gnulib-tool: Addendum to 2011-06-08 commit.
55182         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
55183         and --witness-c-macro have been given, augment AM_CPPFLAGS.
55185 2011-06-13  Bruno Haible  <bruno@clisp.org>
55187         fseeko: Provide a non-inline replacement of fseek().
55188         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
55189         * modules/fseeko (Depends-on): Add fseek.
55190         * modules/fseek (License): Change to LGPLv2+.
55192 2011-06-13  Bruno Haible  <bruno@clisp.org>
55194         ftello: Provide a non-inline replacement of ftell().
55195         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
55196         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
55197         not have ftello() (such as on mingw).
55198         * modules/ftello (Depends-on): Add ftell.
55199         * modules/ftell (License): Change to LGPLv2+.
55201 2011-05-07  Bruno Haible  <bruno@clisp.org>
55203         ftell: Move AC_LIBOBJ invocations to module description.
55204         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
55205         * modules/ftell (configure.ac): ... to here.
55207 2011-05-07  Bruno Haible  <bruno@clisp.org>
55209         ftello: Respect rules for use of AC_LIBOBJ.
55210         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
55211         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
55212         here...
55213         * modules/ftello (configure.ac): ... to here.
55215 2011-05-07  Bruno Haible  <bruno@clisp.org>
55217         fseeko: Simplify.
55218         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
55219         (gl_FUNC_FSEEKO): Inline it here.
55221 2011-05-07  Bruno Haible  <bruno@clisp.org>
55223         fseek: Move AC_LIBOBJ invocations to module description.
55224         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
55225         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
55226         * modules/fseek (configure.ac): ... to here.
55228 2011-05-07  Bruno Haible  <bruno@clisp.org>
55230         fseek: Respect rules for use of AC_LIBOBJ.
55231         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
55232         here...
55233         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
55235 2011-05-07  Bruno Haible  <bruno@clisp.org>
55237         fseeko: Respect rules for use of AC_LIBOBJ.
55238         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
55239         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
55240         here...
55241         * modules/fseeko (configure.ac): ... to here.
55243 2011-06-13  Bruno Haible  <bruno@clisp.org>
55245         gnulib-tool: Allow comments in the 'Depends-on' section.
55246         * doc/gnulib.texi (Module description): Mention comment syntax in the
55247         Depends-on section.
55248         * gnulib-tool (func_get_dependencies): Filter out comment lines.
55250 2011-06-13  Bruno Haible  <bruno@clisp.org>
55252         file-set.h: guard __attibute__ use, now that it's not always defined
55253         * lib/file-set.h (record_file): Use __attribute__ only with compiler
55254         versions that support it.  This fixes a coreutils build failure with
55255         the vendor cc on HP-UX 11.31.
55257 2011-06-12  Bruno Haible  <bruno@clisp.org>
55259         acl: Add support for HP-UX >= 11.11 JFS ACLs.
55260         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
55261         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
55262         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
55263         (acl, aclsort): New declarations.
55264         (aclv_nontrivial): New declaration.
55265         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
55266         (file_has_acl): Read also the second kind of HP-UX ACLs.
55267         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
55268         kind of HP-UX ACLs if the first kind fails.
55269         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
55270         second kind of HP-UX ACLs.
55271         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
55272         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
55273         agree.
55274         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
55275         hpuxjfs.
55276         Handle hpuxjfs.
55277         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
55278         hpuxjfs.
55279         Handle hpuxjfs.
55280         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
55281         (func_test_same_acls): Use both lsacl and getacl.
55282         Handle hpuxjfs.
55283         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
55284         (func_test_same_acls): Use both lsacl and getacl.
55285         Handle hpuxjfs.
55287 2011-06-12  Bruno Haible  <bruno@clisp.org>
55289         acl: Complete the 2010-08-10 fix.
55290         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
55291         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
55292         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
55293         explicitly.
55294         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
55295         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
55297 2011-06-12  Bruno Haible  <bruno@clisp.org>
55299         spawn-pipe tests: Comments.
55300         * tests/test-spawn-pipe-child.c (main): Update comment.
55301         Reported by James Youngman <jay@gnu.org>.
55303 2011-06-11  James Youngman  <jay@gnu.org>
55305         New module 'stat-size'.
55306         * modules/stat-size: New module.  Provides macros for accessing
55307         file size information in instances of struct stat.  Depends on the
55308         fileblocks module because it calls st_blocks.
55309         * lib/stat-size.h: New file, adapted from coreutils' system.h.
55310         * doc/gnulib.texi: Include stat-size.texi.
55311         * doc/stat-size.texi: Documentation for this module.
55312         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
55313         * m4/fileblocks.m4: Mention that stat-size depends on the call to
55314         AC_STRUCT_ST_BLOCKS.
55316 2011-06-09  Bruno Haible  <bruno@clisp.org>
55318         thread: Support pthreads-win32.
55319         * lib/glthread/thread.h (gl_thread_self): Define differently on
55320         pthreads-win32.
55321         (gl_null_thread): New declaration.
55322         (gl_thread_self_pointer): New macro.
55323         * lib/glthread/thread.c (gl_null_thread): New constant.
55324         * tests/test-lock.c: Use gl_thread_self_pointer instead of
55325         gl_thread_self.
55326         * tests/test-tls.c: Likewise.
55327         Suggested by Paul Eggert. Reported by Eric Blake.
55329 2011-06-09  Bruno Haible  <bruno@clisp.org>
55331         thread: Fix confusion between NULL and 0.
55332         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
55333         Reported by Paul Eggert.
55335 2011-06-09  Bruno Haible  <bruno@clisp.org>
55337         spawn-pipe tests: Avoid test failure on HP-UX 11.
55338         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
55339         is closed.
55341 2011-06-09  Bruno Haible  <bruno@clisp.org>
55343         acl tests: Fix compilation error on HP-UX 11.
55344         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
55346 2011-06-09  Bruno Haible  <bruno@clisp.org>
55348         rmdir: Avoid test failure on HP-UX 10.20.
55349         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
55350         EEXIST.
55352 2011-06-08  Eric Blake  <eblake@redhat.com>
55354         perror: fix test on mingw
55355         * modules/perror-tests (Depends-on): Add dup2.
55357         strerror_r-posix: fix on MacOS
55358         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
55359         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
55360         logic bug.
55361         * lib/strerror_r.c (strerror_r): Fix the bug.
55362         * lib/strerror.c (strerror): Likewise.
55363         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55364         problem.
55365         * doc/posix-functions/strerror.texi (strerror): Likewise.
55366         * doc/posix-functions/perror.texi (perror): Likewise.
55367         * tests/test-strerror.c (main): Enhance test.
55368         * tests/test-strerror_r.c (main): Likewise.
55370 2011-06-08  Bruno Haible  <bruno@clisp.org>
55372         gnulib-tool: Better isolation between different gnulib-tool invocations.
55373         * gnulib-tool: New option --witness-c-macro.
55374         (witness_c_macro): New variable.
55375         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
55376         AM_CPPFLAGS define it as a C macro.
55377         (func_emit_tests_Makefile_am): Likewise.
55378         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
55379         read it from there.
55380         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
55381         m4_define, not AC_DEFUN.
55382         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
55383         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
55384         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
55385         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
55386         s|...|...|, to substitute the values of the GNULIB_* module indicator
55387         variables.
55388         * modules/dirent (Makefile.am): Likewise.
55389         * modules/fcntl-h (Makefile.am): Likewise.
55390         * modules/iconv-h (Makefile.am): Likewise.
55391         * modules/langinfo (Makefile.am): Likewise.
55392         * modules/locale (Makefile.am): Likewise.
55393         * modules/math (Makefile.am): Likewise.
55394         * modules/netdb (Makefile.am): Likewise.
55395         * modules/poll-h (Makefile.am): Likewise.
55396         * modules/pty (Makefile.am): Likewise.
55397         * modules/search (Makefile.am): Likewise.
55398         * modules/signal (Makefile.am): Likewise.
55399         * modules/spawn (Makefile.am): Likewise.
55400         * modules/stdio (Makefile.am): Likewise.
55401         * modules/stdlib (Makefile.am): Likewise.
55402         * modules/string (Makefile.am): Likewise.
55403         * modules/sys_ioctl (Makefile.am): Likewise.
55404         * modules/sys_select (Makefile.am): Likewise.
55405         * modules/sys_socket (Makefile.am): Likewise.
55406         * modules/sys_stat (Makefile.am): Likewise.
55407         * modules/sys_times (Makefile.am): Likewise.
55408         * modules/sys_utsname (Makefile.am): Likewise.
55409         * modules/sys_wait (Makefile.am): Likewise.
55410         * modules/termios (Makefile.am): Likewise.
55411         * modules/time (Makefile.am): Likewise.
55412         * modules/unistd (Makefile.am): Likewise.
55413         * modules/wchar (Makefile.am): Likewise.
55415 2011-06-08  Eric Blake  <eblake@redhat.com>
55417         strerror: simplify replacement
55418         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
55419         * modules/strerror (configure.ac): No prereqs needed here...
55420         * modules/strerror-override (configure.ac): ...but this needs it.
55421         (Files): Add file for needed prereq macro.
55423 2011-06-08  Bruno Haible  <bruno@clisp.org>
55425         strerror_r-posix: Tweaks.
55426         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
55427         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
55428         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
55429         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
55430         (gl_FUNC_STRERROR_R): ... to here.
55431         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
55433 2011-06-07  Eric Blake  <eblake@redhat.com>
55435         perror: document fixed bugs
55436         * doc/posix-functions/perror.texi (perror): Document recent
55437         patches.
55439 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
55441         stat-time: get_stat_birthtime failure is better-defined
55442         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
55443         return a timestamp whose tv_sec and tv_nsec values are both -1.
55444         Previously, the spec said only that the tv_nsec value was negative.
55445         This upward-compatible change simplifies GNU tar a bit.
55447 2011-06-07  Eric Blake  <eblake@redhat.com>
55449         strerror_r-posix: work around cygwin 1.7.9
55450         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
55451         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
55452         bug without replacing strerror_r.
55453         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
55454         strerror_r is buggy, but without requiring strerror_r compilation.
55455         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
55457         test-perror: relax test to ignore cygwin bug
55458         * tests/test-perror2.c (main): Relax test on requiring detection
55459         of stream errors, and use unbuffered stream.
55460         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
55461         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
55462         * doc/posix-functions/fputc.texi (fputc): Likewise.
55463         * doc/posix-functions/fputs.texi (fputs): Likewise.
55464         * doc/posix-functions/fputws.texi (fputws): Likewise.
55465         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
55466         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
55467         * doc/posix-functions/getopt.texi (getopt): Likewise.
55468         * doc/posix-functions/perror.texi (perror): Likewise.
55469         * doc/posix-functions/printf.texi (printf): Likewise.
55470         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
55471         * doc/posix-functions/psignal.texi (psignal): Likewise.
55472         * doc/posix-functions/putc.texi (putc): Likewise.
55473         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
55474         Likewise.
55475         * doc/posix-functions/putchar.texi (putchar): Likewise.
55476         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
55477         Likewise.
55478         * doc/posix-functions/puts.texi (puts): Likewise.
55479         * doc/posix-functions/putwc.texi (putwc): Likewise.
55480         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
55481         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
55482         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55483         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
55484         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55485         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
55486         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
55487         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
55489 2011-05-22  Bruno Haible  <bruno@clisp.org>
55491         strerror: Move AC_LIBOBJ invocations to module description.
55492         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
55493         gl_PREREQ_STRERROR invocations from here...
55494         * modules/strerror (configure.ac): ... to here.
55496 2011-05-21  Bruno Haible  <bruno@clisp.org>
55498         perror: Use common idiom.
55499         * modules/perror (configure.ac): Reorder statements.
55501 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
55503         tests: fix usage message in 'mktempd_'
55504         * tests/init.sh (mktempd_): In the usage message, use literal
55505         'mktempd_', not '$ME' (which is even undefined), as the name of
55506         the subroutine.
55508 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
55510         tests init: new function 'fatal_', for hard errors
55511         Before this patch, the only way offered by tests/init.sh to
55512         properly signal a hard error was the `framework_failure_'
55513         function.  But the error message issued by that function,
55514         as its name would suggest, refers to a set-up failure in the
55515         testsuite, while hard errors can obviously also be due to
55516         other reasons.  The best way to fix this inconsistency is to
55517         introduce a new function with a more general error message.
55518         * tests/init.sh (fatal_): New function.
55520 2011-06-06  Eric Blake  <eblake@redhat.com>
55522         canonicalize-lgpl: use common idiom
55523         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
55524         over newer POSIX -Rf.
55525         Reported by Bruno Haible.
55527         canonicalize-lgpl: work around AIX realpath bug
55528         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
55529         * doc/posix-functions/realpath.texi (realpath): Document it.
55530         Reported by Bruno Haible.
55532         strerror: work around FreeBSD bug
55533         * lib/strerror.c (strerror): Special case 0.
55534         Reported by Bruno Haible.
55536         strerror-override: avoid bloating errno module
55537         * modules/errno (Files, configure.ac): Move replacement strings...
55538         * modules/strerror-override: ...to new module.
55539         * modules/strerror (Depends-on): Add strerror-override.
55540         * modules/strerror_r-posix (Depends-on): Likewise.
55541         * MODULES.html.sh: Document new module.
55542         Reported by Bruno Haible.
55544 2011-06-06  Bruno Haible  <bruno@clisp.org>
55546         spawn-pipe tests: Rename program.
55547         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
55548         * tests/test-spawn-pipe-child.c: Update comment.
55549         * tests/test-spawn-pipe.sh: Update.
55550         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
55552         spawn-pipe tests: Link the child program only against libc.
55553         * tests/test-spawn-pipe-child.c: New file, extracted from
55554         tests/test-spawn-pipe.c.
55555         (main): Expect only one argument.
55556         (is_open): New function, copied from tests/test-pipe.c.
55557         * tests/test-spawn-pipe.c: Don't include <errno.h>.
55558         (child_main): Remove function.
55559         (test_pipe): Pass only one argument to the child program.
55560         (main): Remove child process code. Expect the child program's name as
55561         first argument.
55562         * tests/test-spawn-pipe.sh: Pass the child program's name as first
55563         argument.
55564         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
55565         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
55566         test-spawn-pipe-child against no libraries.
55568 2011-06-06  Bruno Haible  <bruno@clisp.org>
55570         careadlinkat: Avoid mismatch between ssize_t and int.
55571         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
55572         * lib/careadlinkat.c (careadlinkatcwd): Define always.
55574 2011-06-06  Jim Meyering  <meyering@redhat.com>
55576         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
55577         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
55578         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
55580 2011-06-05  Bruno Haible  <bruno@clisp.org>
55582         ansi-c++-opt: Interoperability with libtool.
55583         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
55584         set the variable to "no", not to ":".
55585         * NEWS: Mention the change.
55587 2011-06-05  Bruno Haible  <bruno@clisp.org>
55589         acl: Fix test failure on AIX 7.
55590         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
55591         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
55593 2011-06-05  Bruno Haible  <bruno@clisp.org>
55595         pipe-filter-ii: Fix test failure on AIX and IRIX.
55596         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
55597         with EAGAIN, retry with a smaller buffer size.
55599 2011-06-05  Bruno Haible  <bruno@clisp.org>
55601         localename: Fix link dependencies.
55602         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
55603         * modules/localename-tests (Makefile.am): Link test-localename with
55604         $(LIBTHREAD).
55606 2011-06-05  Bruno Haible  <bruno@clisp.org>
55608         error: Avoid gcc warning.
55609         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
55611 2011-06-05  Bruno Haible  <bruno@clisp.org>
55613         unsetenv: Avoid gcc warning.
55614         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
55616 2011-06-05  Bruno Haible  <bruno@clisp.org>
55618         setenv: Avoid gcc warning.
55619         * lib/setenv.c (setenv): Provide declaration if system lacks it.
55621 2011-06-05  Bruno Haible  <bruno@clisp.org>
55623         sys_select: Ensure memset is declared also on AIX 7.
55624         * lib/sys_select.in.h: Include <string.h> also on AIX.
55625         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
55626         self-contained also on AIX 7.1.
55628 2011-06-04  Jim Meyering  <meyering@redhat.com>
55630         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
55631         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
55632         function name, "error".
55633         (_gl_translatable_diag_func_re): New configurable variable.
55635 2011-06-04  Bruno Haible  <bruno@clisp.org>
55637         getopt: Avoid gcc warning.
55638         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
55640 2011-06-04  Bruno Haible  <bruno@clisp.org>
55642         strerror_r: Fix comments.
55643         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
55644         commit.
55646 2011-06-04  Bruno Haible  <bruno@clisp.org>
55648         perror: Fix compilation error.
55649         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
55650         Undefine fprintf, not sprintf.
55651         * modules/perror (Depends-on): Remove intprops, verify.
55653 2011-06-04  Bruno Haible  <bruno@clisp.org>
55655         setlocale: Enable replacement on Cygwin 1.5.
55656         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
55657         Cygwin 1.5.x.
55658         * doc/posix-functions/setlocale.texi: Mention that the problem with the
55659         LC_CTYPE category also exists on Cygwin 1.5.x.
55661 2011-06-04  Bruno Haible  <bruno@clisp.org>
55663         strerror-override: Don't disable symbol renamings.
55664         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
55665         * lib/strerror-override.c: Include config.h.
55666         (strerror_override): Don't undefine.
55668 2011-06-03  Bruno Haible  <bruno@clisp.org>
55670         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
55671         * lib/localename.h: Update copyright header.
55672         * lib/localename.c: Likewise.
55673         * lib/relocatable.h: Likewise.
55674         * lib/relocatable.c: Likewise.
55676 2011-06-02  Bruno Haible  <bruno@clisp.org>
55678         doc: Fix a module name.
55679         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
55681 2011-06-02  Bruno Haible  <bruno@clisp.org>
55683         pipe2: Remove dependency on 'nonblocking' module.
55684         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
55685         O_NONBLOCK is defined by gnulib.
55686         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
55687         is zero.
55688         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
55689         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
55690         defined by gnulib.
55691         (get_nonblocking_flag): New function.
55692         (main): Test O_NONBLOCK flag only if it is nonzero.
55693         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
55695 2011-06-03  Jim Meyering  <meyering@redhat.com>
55697         maint: three new prohibit-header-without-use rules
55698         Prohibit use of cloexec.h, posixver.h, same.h without use.
55699         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
55700         (sc_prohibit_posixver_without_use): Likewise.
55701         (sc_prohibit_same_without_use): Likewise.
55703 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55705         allocator: 'die' routine is now given requested size
55706         * lib/allocator.h (struct allocator.die): New size arg.
55707         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
55708         If the actual problem is an ssize_t limitation, not a size_t or
55709         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
55711 2011-06-01  Eric Blake  <eblake@redhat.com>
55713         strerror: drop strerror_r dependency
55714         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
55715         * lib/strerror-override.c (strerror_override): ...to new file.
55716         * lib/strerror-override.h: Add prototype.
55717         * lib/strerror-impl.h: Delete.
55718         * lib/strerror.c (strerror): New implementation.
55719         * modules/errno (Files): Add new files.
55720         (configure.ac): Compile new file as appropriate.
55721         * modules/strerror (Files): Drop unused file.
55722         (Depends-on): Drop strerror_r-posix.
55723         * MODULES.html.sh: Document strerror_r-posix.
55724         Requested by Sam Steingold.
55726         perror: call strerror_r directly
55727         * modules/perror (Files): Drop strerror-impl.h.
55728         * lib/perror.c (perror): Use our own stack buffer, rather than
55729         calling a wrapper that uses static storage.
55730         * doc/posix-functions/perror.texi (perror): Document a limitation
55731         of our replacement.
55733         strerror_r: fix includes for FreeBSD
55734         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
55735         since we use abort on some platforms.
55736         Reported by Matthias Bolte.
55738 2011-05-31  Bruno Haible  <bruno@clisp.org>
55740         Fix link errors in tests: openat-die uses gettext-h.
55741         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
55742         against $(LIBINTL).
55743         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
55744         against $(LIBINTL).
55745         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
55746         $(LIBINTL).
55747         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
55748         against $(LIBINTL).
55749         * modules/linkat-tests (Makefile.am): Link test-linkat against
55750         $(LIBINTL).
55751         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
55752         $(LIBINTL).
55753         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
55754         against $(LIBINTL).
55755         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
55756         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
55757         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
55758         $(LIBINTL).
55759         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
55760         $(LIBINTL).
55761         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
55762         $(LIBINTL).
55763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55765 2011-05-31  Bruno Haible  <bruno@clisp.org>
55767         Fix link errors in tests: wait-process uses gettext-h.
55768         * modules/nonblocking-pipe-tests (Makefile.am): Set
55769         test_nonblocking_pipe_main_LDADD.
55770         * modules/nonblocking-socket-tests (Makefile.am): Link
55771         test-nonblocking-socket-main against $(LIBINTL).
55772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55774 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
55776         assert-h: work around 'verify' incompatibility
55777         * lib/verify.h: Use @...@ directives, not ifdef.
55778         * modules/assert-h (assert.h): Implement the directives.
55779         (assert.h): Substitute the symbol-prefix more consistently.
55781 2011-05-29  Jim Meyering  <meyering@redhat.com>
55783         trim: remove three superfluous assignments
55784         * lib/trim.c (trim2): Remove three superfluous assignments
55785         and correct brace positioning.
55787 2011-05-29  Bruno Haible  <bruno@clisp.org>
55789         wctype-h: Avoid namespace pollution on Solaris 2.6.
55790         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
55791         identifiers.
55792         * doc/posix-headers/wctype.texi: Mention the problem.
55793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55795 2011-05-28  Jim Meyering  <meyering@redhat.com>
55797         parse-datetime.y: accommodate -Wstrict-overflow
55798         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
55799         placate -Wstrict-overflow.
55801         trim: avoid a warning from -O2 -Wstrict-overflow
55802         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
55804 2011-05-29  Bruno Haible  <bruno@clisp.org>
55806         gnulib-tool: Fix bug in yesterday's commit.
55807         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
55808         twice.
55810 2011-05-29  Bruno Haible  <bruno@clisp.org>
55812         Allow multiple gnulib generated include files to be combined.
55813         * gnulib-tool (func_compute_include_guard_prefix): New function.
55814         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
55815         ${gl_include_guard_prefix} references.
55816         (func_import, func_create_testdir): Invoke
55817         func_compute_include_guard_prefix.
55818         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
55819         * lib/ctype.in.h: Likewise.
55820         * lib/dirent.in.h: Likewise.
55821         * lib/errno.in.h: Likewise.
55822         * lib/fcntl.in.h: Likewise.
55823         * lib/float.in.h: Likewise.
55824         * lib/getopt.in.h: Likewise.
55825         * lib/iconv.in.h: Likewise.
55826         * lib/langinfo.in.h: Likewise.
55827         * lib/locale.in.h: Likewise.
55828         * lib/math.in.h: Likewise.
55829         * lib/netdb.in.h: Likewise.
55830         * lib/netinet_in.in.h: Likewise.
55831         * lib/poll.in.h: Likewise.
55832         * lib/pthread.in.h: Likewise.
55833         * lib/pty.in.h: Likewise.
55834         * lib/sched.in.h: Likewise.
55835         * lib/se-selinux.in.h: Likewise.
55836         * lib/search.in.h: Likewise.
55837         * lib/signal.in.h: Likewise.
55838         * lib/spawn.in.h: Likewise.
55839         * lib/stdarg.in.h: Likewise.
55840         * lib/stddef.in.h: Likewise.
55841         * lib/stdint.in.h: Likewise.
55842         * lib/stdio.in.h: Likewise.
55843         * lib/stdlib.in.h: Likewise.
55844         * lib/string.in.h: Likewise.
55845         * lib/strings.in.h: Likewise.
55846         * lib/sys_file.in.h: Likewise.
55847         * lib/sys_ioctl.in.h: Likewise.
55848         * lib/sys_select.in.h: Likewise.
55849         * lib/sys_socket.in.h: Likewise.
55850         * lib/sys_stat.in.h: Likewise.
55851         * lib/sys_time.in.h: Likewise.
55852         * lib/sys_times.in.h: Likewise.
55853         * lib/sys_uio.in.h: Likewise.
55854         * lib/sys_utsname.in.h: Likewise.
55855         * lib/sys_wait.in.h: Likewise.
55856         * lib/sysexits.in.h: Likewise.
55857         * lib/termios.in.h: Likewise.
55858         * lib/time.in.h: Likewise.
55859         * lib/unistd.in.h: Likewise.
55860         * lib/wchar.in.h: Likewise.
55861         * lib/wctype.in.h: Likewise.
55862         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
55863         * modules/ctype (Makefile.am): Likewise.
55864         * modules/dirent (Makefile.am): Likewise.
55865         * modules/errno (Makefile.am): Likewise.
55866         * modules/fcntl-h (Makefile.am): Likewise.
55867         * modules/float (Makefile.am): Likewise.
55868         * modules/getopt-posix (Makefile.am): Likewise.
55869         * modules/iconv-h (Makefile.am): Likewise.
55870         * modules/langinfo (Makefile.am): Likewise.
55871         * modules/locale (Makefile.am): Likewise.
55872         * modules/math (Makefile.am): Likewise.
55873         * modules/netdb (Makefile.am): Likewise.
55874         * modules/netinet_in (Makefile.am): Likewise.
55875         * modules/poll-h (Makefile.am): Likewise.
55876         * modules/pthread (Makefile.am): Likewise.
55877         * modules/pty (Makefile.am): Likewise.
55878         * modules/sched (Makefile.am): Likewise.
55879         * modules/search (Makefile.am): Likewise.
55880         * modules/selinux-h (Makefile.am): Likewise.
55881         * modules/signal (Makefile.am): Likewise.
55882         * modules/spawn (Makefile.am): Likewise.
55883         * modules/stdarg (Makefile.am): Likewise.
55884         * modules/stddef (Makefile.am): Likewise.
55885         * modules/stdint (Makefile.am): Likewise.
55886         * modules/stdio (Makefile.am): Likewise.
55887         * modules/stdlib (Makefile.am): Likewise.
55888         * modules/string (Makefile.am): Likewise.
55889         * modules/strings (Makefile.am): Likewise.
55890         * modules/sys_file (Makefile.am): Likewise.
55891         * modules/sys_ioctl (Makefile.am): Likewise.
55892         * modules/sys_select (Makefile.am): Likewise.
55893         * modules/sys_socket (Makefile.am): Likewise.
55894         * modules/sys_stat (Makefile.am): Likewise.
55895         * modules/sys_time (Makefile.am): Likewise.
55896         * modules/sys_times (Makefile.am): Likewise.
55897         * modules/sys_uio (Makefile.am): Likewise.
55898         * modules/sys_utsname (Makefile.am): Likewise.
55899         * modules/sys_wait (Makefile.am): Likewise.
55900         * modules/sysexits (Makefile.am): Likewise.
55901         * modules/termios (Makefile.am): Likewise.
55902         * modules/time (Makefile.am): Likewise.
55903         * modules/unistd (Makefile.am): Likewise.
55904         * modules/wchar (Makefile.am): Likewise.
55905         * modules/wctype-h (Makefile.am): Likewise.
55906         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
55908 2011-05-29  Bruno Haible  <bruno@clisp.org>
55910         assert-h: Allow multiple gnulib generated replacements to coexist.
55911         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
55913 2011-05-29  Bruno Haible  <bruno@clisp.org>
55915         argp: Allow coexistence with strerror_r-posix module.
55916         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
55917         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
55918         by gnulib's <string.h> replacement), assume it has the POSIX signature,
55919         not the glibc signature.
55921 2011-05-28  Bruno Haible  <bruno@clisp.org>
55923         gnulib-tool: Alternative structure of testdirs, similar to --import.
55924         * gnulib-tool: New option --single-configure.
55925         (func_usage): Document it.
55926         (single_configure): New variable.
55927         (func_modules_transitive_closure_separately,
55928         func_modules_transitive_closure_separately,
55929         func_determine_use_libtests, func_modules_add_dummy_separately,
55930         func_modules_to_filelist_separately): New functions, extracted from
55931         func_import.
55932         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
55933         (func_import): Use the new functions.
55934         (func_create_testdir): Set final_modules. Handle $single_configure =
55935         true case.
55937 2011-05-28  Bruno Haible  <bruno@clisp.org>
55939         getloadavg: Remove an unreliable safety check.
55940         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
55941         getloadavg.c is in place.
55942         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
55943         Reported by Sam Steingold <sds@gnu.org>.
55945 2011-05-28  Bruno Haible  <bruno@clisp.org>
55947         doc: Cleanup yet another file produced by texinfo.tex.
55948         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
55950 2011-05-28  Bruno Haible  <bruno@clisp.org>
55952         Finish the conditional dependencies mechanism.
55953         * gnulib-tool: New option --no-conditional-dependencies.
55954         (func_usage): Document it. Don't mark --conditional-dependencies as
55955         experimental.
55956         (cond_dependencies): The possible values can now be true, false, empty.
55957         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
55958         (func_import): Store setting in gnulib-cache.m4 and read it from there.
55959         * doc/gnulib-tool.texi (Conditional dependencies): New section.
55961 2011-05-28  Bruno Haible  <bruno@clisp.org>
55963         doc: Use a recent texinfo.tex.
55964         * doc/Makefile (tex_opts): New variable.
55965         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
55967 2011-05-28  Jim Meyering  <meyering@redhat.com>
55969         intprops.h: adjust comment to match code change
55970         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
55971         only once, it *may* have side effects.  Also fix an unrelated typo.
55972         (_GL_INT_SIGNED): Likewise.
55974 2011-05-26  Simon Josefsson  <simon@josefsson.org>
55976         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
55978 2011-05-26  Bruno Haible  <bruno@clisp.org>
55980         mbsrchr: Avoid collision with system function on Interix.
55981         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
55982         Reported by Markus Duft <mduft@gentoo.org>.
55984 2011-05-15  James Youngman  <jay@gnu.org>
55986         getopt: for ambiguous options, enumerate the possibilities.
55987         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
55988         the ambiguous options when an ambiguous prefix is given. This was
55989         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
55990         glibc change was
55991         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
55993 2011-05-25  Eric Blake  <eblake@redhat.com>
55995         getcwd: work around mingw bug
55996         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
55997         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55998         Reported by Matthias Bolte.
56000 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
56002         test-intprops: disable -Wtype-limits diagnostics
56003         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
56004         diagnostics.  Otherwise, the integer overflow macros generate many
56005         diagnostics.  Reported by Jim Meyering in
56006         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
56008         intprops: shorten, to pacify gcc -Woverlength-strings
56009         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
56010         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
56011         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
56012         likely to run afoul of C compiler limits for string constant lengths.
56013         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
56015 2011-05-24  Eric Blake  <eblake@redhat.com>
56017         docs: document recently fixed glibc printf bug
56018         * doc/posix-functions/fprintf.texi (fprintf): Document it.
56019         * doc/posix-functions/printf.texi (printf): Likewise.
56020         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
56021         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
56023         closein-tests: convert to init.sh
56024         * modules/closein-tests (Files): Add init.sh
56025         * tests/test-closein.sh Use it.
56027         yesno-tests: convert to init.sh
56028         * modules/yesno-tests (Files): Add init.sh.
56029         * tests/test-yesno.sh: Use it.
56031         atexit-tests: ensure reliable exit status
56032         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
56033         Reported by Bruno Haible.
56035 2011-05-24  Bruno Haible  <bruno@clisp.org>
56037         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
56038         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
56039         gl_PREREQ_STRERROR_R invocations from here...
56040         * modules/strerror_r-posix (configure.ac): ... to here.
56042 2011-05-24  Eric Blake  <eblake@redhat.com>
56044         strerror_r: fix missing header
56045         * lib/strerror_r.c: Avoid compiler warning about snprintf.
56047         strerror_r: fix AIX test failures
56048         * lib/strerror_r.c (strerror_r): Convert silent truncation to
56049         ERANGE failure.
56051         strerror_r: fix Solaris test failures
56052         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
56053         failures.
56054         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
56056         strerror_r: enforce POSIX recommendations
56057         * lib/strerror_r.c (safe_copy): New helper method.
56058         (strerror_r): Guarantee a non-empty string.
56059         * tests/test-strerror_r.c (main): Enhance tests to incorporate
56060         recent POSIX rulings and to match our strerror guarantees.
56061         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
56063 2011-05-24  Jim Meyering  <meyering@redhat.com>
56065         test-perror2.c: avoid warning about unused variable
56066         * tests/test-perror2.c (main): Remove declaration of unused "fp".
56068 2011-05-24  Eric Blake  <eblake@redhat.com>
56070         perror: avoid spurious test failure on HP-UX
56071         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
56073         tests: fix logic bug in init.sh
56074         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
56075         shell.
56077 2011-05-24  Jim Meyering  <meyering@redhat.com>
56079         utimensat: do not reference an out-of-scope buffer
56080         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
56081         declared in an inner scope, yet "times" would be dereferenced outside
56082         the scope in which "ts" was valid.
56083         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
56084         of ts[2] "out/up", so that the use of aliased "times" (via
56085         "times = ts;") does not end up referencing an out-of-scope "ts"
56087         opendir-safer.c: don't clobber errno; don't close negative FD
56088         * lib/opendir-safer.c (opendir_safer):
56089         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
56090         file descriptor, and more importantly, don't clobber the
56091         offending errno value with EINVAL.  Before, upon failure
56092         of dup_safer, we would pass the negative file descriptor to
56093         fdopendir, which would clobber errno.
56095 2011-05-23  Bruno Haible  <bruno@clisp.org>
56097         idcache: Fix module description.
56098         * modules/idcache (Include): Set to "idcache.h".
56100 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
56102         gnulib-tool: fix portability problem with MacOS sed
56103         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
56104         before the "}".  Problem reported by Leo in
56105         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
56106         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
56107         sed_extract_condition1, sed_extract_condition2.
56109 2011-05-23  Bruno Haible  <bruno@clisp.org>
56111         hash: Simplify autoconf macro.
56112         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
56114 2011-05-23  Bruno Haible  <bruno@clisp.org>
56116         getugroups: Fix module description.
56117         * modules/getugroups (Include): Set to "getugroups.h".
56119 2011-05-23  Bruno Haible  <bruno@clisp.org>
56121         linkat: Simplify autoconf macro.
56122         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
56124 2011-05-23  Bruno Haible  <bruno@clisp.org>
56125             Eric Blake  <eblake@redhat.com>
56127         linkat, renameat: Update dependencies.
56128         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
56129         * modules/linkat (Depends-on): Likewise. Remove also readlink,
56130         symlinkat.
56132 2011-05-23  Jim Meyering  <meyering@redhat.com>
56134         maint.mk: more tight_scope improvements
56135         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
56136         (_gl_TS_headers): Define only in if-0'd block.
56137         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
56138         sometimes we must *not* use it.  Adjust uses accordingly.
56139         (sc_tight_scope): Use much simpler grep-based test to determine
56140         whether we skip this rule.
56142         maint.mk: generalize/improve the tight-scope rule
56143         * top/maint.mk: Emit a warning when the test is skipped.
56144         (_gl_TS_dir): Add $(srcdir)/ prefix.
56145         (_gl_TS_function_match): Simplify, rather than trying
56146         to enumerate common types.  Otherwise, it would fail to match an
56147         "extern unsigned char const *" declaration in idutils.
56148         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
56149         a way to support use of that type of macro.
56150         (_gl_TS_var_match): Simplify regexp.
56151         (_gl_TS_obj_files): New configurable variable.
56152         (_gl_TS_headers): Likewise.
56154 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56156         verify: fix bug when gnulib <assert.h> is also included
56157         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
56158         is defined, not if _GL_STATIC_ASSERT_H is not defined.
56159         Perhaps there's a better way, but this fixes the immediate problem.
56160         Problem reported by Bruno Haible in
56161         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
56163 2011-05-22  Bruno Haible  <bruno@clisp.org>
56165         xgetcwd: Simplify autoconf macro.
56166         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
56168 2011-05-22  Bruno Haible  <bruno@clisp.org>
56170         New module 'mktime-internal'.
56171         * modules/mktime-internal: New file.
56172         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
56173         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
56174         mktime_internal as a C macro if libc has __mktime_internal.
56175         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
56176         conditions.
56177         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
56179 2011-05-22  Bruno Haible  <bruno@clisp.org>
56181         timegm: Correct mktime replacement statements.
56182         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
56183         defining mktime as a C macro. This completes a 2009-07-28 commit.
56185 2011-05-22  Bruno Haible  <bruno@clisp.org>
56187         timegm: Simplify autoconf macro.
56188         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
56190 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
56192         clock-time: change to LGPLv2+.
56193         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
56194         BSD-like but we have no mark for that; this is good enough for now.
56196 2011-05-21  Bruno Haible  <bruno@clisp.org>
56198         strerror_r: Fix comments.
56199         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
56201 2011-05-21  Bruno Haible  <bruno@clisp.org>
56203         relocatable-prog-wrapper: Fix possible link error.
56204         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
56205         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
56206         (gl_FUNC_SETENV): ... to here.
56207         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
56208         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
56210 2011-05-21  Bruno Haible  <bruno@clisp.org>
56212         relocatable-prog-wrapper: Assume strerror() exists.
56213         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
56214         m4/strerror.m4.
56215         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
56216         * lib/relocwrapper.c: Remove mention of strerror module.
56217         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
56218         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
56219         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
56220         C macro.
56222 2011-05-21  Bruno Haible  <bruno@clisp.org>
56224         select: Simplify replacement idiom.
56225         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
56226         Win32 platforms.
56227         * lib/sys_select.in.h (select): Simplify accordingly.
56228         * modules/select (Depends-on): Likewise.
56230 2011-05-21  Bruno Haible  <bruno@clisp.org>
56232         mkdir-p: Simplify autoconf macro.
56233         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
56234         gl_FUNC_LCHOWN.
56236 2011-05-21  Eric Blake  <eblake@redhat.com>
56238         strerror_r: avoid clobbering strerror on cygwin
56239         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
56240         fall back instead to sys_errlist.
56241         * modules/strerror (configure.ac): Add witness.
56242         * tests/test-strerror_r.c (main): Enhance test.
56243         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
56244         * tests/test-perror2.c (main): Free memory before exit.
56246 2011-05-21  Bruno Haible  <bruno@clisp.org>
56248         mkdtemp: Use gnulib naming conventions.
56249         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
56250         * modules/mkdtemp (configure.ac): Update.
56252 2011-05-20  Eric Blake  <eblake@redhat.com>
56254         strerror_r: avoid corrupting errno on Solaris
56255         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
56256         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
56258         strerror_r: avoid compiler warning
56259         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
56261         strerror_r: simplify AIX code
56262         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
56264         test-perror: avoid spurious failure on FreeBSD
56265         * modules/perror-tests (Depends-on): Add strerror, now that
56266         strerror_r no longer pulls it in.
56268 2011-05-20  Bruno Haible  <bruno@clisp.org>
56270         strerror_r-posix: Remove unused dependencies.
56271         * modules/strerror_r-posix (Depends-on): Remove strerror.
56272         Reported by Eric Blake.
56274 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56276         intprops: remove assumption about A|B representation
56277         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
56278         is a valid integer if both A and B are.  Although this is true for
56279         all known practical hosts, the C standard doesn't guarantee it,
56280         and the code need not assume it.  Also, this change may work around
56281         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
56282         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
56284 2011-05-20  Eric Blake  <eblake@redhat.com>
56286         perror: work around FreeBSD bug
56287         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
56288         is broken.  Move AC_LIBOBJ...
56289         * modules/perror (configure.ac): Here.
56290         * doc/posix-functions/perror.texi (perror): Document this.
56291         * tests/test-perror2.c (main): Enhance test.
56293         test-perror: check for strerror interactions
56294         * tests/macros.h (STREQ): Add macro.
56295         * modules/perror-tests (Files): Add second test.
56296         * tests/test-perror2.c (main): New file.
56297         * doc/posix-functions/perror.texi (perror): Document glibc bug.
56299         test-perror: rewrite to use init script
56300         * modules/perror-tests (Files): Add init.sh.
56301         * tests/test-perror.sh: Use temporary directory.
56303 2011-05-20  Jim Meyering  <meyering@redhat.com>
56305         maint: replace misused "a" with "an"
56306         * doc/intprops.texi: "a integer"
56307         * doc/regex.texi: "a explanation"
56308         * lib/alignof.h: "a object"
56309         * lib/argmatch.h: "a explanation"
56310         * lib/argp-help.c: "a option" and "a OPTION_DOC"
56311         * lib/stdint.in.h: "a integer"
56312         * lib/userspec.c: "a owner"
56313         * doc/gnulib.texi: Fix "a idea", and reword.
56315 2011-05-19  Jim Meyering  <meyering@redhat.com>
56317         maint: correct misuse of "a" and "an"
56318         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
56319         * lib/argp-help.c: "an docum...": s/an/a/
56320         * lib/argp-parse.c: "An vector": s/An/A/
56321         * lib/execute.c: "an native": s/an/a/
56322         * lib/spawn-pipe.c: Likewise.
56323         * lib/gc.h: "an Gc_rc": s/an/a/
56324         * lib/unigbrk.in.h: "an grapheme": s/an/a/
56325         * lib/fts.c: "an stat.st_dev": s/an/a/
56327 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56329         intprops-tests: work around HP-UX 11.23 cc bug with constants
56330         * tests/test-intprops.c (VERIFY): New macro.
56331         (main): Use it, instead of verify, to work around the compiler bug; see
56332         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56334         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
56335         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
56336         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
56337         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
56338         (_GL_REMAINDER_OVERFLOW): Use it.
56340         intprops-tests: revert unsigned part of previous change
56341         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
56342         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
56343         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
56344         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
56346 2011-05-19  Bruno Haible  <bruno@clisp.org>
56348         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
56349         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
56350         strerror_r() returned without filling the buffer.
56351         Reported by Eric Blake.
56353 2011-05-19  Eric Blake  <eblake@redhat.com>
56355         strerror_r: guarantee unchanged errno
56356         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
56357         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
56358         failure.
56359         * tests/test-strerror_r.c (main): Enhance test.
56361 2011-05-19  Bruno Haible  <bruno@clisp.org>
56363         strerror_r: Reorder #if blocks.
56364         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
56365         for consistency with the previous commit.
56367 2011-05-19  Bruno Haible  <bruno@clisp.org>
56369         perror: Avoid clobbering the strerror buffer when possible.
56370         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
56371         * lib/strerror.c: Include it.
56372         * modules/strerror (Files): Add lib/strerror-impl.h.
56373         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
56374         (my_strerror): New function, defined through lib/strerror-impl.h.
56375         (perror): Use it instead of strerror.
56376         * modules/perror (Files): Add lib/strerror-impl.h.
56377         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
56379 2011-05-19  Eric Blake  <eblake@redhat.com>
56381         strerror_r: fix on newer cygwin
56382         * lib/strerror_r.c (strerror_r): Cygwin now has
56383         __xpg_strerror_r, use it.
56385 2011-05-19  Bruno Haible  <bruno@clisp.org>
56387         strerror_r: Avoid clobbering the strerror buffer when possible.
56388         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
56389         (sys_nerr, sys_errlist): New declarations.
56390         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
56391         HP-UX, native Win32, IRIX, and 32-bit Solaris.
56392         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
56394 2011-05-19  Bruno Haible  <bruno@clisp.org>
56396         strerror_r: Fix test failure on mingw.
56397         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
56398         EXTEND_STRERROR_R.
56399         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
56400         macros from errno.in.h instead.
56402 2011-05-19  Eric Blake  <eblake@redhat.com>
56404         strerror: relax test for Solaris
56405         * tests/test-strerror.c (main): Permit Solaris behavior.
56406         * tests/test-strerror_r.c (main): Likewise.
56408         strerror: enforce POSIX ruling on strerror(0)
56409         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
56410         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
56411         * lib/strerror_r.c (rpl_strerror_r): Work around it.
56412         * doc/posix-functions/strerror.texi (strerror): Document it.
56413         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
56414         * tests/test-strerror.c (main): Strengthen test.
56415         * tests/test-strerror_r.c (main): Likewise.
56417 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56419         intprop-tests: port to older and more-pedantic compilers
56420         * modules/intprops-tests (Files): Add tests/macros.h.
56421         * tests/test-intprops.c: Include macros.h.
56422         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
56423         it's no longer documented to expand to an integer constant expression.
56424         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
56425         argument is floating point, as it's no longer documented to expand
56426         to an integer constant expression in that case.
56427         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
56428         compiler bugs reported by Bruno Haible.  See
56429         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56430         (U0, U1): New constants, to work around the same bugs.  Also,
56431         in tests, use e.g., "(unsigned int) 39" rather than "39u".
56433         intprops: work around C compiler bugs
56434         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
56435         bug in Sun C 5.11 2010/08/13 and other compilers; see
56436         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56438         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
56439         * doc/intprops.texi (Integer Type Determination): Fix
56440         documentation for TYPE_IS_INTEGER: it returns an constant
56441         expression, not an integer constant expression.  Fix doc for
56442         TYPE_SIGNED: it returns an integer constant expression only if its
56443         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
56444         hardly worth documented that way....)
56446 2011-05-18  Bruno Haible  <bruno@clisp.org>
56448         strerror_r: Avoid clobbering the strerror buffer when possible.
56449         * lib/strerror_r.c (strerror_r): Merge the three implementations.
56450         Handle gnulib defined errno values here. When strerror() returns NULL
56451         or an empty string, return EINVAL.
56452         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
56453         gnulib defined errno values here.
56454         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
56456 2011-05-18  Eric Blake  <eblake@redhat.com>
56458         fnmatch: avoid compiler warning
56459         * lib/fnmatch_loop.c (FCT): Use correct type.
56460         Reported by Matthias Bolte.
56462 2011-05-13  Jim Meyering  <meyering@redhat.com>
56464         maint.mk: three new prohibit_<HDR>_without_use rules
56465         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
56466         (sc_prohibit_stdio-safer_without_use): Likewise.
56467         (sc_prohibit_xfreopen_without_use): Likewise.
56469 2011-05-17  Jim Meyering  <meyering@redhat.com>
56471         announce-gen: fail if the NEWS delta is empty
56472         If there's nothing noteworthy in NEWS, then either you forgot
56473         or you shouldn't be releasing.
56474         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
56476 2011-05-17  Pádraig Brady  <P@draigBrady.com>
56478         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
56479         reserved symbols starting with double underscore from the check.
56481 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56483         intprops: add doc
56484         * doc/intprops.texi: New file, documenting intprops.
56485         * doc/gnulib.texi (Particular Modules): Include it.
56487         verify: add doc to gnulib manual and fix example
56488         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
56489         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
56490         (Compile-time Assertions): Fix example so it can't overflow.
56492 2011-05-17  Jim Meyering  <meyering@redhat.com>
56494         warnings.m4: don't usurp save_CPPFLAGS variable name
56495         * m4/warnings.m4: Prefix local temporary variable name with gl_.
56497         doc: fix typo
56498         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
56500 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56501             Bruno Haible  <bruno@clisp.org>
56503         doc: Tweak recent change.
56504         * README (Portability guidelines): Tweak new text.
56505         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
56506         Interix 6.1.
56508 2011-05-16  Eric Blake  <eblake@redhat.com>
56510         inttypes: avoid autoconf warning
56511         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
56512         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56514 2011-05-16  Sam Steingold  <sds@gnu.org>
56515         and Eric Blake  <eblake@redhat.com>
56517         vc-list-files: accept multiple directory operands
56518         * build-aux/vc-list-files: Iterate over all remaining operands.
56520 2011-05-16  Bruno Haible  <bruno@clisp.org>
56522         Fix confusion regarding deprecated modules.
56523         * modules/calloc (Status, Notice): Mark module as deprecated, not
56524         obsolete.
56525         * modules/fnmatch-posix (Status, Notice): Likewise.
56526         * modules/getdate (Status, Notice): Likewise.
56527         * modules/getopt (Status, Notice): Likewise.
56528         * modules/malloc (Status, Notice): Likewise.
56529         * modules/pipe (Status, Notice): Likewise.
56530         * modules/realloc (Status, Notice): Likewise.
56531         * modules/rename-dest-slash (Status, Notice): Likewise.
56532         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
56533         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
56534         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
56535         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
56536         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
56538 2011-05-16  Bruno Haible  <bruno@clisp.org>
56540         doc: List the target platforms.
56541         * doc/gnulib-intro.texi (Target Platforms): New section.
56542         * doc/gnulib.texi (Introduction): Update menu.
56543         * README (Portability guidelines): Refer to the new section. Update
56544         statement about oldest supported environment. Remove rationale why
56545         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
56546         unportable C89 function.
56547         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
56548         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
56550 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56552         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
56554 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56556         intprops-tests: new module
56557         * modules/intprops-tests, tests/test-intprops.c: New files.
56559         intprops: add safe, portable integer overflow checking
56560         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
56561         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
56562         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
56563         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
56564         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
56565         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
56566         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
56567         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
56568         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
56569         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
56570         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
56572 2011-05-12  James Youngman  <jay@gnu.org>
56574         Add a test for glibc's Bugzilla bug #12378.
56575         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
56576         doesn't allow the literal matching of a lone "[" (which is
56577         required by POSIX).
56578         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
56580 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
56582         Sync glibc change fixing Bugzilla bug #12378.
56583         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
56584         beginning and fall back to matching as normal character if the
56585         string ends before the matching ']' is found.  This is what POSIX
56586         requires.
56588 2011-05-13  Eric Blake  <eblake@redhat.com>
56590         getcwd-lgpl: relax test for FreeBSD
56591         * doc/posix-functions/getcwd.texi (getcwd): Document portability
56592         issue.
56593         * tests/test-getcwd-lgpl.c (main): Relax test.
56594         Reported by Matthias Bolte.
56596 2011-05-11  Eric Blake  <eblake@redhat.com>
56598         test-fflush: silence compiler warning
56599         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
56601 2011-05-11  Bruno Haible  <bruno@clisp.org>
56603         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
56604         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
56605         * modules/canonicalize (Depends-on): Add 'nocrash'.
56606         * modules/canonicalize-lgpl (Depends-on): Likewise.
56607         * doc/posix-functions/realpath.texi: Update platforms list.
56608         Reported by Ryan Schmidt <ryandesign@macports.org>.
56610 2011-05-11  Bruno Haible  <bruno@clisp.org>
56612         group-member: Declare function in <unistd.h>.
56613         * lib/unistd.in.h (group_member): New declaration.
56614         * lib/group-member.h: Remove file.
56615         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
56616         * tests/test-unistd-c++.cc: Check signature of group_member.
56617         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
56618         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
56619         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
56620         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
56621         HAVE_GROUP_MEMBER.
56622         * modules/group-member (Files): Remove lib/group-member.h.
56623         (Depends-on): Add unistd. Specify conditions.
56624         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56625         (Include): Change to <unistd.h>.
56626         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
56627         HAVE_GROUP_MEMBER.
56628         * NEWS: Mention the change.
56629         * lib/euidaccess.c: Don't include group-member.h.
56631 2011-05-11  Bruno Haible  <bruno@clisp.org>
56633         group-member: Document module.
56634         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
56635         module.
56637 2011-05-11  Bruno Haible  <bruno@clisp.org>
56639         fclose: Fix mistake earlier today.
56640         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
56642 2011-05-11  Eric Blake  <eblake@redhat.com>
56644         fclose: preserve fflush errors
56645         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
56646         Reported by Jim Meyering.
56648         bootstrap: support a prereq of 'rpcgen -' on RHEL5
56649         * build-aux/bootstrap (check_versions): When no specific version
56650         is required, merely check that the app produces an exit status
56651         that indicates its existence.
56653         maint.mk: drop redundant check
56654         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
56655         the same but better.
56657 2011-05-11  Bruno Haible  <bruno@clisp.org>
56659         fclose: Fix possible link error.
56660         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
56661         unregister_shadow_fd. Improve comments.
56662         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
56663         Eric Blake.
56665 2011-05-11  Jim Meyering  <meyering@redhat.com>
56667         maint.mk: improve "can not" detection and generalize rule name
56668         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
56669         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
56670         Use the same technique as in sc_prohibit_doubled_word, so that
56671         we recognize "can not" also when the words are separated by a newline.
56672         Suggested by Eric Blake.
56673         (perl_filename_lineno_text_): Define.  Factored out of...
56674         (prohibit_doubled_word_): ...here.  Use the new definition.
56675         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
56676         (prohibit_undesirable_word_seq_RE_): New overridable variable.
56677         (ignore_undesirable_word_sequence_RE_): New overridable variable.
56679 2011-05-10  Eric Blake  <eblake@redhat.com>
56681         fclose: avoid double close race when possible
56682         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
56683         all but WINDOWS_SOCKETS.
56685 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
56687         openat: correct new comment
56688         * lib/openat-proc.c (openat_proc_name): Correct the comment.
56690 2011-05-10  Jim Meyering  <meyering@redhat.com>
56692         openat: add comments
56693         * lib/openat-proc.c (openat_proc_name): Add comments,
56694         mostly from Eric Blake.
56696 2011-05-09  Eric Blake  <eblake@redhat.com>
56698         openat: reduce syscalls in first probe of /proc
56699         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
56700         be a directory.  Simplify the probe for .. bugs.
56701         * modules/openat (Depends-on): Drop same-inode.
56702         Reported by Bastien ROUCARIES.
56704 2011-05-09  Jim Meyering  <meyering@redhat.com>
56706         maint.mk: change semantics/name of tight_scope variables
56707         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
56708         Rename variables to align with semantics that make them more useful.
56710         maint.mk: tweak new rule's name not to impinge
56711         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
56712         (sc_tight_scope): Use new rule name rather than $@-0.
56714         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
56715         * top/maint.mk (sc_tight_scope): New rule.
56716         (sc_tight_scope-0): New rule, ifdef'd out.
56717         (_gl_TS_dir): Default.
56718         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
56719         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
56721 2011-05-09  Simon Josefsson  <simon@josefsson.org>
56723         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
56724         Haible <bruno@clisp.org>.
56726 2011-05-08  Bruno Haible  <bruno@clisp.org>
56728         Comments.
56729         * m4/isnanf.m4: Add comment.
56730         * m4/isnanl.m4: Likewise.
56732 2011-05-08  Bruno Haible  <bruno@clisp.org>
56734         glob: Remove obsolete macro.
56735         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
56737 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
56739         intprops: Sun C 5.11 supports __typeof__
56740         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
56741         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
56742         which is new.
56743         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
56745         intprops: switch to usual gnulib indenting and naming
56746         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
56747         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
56749         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
56751 2011-05-08  Jim Meyering  <meyering@redhat.com>
56753         maint.mk: suppress "Entering/Leaving directory" diag in announcement
56754         * top/maint.mk (release-prep): Use make's --no-print-directory
56755         option when generating the announcement.  This eliminates the
56756         pesky "make[2]: Entering/Leaving directory" diagnostics in the
56757         generated announcement template.
56759 2011-05-08  Bruno Haible  <bruno@clisp.org>
56761         tzset: Fix gettimeofday wrapper on Solaris 2.6.
56762         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
56763         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
56765 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
56767         ignore-value, verify: Omit include files from lib_SOURCES.
56768         * modules/ignore-value, modules/verify (Makefile.am):
56769         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
56770         that leads Automake to duplicate use of am__objects_... variables
56771         in Makefile.in.  See
56772         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
56774 2011-05-07  Bruno Haible  <bruno@clisp.org>
56776         fclose: Simplify autoconf macro.
56777         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
56778         defined.
56780 2011-05-07  Bruno Haible  <bruno@clisp.org>
56782         canonicalize-lgpl: Fix autoconf macro ordering bug.
56783         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
56784         gl_STDLIB_H_DEFAULTS.
56786 2011-05-06  Eric Blake  <eblake@redhat.com>
56788         maintainer-makefile: make sc_po_check easier to tune
56789         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
56790         to probe for strings, such as an alternate location for gnulib.
56792         fclose: guarantee behavior on seekable stdin
56793         * modules/fclose (Depends-on): Add fflush.
56794         * doc/posix-functions/fclose.texi (fclose): Document this.
56795         * tests/test-fclose.c (main): Make test for this unconditional.
56797 2011-05-06  Bruno Haible  <bruno@clisp.org>
56799         fflush, fpurge: Relicense under LGPLv2+.
56800         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
56801         * modules/fpurge (License): Likewise.
56802         With permission from Eric Blake and Jim Meyering.
56803         Suggested by Eric Blake.
56805 2011-05-06  Karl Berry  <karl@gnu.org>
56807         * MODULES.html.sh (func_all_modules): remove exit.
56809 2011-05-06  Jim Meyering  <meyering@redhat.com>
56811         maint.mk: use info-gnu@ as the default only for a stable release
56812         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
56813         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
56814         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
56815         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
56817 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56819         assert-h: new module, which supports C1X-style static_assert
56820         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
56821         * lib/verify.h: Revamp so that this can be copied into assert.h,
56822         while retaining the ability to use it standalone as before.
56823         Rename private identifiers so as not to encroach on the
56824         standard C namespace, since this is now used by assert.h.
56825         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
56826         the old verify_true.
56827         (_GL_VERIFY_TRUE): New macro, with much of the contents of
56828         the old verify_true.  Use _GL_VERIFY_TYPE.
56829         (_GL_VERIFY): New macro, with much of the contents of the old verify.
56830         (static_assert): New macro, if _GL_STATIC_ASSERT_H
56831         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
56832         defined when this file is copied into the replacement assert.h.
56833         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
56834         and _Static_assert is not built in.
56835         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
56836         defined, and use the new macros mentioned above.
56837         * doc/posix-headers/assert.texi: Document this.
56839 2011-05-05  Bruno Haible  <bruno@clisp.org>
56841         fclose, fflush: Respect rules for use of AC_LIBOBJ.
56842         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
56843         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
56844         gl_REPLACE_FCLOSE here.
56845         * modules/fflush (Depends-on): Remove fclose.
56846         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
56847         combination with module 'fclose'.
56849 2011-05-05  Bruno Haible  <bruno@clisp.org>
56851         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
56852         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
56853         gl_FUNC_FFLUSH.
56854         (gl_FUNC_FFLUSH): Use it.
56855         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
56856         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
56857         gl_REPLACE_FSEEKO here.
56859 2011-05-05  Bruno Haible  <bruno@clisp.org>
56861         tzset: Relicense under LGPL.
56862         * modules/tzset (License): Change to LGPL.
56863         No agreement needed; it's a no-op.
56865         strtoimax, strtoumax: Relicense under LGPL.
56866         * modules/strtoimax (License): Change to LGPL.
56867         * modules/strtoumax (License): Likewise.
56868         With permission from Jim Meyering, Paul Eggert:
56869         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
56870         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
56872         getgroups: Relicense under LGPL.
56873         * modules/getgroups (License): Change to LGPL.
56874         With permission from Jim Meyering, Paul Eggert, Eric Blake:
56875         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56876         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56877         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56879         nanosleep: Relicense under LGPL.
56880         * modules/nanosleep (License): Change to LGPL.
56881         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
56882         Haible:
56883         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56884         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56885         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56886         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56888         futimens: Relicense under LGPL.
56889         * modules/futimens (License): Change to LGPL.
56890         With permission from Eric Blake:
56891         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56893         fflush: Relicense under LGPL.
56894         * modules/fflush (License): Change to LGPL.
56895         With permission from Eric Blake, Bruno Haible, Jim Meyering:
56896         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56897         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56898         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
56900         tmpfile: Relicense under LGPL.
56901         * modules/tmpfile (License): Change to LGPL.
56902         With permission from Ben Pfaff:
56903         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56905         isfinite: Relicense under LGPL.
56906         * modules/isfinite (License): Change to LGPL.
56907         With permission from Ben Pfaff, Bruno Haible:
56908         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56909         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
56911         acosl..tanl: Relicense under LGPL.
56912         * modules/acosl (License): Change to LGPL.
56913         * modules/asinl (License): Likewise.
56914         * modules/atanl (License): Likewise.
56915         * modules/cosl (License): Likewise.
56916         * modules/expl (License): Likewise.
56917         * modules/logl (License): Likewise.
56918         * modules/sinl (License): Likewise.
56919         * modules/sqrtl (License): Likewise.
56920         * modules/tanl (License): Likewise.
56921         Source code originally from glibc and Paolo Bonzini. Agreements:
56922         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
56923         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
56925 2011-05-05  Bruno Haible  <bruno@clisp.org>
56927         signal: Define sighandler_t.
56928         * lib/signal.in.h (sighandler_t): New type.
56929         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
56930         whether sighandler_t is defined.
56931         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
56932         * modules/signal (Depends-on): Add extensions.
56933         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
56934         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
56935         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
56937 2011-05-05  Eric Blake  <eblake@redhat.com>
56939         maint: remove useless REPLACE_*_H macros
56940         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
56941         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56942         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56943         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
56944         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56945         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56946         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
56947         * m4/btowc.m4: Update callers.
56948         * m4/dirfd.m4: Likewise.
56949         * m4/duplocale.m4: Likewise.
56950         * m4/fchdir.m4: Likewise.
56951         * m4/fdopendir.m4: Likewise.
56952         * m4/inet_ntop.m4: Likewise.
56953         * m4/inet_pton.m4: Likewise.
56954         * m4/ioctl.m4: Likewise.
56955         * m4/mbrlen.m4: Likewise.
56956         * m4/mbrtowc.m4: Likewise.
56957         * m4/mbsinit.m4: Likewise.
56958         * m4/mbsnrtowcs.m4: Likewise.
56959         * m4/mbsrtowcs.m4: Likewise.
56960         * m4/poll.m4: Likewise.
56961         * m4/setlocale.m4: Likewise.
56962         * m4/wcrtomb.m4: Likewise.
56963         * m4/wcsnrtombs.m4: Likewise.
56964         * m4/wcsrtombs.m4: Likewise.
56965         * m4/wctob.m4: Likewise.
56966         * m4/wcwidth.m4: Likewise.
56967         * modules/posix_spawn: Likewise.
56968         * modules/posix_spawn_file_actions_addclose: Likewise.
56969         * modules/posix_spawn_file_actions_adddup2: Likewise.
56970         * modules/posix_spawn_file_actions_addopen: Likewise.
56971         * modules/posix_spawn_file_actions_destroy: Likewise.
56972         * modules/posix_spawn_file_actions_init: Likewise.
56973         * modules/posix_spawnattr_destroy: Likewise.
56974         * modules/posix_spawnattr_getflags: Likewise.
56975         * modules/posix_spawnattr_getpgroup: Likewise.
56976         * modules/posix_spawnattr_getschedparam: Likewise.
56977         * modules/posix_spawnattr_getschedpolicy: Likewise.
56978         * modules/posix_spawnattr_getsigdefault: Likewise.
56979         * modules/posix_spawnattr_getsigmask: Likewise.
56980         * modules/posix_spawnattr_init: Likewise.
56981         * modules/posix_spawnattr_setflags: Likewise.
56982         * modules/posix_spawnattr_setpgroup: Likewise.
56983         * modules/posix_spawnattr_setschedparam: Likewise.
56984         * modules/posix_spawnattr_setschedpolicy: Likewise.
56985         * modules/posix_spawnattr_setsigdefault: Likewise.
56986         * modules/posix_spawnattr_setsigmask: Likewise.
56987         * modules/posix_spawnp: Likewise.
56989 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
56991         Add option to do-release-commit-and-tag to specify branch.
56992         * build-aux/do-release-commit-and-tag: Add --branch.
56994 2011-05-03  Bruno Haible  <bruno@clisp.org>
56996         Avoid unnecessary compilation units, through conditional dependencies.
56997         * modules/accept (Depends-on): Add conditions to the dependencies.
56998         * modules/acosl (Depends-on): Likewise.
56999         * modules/argz (Depends-on): Likewise.
57000         * modules/asinl (Depends-on): Likewise.
57001         * modules/atanl (Depends-on): Likewise.
57002         * modules/atoll (Depends-on): Likewise.
57003         * modules/bind (Depends-on): Likewise.
57004         * modules/btowc (Depends-on): Likewise.
57005         * modules/canonicalize-lgpl (Depends-on): Likewise.
57006         * modules/ceil (Depends-on): Likewise.
57007         * modules/ceilf (Depends-on): Likewise.
57008         * modules/ceill (Depends-on): Likewise.
57009         * modules/chdir-long (Depends-on): Likewise.
57010         * modules/chown (Depends-on): Likewise.
57011         * modules/close (Depends-on): Likewise.
57012         * modules/connect (Depends-on): Likewise.
57013         * modules/cosl (Depends-on): Likewise.
57014         * modules/dirfd (Depends-on): Likewise.
57015         * modules/dprintf (Depends-on): Likewise.
57016         * modules/dprintf-posix (Depends-on): Likewise.
57017         * modules/error (Depends-on): Likewise.
57018         * modules/euidaccess (Depends-on): Likewise.
57019         * modules/expl (Depends-on): Likewise.
57020         * modules/faccessat (Depends-on): Likewise.
57021         * modules/fchdir (Depends-on): Likewise.
57022         * modules/fclose (Depends-on): Likewise.
57023         * modules/fcntl (Depends-on): Likewise.
57024         * modules/fdopendir (Depends-on): Likewise.
57025         * modules/fflush (Depends-on): Likewise.
57026         * modules/floor (Depends-on): Likewise.
57027         * modules/floorf (Depends-on): Likewise.
57028         * modules/floorl (Depends-on): Likewise.
57029         * modules/fnmatch (Depends-on): Likewise.
57030         * modules/fopen (Depends-on): Likewise.
57031         * modules/fprintf-posix (Depends-on): Likewise.
57032         * modules/frexp (Depends-on): Likewise.
57033         * modules/frexp-nolibm (Depends-on): Likewise.
57034         * modules/frexpl (Depends-on): Likewise.
57035         * modules/frexpl-nolibm (Depends-on): Likewise.
57036         * modules/fseek (Depends-on): Likewise.
57037         * modules/fsusage (Depends-on): Likewise.
57038         * modules/ftell (Depends-on): Likewise.
57039         * modules/ftello (Depends-on): Likewise.
57040         * modules/futimens (Depends-on): Likewise.
57041         * modules/getcwd (Depends-on): Likewise.
57042         * modules/getcwd-lgpl (Depends-on): Likewise.
57043         * modules/getdelim (Depends-on): Likewise.
57044         * modules/getdomainname (Depends-on): Likewise.
57045         * modules/getgroups (Depends-on): Likewise.
57046         * modules/gethostname (Depends-on): Likewise.
57047         * modules/getline (Depends-on): Likewise.
57048         * modules/getlogin_r (Depends-on): Likewise.
57049         * modules/getopt-posix (Depends-on): Likewise.
57050         * modules/getpeername (Depends-on): Likewise.
57051         * modules/getsockname (Depends-on): Likewise.
57052         * modules/getsockopt (Depends-on): Likewise.
57053         * modules/getsubopt (Depends-on): Likewise.
57054         * modules/getusershell (Depends-on): Likewise.
57055         * modules/glob (Depends-on): Likewise.
57056         * modules/grantpt (Depends-on): Likewise.
57057         * modules/iconv_open (Depends-on): Likewise.
57058         * modules/iconv_open-utf (Depends-on): Likewise.
57059         * modules/inet_ntop (Depends-on): Likewise.
57060         * modules/inet_pton (Depends-on): Likewise.
57061         * modules/ioctl (Depends-on): Likewise.
57062         * modules/isapipe (Depends-on): Likewise.
57063         * modules/isfinite (Depends-on): Likewise.
57064         * modules/isinf (Depends-on): Likewise.
57065         * modules/lchown (Depends-on): Likewise.
57066         * modules/ldexpl (Depends-on): Likewise.
57067         * modules/link (Depends-on): Likewise.
57068         * modules/linkat (Depends-on): Likewise.
57069         * modules/listen (Depends-on): Likewise.
57070         * modules/logl (Depends-on): Likewise.
57071         * modules/lstat (Depends-on): Likewise.
57072         * modules/mbrlen (Depends-on): Likewise.
57073         * modules/mbrtowc (Depends-on): Likewise.
57074         * modules/mbsinit (Depends-on): Likewise.
57075         * modules/mbsnrtowcs (Depends-on): Likewise.
57076         * modules/mbsrtowcs (Depends-on): Likewise.
57077         * modules/mbtowc (Depends-on): Likewise.
57078         * modules/memcmp (Depends-on): Likewise.
57079         * modules/mkdir (Depends-on): Likewise.
57080         * modules/mkdtemp (Depends-on): Likewise.
57081         * modules/mkfifo (Depends-on): Likewise.
57082         * modules/mkfifoat (Depends-on): Likewise.
57083         * modules/mknod (Depends-on): Likewise.
57084         * modules/mkostemp (Depends-on): Likewise.
57085         * modules/mkostemps (Depends-on): Likewise.
57086         * modules/mkstemp (Depends-on): Likewise.
57087         * modules/mkstemps (Depends-on): Likewise.
57088         * modules/mktime (Depends-on): Likewise.
57089         * modules/nanosleep (Depends-on): Likewise.
57090         * modules/open (Depends-on): Likewise.
57091         * modules/openat (Depends-on): Likewise.
57092         * modules/perror (Depends-on): Likewise.
57093         * modules/poll (Depends-on): Likewise.
57094         * modules/popen (Depends-on): Likewise.
57095         * modules/posix_spawn (Depends-on): Likewise.
57096         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
57097         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57098         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57099         * modules/posix_spawnp (Depends-on): Likewise.
57100         * modules/pread (Depends-on): Likewise.
57101         * modules/printf-posix (Depends-on): Likewise.
57102         * modules/ptsname (Depends-on): Likewise.
57103         * modules/putenv (Depends-on): Likewise.
57104         * modules/pwrite (Depends-on): Likewise.
57105         * modules/readline (Depends-on): Likewise.
57106         * modules/readlink (Depends-on): Likewise.
57107         * modules/readlinkat (Depends-on): Likewise.
57108         * modules/recv (Depends-on): Likewise.
57109         * modules/recvfrom (Depends-on): Likewise.
57110         * modules/regex (Depends-on): Likewise.
57111         * modules/remove (Depends-on): Likewise.
57112         * modules/rename (Depends-on): Likewise.
57113         * modules/renameat (Depends-on): Likewise.
57114         * modules/rmdir (Depends-on): Likewise.
57115         * modules/round (Depends-on): Likewise.
57116         * modules/roundf (Depends-on): Likewise.
57117         * modules/roundl (Depends-on): Likewise.
57118         * modules/rpmatch (Depends-on): Likewise.
57119         * modules/select (Depends-on): Likewise.
57120         * modules/send (Depends-on): Likewise.
57121         * modules/sendto (Depends-on): Likewise.
57122         * modules/setenv (Depends-on): Likewise.
57123         * modules/setlocale (Depends-on): Likewise.
57124         * modules/setsockopt (Depends-on): Likewise.
57125         * modules/shutdown (Depends-on): Likewise.
57126         * modules/sigaction (Depends-on): Likewise.
57127         * modules/signbit (Depends-on): Likewise.
57128         * modules/sigprocmask (Depends-on): Likewise.
57129         * modules/sinl (Depends-on): Likewise.
57130         * modules/sleep (Depends-on): Likewise.
57131         * modules/snprintf (Depends-on): Likewise.
57132         * modules/snprintf-posix (Depends-on): Likewise.
57133         * modules/socket (Depends-on): Likewise.
57134         * modules/sprintf-posix (Depends-on): Likewise.
57135         * modules/sqrtl (Depends-on): Likewise.
57136         * modules/stat (Depends-on): Likewise.
57137         * modules/strchrnul (Depends-on): Likewise.
57138         * modules/strdup-posix (Depends-on): Likewise.
57139         * modules/strerror (Depends-on): Likewise.
57140         * modules/strerror_r-posix (Depends-on): Likewise.
57141         * modules/strndup (Depends-on): Likewise.
57142         * modules/strnlen (Depends-on): Likewise.
57143         * modules/strptime (Depends-on): Likewise.
57144         * modules/strsep (Depends-on): Likewise.
57145         * modules/strsignal (Depends-on): Likewise.
57146         * modules/strstr-simple (Depends-on): Likewise.
57147         * modules/strtod (Depends-on): Likewise.
57148         * modules/strtoimax (Depends-on): Likewise.
57149         * modules/strtok_r (Depends-on): Likewise.
57150         * modules/strtoumax (Depends-on): Likewise.
57151         * modules/symlink (Depends-on): Likewise.
57152         * modules/symlinkat (Depends-on): Likewise.
57153         * modules/tanl (Depends-on): Likewise.
57154         * modules/tcgetsid (Depends-on): Likewise.
57155         * modules/tmpfile (Depends-on): Likewise.
57156         * modules/trunc (Depends-on): Likewise.
57157         * modules/truncf (Depends-on): Likewise.
57158         * modules/truncl (Depends-on): Likewise.
57159         * modules/uname (Depends-on): Likewise.
57160         * modules/unlink (Depends-on): Likewise.
57161         * modules/unlockpt (Depends-on): Likewise.
57162         * modules/unsetenv (Depends-on): Likewise.
57163         * modules/usleep (Depends-on): Likewise.
57164         * modules/utimensat (Depends-on): Likewise.
57165         * modules/vasprintf (Depends-on): Likewise.
57166         * modules/vdprintf (Depends-on): Likewise.
57167         * modules/vdprintf-posix (Depends-on): Likewise.
57168         * modules/vfprintf-posix (Depends-on): Likewise.
57169         * modules/vprintf-posix (Depends-on): Likewise.
57170         * modules/vsnprintf (Depends-on): Likewise.
57171         * modules/vsnprintf-posix (Depends-on): Likewise.
57172         * modules/vsprintf-posix (Depends-on): Likewise.
57173         * modules/wcrtomb (Depends-on): Likewise.
57174         * modules/wcscasecmp (Depends-on): Likewise.
57175         * modules/wcscspn (Depends-on): Likewise.
57176         * modules/wcsdup (Depends-on): Likewise.
57177         * modules/wcsncasecmp (Depends-on): Likewise.
57178         * modules/wcsnrtombs (Depends-on): Likewise.
57179         * modules/wcspbrk (Depends-on): Likewise.
57180         * modules/wcsrtombs (Depends-on): Likewise.
57181         * modules/wcsspn (Depends-on): Likewise.
57182         * modules/wcsstr (Depends-on): Likewise.
57183         * modules/wcstok (Depends-on): Likewise.
57184         * modules/wcswidth (Depends-on): Likewise.
57185         * modules/wctob (Depends-on): Likewise.
57186         * modules/wctomb (Depends-on): Likewise.
57187         * modules/wctype (Depends-on): Likewise.
57188         * modules/wcwidth (Depends-on): Likewise.
57189         * modules/write (Depends-on): Likewise.
57191 2011-05-03  Bruno Haible  <bruno@clisp.org>
57193         Support for conditional dependencies.
57194         * doc/gnulib.texi (Module description): Document the syntax of
57195         conditional dependencies.
57196         * gnulib-tool: New option --conditional-dependencies.
57197         (func_usage): Document it.
57198         (cond_dependencies): New variable.
57199         (func_get_automake_snippet_conditional,
57200         func_get_automake_snippet_unconditional): New functions, extracted from
57201         func_get_automake_snippet.
57202         (func_get_automake_snippet): Use them.
57203         (sed_first_32_chars): New variable.
57204         (func_module_shellfunc_name): New function.
57205         (func_module_shellvar_name): New function.
57206         (func_module_conditional_name): New function.
57207         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
57208         func_cond_module_condition): New functions.
57209         (func_modules_transitive_closure): Add support for conditional
57210         dependencies.
57211         (func_emit_lib_Makefile_am): For a conditional module, enclose the
57212         conditional automake snippet in an automake conditional.
57213         (func_emit_autoconf_snippets): Emit shell functions that contain the
57214         code for conditional modules.
57215         (func_import, func_create_testdir): Update specification.
57217 2011-05-03  Eric Blake  <eblake@redhat.com>
57219         test-getaddrinfo: report error information
57220         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
57222 2011-05-03  Jim Meyering  <meyering@redhat.com>
57224         bootstrap: avoid build failure when $GZIP is set
57225         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
57226         program name.  If defined at all, it is supposed to list gzip options.
57227         Reported by Alan Curry in http://debbugs.gnu.org/8609
57229 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
57231         readme-release: new module with release instructions
57232         * modules/readme-release: New module.
57233         * top/README-release: New file, from coreutils, grep, diffutils.
57234         * MODULES.html.sh (Support for maintaining and releasing): Add it.
57236 2011-05-02  Eric Blake  <eblake@redhat.com>
57238         fflush: also replace fclose when fixing fflush
57239         * modules/fflush (Depends-on): Add fclose.
57240         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
57241         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
57242         memstreams with no backing fd.
57243         * doc/posix-functions/fclose.texi (fclose): Document the use of
57244         fflush module to fix the bug.
57245         * tests/test-fclose.c (main): Relax test when fclose is used in
57246         isolation.
57248         fclose: add some tests
57249         * modules/fclose-tests: New test module.
57250         * tests/test-fclose.c: New file.
57251         * doc/posix-functions/fclose.texi (fclose): Document the bug.
57253         fclose: reduced dependencies
57254         * modules/fclose (Depends-on): Switch from fflush/fseeko to
57255         simpler lseek.
57256         * lib/fclose.c (rpl_fclose): Likewise.
57257         Reported by Simon Josefsson.
57259         exit: drop remaining clients
57260         * modules/argmatch (Depends-on): Replace exit with stdlib.
57261         * modules/copy-file (Depends-on): Likewise.
57262         * modules/execute (Depends-on): Likewise.
57263         * modules/exitfail (Depends-on): Likewise.
57264         * modules/obstack (Depends-on): Likewise.
57265         * modules/pagealign_alloc (Depends-on): Likewise.
57266         * modules/pipe-filter-gi (Depends-on): Likewise.
57267         * modules/pipe-filter-ii (Depends-on): Likewise.
57268         * modules/savewd (Depends-on): Likewise.
57269         * modules/spawn-pipe (Depends-on): Likewise.
57270         * modules/wait-process (Depends-on): Likewise.
57271         * modules/xsetenv (Depends-on): Likewise.
57272         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
57273         * modules/git-merge-changelog (Depends-on): Likewise.
57274         * modules/long-options (Depends-on): Likewise.
57275         * modules/pt_chown (Depends-on): Likewise.
57276         * modules/sysexits (Depends-on): Likewise.
57278         freading: relax license from LGPLv3+ to LGPLv2+
57279         * modules/freading (License): Relax LGPL version.
57281 2011-05-02  Bruno Haible  <bruno@clisp.org>
57283         fchdir: Remove unused dependencies.
57284         * modules/fchdir (Depends-on): Remove include_next.
57286 2011-05-02  Bruno Haible  <bruno@clisp.org>
57288         gnulib-tool: Refactor.
57289         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
57290         from func_emit_autoconf_snippets.
57291         (func_emit_autoconf_snippets): Use it.
57293 2011-05-02  Simon Josefsson  <simon@josefsson.org>
57295         * NEWS: Document removal of 'exit'.
57296         * modules/exit: Remove file.
57298 2011-05-01  Bruno Haible  <bruno@clisp.org>
57300         Update DEPENDENCIES.
57301         * DEPENDENCIES (gettext): Recommend the newest release.
57302         Reported by Simon Josefsson.
57304 2011-05-01  Bruno Haible  <bruno@clisp.org>
57306         gnulib-tool: Reduce code duplication.
57307         * gnulib-tool (func_emit_autoconf_snippets): New function.
57308         (func_import, func_create_testdir): Use it.
57310 2011-04-30  Eric Blake  <eblake@redhat.com>
57312         fclose: don't fail on non-seekable input stream
57313         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
57314         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
57315         since fflush is allowed to fail in that case.
57317 2011-04-30  Bruno Haible  <bruno@clisp.org>
57319         dup3: cleanup
57320         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
57322 2011-04-30  Bruno Haible  <bruno@clisp.org>
57324         netdb: Make it work in C++ mode.
57325         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
57326         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
57327         module.
57328         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
57329         gl_MODULE_INDICATOR_FOR_TESTS.
57330         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
57331         * modules/netdb-c++-tests: New file.
57332         * tests/test-netdb-c++.cc: New file.
57334 2011-04-30  Bruno Haible  <bruno@clisp.org>
57336         New modules 'vfscanf', 'vscanf'.
57337         * modules/vfscanf: New file.
57338         * modules/vscanf: New file.
57339         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
57340         here.
57341         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
57342         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
57344 2011-04-30  Bruno Haible  <bruno@clisp.org>
57346         passfd: Add comments.
57347         * lib/passfd.c: Add comments about platforms.
57349 2011-04-30  Bruno Haible  <bruno@clisp.org>
57351         sys_uio: Make <sys/uio.h> self-contained.
57352         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
57353         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
57355 2011-04-30  Bruno Haible  <bruno@clisp.org>
57357         sys_socket: Ensure 'struct iovec' definition.
57358         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
57359         <sys/socket.h>.
57360         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
57362 2011-04-30  Bruno Haible  <bruno@clisp.org>
57364         sys_uio: Protect definition of 'struct iovec'.
57365         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
57366         it as a C struct.
57368 2011-04-30  Bruno Haible  <bruno@clisp.org>
57370         manywarnings: fix indentation
57371         * m4/manywarnings.m4: Indent by 2 spaces consistently.
57373 2011-04-30  Pádraig Brady  <P@draigBrady.com>
57375         manywarnings: add -Wno-missing-field-initializers if needed.
57376         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
57377         option if it's needed to allow initialization with { 0, }
57379 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
57381         announce-gen: cosmetic improvement
57382         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
57384 2011-04-29  Jim Meyering  <meyering@redhat.com>
57386         vc-list-files: indent with spaces, not TABs
57387         * build-aux/vc-list-files: Convert leading TABs to spaces,
57388         to match the style of most other files in gnulib.
57390         announce-gen: indent with spaces, not TABs
57391         * build-aux/announce-gen: Convert all TABs to spaces, to match
57392         the style of most other files in gnulib.
57394 2011-04-29  Eric Blake  <eblake@redhat.com>
57396         quotearg: avoid uninitialized variable use
57397         * lib/quotearg.c (quoting_options_from_style): Initialize
57398         remaining fields, and ensure that custom styles are only used via
57399         quoting_options rather than quoting_style.
57401 2011-04-29  Jim Meyering  <meyering@redhat.com>
57403         maint.mk: remove unused VC-tag variable
57404         * top/maint.mk (VC-tag): Remove unused variable.
57406 2011-04-29  Bruno Haible  <bruno@clisp.org>
57408         netdb: fix gai_strerror replacements
57409         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
57410         * modules/netdb: Substitute it.
57412 2011-04-29  Jim Meyering  <meyering@redhat.com>
57414         test-getcwd.c: avoid new set-but-not-used warning
57415         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
57416         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
57417         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
57418         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
57420         test-hash.c: avoid a new shadowing warning
57421         * tests/test-hash.c (main): Don't shadow "dup".
57423 2011-04-28  Eric Blake  <eblake@redhat.com>
57425         getaddrinfo: fix gai_strerror signature
57426         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
57427         and work around mingw with UNICODE defined.
57428         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
57429         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
57430         * modules/netdb (Makefile.am): Substitute it.
57431         * lib/netdb.in.h (gai_strerror): Declare replacement.
57432         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
57433         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
57434         the fix.
57436         getsockopt: avoid compiler warning
57437         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
57438         Reported by Matthias Bolte.
57440         tests: drop unused link dependency
57441         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
57442         * modules/dirent-safer-tests (Makefile.am): Likewise.
57443         * modules/fdopendir-tests (Makefile.am): Likewise.
57444         * modules/mkfifoat-tests (Makefile.am): Likewise.
57445         * modules/openat-safer-tests (Makefile.am): Likewise.
57446         * modules/openat-tests (Makefile.am): Likewise.
57447         * modules/readlinkat-tests (Makefile.am): Likewise.
57448         * modules/symlinkat-tests (Makefile.am): Likewise.
57449         * modules/linkat-tests (Makefile.am): Likewise.
57450         (Depends-on): Switch to filenamecat-lgpl.
57451         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
57452         LIBINTL.
57453         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
57454         * tests/test-linkat.c (main): Don't require xalloc.
57456         hash, mgetgroups: drop xalloc dependency
57457         * lib/hash.c (includes): Adjust includes.
57458         * lib/mgetgroups.c (includes): Likewise.
57459         (xgetgroups): Move...
57460         * lib/xgetgroups.c: ...to new file.
57461         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
57462         * modules/xgetgroups: New file, split from...
57463         * modules/mgetgroups: ...here.
57464         (Depends-on): Add xalloc-oversized.
57465         * modules/hash (Depends-on): Likewise.
57466         * modules/hash-tests (Depends-on): Drop xalloc.
57467         (test_hash_LDADD): Drop unused library.
57468         * tests/test-hash.c (main): Break xalloc dependency.
57469         (includes): Drop unused include.
57471         xalloc-oversized: new module
57472         * modules/xalloc-oversized: New module.
57473         * modules/xalloc (Depends-on): Add it.
57474         * lib/xalloc.h (xalloc_oversized): Move...
57475         * lib/xalloc-oversized.h: ...into new file.
57477         utimecmp: drop dependency on xmalloc
57478         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
57479         due to memory pressure.
57480         * modules/utimecmp (Depends-on): Drop xalloc.
57482 2011-04-27  Eric Blake  <eblake@redhat.com>
57484         getcwd: fix mingw bugs
57485         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
57486         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
57487         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
57489 2011-04-27  Bruno Haible  <bruno@clisp.org>
57491         mkstemps: Ensure declaration on MacOS X 10.5.
57492         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
57493         * doc/glibc-functions/mkstemps.texi: Document header file problem on
57494         MacOS X.
57496 2011-04-27  Bruno Haible  <bruno@clisp.org>
57498         mkstemp: More documentation.
57499         * doc/posix-functions/mkstemp.texi: Document header file problem on
57500         MacOS X.
57502 2011-04-27  Bruno Haible  <bruno@clisp.org>
57504         mkstemp: Tweak configure message when cross-compiling.
57505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
57506         result as a guess.
57508 2011-04-27  Bruno Haible  <bruno@clisp.org>
57510         clean-temp: Clarify what it does.
57511         * lib/clean-temp.h: Add more comments.
57512         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
57513         module.
57514         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
57515         * doc/glibc-functions/mkstemps.texi: Likewise.
57516         * doc/glibc-functions/mkostemps.texi: Likewise.
57518 2011-04-27  Eric Blake  <eblake@redhat.com>
57520         fchdir: avoid extra chdir and fix test
57521         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
57522         getcwd-lgpl.
57523         * lib/fchdir.c (get_name): Any absolute name will do; it does not
57524         have to be canonical.
57525         (canonicalize_file_name): Drop unused macro.
57526         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
57528         filenamecat-lgpl: fix licence
57529         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
57530         when it was first created.
57532         linkat, renameat: add missing dependency
57533         * modules/linkat (Depends-on): Require getcwd-lgpl.
57534         * modules/renameat (Depends-on): Likewise.
57536         tests: reduce dependencies
57537         * tests/test-linkat.c (main): Use lighter-weight getcwd.
57538         * tests/test-renameat.c (main): Likewise.
57539         * modules/linkat-tests (Depends-on): Relax dependency.
57540         * modules/renameat-tests (Depends-on): Likewise.
57541         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
57542         dependency explicit.
57544         save-cwd: reduce default dependency
57545         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
57546         * lib/save-cwd.c: Update comments.
57547         * NEWS: Document the semantic change.
57549         getcwd: enhance tests
57550         * tests/test-getcwd-lgpl.c: New file, taken from...
57551         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
57552         repeat long path stress tests from m4 probe.
57553         * modules/getcwd-lgpl-tests: New module.
57554         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
57555         * m4/getcwd-abort-bug.m4: Update comment.
57556         * m4/getcwd-path-max.m4: Likewise.
57558         getcwd-lgpl: new module
57559         * modules/getcwd-lgpl: New module.
57560         * lib/getcwd-lgpl.c: New file.
57561         * doc/posix-functions/getcwd.texi (getcwd): Document it.
57562         * MODULES.html.sh (lacking POSIX:2008): Likewise.
57563         * modules/getcwd (configure.ac): Set C witness.
57564         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
57566         getcwd: tweak comments
57567         * m4/getcwd-abort-bug.m4: Fix comments.
57568         * m4/getcwd-path-max.m4: Likewise.
57569         * m4/getcwd.m4: Likewise.
57571 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57572         and Eric Blake  <eblake@redhat.com>
57574         mkstemp: replace if system version uses wrong permissions
57575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
57576         read/write mode bits set in file created by mkstemp.
57577         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
57579 2011-04-27  Eric Blake  <eblake@redhat.com>
57581         passfd: avoid compiler warning
57582         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
57583         Reported by Laine Stump.
57585 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
57587         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
57588         required by the NetBSD (and perhaps other 4.4BSD derived) join.
57590 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57591         and Eric Blake  <eblake@redhat.com>
57593         mkstemp: mention clean-temp module
57594         * lib/mkstemp.c: Add comment.
57595         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
57597 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
57599         inttypes: also provide default values for 32-bit tests
57600         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
57601         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
57603 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57605         strtoumax: remove dependency on strtoimax
57606         This is like the strtoull change of yesterday.
57607         * modules/strtoumax (Files): Add lib/strtoimax.c.
57608         (Depends-on): Remove strtoimax and add verify.
57610         inttypes-incomplete: new module
57611         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
57612         all but the PRI* and SCN* parts of gl_INTTYPES_H.
57613         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
57614         of gl_INTTYPES_H.
57615         (gl_INTTYPES_H): Rewrite in terms of these new macros.
57616         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
57617         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
57618         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
57619         * modules/strtoumax, modules/xstrtol (Depends-on):
57620         Depend on inttypes-incomplete, not inttypes.
57621         * modules/inttypes-incomplete: New module, containing the contents
57622         of the old modules/inttypes module, except that the Files: section
57623         omits m4/inttypes-pri.m4, and the configure.ac section invokes
57624         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
57625         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
57626         (Depends-on): Depend only on inttypes-incomplete.
57627         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
57629         inttypes: omit now-redundant strtoimax and strtoumax work
57630         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
57631         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
57633         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
57634         This supports apps that need pointers to strtoimax and strtoumax,
57635         and ports to HP-UX 11.00 64.bit, which has macros that expand to
57636         nonexistent functions.  See
57637         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
57638         et seq.
57639         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
57640         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
57641         a macro.
57642         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57644 2011-04-25  Simon Josefsson  <simon@josefsson.org>
57646         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
57648 2011-04-25  Bruno Haible  <bruno@clisp.org>
57650         strtol, strtoul: Mark modules as obsolete.
57651         * modules/strtol (Status, Notice): New sections.
57652         * modules/strtoul (Status, Notice): New sections.
57654 2011-04-25  Bruno Haible  <bruno@clisp.org>
57656         strtod: Remove check for strtod, unless supporting old platforms.
57657         * modules/strtod-obsolete: New file.
57658         * m4/strtod-obsolete.m4: New file.
57659         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
57660         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
57661         * modules/strtod (Depends-on): Add strtod-obsolete.
57662         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
57664 2011-04-25  Bruno Haible  <bruno@clisp.org>
57666         strcase: Make module obsolete.
57667         * modules/strcase (Status, Notice): New sections.
57669 2011-04-25  Bruno Haible  <bruno@clisp.org>
57671         dup2: Remove check for dup2, unless supporting old obsolete platforms.
57672         * modules/dup2-obsolete: New file.
57673         * m4/dup2-obsolete.m4: New file.
57674         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
57675         gl_FUNC_DUP2_OBSOLETE is not also defined.
57676         * modules/dup2 (Depends-on): Add dup2-obsolete.
57677         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
57679 2011-04-25  Bruno Haible  <bruno@clisp.org>
57681         strnlen: Avoid memchr related link error on old obsolete platforms.
57682         * modules/memchr-obsolete: New file.
57683         * m4/memchr-obsolete.m4: New file.
57684         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
57685         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
57686         * modules/memchr (Depends-on): Add memchr-obsolete.
57687         * modules/strnlen (Depends-on): Likewise.
57688         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
57690 2011-04-25  Jim Meyering  <meyering@redhat.com>
57692         maint.mk: makefile_at_at_check extend and clean up
57693         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
57694         in addition to */Makefile.am.
57695         Exempt legitimate uses of @VAR@ notation, e.g.,
57696         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
57697         Remove obsolete coreutils-specific comment.
57698         Prompted by discussion here:
57699         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
57701 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57703         strtoul: remove dependency on strtol
57704         This is so that 'configure' need not check for strtol merely because
57705         the application needs strtoul.
57706         * modules/strtoul (Files): Add lib/strtol.c.
57707         (Depends-on): Remove strtol.
57709         strtoull: remove dependency on strtoul
57710         This is like the strtoll change.
57711         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
57712         (Depends-on): Remove strtoul.
57714         strtoll: remove dependency on strtol
57715         This is so that 'configure' need not check for strtol merely because
57716         the application needs strtoll.
57717         * modules/strtoll (Files): Add lib/strtol.c.
57718         (Depends-on): Remove strtol.
57720 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57722         inttypes: Move some configure check to module 'imaxdiv'.
57723         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
57724         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
57725         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
57727 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57729         inttypes: Move some configure check to module 'imaxabs'.
57730         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
57731         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
57732         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
57734 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57736         inttypes: Remove configure tests that are not needed since 2009-12-31.
57737         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
57738         gl_cv_header_working_inttypes_h.
57740 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57742         * modules/strnlen (Depends-on): Remove memchr.
57743         The strnlen implementation doesn't need the memchr module's fixes; see
57744         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
57746         strtol: remove dependency on wchar
57747         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
57748         * modules/strtol (Depends-on): Remove wchar.
57750 2011-04-21  Eric Blake  <eblake@redhat.com>
57752         passfd: fix test regression on Linux
57753         * modules/passfd-tests (configure.ac): Correct socketpair check.
57755         passfd: speed up configure and drop unused code
57756         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
57757         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
57758         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
57759         Instead of probing at configure for unix_scm_rights_bsd44_way,
57760         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
57761         check to a struct member probe.
57762         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
57763         (sendfd, recvfd): Update preprocessor checks.
57764         * modules/passfd (Files): Reflect rename, and drop unused file.
57765         (Depends-on): Drop unused dependency.
57767         passfd: allow compilation on mingw
57768         * modules/sys_socket (Depends-on): Add sys_uio.
57769         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
57770         iovec and a minimal struct msghdr.
57771         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
57772         * tests/test-sys_socket.c (main): Enhance test.
57773         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
57774         guaranteed to provide what we need.
57775         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
57776         * modules/passfd-tests (Depends-on): Add sys_wait.
57777         * tests/test-passfd.c (main): Skip test on mingw, for now.
57778         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
57779         partial 'struct msghdr' implementation.
57781         sys_uio: new module
57782         * modules/sys_uio: New module.
57783         * modules/sys_uio-tests: Likewise.
57784         * lib/sys_uio.in.h: New file.
57785         * m4/sys_uio_h.m4: Likewise.
57786         * tests/test-sys_uio.c: Likewise.
57787         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
57788         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
57790 2011-04-20  Jim Meyering  <meyering@redhat.com>
57792         useless-if-before-free: avoid false-positive
57793         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
57794         disjunct so that it too requires a terminating ";".  Without that,
57795         this script would identify as useless one statement from gcc that
57796         was not:
57797           if (aligned_ptr)
57798             free (((void **) aligned_ptr) [-1]);
57800 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
57802         doc: update users.txt.
57803         * users.txt: Add barcode.
57805 2011-04-19  Bruno Haible  <bruno@clisp.org>
57807         ioctl: Remove link dependency on native Windows.
57808         * lib/fd-hook.h: Renamed from lib/close-hook.h.
57809         (gl_close_fn, gl_ioctl_fn): New types.
57810         (struct fd_hook): Renamed from struct close_hook. Change type of
57811         private_close_fn field. Add private_ioctl_fn field.
57812         (close_hook_fn): Add parameter for primary close method.
57813         (execute_close_hooks, execute_all_close_hooks): Likewise.
57814         (ioctl_hook_fn): New type.
57815         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
57816         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57817         argument.
57818         (unregister_fd_hook): Renamed from unregister_close_hook.
57819         * lib/fd-hook.c: Renamed from lib/close-hook.c.
57820         Don't include <unistd.h>.
57821         (close): Remove undef.
57822         (anchor): Update.
57823         (execute_close_hooks): Add argument for primary close method.
57824         (execute_all_close_hooks): Likewise.
57825         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
57826         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57827         argument. Allow each argument to be NULL.
57828         (unregister_fd_hook): Renamed from unregister_close_hook.
57829         * lib/close.c (rpl_close): Pass 'close' function pointer to
57830         execute_all_close_hooks.
57831         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
57832         (primary_ioctl): New function.
57833         (ioctl): Don't call ioctlsocket here. Instead, call
57834         execute_all_ioctl_hooks.
57835         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
57836         close method.
57837         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
57838         (fd_sockets_hook): Renamed from close_sockets_hook.
57839         (gl_sockets_startup, gl_sockets_cleanup): Update.
57840         * modules/fd-hook: Renamed from modules/close-hook. Update.
57841         * modules/close (Depends-on): Add fd-hook, remove close-hook.
57842         * modules/sockets (Depends-on): Likewise.
57843         * modules/ioctl (Depends-on): Add fd-hook.
57844         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
57845         GNULIB_SOCKET.
57847 2011-04-19  Bruno Haible  <bruno@clisp.org>
57849         Move the support of O_NONBLOCK in open() to the 'open' module.
57850         * modules/nonblocking (Depends-on): Remove 'open'.
57851         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
57852         gl_cv_have_open_O_NONBLOCK.
57853         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
57854         O_NONBLOCK support.
57855         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
57857 2011-04-17  Bruno Haible  <bruno@clisp.org>
57859         pipe2: Simplify code.
57860         * lib/pipe2.c (pipe2): Reduce code duplication.
57862 2011-04-17  Bruno Haible  <bruno@clisp.org>
57864         nonblocking: Add comment.
57865         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
57867 2011-04-17  Bruno Haible  <bruno@clisp.org>
57869         nonblocking: Add tests for sockets.
57870         * tests/test-nonblocking-socket.sh: New file.
57871         * tests/test-nonblocking-socket-main.c: New file.
57872         * tests/test-nonblocking-socket-child.c: New file.
57873         * tests/test-nonblocking-socket.h: New file.
57874         * tests/socket-server.h: New file.
57875         * tests/socket-client.h: New file.
57876         * modules/nonblocking-socket-tests: New file.
57877         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
57879 2011-04-17  Bruno Haible  <bruno@clisp.org>
57881         nonblocking: Add tests for pipes.
57882         * tests/test-nonblocking-pipe.sh: New file.
57883         * tests/test-nonblocking-pipe-main.c: New file.
57884         * tests/test-nonblocking-pipe-child.c: New file.
57885         * tests/test-nonblocking-pipe.h: New file.
57886         * tests/test-nonblocking-writer.h: New file.
57887         * tests/test-nonblocking-reader.h: New file.
57888         * tests/test-nonblocking-misc.h: New file.
57889         * modules/nonblocking-pipe-tests: New file.
57890         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
57892 2011-04-16  Bruno Haible  <bruno@clisp.org>
57894         gettext: Clarify the needed programmer actions.
57895         * modules/gettext (Notice): New field.
57896         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57898 2011-04-16  Bruno Haible  <bruno@clisp.org>
57900         strchrnul: Tweak last commit.
57901         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
57902         bug.
57903         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
57904         as in _GL_FUNCDECL_SYS.
57905         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
57906         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
57908 2011-04-15  Eric Blake  <eblake@redhat.com>
57910         strchrnul: work around cygwin bug
57911         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
57912         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
57913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
57914         * modules/string (Makefile.am): Substitute it.
57915         * lib/string.in.h (strchrnul): Use it.
57917 2011-04-15  Bruno Haible  <bruno@clisp.org>
57919         Don't require lib/stdio-write.c when only module 'stdio' is used.
57920         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
57921         invocation.
57922         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
57924 2011-04-14  Bruno Haible  <bruno@clisp.org>
57926         Support non-blocking pipe I/O in read() on native Windows.
57927         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
57928         (read): New declaration.
57929         * lib/read.c: New file.
57930         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
57931         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
57932         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
57933         vscanf): New declarations.
57934         * lib/stdio-read.c: New file.
57935         * m4/read.m4: New file.
57936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
57937         REPLACE_READ.
57938         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
57939         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57940         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
57941         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
57942         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
57943         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57944         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57945         * modules/read: New file.
57946         * modules/nonblocking (Files): Add lib/stdio-read.c.
57947         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
57948         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
57949         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57950         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57951         * modules/pread (Depends-on): Add read.
57952         * modules/safe-read (Depends-on): Likewise.
57953         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
57954         gets, scanf, vfscanf, vscanf): Verify signatures.
57955         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
57956         problem with non-blocking pipes.
57957         * doc/posix-functions/fgetc.texi: Likewise.
57958         * doc/posix-functions/fgets.texi: Likewise.
57959         * doc/posix-functions/fread.texi: Likewise.
57960         * doc/posix-functions/fscanf.texi: Likewise.
57961         * doc/posix-functions/getc.texi: Likewise.
57962         * doc/posix-functions/getchar.texi: Likewise.
57963         * doc/posix-functions/gets.texi: Likewise.
57964         * doc/posix-functions/scanf.texi: Likewise.
57965         * doc/posix-functions/vfscanf.texi: Likewise.
57966         * doc/posix-functions/vscanf.texi: Likewise.
57968 2011-04-14  Bruno Haible  <bruno@clisp.org>
57970         Support non-blocking pipe I/O in write() on native Windows.
57971         * lib/write.c (rpl_write): Split a write request that failed merely
57972         because the byte count was larger than the pipe buffer's size.
57973         * doc/posix-functions/write.texi: Mention the problem with large byte
57974         counts.
57976 2011-04-14  Bruno Haible  <bruno@clisp.org>
57978         wchar: Ensure that wchar_t gets defined on uClibc.
57979         * lib/wchar.in.h: On uClibc, include <stddef.h>.
57980         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
57982 2011-04-13  Bruno Haible  <bruno@clisp.org>
57984         safe-write, full-read: Avoid unnecessary compilation units.
57985         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
57986         (Depends-on): Remove safe-read. Add ssize_t.
57987         * modules/full-read (Files): Add lib/full-write.c.
57988         (Depends-on): Add full-write.
57990 2011-04-13  Bruno Haible  <bruno@clisp.org>
57992         Support non-blocking pipe I/O and SIGPIPE in pwrite().
57993         * modules/pwrite (Depends-on): Add 'write'.
57995 2011-04-13  Bruno Haible  <bruno@clisp.org>
57997         Support non-blocking pipe I/O in write() on native Windows.
57998         * lib/unistd.in.h (write): Enable replacement also if
57999         GNULIB_UNISTD_H_NONBLOCKING is 1.
58000         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
58001         (rpl_write): When failing to write on a non-blocking pipe, change
58002         errno from ENOSPC to EAGAIN.
58003         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
58004         putchar, puts, vfprintf, vprintf): Enable replacement also if
58005         GNULIB_STDIO_H_NONBLOCKING is 1.
58006         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
58007         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
58008         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
58009         CALL_WITH_SIGPIPE_EMULATION.
58010         (CALL_WITH_SIGPIPE_EMULATION): Use them.
58011         * m4/nonblocking.m4: New file.
58012         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
58013         for non-blocking I/O support.
58014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58015         GNULIB_UNISTD_H_NONBLOCKING.
58016         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
58017         required for non-blocking I/O support.
58018         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
58019         * modules/nonblocking (Files): Add m4/nonblocking.m4,
58020         lib/stdio-write.c, m4/asm-underscore.m4.
58021         (Depends-on): Add stdio, unistd.
58022         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
58023         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
58024         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
58025         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
58026         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
58027         problem with non-blocking pipes.
58028         * doc/posix-functions/fputc.texi: Likewise.
58029         * doc/posix-functions/fputs.texi: Likewise.
58030         * doc/posix-functions/fwrite.texi: Likewise.
58031         * doc/posix-functions/printf.texi: Likewise.
58032         * doc/posix-functions/putc.texi: Likewise.
58033         * doc/posix-functions/putchar.texi: Likewise.
58034         * doc/posix-functions/puts.texi: Likewise.
58035         * doc/posix-functions/vfprintf.texi: Likewise.
58036         * doc/posix-functions/vprintf.texi: Likewise.
58037         * doc/posix-functions/write.texi: Likewise.
58039 2011-04-10  Jim Meyering  <meyering@redhat.com>
58041         maint.mk: prohibit doubled words
58042         Detect them also when they're separated by a newline.
58043         There are 3 ways to customize it:
58044           - disable the test on a per file basis, as usual with rules using
58045             $(VC_LIST_EXCEPT)
58046           - replace the default doubled-word-selecting regexp (affects all files)
58047           - ignore a particular file-vs-doubled-word match
58048         I nearly used that last one to ignore the "is is" match in
58049         coreutils' NEWS file, since the text was "ls -is is ..."
58050         To do that, I would have added this line to cfg.mk:
58051           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
58052         but it would have ignored any "is is" match in NEWS.
58053         Low probability, but still...
58054         Instead, I changed the text, slightly:
58055           -  ls -is is now consistent with ls -lis in ignoring values returned
58056           +  "ls -is" is now consistent with ls -lis in ignoring values returned
58057         * top/maint.mk (prohibit_double_word_RE_): Provide default.
58058         (prohibit_doubled_word_): Define.
58059         (sc_prohibit_doubled_word): New rule.
58060         (sc_prohibit_the_the): Remove.  Subsumed by the above.
58062 2011-04-10  Jim Meyering  <meyering@redhat.com>
58064         maint: fix doubled-word typo in comment
58065         * m4/gethostname.m4: s/is is/it is/
58066         * m4/getdomainname.m4: Likewise.
58068 2011-04-10  Jim Meyering  <meyering@redhat.com>
58070         maint: remove doubled word: s/it it/it/
58071         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
58073 2011-04-10  Jim Meyering  <meyering@redhat.com>
58075         maint.mk: remove useless semicolon and backslash
58076         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
58077         semicolon and backslash.
58079 2011-04-10  Bruno Haible  <bruno@clisp.org>
58081         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
58082         * modules/stdint-tests (Depends-on): Add wchar.
58084 2011-04-10  Jim Meyering  <meyering@redhat.com>
58086         maint: remove doubled words in comments, e.g., s/a a/a/
58087         * lib/strptime.c (day_of_the_week): s/the the/the/
58088         * tests/test-chown.h (test_chown): s/a a/a/
58090         test-chown.h: correct a cast
58091         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
58092         when the destination is a stat.st_gid.
58094 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
58096         getaddrinfo: Fix test for sa_len member.
58097         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
58098         include <sys/types.h> before <sys/socket.h>.
58100 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58102         maint: change "can not" to "cannot"
58103         * doc/posix-functions/iconv.texi (iconv): This one crossed line
58104         boundaries.
58106 2011-04-09  Jim Meyering  <meyering@redhat.com>
58108         maint: change "a a" to "a"
58109         * tests/test-lchown.h (test_lchown): s/a a/a/
58111         maint.mk: prohibit \<the the\>
58112         * top/maint.mk (sc_prohibit_the_the): New rule.
58114         maint: fix "the the" in comment
58115         * lib/count-one-bits.h: s/the the/the/
58117         maint: change "can not" to "cannot"
58118         But do not change the occurrences in maintain.texi or in
58119         build-aux/po/Makefile.in.in, which I presume comes from gettext.
58120         * doc/gnulib-tool.texi: s/can not/cannot/
58121         * doc/posix-functions/accept.texi (accept): Likewise.
58122         * doc/posix-functions/socket.texi (socket): Likewise.
58123         * lib/mbrtowc.c: Likewise.
58125         maint.mk: prohibit use of "can not"
58126         * top/maint.mk (sc_prohibit_can_not): New rule.
58127         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
58129 2011-04-09  Bruno Haible  <bruno@clisp.org>
58131         careadlinkat: Guard against misuse of careadlinkatcwd.
58132         * lib/careadlinkat.c: Include <stdlib.h>.
58133         (careadlinkatcwd): Check that the fd argument is as expected.
58135 2011-04-09  Bruno Haible  <bruno@clisp.org>
58137         careadlinkat: Use common coding style.
58138         * lib/careadlinkat.c: Move gnulib includes after system includes.
58140 2011-04-09  Bruno Haible  <bruno@clisp.org>
58142         careadlinkat: Clarify specification.
58143         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
58144         (careadlinkatcwd): Add comment.
58145         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
58147 2011-04-09  Bruno Haible  <bruno@clisp.org>
58149         areadlinkat: Avoid link error on many platforms.
58150         * modules/areadlinkat (Depends-on): Add areadlink.
58152 2011-04-09  Bruno Haible  <bruno@clisp.org>
58154         allocator, careadlinkat: Fix double-inclusion guard.
58155         * lib/allocator.h: Fix double-inclusion guard.
58156         * lib/careadlinkat.h: Likewise.
58158 2011-04-09  Bruno Haible  <bruno@clisp.org>
58160         relocatable-prog-wrapper: Update after module 'areadlink' changed.
58161         * lib/relocwrapper.c: Update dependencies hierarchy.
58162         * build-aux/install-reloc: Update list of files to be compiled.
58163         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
58164         lib/allocator.[hc].
58166 2011-04-08  Eric Blake  <eblake@redhat.com>
58168         strftime: silence gnulib-tool warning
58169         * modules/strftime-tests (Depends-on): Drop automatic dependency.
58171 2011-04-08  Bruno Haible  <bruno@clisp.org>
58173         verify: Fix syntax error with GCC 4.6 in C++ mode.
58174         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
58175         (HAVE_STATIC_ASSERT): New macro.
58176         (verify_true, verify): Use 'static_assert' if it is supported and
58177         '_Static_assert' is not supported.
58179 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
58181         allocator: New module.
58182         * modules/allocator, lib/allocator.c: New files.
58183         * lib/allocator.h (stdlib_allocator): New decl.
58184         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
58185         Remove.  Do not include <stdlib.h>.
58186         (careadlinkat): Use stdlib_allocator instead of rolling our own.
58187         * modules/careadlinkat (Files): Remove lib/allocator.h.
58188         (Depends-on): Add allocator.
58190         stdlib: let modules use system malloc, realloc
58191         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
58192         if !_GL_USE_STDLIB_ALLOC.
58193         (malloc, realloc): Limit this change to a smaller scope.
58195         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
58196         (malloc, realloc): Don't #undef; no longer needed.
58197         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58198         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58199         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
58200         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58201         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58202         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58203         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58204         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
58206         careadlinkat: rename members to avoid problem
58207         * lib/allocator.h (struct allocator): Rename members from
58208         malloc/realloc to allocate/reallocate, to avoid problems if malloc
58209         and realloc are #define'd.  Reported by Eric Blake in
58210         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
58211         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
58213 2011-04-08  Eric Blake  <eblake@redhat.com>
58215         nonblocking: reduce dependency
58216         * tests/test-nonblocking.c: Only test sockets when in use.
58217         * modules/nonblocking-tests (Depends-on): Drop socket.
58218         (Makefile.am): Link even if sockets are not present.
58219         * modules/pipe2-tests (Makefile.am): Likewise.
58220         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
58222         pipe2: fix O_NONBLOCK support on mingw
58223         * modules/pipe2 (Depends-on): Add nonblocking.
58224         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
58225         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
58226         * tests/test-nonblocking.c (main): Likewise.
58227         * modules/pipe2-tests (Makefile.am): Avoid link failure.
58229         fcntl-h: fix O_ACCMODE on cygwin
58230         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
58231         * lib/fcntl.in.h (O_ACCMODE): Fix it.
58233         pipe-filter: drop O_NONBLOCK workarounds
58234         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
58235         * modules/pipe-filter-ii (Depends-on): Likewise.
58236         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
58238         nonblocking: provide O_NONBLOCK for mingw
58239         * modules/nonblocking (Depends-on): Add open.
58240         (configure.ac): Set new witness macro.
58241         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
58242         * modules/fcntl-h (Makefile.am): Substitute it.
58243         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
58244         nonblocking module is in use.
58245         * lib/nonblocking.c: Adjust portability test.
58246         * lib/open.c (open): Don't let native open see gnulib flag.
58247         * tests/test-fcntl-h.c (main): Enhance test.
58248         * tests/test-open.h (test_open): Likewise.
58249         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
58251         careadlinkat: fix compilation error on mingw
58252         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
58253         within struct allocator.
58255 2011-04-06  Eric Blake  <eblake@redhat.com>
58257         binary-io: relicense under LGPLv2+
58258         * modules/binary-io (License): Relax to LGPLv2+.
58259         Requested for libvirt, and required by pipe2.
58261 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
58263         verify: use _Static_assert if available
58264         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
58265         (verify_true, verify): Use it if available.  This generates better
58266         diagnostics with GCC 4.6.0 and later.
58268 2011-04-05  Bruno Haible  <bruno@clisp.org>
58270         Remove leftover generated .h files after config.status changed.
58272         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
58273         GL_GENERATE_ALLOCA_H.
58274         * modules/alloca-opt (Makefile.am): Remove alloca.h if
58275         GL_GENERATE_ALLOCA_H evaluates to false.
58277         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
58278         GL_GENERATE_ARGZ_H.
58279         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
58280         evaluates to false.
58282         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
58283         GL_GENERATE_BYTESWAP_H.
58284         * modules/byteswap (Makefile.am): Remove byteswap.h if
58285         GL_GENERATE_BYTESWAP_H evaluates to false.
58287         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
58288         GL_GENERATE_ERRNO_H.
58289         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
58290         evaluates to false.
58292         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
58293         GL_GENERATE_FLOAT_H.
58294         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
58295         evaluates to false.
58297         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
58298         GL_GENERATE_FNMATCH_H.
58299         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
58300         GL_GENERATE_FNMATCH_H evaluates to false.
58302         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
58303         GL_GENERATE_GLOB_H.
58304         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
58305         evaluates to false.
58307         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
58308         automake conditional GL_GENERATE_ICONV_H.
58309         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
58310         evaluates to false.
58312         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
58313         GL_GENERATE_NETINET_IN_H.
58314         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
58315         GL_GENERATE_NETINET_IN_H evaluates to false.
58317         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
58318         conditional GL_GENERATE_PTHREAD_H.
58319         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
58320         * modules/pthread (Makefile.am): Remove pthread.h if
58321         GL_GENERATE_PTHREAD_H evaluates to false.
58323         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
58324         GL_GENERATE_SCHED_H.
58325         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
58326         evaluates to false.
58328         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
58329         conditional GL_GENERATE_SELINUX_CONTEXT_H.
58330         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
58331         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
58333         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
58334         GL_GENERATE_STDARG_H.
58335         * modules/stdarg (Makefile.am): Remove stdarg.h if
58336         GL_GENERATE_STDARG_H evaluates to false.
58338         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
58339         GL_GENERATE_STDBOOL_H.
58340         * modules/stdbool (Makefile.am): Remove stdbool.h if
58341         GL_GENERATE_STDBOOL_H evaluates to false.
58343         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
58344         conditional GL_GENERATE_STDDEF_H.
58345         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
58346         * modules/stddef (Makefile.am): Remove stddef.h if
58347         GL_GENERATE_STDDEF_H evaluates to false.
58349         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
58350         GL_GENERATE_STDINT_H.
58351         * modules/stdint (Makefile.am): Remove stdint.h if
58352         GL_GENERATE_STDINT_H evaluates to false.
58354         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
58355         GL_GENERATE_SYSEXITS_H.
58356         * modules/sysexits (Makefile.am): Remove sysexits.h if
58357         GL_GENERATE_SYSEXITS_H evaluates to false.
58359         Reported by Karl Berry and Ralf Wildenhues.
58361 2011-04-05  Bruno Haible  <bruno@clisp.org>
58363         Ensure to rebuild generated .h files when config.status has changed.
58364         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
58365         config.status.
58366         * modules/ctype (Makefile.am): Likewise.
58367         * modules/dirent (Makefile.am): Likewise.
58368         * modules/errno (Makefile.am): Likewise.
58369         * modules/fcntl-h (Makefile.am): Likewise.
58370         * modules/float (Makefile.am): Likewise.
58371         * modules/getopt-posix (Makefile.am): Likewise.
58372         * modules/glob (Makefile.am): Likewise.
58373         * modules/iconv-h (Makefile.am): Likewise.
58374         * modules/inttypes (Makefile.am): Likewise.
58375         * modules/langinfo (Makefile.am): Likewise.
58376         * modules/locale (Makefile.am): Likewise.
58377         * modules/math (Makefile.am): Likewise.
58378         * modules/netdb (Makefile.am): Likewise.
58379         * modules/netinet_in (Makefile.am): Likewise.
58380         * modules/poll-h (Makefile.am): Likewise.
58381         * modules/pthread (Makefile.am): Likewise.
58382         * modules/pty (Makefile.am): Likewise.
58383         * modules/sched (Makefile.am): Likewise.
58384         * modules/search (Makefile.am): Likewise.
58385         * modules/selinux-h (Makefile.am): Likewise.
58386         * modules/signal (Makefile.am): Likewise.
58387         * modules/spawn (Makefile.am): Likewise.
58388         * modules/stdarg (Makefile.am): Likewise.
58389         * modules/stdbool (Makefile.am): Likewise.
58390         * modules/stddef (Makefile.am): Likewise.
58391         * modules/stdint (Makefile.am): Likewise.
58392         * modules/stdio (Makefile.am): Likewise.
58393         * modules/stdlib (Makefile.am): Likewise.
58394         * modules/string (Makefile.am): Likewise.
58395         * modules/strings (Makefile.am): Likewise.
58396         * modules/sys_file (Makefile.am): Likewise.
58397         * modules/sys_ioctl (Makefile.am): Likewise.
58398         * modules/sys_select (Makefile.am): Likewise.
58399         * modules/sys_socket (Makefile.am): Likewise.
58400         * modules/sys_stat (Makefile.am): Likewise.
58401         * modules/sys_time (Makefile.am): Likewise.
58402         * modules/sys_times (Makefile.am): Likewise.
58403         * modules/sys_utsname (Makefile.am): Likewise.
58404         * modules/sys_wait (Makefile.am): Likewise.
58405         * modules/sysexits (Makefile.am): Likewise.
58406         * modules/termios (Makefile.am): Likewise.
58407         * modules/time (Makefile.am): Likewise.
58408         * modules/unistd (Makefile.am): Likewise.
58409         * modules/wchar (Makefile.am): Likewise.
58410         * modules/wctype-h (Makefile.am): Likewise.
58411         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
58413 2011-04-05  Bruno Haible  <bruno@clisp.org>
58415         pipe2: Relicense under LGPLv2+.
58416         * modules/pipe2 (License): Change to LGPLv2+.
58417         Requested by Eric Blake, for libvirt.
58419 2011-04-05  Bruce Korb  <bkorb@gnu.org>
58421         bootstrap: compute gnulib_extra_files after updating build_aux
58422         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
58423         change build_aux or also supply gnulib_extra_files.  Handle correctly.
58425 2011-04-05  Eric Blake  <eblake@redhat.com>
58427         bootstrap: preserve git whitelist item sorting
58428         * build-aux/bootstrap (sort_patterns): New function.
58429         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
58431 2011-04-05  Simon Josefsson  <simon@josefsson.org>
58433         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
58434         sc_space_tab check.
58436 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
58438         areadlink, areadlinkat: rewrite in terms of careadlinkat
58439         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
58440         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
58441         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
58442         (malloc, realloc): Remove #undefs.
58443         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
58444         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
58445         readlink, ssize_t, stdint, unistd.
58446         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
58447         areadlink, stdint.
58449         careadlinkat: new module
58450         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
58451         * modules/careadlinkat: New files, written by me with
58452         a review and feedback from Ben Pfaff in
58453         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
58455 2011-04-01  Bruno Haible  <bruno@clisp.org>
58457         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
58458         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
58459         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
58460         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
58461         Reported by Bruce Korb <bruce.korb@gmail.com>.
58463 2011-04-01  Bruno Haible  <bruno@clisp.org>
58465         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
58466         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
58467         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
58468         * modules/wcpcpy (Depends-on): Add extensions.
58469         * modules/wcpncpy (Depends-on): Likewise.
58470         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
58471         systems.
58472         * doc/posix-functions/wcpncpy.texi: Likewise.
58473         * doc/posix-functions/wcwidth.texi: Likewise.
58475 2011-03-31  Eric Blake  <eblake@redhat.com>
58477         nonblocking: fix mingw test failures
58478         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
58479         non-blocking flag on regular file.
58480         (get_nonblocking_flag): Set errno on invalid fd.
58481         * tests/test-nonblocking.c (main): Avoid test failure on
58482         directories if fchdir is not active.
58483         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
58485 2011-03-31  Bruno Haible  <bruno@clisp.org>
58487         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
58488         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
58489         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
58490         Reported by Simon Josefsson <simon@josefsson.org>.
58492 2011-03-31  Bruno Haible  <bruno@clisp.org>
58493         and Eric Blake  <eblake@redhat.com>
58495         nonblocking: new module
58496         * modules/nonblocking: New module.
58497         * modules/nonblocking-tests: Likewise.
58498         * lib/nonblocking.h: New file.
58499         * lib/nonblocking.c: Likewise.
58500         * tests/test-nonblocking.c: New test.
58501         * lib/ioctl.c (ioctl) [mingw]: Update comment.
58503 2011-03-30  Bruno Haible  <bruno@clisp.org>
58505         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
58506         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
58507         instead of 'printf' format for GCC >= 4.4.
58508         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
58509         (fprintf, printf, vfprintf, vprintf): Declare with
58510         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
58511         the system's vfprintf() function.
58512         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
58514 2011-03-30  Eric Blake  <eblake@redhat.com>
58516         passfd: fix scoping bug
58517         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
58518         before sendmsg/recvmsg.
58520         passfd: standardize coding conventions
58521         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
58522         can be learned at compile time.
58523         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
58524         ifdefs.
58525         (sendfd, recvfd): Follow gnulib code conventions.
58527         passfd: fix incorrect sendmsg arguments
58528         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
58529         incorrect msg_controllen value.
58530         * modules/passfd-tests (Depends-on): Check for alarm.
58531         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
58532         Reported by Bastien ROUCARIES.
58534 2011-03-30  Bruno Haible  <bruno@clisp.org>
58536         c-strcasestr: Relicense under LGPLv2+.
58537         * modules/c-strcasestr (License): Change to LGPLv2+.
58538         Requested by Eric Blake, for libvirt.
58540 2011-03-30  Simon Josefsson  <simon@josefsson.org>
58542         * users.txt: Add libidn2.  Fix libtasn1 link.
58544 2011-03-30  Jim Meyering  <meyering@redhat.com>
58546         tests: readlink* ("",... fails with EINVAL on newer kernels
58547         readlink and readlinkat have typically failed with ENOENT for
58548         the invalid, empty file name,  "".  However, with the advent
58549         of linux-2.6.39, they fail with EINVAL.
58550         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
58551         when operating on the empty file name.
58552         * tests/test-readlink.h (test_readlink): Likewise.
58554 2011-03-29  Bruno Haible  <bruno@clisp.org>
58556         Relicense some modules under LGPLv2+, for libidn2.
58557         * modules/array-mergesort (License): Change to LGPLv2+.
58558         * modules/c-strcaseeq (License): Likewise.
58559         * modules/striconveh (License): Likewise.
58560         * modules/striconveha (License): Likewise.
58561         * modules/uniconv/base (License): Likewise.
58562         * modules/uniconv/u8-conv-from-enc (License): Likewise.
58563         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
58564         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
58565         * modules/unictype/base (License): Likewise.
58566         * modules/unictype/bidiclass-of (License): Likewise.
58567         * modules/unictype/category-M (License): Likewise.
58568         * modules/unictype/category-none (License): Likewise.
58569         * modules/unictype/category-of (License): Likewise.
58570         * modules/unictype/category-test (License): Likewise.
58571         * modules/unictype/category-test-withtable (License): Likewise.
58572         * modules/unictype/combining-class (License): Likewise.
58573         * modules/unictype/joiningtype-of (License): Likewise.
58574         * modules/unictype/scripts (License): Likewise.
58575         * modules/uninorm/base (License): Likewise.
58576         * modules/uninorm/canonical-decomposition (License): Likewise.
58577         * modules/uninorm/composition (License): Likewise.
58578         * modules/uninorm/decompose-internal (License): Likewise.
58579         * modules/uninorm/decomposition-table (License): Likewise.
58580         * modules/uninorm/nfc (License): Likewise.
58581         * modules/uninorm/nfd (License): Likewise.
58582         * modules/uninorm/u32-normalize (License): Likewise.
58583         * modules/unistr/base (License): Likewise.
58584         * modules/unistr/u32-cpy (License): Likewise.
58585         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
58586         * modules/unistr/u32-to-u8 (License): Likewise.
58587         * modules/unistr/u32-uctomb (License): Likewise.
58588         * modules/unistr/u8-check (License): Likewise.
58589         * modules/unistr/u8-mblen (License): Likewise.
58590         * modules/unistr/u8-mbtouc (License): Likewise.
58591         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
58592         * modules/unistr/u8-mbtoucr (License): Likewise.
58593         * modules/unistr/u8-prev (License): Likewise.
58594         * modules/unistr/u8-strlen (License): Likewise.
58595         * modules/unistr/u8-to-u32 (License): Likewise.
58596         * modules/unistr/u8-uctomb (License): Likewise.
58597         * modules/unitypes (License): Likewise.
58598         Requested by Simon Josefsson.
58600 2011-03-29  Simon Josefsson  <simon@josefsson.org>
58602         lib-symbol-visibility: Add a notice.
58603         * modules/lib-symbol-visibility (Notice): New field.
58605 2011-03-29  Bruno Haible  <bruno@clisp.org>
58607         getaddrinfo: Doc fix.
58608         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
58609         section "fixed in Gnulib".
58611 2011-03-28  Simon Josefsson  <simon@josefsson.org>
58613         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
58614         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
58616 2011-03-26  Bruno Haible  <bruno@clisp.org>
58618         unictype/property-byname: Reduce the number of load-time relocations.
58619         * lib/unictype/pr_byname.c: Include <stdlib.h>.
58620         (UC_PROPERTY_INDEX_*): New enumeration values.
58621         (uc_property_byname): Convert an index from the lookup table to an
58622         uc_property_t.
58623         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
58624         values.
58626 2011-03-26  Bruno Haible  <bruno@clisp.org>
58628         unictype/property-byname: Allow omitted word separators and aliases.
58629         * lib/unictype/pr_byname.gperf: Add property names without word
58630         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
58631         for 'space'.
58633 2011-03-26  Bruno Haible  <bruno@clisp.org>
58635         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
58636         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
58637         also hyphens to space.
58638         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
58639         without spaces.
58640         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
58642 2011-03-26  Bruno Haible  <bruno@clisp.org>
58644         unictype/joiningtype-byname: Recognize long names as well.
58645         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
58646         a long name.
58647         * lib/unictype/joiningtype_byname.c: Include <string.h>,
58648         unictype/joiningtype_byname.h.
58649         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
58650         * lib/unictype/joiningtype_byname.gperf: New file.
58651         * modules/unictype/joiningtype-byname (Files): Add
58652         lib/unictype/joiningtype_byname.gperf.
58653         (Depends-on): Add gperf.
58654         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
58655         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
58656         long names.
58658         Tests for module 'unictype/joiningtype-longname'.
58659         * modules/unictype/joiningtype-longname-tests: New file.
58660         * tests/unictype/test-joiningtype_longname.c: New file.
58662         New module 'unictype/joiningtype-longname'.
58663         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
58664         * lib/unictype/joiningtype_longname.c: New file.
58665         * modules/unictype/joiningtype-longname: New file.
58666         * modules/unictype/joiningtype-all (Depends-on): Add
58667         unictype/joiningtype-longname.
58669 2011-03-26  Bruno Haible  <bruno@clisp.org>
58671         unictype/bidiclass-byname: Recognize long names as well.
58672         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
58673         name.
58674         * lib/unictype/bidi_byname.c: Include <string.h>,
58675         unictype/bidi_byname.h.
58676         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
58677         * lib/unictype/bidi_byname.gperf: New file.
58678         * modules/unictype/bidiclass-byname (Files): Add
58679         lib/unictype/bidi_byname.gperf.
58680         (Depends-on): Add gperf.
58681         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
58682         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
58683         long names.
58685         Tests for module 'unictype/bidiclass-longname'.
58686         * modules/unictype/bidiclass-longname-tests: New file.
58687         * tests/unictype/test-bidi_longname.c: New file.
58689         New module 'unictype/bidiclass-longname'.
58690         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
58691         * lib/unictype/bidi_longname.c: New file.
58692         * modules/unictype/bidiclass-longname: New file.
58693         * modules/unictype/bidiclass-all (Depends-on): Add
58694         unictype/bidiclass-longname.
58696 2011-03-26  Bruno Haible  <bruno@clisp.org>
58698         unictype/bidi*: Rename modules.
58699         * modules/unictype/bidiclass-all: Renamed from
58700         modules/unictype/bidicategory-all.
58701         * modules/unictype/bidiclass-name: Renamed from
58702         modules/unictype/bidiclass-name.
58703         (Description): Update.
58704         * modules/unictype/bidiclass-name-tests: Renamed from
58705         modules/unictype/bidicategory-name-tests.
58706         * modules/unictype/bidiclass-byname: Renamed from
58707         modules/unictype/bidicategory-byname.
58708         (Description): Update.
58709         * modules/unictype/bidiclass-byname-tests: Renamed from
58710         modules/unictype/bidicategory-byname-tests.
58711         * modules/unictype/bidiclass-of: Renamed from
58712         modules/unictype/bidicategory-of.
58713         (Description): Update.
58714         * modules/unictype/bidiclass-of-tests: Renamed from
58715         modules/unictype/bidicategory-of-tests.
58716         * modules/unictype/bidiclass-test: Renamed from
58717         modules/unictype/bidicategory-test.
58718         (Description): Update.
58719         * modules/unictype/bidiclass-test-tests: Renamed from
58720         modules/unictype/bidicategory-test-tests.
58721         * modules/unictype/bidicategory-all: New file, a simple redirection.
58722         * modules/unictype/bidicategory-name: Likewise.
58723         * modules/unictype/bidicategory-byname: Likewise.
58724         * modules/unictype/bidicategory-of: Likewise.
58725         * modules/unictype/bidicategory-test: Likewise.
58726         * modules/unictype/property-bidi-* (Dependencies): Update.
58727         * lib/unictype/bidi_*.c: Update comment.
58729 2011-03-26  Bruno Haible  <bruno@clisp.org>
58731         unictype/bidi*: Rename functions, part 2.
58732         * modules/unictype/bidicategory-name (configure.ac): Update required
58733         libunistring version.
58734         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
58736 2011-03-25  Bruno Haible  <bruno@clisp.org>
58738         New module 'unictype/combining-class-all'.
58739         * modules/unictype/combining-class-all: New file.
58741         Tests for module 'unictype/combining-class-byname'.
58742         * modules/unictype/combining-class-byname-tests: New file.
58743         * tests/unictype/test-combiningclass_byname.c: New file.
58745         New module 'unictype/combining-class-byname'.
58746         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
58747         * lib/unictype/combiningclass_byname.c: New file.
58748         * lib/unictype/combiningclass_byname.gperf: New file.
58749         * modules/unictype/combining-class-byname: New file.
58751         Tests for module 'unictype/combining-class-longname'.
58752         * modules/unictype/combining-class-longname-tests: New file.
58753         * tests/unictype/test-combiningclass_longname.c: New file.
58755         New module 'unictype/combining-class-longname'.
58756         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
58757         * lib/unictype/combiningclass_longname.c: New file.
58758         * modules/unictype/combining-class-longname: New file.
58760         Tests for module 'unictype/combining-class-name'.
58761         * modules/unictype/combining-class-name-tests: New file.
58762         * tests/unictype/test-combiningclass_name.c: New file.
58764         New module 'unictype/combining-class-name'.
58765         * lib/unictype.in.h (uc_combining_class_name): New declaration.
58766         * lib/unictype/combiningclass_name.c: New file.
58767         * modules/unictype/combining-class-name: New file.
58769 2011-03-25  Bruno Haible  <bruno@clisp.org>
58771         unictype/combining-class: Rename source files.
58772         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
58773         of unictype/combining.h.
58774         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
58775         Update.
58776         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
58777         * modules/unictype/combining-class (Description): Fix.
58778         (Files, Makefile.am): Update.
58779         * tests/unictype/test-combiningclass.c: Renamed from
58780         tests/unictype/test-combining.c.
58781         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
58783 2011-03-25  Bruno Haible  <bruno@clisp.org>
58785         unictype: Update list of canonical combining classes.
58786         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
58788 2011-03-25  Bruno Haible  <bruno@clisp.org>
58790         unictype/category-byname: Recognize long names as well.
58791         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
58792         a long name.
58793         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
58794         unictype/categ_byname.h.
58795         (UC_CATEGORY_INDEX_*): New enumeration values.
58796         (uc_general_category_byname): Use uc_general_category_lookup and
58797         convert from index to value.
58798         * lib/unictype/categ_byname.gperf: New file.
58799         * modules/unictype/category-byname (Files): Add
58800         lib/unictype/categ_byname.gperf.
58801         (Depends-on): Add gperf.
58802         (Makefile.am): Add rule for generating unictype/categ_byname.h.
58803         * tests/unictype/test-categ_byname.c (main): Test the recognition of
58804         long names.
58806         Tests for module 'unictype/category-longname'.
58807         * modules/unictype/category-longname-tests: New file.
58808         * tests/unictype/test-categ_longname.c: New file.
58810         New module 'unictype/category-longname'.
58811         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
58812         * lib/unictype/categ_longname.c: New file.
58813         * modules/unictype/category-longname: New file.
58814         * modules/unictype/category-all (Depends-on): Add it.
58816 2011-03-25  Bruno Haible  <bruno@clisp.org>
58818         Tests for module 'unictype/category-LC'.
58819         * modules/unictype/category-LC-tests: New file.
58820         * tests/unictype/test-categ_LC.c: New file, automatically generated.
58822         New module 'unictype/category-LC'.
58823         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
58824         (UC_CATEGORY_LC): New declaration.
58825         (UC_CASED_LETTER): New macro.
58826         * lib/gen-uni-tables.c (is_category_LC): New function.
58827         (output_categories): Also handle category LC.
58828         (UC_CATEGORY_MASK_LC): New enumeration value.
58829         (general_category_byname): Also handle category LC.
58830         * lib/unictype/categ_LC.c: New file.
58831         * lib/unictype/categ_LC.h: New file, automatically generated.
58832         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
58833         category LC.
58834         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
58835         * modules/unictype/category-LC: New file.
58836         * modules/unictype/category-byname (Depends-on): Add
58837         unictype/category-LC.
58838         * modules/unictype/category-all (Depends-on): Likewise.
58840 2011-03-25  Eric Blake  <eblake@redhat.com>
58842         xmalloc: revert yesterday's regression
58843         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
58844         realloc's underlying behavior (allowing allocation of zero-size
58845         objects, especially if malloc-gnu is also in use).
58847 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
58849         maint.mk: add missing version to VC-tag
58850         * top/maint.mk: git tag was missing actual tag name; add it.
58852         valgrind: do leak checking, and exit with code 1 on error (not 0)
58853         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
58854         to VALGRIND.
58856 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
58858         posix-modules: say what it does.
58859         * posix-modules: Add a line to the --help output saying what it does.
58861 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
58863         xmalloc: Do not leak if underlying realloc is C99 compatible.
58864         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
58865         This avoids a leak on C99-based systems.  See
58866         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
58868 2011-03-24  Eric Blake  <eblake@redhat.com>
58870         realloc: document portability problem
58871         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
58872         passing 0 size to realloc.
58874 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
58876         doc: update users.txt
58877         * users.txt: Add cvsps, tmpwatch
58879 2011-03-23  Matt Rice  <ratmice@gmail.com>
58881         doc: update users.txt
58882         * users.txt: Add gdb.
58884 2011-03-23  Jim Meyering  <meyering@redhat.com>
58886         doc: update users.txt
58887         Looking through matches up to the following URL (there are still
58888         several more pages), I found several projects that use gnulib:
58889         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
58890         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
58891         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
58893 2011-03-22  Bruno Haible  <bruno@clisp.org>
58895         unictype/bidi*: Rename functions.
58896         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
58897         uc_bidi_class, uc_is_bidi_class): New declarations.
58898         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
58899         uc_bidi_category_byname.
58900         (uc_bidi_category_byname): New function.
58901         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
58902         u_bidi_category_name.
58903         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
58904         (uc_bidi_category_name): New function.
58905         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
58906         uc_bidi_category.
58907         (uc_bidi_category): New function.
58908         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
58909         uc_is_bidi_category. Invoke uc_bidi_class.
58910         (uc_is_bidi_category): New function.
58911         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
58912         instead of uc_bidi_category_byname.
58913         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
58914         instead of uc_bidi_category_name.
58915         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
58916         uc_bidi_category.
58917         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
58918         instead of uc_is_bidi_category.
58920 2011-03-21  Bruno Haible  <bruno@clisp.org>
58922         New module 'unictype/joininggroup-all'.
58923         * modules/unictype/joininggroup-all: New file.
58925         Tests for module 'unictype/joininggroup-of'.
58926         * modules/unictype/joininggroup-of-tests: New file.
58927         * tests/unictype/test-joininggroup_of.c: New file.
58928         * tests/unictype/test-joininggroup_of.h: New file, automatically
58929         generated by gen-uni-tables.
58931         New module 'unictype/joininggroup-of'.
58932         * modules/unictype/joininggroup-of: New file.
58933         * lib/unictype/joininggroup_of.c: New file.
58934         * lib/unictype/joininggroup_of.h: New file, automatically generated by
58935         gen-uni-tables.
58937         Tests for module 'unictype/joininggroup-byname'.
58938         * modules/unictype/joininggroup-byname-tests: New file.
58939         * tests/unictype/test-joininggroup_byname.c: New file.
58941         New module 'unictype/joininggroup-byname'.
58942         * modules/unictype/joininggroup-byname: New file.
58943         * lib/unictype/joininggroup_byname.c: New file.
58944         * lib/unictype/joininggroup_byname.gperf: New file.
58946         Tests for module 'unictype/joininggroup-name'.
58947         * modules/unictype/joininggroup-name-tests: New file.
58948         * tests/unictype/test-joininggroup_name.c: New file.
58950         New module 'unictype/joininggroup-name'.
58951         * modules/unictype/joininggroup-name: New file.
58952         * lib/unictype/joininggroup_name.c: New file.
58953         * lib/unictype/joininggroup_name.h: New file.
58955         New module 'unictype/joiningtype-all'.
58956         * modules/unictype/joiningtype-all: New file.
58958         Tests for module 'unictype/joiningtype-of'.
58959         * modules/unictype/joiningtype-of-tests: New file.
58960         * tests/unictype/test-joiningtype_of.c: New file.
58961         * tests/unictype/test-joiningtype_of.h: New file, automatically
58962         generated by gen-uni-tables.
58964         New module 'unictype/joiningtype-of'.
58965         * modules/unictype/joiningtype-of: New file.
58966         * lib/unictype/joiningtype_of.c: New file.
58967         * lib/unictype/joiningtype_of.h: New file, automatically generated by
58968         gen-uni-tables.
58970         Tests for module 'unictype/joiningtype-byname'.
58971         * modules/unictype/joiningtype-byname-tests: New file.
58972         * tests/unictype/test-joiningtype_byname.c: New file.
58974         New module 'unictype/joiningtype-byname'.
58975         * modules/unictype/joiningtype-byname: New file.
58976         * lib/unictype/joiningtype_byname.c: New file.
58978         Tests for module 'unictype/joiningtype-name'.
58979         * modules/unictype/joiningtype-name-tests: New file.
58980         * tests/unictype/test-joiningtype_name.c: New file.
58982         New module 'unictype/joiningtype-name'.
58983         * modules/unictype/joiningtype-name: New file.
58984         * lib/unictype/joiningtype_name.c: New file.
58986         unictype: Add support for Arabic shaping properties.
58987         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
58988         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
58989         declarations.
58990         (UC_JOINING_GROUP_*): New enumeration values.
58991         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
58992         declarations.
58993         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
58994         (unicode_joining_type): New variable.
58995         (UC_JOINING_GROUP_*): New enumeration values.
58996         (unicode_joining_group): New variable.
58997         (fill_arabicshaping, joining_type_as_c_identifier,
58998         output_joining_type_test, output_joining_type,
58999         joining_group_as_c_identifier, output_joining_group_test,
59000         output_joining_group): New functions.
59001         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
59002         fill_arabicshaping and output_joining_type_test, output_joining_type,
59003         output_joining_group_test, output_joining_group.
59004         Reported by Simon Josefsson.
59006 2011-03-21  Jim Meyering  <meyering@redhat.com>
59008         strftime: fix a bug in yesterday's change
59009         * lib/strftime.c (add): Accommodate width's initial value of -1.
59010         Otherwise, nstrftime would copy uninitialized data into
59011         the result buffer.
59013 2011-03-21  Jim Meyering  <meyering@redhat.com>
59015         tests: add strftime-tests module
59016         * tests/test-strftime.c: New file.
59017         * modules/strftime-tests: New module.
59019 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
59021         strftime: don't assume a byte count fits in 'int'
59022         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
59023         found this problem by static analysis, using gcc -Wstrict-overflow
59024         (GCC 4.5.2, x86-64).  This reported an optimization that depended
59025         on an integer overflow having undefined behavior, but it turns out
59026         that the argument is a size, which might not fit in 'int' anyway,
59028 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
59030         stdio: don't require ignore_value around fwrite
59032         This patch works around libc bug 11959
59033         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
59034         Without this patch, applications must often write
59035         ignore_value (fwrite (...)) even though the ignore_value is
59036         not helpful here.  It's common to write many objects, using
59037         fwrite/printf/etc., and then use ferror to detect output error.
59039         I considered making this patch optional, but decided against it,
59040         because libc is obviously being inconsistent here: there is no
59041         reason libc should insist that user code must inspect fwrite
59042         return's value without also insisting that it inspect printf's,
59043         putchar's, etc.  If user code wants to have a strict style where
59044         all these functions' values are checked (so that ferror need not
59045         be checked), we could add support for that style in a new gnulib
59046         module, but in the meantime it's better to be consistent and to
59047         support common usage.
59049         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
59050         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
59051         that we are compiling in checking mode, and if not C++, and
59052         if not already wrapping fwrite for some other reason.
59053         (fwrite): #define to rpl_fwrite if the latter is defined.
59055 2011-03-20  Bruno Haible  <bruno@clisp.org>
59057         verror: Fix compilation error introduced on 2011-02-13.
59058         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
59059         instead of __attribute__.
59060         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59062 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
59063             Bruno Haible  <bruno@clisp.org>
59065         socklen: do not depend on sys_socket
59066         While trying to modify Emacs to use gnulib's socklen module,
59067         I discovered a circular dependency: socklen depends on sys_socket
59068         and vice versa.  Emacs can use socklen, but it does not need
59069         sys_socket because it has its own substitute for sys/socket.h.
59070         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
59071         gl_TYPE_SOCKLEN_T.
59072         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
59073         gl_PREREQ_SYS_H_SOCKET.
59074         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
59075         gl_PREREQ_SYS_H_SOCKET.
59076         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
59077         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
59078         * modules/socklen (Depends-on): Do not depend on sys_socket.
59079         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
59081 2011-03-20  Jim Meyering  <meyering@redhat.com>
59083         maint.mk: sort file names *after* new transformation
59084         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
59085         prefix would have led to an unwarranted failure in GNU parted.
59086         Sort after that transformation.
59088 2011-03-19  Jim Meyering  <meyering@redhat.com>
59090         maint.mk: fix po-file syntax-check rule
59091         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
59092         Patch by Bruno Haible.
59094 2011-03-19  Bruno Haible  <bruno@clisp.org>
59096         socklen: Update comment.
59097         * m4/socklen.m4: Update comment about platforms.
59099 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59100             Bruno Haible  <bruno@clisp.org>
59102         inet_ntop, inet_pton: Simplify.
59103         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
59104         documented to provide socklen_t and we already depend on sys_socket.
59105         * modules/inet_pton (Depends-on): Likewise.
59106         * lib/arpa_inet.in.h: Adjust comment.
59108 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59109             Bruno Haible  <bruno@clisp.org>
59111         netdb: Simplify.
59112         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
59113         documented to provide socklen_t and we already depend on sys_socket.
59114         * lib/netdb.in.h: Adjust comment.
59116 2011-03-19  Bruno Haible  <bruno@clisp.org>
59118         sys_socket, netdb: Document problem with socklen_t.
59119         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
59120         platforms.
59121         * doc/posix-headers/netdb.texi: Likewise.
59123 2011-03-18  Eric Blake  <eblake@redhat.com>
59125         maint.mk: let po check work in VPATH build
59126         * top/maint.mk (po_file): Allow cfg.mk override.
59127         (sc_po_check): Allow VPATH use.
59128         Reported by Jiri Denemark.
59130 2011-03-16  Jim Meyering  <meyering@redhat.com>
59132         maint.mk: allow fine-grained syntax-check exclusion via Make variables
59133         Before, you would have had to create one .x-sc_ file per rule in order
59134         to exempt offending files.  Now, you may instead use a Make variable --
59135         usually defined in cfg.mk -- whose name identifies the affected rule.
59136         * top/maint.mk (_sc_excl): Define.
59137         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
59138         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
59140 2011-03-13  Bruno Haible  <bruno@clisp.org>
59142         ignore-value tests: Avoid warnings.
59143         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
59144         empty for gcc < 3.4.
59146 2011-03-13  Bruno Haible  <bruno@clisp.org>
59148         passfd: Fix link error on Solaris.
59149         * modules/passfd (Description): Correct.
59150         (Depends-on): Add socketlib.
59151         (Link): New section.
59152         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
59154 2011-03-13  Bruno Haible  <bruno@clisp.org>
59156         passfd: Fix link error on AIX 5.2.
59157         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
59159 2011-03-13  Bruno Haible  <bruno@clisp.org>
59161         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
59162         * lib/sys_socket.in.h: Include <stddef.h>.
59163         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
59164         CMSG_FIRSTHDR. Remove unused variable.
59166 2011-03-13  Bruno Haible  <bruno@clisp.org>
59168         passfd: Fix compilation error on OpenBSD.
59169         * lib/passfd.c: Include <sys/uio.h>.
59171 2011-03-13  Bruno Haible  <bruno@clisp.org>
59173         passfd test: Fix warnings.
59174         * tests/test-passfd.c: Include <sys/wait.h>.
59175         (main): Fix typo.
59177 2011-03-13  Bruno Haible  <bruno@clisp.org>
59179         passfd module, part 4, tweaks.
59180         * tests/test-passfd.c: Reorder includes.
59181         (main): Fix perror and printf calls.
59183 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
59185         passfd module, part 4.
59186         * modules/passfd-tests: New file.
59187         * tests/test-passfd.c: New file.
59189 2011-03-13  Jim Meyering  <meyering@redhat.com>
59191         Makefile: rely on GNU make; derive syntax-check rule names
59192         Rather than requiring that each sc_ rule be listed as a dependent
59193         of "check", use features of GNU make to derive the list.
59194         * Makefile (syntax-check-rules): Define.
59195         (check): Depend on the new variable, not the hard-coded list.
59197 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
59198             Bruno Haible  <bruno@clisp.org>
59200         passfd module, part 3.
59201         * lib/passfd.h (recvfd): Add a flags argument.
59202         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
59203         (recvfd): Add a flags argument.
59204         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
59205         exists.
59206         * modules/passfd (Depends-on): Add cloexec.
59207         Suggested by Eric Blake.
59209 2011-03-13  Bruno Haible  <bruno@clisp.org>
59211         passfd module, part 2, tweaks.
59212         * modules/passfd (Files): Reorder.
59213         (Depends-on): Remove errno.
59214         (Include): Remove <sys/socket.h>, <sys/un.h>.
59215         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
59216         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
59217         specification header. Include <sys/socket.h> always. Don't include
59218         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
59219         (sendfd): Clarify that it sets errno when it fails.
59220         (recvfd): Fix specification.
59222 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
59224         passfd module, part 2.
59225         * modules/passfd: New file.
59226         * lib/passfd.h: New file.
59227         * lib/passfd.c: New file.
59229 2011-03-12  Bruno Haible  <bruno@clisp.org>
59231         wcswidth, mbswidth: Avoid integer overflow.
59232         * lib/wcswidth.c: Include <limits.h>.
59233         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
59234         * lib/mbswidth.c: Include <limits.h>.
59235         (mbsnwidth): Avoid 'int' overflow.
59236         Reported by Jim Meyering.
59238 2011-03-12  Bruno Haible  <bruno@clisp.org>
59240         futimens, utimensat: Avoid endless recursion on Solaris 10.
59241         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
59242         Solaris.
59243         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
59244         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
59246 2011-03-11  Jim Meyering  <meyering@redhat.com>
59248         maint.mk: relax a regexp to accommodate other formatting styles
59249         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
59250         between "ngettext" and the following "(".
59252 2011-03-11  Pádraig Brady  <P@draigBrady.com>
59254         maint.mk: suppress a false positive warning
59255         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
59256         diagnostics are marked with ngettext.
59258 2011-03-10  Eric Blake  <eblake@redhat.com>
59260         wchar: add explicit dependencies, for Tru64
59261         * modules/mbmemcasecoll (Depends-on): Add wchar.
59262         * modules/mbtowc (Depends-on): Likewise.
59263         * modules/vasnprintf (Depends-on): Likewise.
59264         * modules/unistdio/u-printf-args (Depends-on): Likewise.
59265         * modules/wctomb (Depends-on): Likewise.
59266         Reported by Peter O'Gorman.
59268 2011-03-08  Bruno Haible  <bruno@clisp.org>
59270         passfd module, part 1, tweaks.
59271         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
59272         Improve indentation. Improve AC_MSG_CHECKING messages.
59273         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
59274         gl_SOCKET_FAMILIES.
59276 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
59278         passfd module, part 1.
59279         * m4/afunix.m4: New file.
59280         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
59281         sockets.
59283 2011-03-08  Bruno Haible  <bruno@clisp.org>
59285         regex-quote: New API.
59286         * lib/regex-quote.h: Include <stdbool.h>.
59287         (struct regex_quote_spec): New type.
59288         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
59289         New declarations.
59290         (regex_quote_length, regex_quote_copy, regex_quote): Take a
59291         'const struct regex_quote_spec *' argument.
59292         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
59293         (pcre_special): New constant.
59294         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
59295         New functions.
59296         (regex_quote_length, regex_quote_copy, regex_quote): Take a
59297         'const struct regex_quote_spec *' argument.
59298         * modules/regex-quote (Depends-on): Add stdbool.
59299         * tests/test-regex-quote.c (check): Update for new API. Add test for
59300         anchored results.
59301         * NEWS: Mention the API change.
59302         Reported by Reuben Thomas and Eric Blake.
59304 2011-03-06  Bruno Haible  <bruno@clisp.org>
59306         regex-quote: Fix creation of POSIX extended regular expressions.
59307         * lib/regex-quote.c (ere_special): Add grouping and alternation
59308         operators.
59310 2011-03-05  Bruno Haible  <bruno@clisp.org>
59312         doc: Improve doc regarding autopoint vs. gnulib.
59313         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
59314         disable autopoint while running autoreconf.
59315         Suggested by Ralf Wildenhues.
59317 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59319         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
59320         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
59322 2011-03-03  Bruce Korb  <bkorb@gnu.org>
59324         parse-duration: remove xalloc.h dependency
59325         * lib/parse-duration.c (parse_period): handle NULL return from
59326         strdup instead of calling xstrdup().
59327         * modules/parse-duration: remove "xalloc" dependency
59329 2011-03-03  Matthew Booth  <mbooth@redhat.com>
59331         bootstrap: honor m4_base when running aclocal
59332         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
59334 2011-03-02  Jim Meyering  <meyering@redhat.com>
59336         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
59337         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
59338         on request from Matt Booth.
59340 2011-03-01  Eric Blake  <eblake@redhat.com>
59342         test-link: work on Hurd
59343         * tests/test-link.h (test_link): Hurd rejects linking directories
59344         with EISDIR instead of the POSIX-mandated EPERM.
59346 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
59348         stdio: simplify by moving files to printf-posix, sigpipe
59349         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
59350         since this symbol is needed only if printf is replaced.
59351         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
59352         Require gl_ASM_SYMBOL_PREFIX.
59353         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
59354         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
59355         (Depends-on): Add 'raise'.
59356         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
59357         * modules/stdio (Files): Remove lib/stdio-write.c,
59358         m4/asm-underscore.m4.
59359         (Depends-on): Remove 'raise'.
59361         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
59362         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
59363         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
59364         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
59366 2011-02-28  Bruno Haible  <bruno@clisp.org>
59368         localcharset: Assume ANSI C behaviour of free().
59369         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
59370         calling free().
59371         Suggested by Simon Josefsson <simon@josefsson.org>.
59373 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
59374             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
59375             Bruno Haible  <bruno@clisp.org>  (tiny change)
59377         On Cygwin, use /proc file system instead of win32 API.
59378         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
59379         Win32 file names.
59380         (DllMain): Simplify by removing Cygwin specific code.
59381         (find_shared_library_fullname): Use Linux specific implementation also
59382         for Cygwin.
59383         (get_shared_library_fullname): Update accordingly.
59384         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
59385         Win32 file names.
59386         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
59387         Cygwin specific code.
59389 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
59390             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
59392         Fix OpenMP flag detection for various Fortran compilers.
59393         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
59394         OpenMP-conditional compilation construct, to force compile
59395         failure with missing OpenMP flag.
59396         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
59398 2011-02-25  Eric Blake  <eblake@redhat.com>
59400         strstr: expand test coverage
59401         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
59402         compilation.
59403         * tests/test-memmem.c (main): Duplicate tests.
59404         * tests/test-strcasestr.c (main): Likewise.
59405         * tests/test-c-strcasestr.c (main): Likewise.
59407 2011-02-25  Jim Meyering  <meyering@redhat.com>
59409         maint.mk: detect missing-NL-at-EOF, too
59410         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
59411         it also detects when a file lacks a newline at EOF.
59412         (require_exactly_one_NL_at_EOF_): Renamed from
59413         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
59414         since people may well have .x-sc_... file names tied to the
59415         existing name.  Suggested by Eric Blake.
59417 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59419         dirname: move m4/dos.m4 functionality into lib/dosname.h
59421         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
59422         extracts symbols from it, puts them into config.h; but it's much
59423         easier to use the symbols directly.  filename.h already does this,
59424         but it disagrees with dos.m4 in some respects.  This patch
59425         introduces a different include file dosname.h that packages up
59426         dos.m4, and then later we can work on merging filename.h and
59427         dosname.h.  Applications that need only the easy-to-configure
59428         symbols should consider including dosname.h rather than dirname.h.
59429         * NEWS: Mention incompatible changes.
59430         * m4/dos.m4: Remove.
59431         * lib/dosname.h, modules/dosname: New files.
59432         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
59433         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
59434         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
59435         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
59436         Include dosname.h, not dirname.h.
59437         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
59438         Include dosname.h, for definitions of symbols like ISSLASH
59439         that used to be in config.h.
59440         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
59441         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59442         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59443         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59444         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
59445         * modules/rmdir (Files): Likewise.
59446         * modules/stat (Files): Likewise.
59447         * modules/unlink (Files): Likewise.
59448         * modules/dirname-lgpl (Depends-on): Add dosname.
59449         * modules/lstat (Depends-on): Likewise.
59450         * modules/openat (Depends-on): Likewise.
59451         * modules/rmdir (Depends-on): Likewise.
59452         * modules/savewd (Depends-on): Likewise.
59453         * modules/stat (Depends-on): Likewise.
59454         * modules/unlink (Depends-on): Likewise.
59455         * modules/openat (Depends-on): Remove dirname-lgpl.
59456         * modules/savewd (Depends-on): Likewise.
59457         * tests/test-dirname.c: Do not use removed symbols like
59458         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
59459         the remaining symbols, e.g., ISSLASH ('\\').
59461 2011-02-25  Eric Blake  <eblake@redhat.com>
59463         strstr: revert patches that introduced bug and pessimization
59464         * lib/str-two-way.h: Add another reference.
59465         (two_way_short_needle, two_way_long_needle): Revert changes from
59466         2011-02-24; they pessimize search speed.
59467         (critical_factorization): Partially revert changes from
59468         2010-06-22; they violate the requirement that the left half of the
59469         needle be smaller than the period of the needle.
59471 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59473         filenamecat: remove unnecessary dependency on dirname-lgpl
59474         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
59475         is no direct dependency, just an indirect one via filenamecat-lgpl.
59477         remove: remove unnecessary use of m4/dos.m4
59478         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
59479         * modules/remove (FILES): Remove m4/dos.m4.
59481         * lib/openat-proc.c: Don't include dirname.h; not needed.
59483         backupfile: remove unnecessary use of m4/dos.m4
59484         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
59485         of its symbols are used by the backupfile code.  backupfile.c does
59486         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
59487         for the rare case of programs that want all their backup file
59488         names to live within 8+3 limits, and dos.m4 doesn't address that.
59489         * modules/backupfile (Files): Remove m4/dos.m4.
59491 2011-02-24  Jim Meyering  <meyering@redhat.com>
59493         strstr: fix a bug whereby strstr would mistakenly return NULL
59494         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
59495         in period calculation.
59496         (two_way_long_needle): Likewise.
59497         The original problem was reported by Mike Stump in
59498         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
59499         Ralf Wildenhues provided the short needle and haystack.
59500         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
59501         Add a more involved test to trigger the bug in two_way_long_needle.
59503 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
59505         gnulib-tool: remove use of bold display in help screen
59506         * gnulib-tool (func_usage): Do not use bold display anymore in the
59507         help screen.  That was just meant to be a temporary emphasis for a
59508         backward-incompatible change.
59510 2011-02-23  Bruno Haible  <bruno@clisp.org>
59512         Fix misindentation of preprocessor directives.
59513         * lib/argp-namefrob.h: Reindent preprocessor directives.
59514         * lib/getopt_int.h (struct _getopt_data): Likewise.
59515         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
59516         * lib/vasnprintf.c (decode_long_double): Likewise.
59517         * tests/test-argmatch.c: Insert blank lines, for clarity.
59518         * tests/test-exclude.c: Likewise.
59520 2011-02-22  Bruno Haible  <bruno@clisp.org>
59522         ioctl: Fix for MacOS X in 64-bit mode.
59523         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
59524         value.
59525         Suggested by Eric Blake.
59526         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
59528 2011-02-22  Jim Meyering  <meyering@redhat.com>
59530         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
59531         * Makefile (sc_cpp_indent_check): Don't limit the check to files
59532         in lib/.
59534 2011-02-22  Eric Blake  <eblake@redhat.com>
59536         maint: avoid any CDPATH issue
59537         * Makefile (sc_cpp_indent_check): Anchor cd argument.
59539         maint: adjust cpp indentation for my modules, as well
59540         * Makefile (sc_cpp_indent_check): Add my name.
59541         * lib/fbufmode.c: Filter through cppi.
59542         * lib/fpurge.c: Likewise.
59543         * lib/freadable.c: Likewise.
59544         * lib/freading.c: Likewise.
59545         * lib/fwritable.c: Likewise.
59546         * lib/fwriting.c: Likewise.
59547         * lib/sigaction.c: Likewise.
59549 2011-02-22  Jim Meyering  <meyering@redhat.com>
59551         maint: adjust cpp indentation to reflect nesting depth
59552         I.e., in a block of code that begins with an unnested "#if",
59553         put one space between the "#" in column 1 and following token.
59554         For example,
59555         -#include <sys/vfs.h>
59556         +# include <sys/vfs.h>
59557         Do this only in .c files that are part of a module I maintain.
59558         * lib/linkat.c: Filter through cppi.
59559         * lib/nanosleep.c: Likewise.
59560         * lib/openat.c: Likewise.
59561         * lib/openat-die.c: Likewise.
59562         * lib/dup3.c: Likewise.
59563         * lib/fchownat.c: Likewise.
59564         * lib/flock.c: Likewise.
59565         * lib/fsync.c: Likewise.
59566         * lib/fts.c: Likewise.
59567         * lib/getpass.c: Likewise.
59568         * lib/gettimeofday.c: Likewise.
59569         * lib/userspec.c: Likewise.
59570         * Makefile (sc_cpp_indent_check): New rule, to check this.
59572 2011-02-22  Bruno Haible  <bruno@clisp.org>
59574         New module 'wctomb'.
59575         * lib/stdlib.in.h (wctomb): New declaration.
59576         * lib/wctomb.c: New file.
59577         * lib/wctomb-impl.h: New file.
59578         * m4/wctomb.m4: New file.
59579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
59580         REPLACE_WCTOMB.
59581         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
59582         REPLACE_WCTOMB.
59583         * modules/wctomb: New file.
59584         * tests/test-stdlib-c++.cc: Test signature of wctomb.
59585         * doc/posix-functions/wctomb.texi: Mention the new module.
59586         * modules/wctob (Depends-on): Add wctomb.
59588 2011-02-22  Bruno Haible  <bruno@clisp.org>
59590         New module 'mbtowc'.
59591         * lib/stdlib.in.h (mbtowc): New declaration.
59592         * lib/mbtowc.c: New file.
59593         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
59594         * m4/mbtowc.m4: New file.
59595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
59596         REPLACE_MBTOWC.
59597         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
59598         REPLACE_MBTOWC.
59599         * modules/mbtowc: New file.
59600         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
59601         * doc/posix-functions/mbtowc.texi: Mention the new module.
59602         * modules/btowc (Depends-on): Add mbtowc.
59604 2011-02-22  Bruno Haible  <bruno@clisp.org>
59606         wcrtomb: Add more tests for native Windows platforms.
59607         * tests/test-wcrtomb-w32-1.sh: New file.
59608         * tests/test-wcrtomb-w32-2.sh: New file.
59609         * tests/test-wcrtomb-w32-3.sh: New file.
59610         * tests/test-wcrtomb-w32-4.sh: New file.
59611         * tests/test-wcrtomb-w32-5.sh: New file.
59612         * tests/test-wcrtomb-w32.c: New file.
59613         * modules/wcrtomb-tests (Files): Add them.
59614         (Makefile.am): Arrange to run these tests.
59615         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
59616         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
59618 2011-02-20  Bruno Haible  <bruno@clisp.org>
59620         wcrtomb: Enhance test.
59621         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
59623 2011-02-20  Bruno Haible  <bruno@clisp.org>
59625         mbrtowc: Tiny optimization.
59626         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
59628 2011-02-20  Jim Meyering  <meyering@redhat.com>
59630         test-exclude.c: remove unmatched #endif
59631         * tests/test-exclude.c: Remove stray #endif, left over from
59632         the change of a week ago.
59634 2011-02-19  Jim Meyering  <meyering@redhat.com>
59636         git-version-gen: skip "-dirty" check when appropriate
59637         * build-aux/git-version-gen: Don't run any git commands when the
59638         version string comes from .tarball-version.  Prior to this, we
59639         would run git update-index --refresh even from a just-unpacked
59640         tarball directory, and that could affect a .git/ directory in a
59641         parent of the build directory.  Reported by Mike Frysinger.
59643 2011-02-19  Bruno Haible  <bruno@clisp.org>
59645         unictype/property-byname: Reduce the size of the 'data' segment.
59646         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
59648 2011-02-19  Bruno Haible  <bruno@clisp.org>
59650         unictype/scripts: Reduce the size of the 'data' segment.
59651         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
59652         '%pic'.
59653         * lib/unictype/scripts_byname.gperf: Regenerated.
59655 2011-02-19  Bruno Haible  <bruno@clisp.org>
59657         stdint: Update documentation.
59658         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
59660 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
59662         stdint: omit redundant check for wchar.h
59663         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
59664         always tests whether wchar.h exists, so remove the now-redundant test.
59666 2011-02-18  Bruno Haible  <bruno@clisp.org>
59668         stdint: Cut dependency to module 'wchar'.
59669         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
59670         include the necessary prerequisites.
59671         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
59672         * modules/stdint (Depends-on): Remove wchar.
59673         (Makefile.am): Substitute HAVE_WCHAR_H.
59674         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
59676 2011-02-18  Eric Blake  <eblake@redhat.com>
59678         longlong: skip, rather than fail, on cross-compilation
59679         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
59680         when cross-compiling; regression from 2011-02-16.
59682 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59684         * NEWS: Mention 2011-02-08 change to stdlib.
59686 2011-02-17  Bruno Haible  <bruno@clisp.org>
59688         getloadavg: Add comments about platforms.
59689         * m4/getloadavg.m4: Add comment.
59690         * lib/getloadavg.c: Likewise.
59692 2011-02-17  Bruno Haible  <bruno@clisp.org>
59694         getloadavg: Fix link error on Solaris 2.6.
59695         * modules/getloadavg (Link): New section.
59696         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
59697         linking test-getloadavg.
59698         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
59699         getloadavg.
59701 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59703         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
59704         It was 'int', but this doesn't match the IRIX 6.5 manual.
59705         Suggested by Bruno Haible in
59706         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
59708 2011-02-17  Bruno Haible  <bruno@clisp.org>
59710         havelib: Fix comments.
59711         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
59712         change.
59714 2011-02-17  Bruno Haible  <bruno@clisp.org>
59716         havelib: Update config.rpath.
59717         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
59719 2011-02-17  Bruno Haible  <bruno@clisp.org>
59721         getloadavg test: Add some plausibility checks.
59722         * tests/test-getloadavg.c (check_avg): Print a warning when the value
59723         is improbable.
59725 2011-02-16  Eric Blake  <eblake@redhat.com>
59727         maintainer-makefile: make syntax-check a no-op from tarballs
59728         * top/maint.mk (no-vc-detected): New rule.
59729         (local-checks-available): Use it to avoid hanging if someone tries
59730         'make syntax-check' from a tarball.  Also append to any non-syntax
59731         checks already defined in cfg.mk.
59733 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
59735         longlong: tune, particularly for common case of c99
59737         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
59738         or running anything if c99, or if unsigned long long int does not
59739         work.  In either case, we know the answer without further tests.
59740         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
59741         it at most once, and use its results for both long long int and
59742         unsigned long long int.  This is more likely to be efficient in
59743         the common case where the program wants to check for both long
59744         long int and unsigned long long int.
59745         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
59746         since the answer is already known.
59748 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
59750         getloadavg: set errno
59751         * lib/getloadavg.c: Set errno when returning -1.  If no other
59752         error number looks appropriate, set it to ENOSYS if the getloadavg
59753         looks like it can't possibly ever work, ENOTSUP otherwise.
59754         Suggested by Bruno Haible in
59755         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
59757         getloadavg: trim unused parts and speed up 'configure'
59758         * NEWS: Document this.
59759         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
59760         always compiled if getloadavg is absent.
59761         Move test code to ...
59762         * tests/test-getloadavg.c: New file, containing previous
59763         contents of test from lib/getloadavg.c.  It also contains
59764         suggestions by Bruno Haible in
59765         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
59766         * modules/getloadavg-tests: New file.
59767         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
59768         Do tests in the same order as they're needed for getloadavg.c.
59769         Omit setgid-related tests that generate symbols KMEM_GROUP,
59770         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
59771         Do only the tests that are needed to see whether the system has
59772         getloadavg, moving the other tests into ...
59773         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
59774         NLIST_NAME_UNION; nobody should be using it.  Do not define
59775         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
59776         relevant, as the user of this module shouldn't care how getloadavg
59777         is implemented.
59779         getloadavg: omit unused var
59780         * lib/getloadavg.c (getloadavg): Omit unused local variable.
59782 2011-02-15  Jim Meyering  <meyering@redhat.com>
59784         doc: update users.txt
59785         * users.txt: Update iwhd's URL.
59787 2011-02-13  Bruno Haible  <bruno@clisp.org>
59789         Consistent macro naming for macros that use GCC __attribute__.
59790         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
59791         _ATTRIBUTE_NONNULL_.
59792         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
59793         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
59794         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
59795         ATTRIBUTE_DEPRECATED.
59796         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
59797         ATTRIBUTE_NORETURN.
59798         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59799         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59800         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59801         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59802         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
59803         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
59804         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
59805         ATTRIBUTE_SENTINEL.
59806         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
59807         ATTRIBUTE_RETURN_CHECK.
59808         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
59809         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
59810         ATTRIBUTE_NORETURN.
59811         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
59812         Reported by Paul Eggert.
59814 2011-02-13  Bruno Haible  <bruno@clisp.org>
59816         Don't interfere with a program's definition of __attribute__.
59817         * lib/argp.h (__attribute__): Remove definition.
59818         (_GL_ATTRIBUTE_FORMAT): New macro.
59819         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
59820         * lib/argp-fmtstream.h (__attribute__): Remove definition.
59821         (_GL_ATTRIBUTE_FORMAT): New macro.
59822         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
59823         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
59824         GCC 3 or newer.
59825         * lib/error.h (__attribute__): Remove definition.
59826         (_GL_ATTRIBUTE_FORMAT): New macro.
59827         (error, error_at_line): Use it.
59828         * lib/hash.h (__attribute__): Remove definition.
59829         (ATTRIBUTE_WUR): Update definition. Define always.
59830         * lib/openat.h (__attribute__): Remove definition.
59831         (ATTRIBUTE_NORETURN): Update definition. Define always.
59832         * lib/sigpipe-die.h (__attribute__): Remove definition.
59833         (ATTRIBUTE_NORETURN): Update definition. Define always.
59834         * lib/vasnprintf.h (__attribute__): Remove definition.
59835         (_GL_ATTRIBUTE_FORMAT): New macro.
59836         (asnprintf, vasnprintf): Use it.
59837         * lib/xalloc.h (__attribute__): Remove definition.
59838         (ATTRIBUTE_NORETURN): Update definition. Define always.
59839         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
59840         * lib/xmemdup0.h (__attribute__): Remove definition.
59841         (ATTRIBUTE_NORETURN): Update definition. Define always.
59842         * lib/xprintf.h (__attribute__): Remove definition.
59843         (_GL_ATTRIBUTE_FORMAT): New macro.
59844         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
59845         * lib/xstrtol.h (__attribute__): Remove definition.
59846         (ATTRIBUTE_NORETURN): Update definition. Define always.
59847         * lib/xvasprintf.h (__attribute__): Remove definition.
59848         (_GL_ATTRIBUTE_FORMAT): New macro.
59849         (xasprintf, xvasprintf): Use it.
59850         * tests/test-argmatch.c (__attribute__): Remove definition.
59851         (ATTRIBUTE_NORETURN): Update definition. Define always.
59852         * tests/test-exclude.c (__attribute__): Remove definition.
59853         (ATTRIBUTE_NORETURN): Update definition. Define always.
59854         Reported by Paul Eggert.
59856 2011-02-13  Bruno Haible  <bruno@clisp.org>
59858         mbrtowc: Add more tests for native Windows platforms.
59859         * tests/test-mbrtowc-w32-1.sh: New file.
59860         * tests/test-mbrtowc-w32-2.sh: New file.
59861         * tests/test-mbrtowc-w32-3.sh: New file.
59862         * tests/test-mbrtowc-w32-4.sh: New file.
59863         * tests/test-mbrtowc-w32-5.sh: New file.
59864         * tests/test-mbrtowc-w32.c: New file.
59865         * modules/mbrtowc-tests (Files): Add them.
59866         (Makefile.am): Arrange to run these tests.
59867         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
59868         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
59870 2011-02-13  Bruno Haible  <bruno@clisp.org>
59872         mbrtowc: Work around native Windows bug.
59873         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
59874         guess when no suitable locale for testing was found.
59875         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
59877 2011-02-13  Bruno Haible  <bruno@clisp.org>
59879         mbsinit: Work around mingw bug.
59880         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
59881         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
59882         Windows.
59883         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
59885 2011-02-13  Bruno Haible  <bruno@clisp.org>
59887         mbsinit: Don't crash for a NULL argument.
59888         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
59889         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
59891 2011-02-13  Bruno Haible  <bruno@clisp.org>
59893         Don't interfere with a program's definition of __attribute__.
59894         * lib/stdio.in.h (__attribute__): Remove definition.
59895         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
59896         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
59897         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
59898         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
59899         * lib/string.in.h (__attribute__): Remove definition.
59900         Reported by Paul Eggert.
59902 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59904         stdlib: don't get in the way of non-GCC __attribute__
59905         See thread starting at
59906         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
59907         Revert previous stdlib change, installing the following instead:
59908         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
59909         to get in the way of a non-GCC compiler that supports __attribute__.
59910         (_GL_ATTRIBUTE_RETURN): New macro.
59911         (_Exit): Use it instead of __attribute__.
59913 2011-02-12  Bruno Haible  <bruno@clisp.org>
59915         quotearg test: Avoid test failure on mingw.
59916         * tests/test-quotearg.sh: Convert the locale identifier from native
59917         Windows syntax to Unix syntax.
59919 2011-02-12  Bruno Haible  <bruno@clisp.org>
59921         setlocale: Prefer gnulib's override over libintl's override.
59922         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
59923         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
59924         GNULIB_defined_setlocale is set.
59926 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59928         stdlib: support non-GCC __attribute__
59930         Fix a serious and tricky problem encountered when attempting to
59931         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
59932         5.5, but it crashed due to memory corruption on Solaris 10 with
59933         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
59934         bits that are otherwise zero.  This tagging is optional inside
59935         Emacs but is preferred and is used when __attribute__ ((__aligned
59936         (8))) works, as it does with both recent-enough GCC and with Sun C
59937         5.11.  However, Sun C 5.11 is not GCC and does not #define
59938         __GNUC__ and __GNUC_MINOR__.
59940         When I added the getloadavg module to Emacs, it brought in
59941         stdlib.in.h, which contained this fragment:
59943            #ifndef __attribute__
59944            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
59945            #  define __attribute__(Spec)   /* empty */
59946            # endif
59947            #endif
59949         When files that include <stdlib.h> were compiled with Sun C 5.11,
59950         the above code disabled __attribute__ ((__aligned (8))), which
59951         caused variables to not be properly aligned, which eventually led
59952         to the pointer corruption mentioned above.  (This was a bit hard
59953         to diagnose, unfortunately.)
59955         Several "#define __attribute__(X) /* empty */" code snippets need
59956         to be eradicated from Gnulib to work with non-GCC compilers that
59957         support __attribute__.  The Autoconf way to do this is to test for
59958         each kind of attribute that we want support for, and selectively
59959         enable that in source code.
59961         Fix this problem just for stdlib.h, by adding a test for the
59962         __noreturn__ attribute, and change stdlib.in.h to use that test
59963         when needed.  This technique can be easily generalized to the
59964         other *.in.h files and attributes, and a similar technique can be
59965         used for *.h and *.c files.  This patch is enough to solve the
59966         problem for Emacs + getloadavg, and I thought I'd publish it for
59967         feedback before undertaking further, similar fixes in other
59968         modules.
59970         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
59971         because it's not needed for stdlib.h.  It merely substitutes the
59972         value directly into stdlib.h.  We may well need to #define it, or
59973         similar symbols, for other modules, but it's nice to also have an
59974         option to not #define it for applications like Emacs that do not
59975         need it.
59977         * lib/stdlib.in.h (__attribute__): Do not #define.
59978         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
59979         be defined only if the _Exit module is also used.
59980         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
59981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
59982         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
59983         platforms.
59984         * modules/_Exit (Files): Add m4/attribute.m4.
59985         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
59986         * m4/attribute.m4: New file.
59988 2011-02-12  Bruno Haible  <bruno@clisp.org>
59990         wcsrtombs: Work around bug on native Windows.
59991         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
59992         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
59993         instead of len.
59994         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
59996 2011-02-12  Bruno Haible  <bruno@clisp.org>
59998         mbsrtowcs: Work around bug on native Windows.
59999         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
60000         against mingw bug.
60001         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
60003 2011-02-12  Bruno Haible  <bruno@clisp.org>
60005         Avoid setlocale bugs in tests.
60006         * modules/btowc (Dependencies): Add setlocale.
60007         * modules/c-strcase (Dependencies): Likewise.
60008         * modules/mbmemcasecmp (Dependencies): Likewise.
60009         * modules/mbmemcasecoll (Dependencies): Likewise.
60010         * modules/mbrtowc (Dependencies): Likewise.
60011         * modules/mbscasecmp (Dependencies): Likewise.
60012         * modules/mbscasestr (Dependencies): Likewise.
60013         * modules/mbschr (Dependencies): Likewise.
60014         * modules/mbscspn (Dependencies): Likewise.
60015         * modules/mbsinit (Dependencies): Likewise.
60016         * modules/mbsncasecmp (Dependencies): Likewise.
60017         * modules/mbsnrtowcs (Dependencies): Likewise.
60018         * modules/mbspbrk (Dependencies): Likewise.
60019         * modules/mbspcasecmp (Dependencies): Likewise.
60020         * modules/mbsrchr (Dependencies): Likewise.
60021         * modules/mbsrtowcs (Dependencies): Likewise.
60022         * modules/mbsspn (Dependencies): Likewise.
60023         * modules/mbsstr (Dependencies): Likewise.
60024         * modules/nl_langinfo (Dependencies): Likewise.
60025         * modules/quotearg (Dependencies): Likewise.
60026         * modules/unicase/locale-language (Dependencies): Likewise.
60027         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
60028         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
60029         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
60030         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
60031         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
60032         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
60033         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
60034         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
60035         * modules/vasnprintf-posix (Dependencies): Likewise.
60036         * modules/wcrtomb (Dependencies): Likewise.
60037         * modules/wcsnrtombs (Dependencies): Likewise.
60038         * modules/wcsrtombs (Dependencies): Likewise.
60040 2011-02-12  Bruno Haible  <bruno@clisp.org>
60042         setlocale: Workaround native Windows bug.
60043         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
60044         succeeds but sets LC_CTYPE to "C", report a failure.
60045         * tests/test-setlocale2.sh: New file.
60046         * tests/test-setlocale2.c: New file.
60047         * modules/setlocale-tests (Files): Add the new files.
60048         (Makefile.am): Enable test-setlocale2.sh test.
60049         * doc/posix-functions/setlocale.texi: Mention workaround.
60051 2011-02-11  Bruno Haible  <bruno@clisp.org>
60053         Tests for module 'setlocale'.
60054         * modules/setlocale-tests: New file.
60055         * tests/test-setlocale1.sh: New file.
60056         * tests/test-setlocale1.c: New file.
60058         New module 'setlocale'.
60059         * lib/locale.in.h (setlocale): New declaration.
60060         * lib/setlocale.c: New file, based on
60061         gettext/gettext-runtime/intl/setlocale.c.
60062         * m4/setlocale.m4: New file.
60063         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
60064         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
60065         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
60066         REPLACE_SETLOCALE.
60067         * modules/setlocale: New file.
60068         * tests/test-locale-c++.cc: Test the declaration of setlocale.
60069         * doc/posix-functions/setlocale.texi: Mention the new module.
60071 2011-02-11  Bruno Haible  <bruno@clisp.org>
60073         Prepare for locale dependent tests on mingw.
60074         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
60075         because it has the wrong locale encoding.
60076         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
60077         French_France.1252 instead of "fr".
60078         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
60079         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
60080         because it has the wrong locale encoding.
60081         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
60082         native Windows, try Turkish_Turkey.65001.
60083         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
60084         Chinese_China.54936.
60086         Prepare for locale dependent tests on mingw.
60087         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
60088         differently.
60089         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
60090         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
60091         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60092         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60094 2011-02-11  Eric Blake  <eblake@redhat.com>
60096         strptime: avoid compiler warnings
60097         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
60098         compiler warnings about dead code.
60099         Reported by Daniel P. Berrange.
60101 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
60103         doc: update users.txt
60104         * users.txt: Add rcs.
60106 2011-02-10  John W. Eaton  <jwe@gnu.org>
60108         doc: update users.txt
60109         * users.txt: Add octave.
60111 2011-02-10  Jim Meyering  <meyering@redhat.com>
60113         doc: update users.txt
60114         * users.txt: Add iwhd.
60116 2011-02-09  Bruno Haible  <bruno@clisp.org>
60118         gnulib-tool: Make copyright notice adjustment more robust.
60119         * gnulib-tool (func_import): In sed_transform_main_lib_file,
60120         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
60121         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
60122         License".
60123         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
60125 2011-02-06  Bruno Haible  <bruno@clisp.org>
60127         New module 'towctrans'.
60128         * modules/towctrans: New file.
60129         * lib/wctype.in.h (towctrans): New declaration.
60130         * lib/towctrans.c: New file.
60131         * lib/towctrans-impl.h: New file.
60132         * m4/towctrans.m4: New file.
60133         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
60134         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
60135         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
60136         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
60137         * doc/posix-functions/towctrans.texi: Mention the new module.
60139 2011-02-06  Bruno Haible  <bruno@clisp.org>
60141         New module 'wctrans'.
60142         * modules/wctrans: New file.
60143         * lib/wctype.in.h (wctrans): New declaration.
60144         * lib/wctrans.c: New file.
60145         * lib/wctrans-impl.h: New file.
60146         * m4/wctrans.m4: New file.
60147         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
60148         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
60149         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
60150         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
60151         * doc/posix-functions/wctrans.texi: Mention the new module.
60153 2011-02-06  Bruno Haible  <bruno@clisp.org>
60155         New module 'iswctype'.
60156         * modules/iswctype: New file.
60157         * lib/wctype.in.h (iswctype): New declaration.
60158         * lib/iswctype.c: New file.
60159         * lib/iswctype-impl.h: New file.
60160         * m4/iswctype.m4: New file.
60161         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
60162         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
60163         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
60164         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
60165         * doc/posix-functions/iswctype.texi: Mention the new module and the
60166         HP-UX 11.00 problem.
60168 2011-02-06  Bruno Haible  <bruno@clisp.org>
60170         New module 'wctype'.
60171         * modules/wctype: Change to represent the wctype() substitute.
60172         * lib/wctype.in.h (wctype): New declaration.
60173         * lib/wctype.c: New file.
60174         * lib/wctype-impl.h: New file.
60175         * m4/wctype.m4: New file.
60176         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
60177         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
60178         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
60179         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
60180         * doc/posix-functions/wctype.texi: Mention the new module and the
60181         HP-UX 11.00 problem.
60183 2011-02-06  Bruno Haible  <bruno@clisp.org>
60185         wctype-h: Ensure wctype_t and wctrans_t are defined.
60186         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
60187         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
60188         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
60189         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
60190         HAVE_WCTRANS_T.
60191         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
60193 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
60195         flock: fix license typo
60197         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
60198         omitted.
60200 2011-02-08  Bruno Haible  <bruno@clisp.org>
60202         Split large sed scripts, for HP-UX sed.
60203         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
60204         to avoid HP-UX limit of 99 commands, in the near future.
60205         * modules/stdlib (Makefile.am): Likewise.
60206         * modules/unistd (Makefile.am): Likewise.
60207         * modules/wchar (Makefile.am): Likewise.
60208         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60209         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
60210         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
60212 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
60213             Bruno Haible  <bruno@clisp.org>
60215         stdlib: improve random_r modularization
60216         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
60217         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
60218         you also need the random_r module to get this material right.
60219         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
60220         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
60221         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
60223 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
60225         stdlib: don't depend on stdint
60226         * lib/stdlib.in.h: Don't include <stdint.h> merely because
60227         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
60228         be independent of whether stdint.h is needed.
60229         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
60230         here, instead of ...
60231         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
60232         struct random_data should be using the random_r module, not just
60233         the stdlib module (which wouldn't make sense: what package needs
60234         just struct random_data without also needing random_r?).
60235         * modules/stdlib (Depends-on): Remove stdint.
60237         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
60238         See the thread rooted at
60239         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
60240         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
60241         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
60242         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
60243         __VMS)); previously it was always included (via fcntl--.h).
60244         (getloadavg): Do not use c_strtod.  Instead, approximate it by
60245         hand; this is good enough for load averages.  Also, do not use
60246         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
60247         flags directly if available and don't bother otherwise.  (Packages
60248         that need the extra reliability should use the modules that define
60249         these flags on older platforms that lack them.)
60250         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
60251         fcntl-safer.
60253 2011-02-08  Jim Meyering  <meyering@redhat.com>
60255         di-set.h, ino-map.h: add multiple-inclusion guard
60256         Technically, the guard is required only for ino-map.h, due to its
60257         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
60258         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
60259         * lib/ino-map.h: Likewise.
60261 2011-02-06  Bruno Haible  <bruno@clisp.org>
60263         iswblank: Ensure declaration on glibc systems.
60264         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
60265         * modules/iswblank (Dependencies): Add 'extensions'.
60266         * doc/posix-functions/iswblank.texi: Document the glibc problem.
60268 2011-02-06  Bruno Haible  <bruno@clisp.org>
60270         New module 'iswblank'.
60271         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
60272         * modules/iswblank: New file.
60273         * modules/wctype-h (Files): Remove lib/iswblank.c.
60274         (Makefile.am): Substitute GNULIB_ISWBLANK.
60275         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
60276         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
60277         (gl_WCTYPE_H_DEFAULTS): New macro.
60278         (gl_WCTYPE_H): Require it. Remove iswblank related code.
60279         * modules/iswblank-tests: New file.
60280         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
60281         * tests/test-wctype-h.c (main): Remove iswblank tests.
60282         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
60283         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
60284         of 'wctype-h'.
60285         * NEWS: Mention the change.
60286         * modules/mbchar (Depends-on): Add iswblank.
60288 2011-02-08  Bruno Haible  <bruno@clisp.org>
60290         di-set tests: Refactor.
60291         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
60292         unnecessary includes.
60293         (ASSERT): Remove macro.
60294         (main): Make C90 compliant by avoiding variable declaration after
60295         statement.
60296         * modules/di-set-tests (Files): Add tests/macros.h.
60298 2011-02-08  Bruno Haible  <bruno@clisp.org>
60300         ino-map tests: Refactor.
60301         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
60302         unnecessary includes.
60303         (ASSERT): Remove macro.
60304         (main): Make C90 compliant by avoiding variable declaration after
60305         statement.
60306         * modules/ino-map-tests (Files): Add tests/macros.h.
60308 2011-02-08  Jim Meyering  <meyering@redhat.com>
60310         di-set: add "const" to a cast
60311         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
60312         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
60314 2011-02-06  Bruno Haible  <bruno@clisp.org>
60316         Rename module 'wctype' to 'wctype-h'.
60317         * modules/wctype-h: Renamed from modules/wctype.
60318         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
60319         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
60320         (Files, Depends-on, Makefile.am): Update.
60321         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
60322         (Files, Makefile.am): Update.
60323         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
60324         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
60325         * doc/posix-headers/wctype.texi: Update.
60326         * doc/posix-functions/iswalnum.texi: Update.
60327         * doc/posix-functions/iswalpha.texi: Update.
60328         * doc/posix-functions/iswblank.texi: Update.
60329         * doc/posix-functions/iswcntrl.texi: Update.
60330         * doc/posix-functions/iswdigit.texi: Update.
60331         * doc/posix-functions/iswgraph.texi: Update.
60332         * doc/posix-functions/iswlower.texi: Update.
60333         * doc/posix-functions/iswprint.texi: Update.
60334         * doc/posix-functions/iswpunct.texi: Update.
60335         * doc/posix-functions/iswspace.texi: Update.
60336         * doc/posix-functions/iswupper.texi: Update.
60337         * doc/posix-functions/iswxdigit.texi: Update.
60338         * doc/posix-functions/towlower.texi: Update.
60339         * doc/posix-functions/towupper.texi: Update.
60340         * NEWS: Mention the change.
60341         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
60342         * modules/mbchar (Dependencies): Likewise.
60343         * modules/mbswidth (Dependencies): Likewise.
60344         * modules/quotearg (Dependencies): Likewise.
60345         * modules/regex (Dependencies): Likewise.
60346         * modules/wcscasecmp (Dependencies): Likewise.
60347         * modules/wcsncasecmp (Dependencies): Likewise.
60348         * modules/wcwidth (Dependencies): Likewise.
60350 2011-02-06  Bruno Haible  <bruno@clisp.org>
60352         New module 'wcswidth'.
60353         * modules/wcswidth: New file.
60354         * lib/wchar.in.h (wcswidth): New declaration.
60355         * lib/wcswidth.c: New file.
60356         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
60357         * m4/wcswidth.m4: New file.
60358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
60359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
60360         REPLACE_WCSWIDTH.
60361         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
60362         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
60363         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
60364         * doc/posix-functions/wcswidth.texi: Mention the new module.
60366 2011-02-06  Bruno Haible  <bruno@clisp.org>
60368         New module 'wcstok'.
60369         * modules/wcstok: New file.
60370         * lib/wchar.in.h (wcstok): New declaration.
60371         * lib/wcstok.c: New file.
60372         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
60373         * m4/wcstok.m4: New file.
60374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
60375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
60376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
60377         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
60378         * doc/posix-functions/wcstok.texi: Mention the new module.
60380 2011-02-06  Bruno Haible  <bruno@clisp.org>
60382         New module 'wcsstr'.
60383         * modules/wcsstr: New file.
60384         * lib/wchar.in.h (wcsstr): New declaration.
60385         * lib/wcsstr.c: New file.
60386         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
60387         * m4/wcsstr.m4: New file.
60388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
60389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
60390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
60391         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
60392         * doc/posix-functions/wcsstr.texi: Mention the new module.
60394 2011-02-06  Bruno Haible  <bruno@clisp.org>
60396         New module 'wcspbrk'.
60397         * modules/wcspbrk: New file.
60398         * lib/wchar.in.h (wcspbrk): New declaration.
60399         * lib/wcspbrk.c: New file.
60400         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
60401         * m4/wcspbrk.m4: New file.
60402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
60403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
60404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
60405         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
60406         * doc/posix-functions/wcspbrk.texi: Mention the new module.
60408 2011-02-06  Bruno Haible  <bruno@clisp.org>
60410         New module 'wcsspn'.
60411         * modules/wcsspn: New file.
60412         * lib/wchar.in.h (wcsspn): New declaration.
60413         * lib/wcsspn.c: New file.
60414         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
60415         * m4/wcsspn.m4: New file.
60416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
60417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
60418         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
60419         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
60420         * doc/posix-functions/wcsspn.texi: Mention the new module.
60422 2011-02-06  Bruno Haible  <bruno@clisp.org>
60424         New module 'wcscspn'.
60425         * modules/wcscspn: New file.
60426         * lib/wchar.in.h (wcscspn): New declaration.
60427         * lib/wcscspn.c: New file.
60428         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
60429         * m4/wcscspn.m4: New file.
60430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
60431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
60432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
60433         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
60434         * doc/posix-functions/wcscspn.texi: Mention the new module.
60436 2011-02-06  Bruno Haible  <bruno@clisp.org>
60438         New module 'wcsrchr'.
60439         * modules/wcsrchr: New file.
60440         * lib/wchar.in.h (wcsrchr): New declaration.
60441         * lib/wcsrchr.c: New file.
60442         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
60443         * m4/wcsrchr.m4: New file.
60444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
60445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
60446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
60447         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
60448         * doc/posix-functions/wcsrchr.texi: Mention the new module.
60450 2011-02-06  Bruno Haible  <bruno@clisp.org>
60452         New module 'wcschr'.
60453         * modules/wcschr: New file.
60454         * lib/wchar.in.h (wcschr): New declaration.
60455         * lib/wcschr.c: New file.
60456         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
60457         * m4/wcschr.m4: New file.
60458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
60459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
60460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
60461         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
60462         * doc/posix-functions/wcschr.texi: Mention the new module.
60464 2011-02-06  Bruno Haible  <bruno@clisp.org>
60466         New module 'wcsdup'.
60467         * modules/wcsdup: New file.
60468         * lib/wchar.in.h (wcsdup): New declaration.
60469         * lib/wcsdup.c: New file.
60470         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
60471         * m4/wcsdup.m4: New file.
60472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
60473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
60474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
60475         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
60476         * doc/posix-functions/wcsdup.texi: Mention the new module.
60478 2011-02-06  Bruno Haible  <bruno@clisp.org>
60480         New module 'wcsxfrm'.
60481         * modules/wcsxfrm: New file.
60482         * lib/wchar.in.h (wcsxfrm): New declaration.
60483         * lib/wcsxfrm.c: New file.
60484         * lib/wcsxfrm-impl.h: New file.
60485         * m4/wcsxfrm.m4: New file.
60486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
60487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
60488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
60489         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
60490         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
60492 2011-02-06  Bruno Haible  <bruno@clisp.org>
60494         New module 'wcscoll'.
60495         * modules/wcscoll: New file.
60496         * lib/wchar.in.h (wcscoll): New declaration.
60497         * lib/wcscoll.c: New file.
60498         * lib/wcscoll-impl.h: New file.
60499         * m4/wcscoll.m4: New file.
60500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
60501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
60502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
60503         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
60504         * doc/posix-functions/wcscoll.texi: Mention the new module.
60506 2011-02-06  Bruno Haible  <bruno@clisp.org>
60508         New module 'wcsncasecmp'.
60509         * modules/wcsncasecmp: New file.
60510         * lib/wchar.in.h (wcsncasecmp): New declaration.
60511         * lib/wcsncasecmp.c: New file.
60512         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
60513         * m4/wcsncasecmp.m4: New file.
60514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
60515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
60516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
60517         HAVE_WCSNCASECMP.
60518         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
60519         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
60521 2011-02-06  Bruno Haible  <bruno@clisp.org>
60523         New module 'wcscasecmp'.
60524         * modules/wcscasecmp: New file.
60525         * lib/wchar.in.h (wcscasecmp): New declaration.
60526         * lib/wcscasecmp.c: New file.
60527         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
60528         * m4/wcscasecmp.m4: New file.
60529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
60530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
60531         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
60532         HAVE_WCSCASECMP.
60533         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
60534         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
60536 2011-02-05  Bruno Haible  <bruno@clisp.org>
60538         New module 'wcsncmp'.
60539         * modules/wcsncmp: New file.
60540         * lib/wchar.in.h (wcsncmp): New declaration.
60541         * lib/wcsncmp.c: New file.
60542         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
60543         * m4/wcsncmp.m4: New file.
60544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
60545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
60546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
60547         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
60548         * doc/posix-functions/wcsncmp.texi: Mention the new module.
60550 2011-02-05  Bruno Haible  <bruno@clisp.org>
60552         New module 'wcscmp'.
60553         * modules/wcscmp: New file.
60554         * lib/wchar.in.h (wcscmp): New declaration.
60555         * lib/wcscmp.c: New file.
60556         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
60557         * m4/wcscmp.m4: New file.
60558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
60559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
60560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
60561         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
60562         * doc/posix-functions/wcscmp.texi: Mention the new module.
60564 2011-02-05  Bruno Haible  <bruno@clisp.org>
60566         New module 'wcsncat'.
60567         * modules/wcsncat: New file.
60568         * lib/wchar.in.h (wcsncat): New declaration.
60569         * lib/wcsncat.c: New file.
60570         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
60571         * m4/wcsncat.m4: New file.
60572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
60573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
60574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
60575         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
60576         * doc/posix-functions/wcsncat.texi: Mention the new module.
60578 2011-02-05  Bruno Haible  <bruno@clisp.org>
60580         New module 'wcscat'.
60581         * modules/wcscat: New file.
60582         * lib/wchar.in.h (wcscat): New declaration.
60583         * lib/wcscat.c: New file.
60584         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
60585         * m4/wcscat.m4: New file.
60586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
60587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
60588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
60589         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
60590         * doc/posix-functions/wcscat.texi: Mention the new module.
60592 2011-02-05  Bruno Haible  <bruno@clisp.org>
60594         New module 'wcpncpy'.
60595         * modules/wcpncpy: New file.
60596         * lib/wchar.in.h (wcpncpy): New declaration.
60597         * lib/wcpncpy.c: New file.
60598         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
60599         * m4/wcpncpy.m4: New file.
60600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
60601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
60602         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
60603         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
60604         * doc/posix-functions/wcpncpy.texi: Mention the new module.
60606 2011-02-05  Bruno Haible  <bruno@clisp.org>
60608         New module 'wcsncpy'.
60609         * modules/wcsncpy: New file.
60610         * lib/wchar.in.h (wcsncpy): New declaration.
60611         * lib/wcsncpy.c: New file.
60612         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
60613         * m4/wcsncpy.m4: New file.
60614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
60615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
60616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
60617         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
60618         * doc/posix-functions/wcsncpy.texi: Mention the new module.
60620 2011-02-05  Bruno Haible  <bruno@clisp.org>
60622         New module 'wcpcpy'.
60623         * modules/wcpcpy: New file.
60624         * lib/wchar.in.h (wcpcpy): New declaration.
60625         * lib/wcpcpy.c: New file.
60626         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
60627         * m4/wcpcpy.m4: New file.
60628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
60629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
60630         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
60631         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
60632         * doc/posix-functions/wcpcpy.texi: Mention the new module.
60634 2011-02-05  Bruno Haible  <bruno@clisp.org>
60636         New module 'wcscpy'.
60637         * modules/wcscpy: New file.
60638         * lib/wchar.in.h (wcscpy): New declaration.
60639         * lib/wcscpy.c: New file.
60640         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
60641         * m4/wcscpy.m4: New file.
60642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
60643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
60644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
60645         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
60646         * doc/posix-functions/wcscpy.texi: Mention the new module.
60648 2011-02-05  Bruno Haible  <bruno@clisp.org>
60650         New module 'wcsnlen'.
60651         * modules/wcsnlen: New file.
60652         * lib/wchar.in.h (wcsnlen): New declaration.
60653         * lib/wcsnlen.c: New file.
60654         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
60655         * m4/wcsnlen.m4: New file.
60656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
60657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
60658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
60659         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
60660         * doc/posix-functions/wcsnlen.texi: Mention the new module.
60662 2011-02-05  Bruno Haible  <bruno@clisp.org>
60664         New module 'wcslen'.
60665         * modules/wcslen: New file.
60666         * lib/wchar.in.h (wcslen): New declaration.
60667         * lib/wcslen.c: New file.
60668         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
60669         * m4/wcslen.m4: New file.
60670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
60671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
60672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
60673         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
60674         * doc/posix-functions/wcslen.texi: Mention the new module.
60676 2011-02-05  Bruno Haible  <bruno@clisp.org>
60678         New module 'wmemset'.
60679         * modules/wmemset: New file.
60680         * lib/wchar.in.h (wmemset): New declaration.
60681         * lib/wmemset.c: New file.
60682         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
60683         * m4/wmemset.m4: New file.
60684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
60685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
60686         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
60687         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
60688         * doc/posix-functions/wmemset.texi: Mention the new module.
60690 2011-02-05  Bruno Haible  <bruno@clisp.org>
60692         New module 'wmemmove'.
60693         * modules/wmemmove: New file.
60694         * lib/wchar.in.h (wmemmove): New declaration.
60695         * lib/wmemmove.c: New file.
60696         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
60697         * m4/wmemmove.m4: New file.
60698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
60699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
60700         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
60701         HAVE_WMEMMOVE.
60702         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
60703         * doc/posix-functions/wmemmove.texi: Mention the new module.
60705 2011-02-05  Bruno Haible  <bruno@clisp.org>
60707         New module 'wmemcpy'.
60708         * modules/wmemcpy: New file.
60709         * lib/wchar.in.h (wmemcpy): New declaration.
60710         * lib/wmemcpy.c: New file.
60711         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
60712         * m4/wmemcpy.m4: New file.
60713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
60714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
60715         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
60716         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
60717         * doc/posix-functions/wmemcpy.texi: Mention the new module.
60719 2011-02-05  Bruno Haible  <bruno@clisp.org>
60721         New module 'wmemcmp'.
60722         * modules/wmemcmp: New file.
60723         * lib/wchar.in.h (wmemcmp): New declaration.
60724         * lib/wmemcmp.c: New file.
60725         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
60726         * m4/wmemcmp.m4: New file.
60727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
60728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
60729         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
60730         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
60731         * doc/posix-functions/wmemcmp.texi: Mention the new module.
60733 2011-02-07  Jim Meyering  <meyering@redhat.com>
60735         di-set, ino-map: new modules, from coreutils
60736         * lib/di-set.c: New file.
60737         * lib/di-set.h: Likewise.
60738         * lib/ino-map.c: Likewise.
60739         * lib/ino-map.h: Likewise.
60740         * modules/di-set: Likewise.
60741         * modules/di-set-tests: Likewise.
60742         * modules/ino-map: Likewise.
60743         * modules/ino-map-tests: Likewise.
60744         * tests/test-di-set.c: Likewise.
60745         * tests/test-ino-map.c: Likewise.
60747 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
60749         getloadavg: merge minor changes from Emacs
60751         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
60752         (getloadavg): Use memset, not bzero.
60754         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
60755         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
60756         clash (bug#86).
60758 2010-11-14  Bruno Haible  <bruno@clisp.org>
60760         Allow multiple gnulib generated replacements to coexist.
60761         * lib/getopt.in.h (struct option): Avoid identical redefinition.
60762         * lib/inttypes.in.h (imaxdiv_t): Likewise.
60763         * lib/langinfo.in.h (nl_item): Likewise.
60764         * lib/math.in.h (_NaN, NAN): Likewise.
60765         * lib/netdb.in.h (struct addrinfo): Likewise.
60766         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
60767         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
60768         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
60769         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
60770         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
60771         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
60772         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
60773         pthread_mutexattr_init, pthread_mutexattr_settype,
60774         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
60775         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
60776         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
60777         pthread_spin_trylock, pthread_spin_unlock): Likewise.
60778         * lib/sched.in.h (struct sched_param): Likewise.
60779         * lib/se-selinux.in.h (security_class_t, security_context_t,
60780         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
60781         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
60782         lsetfilecon, fsetfilecon, security_check_context,
60783         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
60784         Likewise.
60785         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
60786         Likewise.
60787         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
60788         _gl_function_taking_int_returning_void_t, union sigval,
60789         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
60790         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
60791         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60792         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
60793         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
60794         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
60795         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
60796         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
60797         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
60798         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
60799         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
60800         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
60801         socklen_t, rpl_fd_isset): Likewise.
60802         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
60803         * lib/sys_time.in.h (struct timeval): Likewise.
60804         * lib/sys_times.in.h (struct tms): Likewise.
60805         * lib/sys_utsname.in.h (struct utsname):
60806         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
60807         * lib/unistd.in.h (getpagesize): Likewise.
60808         * lib/wchar.in.h (mbstate_t): Likewise.
60809         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60810         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
60811         towlower, towupper): Likewise.
60812         Reported by Sam Steingold <sds@gnu.org>.
60814 2011-02-05  Eric Blake  <eblake@redhat.com>
60816         unsetenv: work around Haiku issues
60817         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
60818         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
60820 2010-12-30  Bruce Korb  <bkorb@gnu.org>
60822         libposix: avoid calling error() within libposix
60823         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
60824         is defined.
60826 2011-02-05  Eric Blake  <eblake@redhat.com>
60828         strerror_r-posix: port to cygwin
60829         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
60830         implementation.
60831         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
60832         * tests/test-strerror_r.c (main): Fix test.
60833         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
60834         issue.
60836 2011-02-05  Bruno Haible  <bruno@clisp.org>
60838         New module 'wmemchr'.
60839         * modules/wmemchr: New file.
60840         * lib/wchar.in.h (wmemchr): New declaration.
60841         * lib/wmemchr.c: New file.
60842         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
60843         * m4/wmemchr.m4: New file.
60844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
60845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
60846         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
60847         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
60848         * doc/posix-functions/wmemchr.texi: Mention the new module.
60850 2011-02-04  Eric Blake  <eblake@redhat.com>
60852         fdopendir: detect FreeBSD bug
60853         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
60854         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
60856 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60858         stdbool: do not define HAVE_STDBOOL_H
60859         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
60860         AC_HEADER_STDBOOL.  All uses changed.  Do not define
60861         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
60862         imported from the latest Autoconf git.  It was motivated by Emacs,
60863         which uses gnulib but does not need HAVE_STDBOOL_H.
60865 2011-02-04  Bruno Haible  <bruno@clisp.org>
60867         wcsnrtombs: Prepare for new module wwcsnrtombs.
60868         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
60869         * lib/wcsnrtombs.c: Include it.
60870         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
60872         wcsrtombs: Prepare for new module wwcsrtombs.
60873         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
60874         * lib/wcsrtombs.c: Include it.
60875         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
60877         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
60878         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
60879         * lib/mbsnrtowcs.c: Include it.
60880         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
60882         mbsrtowcs: Prepare for new module mbsrtowwcs.
60883         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
60884         * lib/mbsrtowcs.c: Include it.
60885         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
60887 2011-02-04  Bruno Haible  <bruno@clisp.org>
60889         vasnprintf: Reduce use of malloc for small format strings.
60890         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
60891         (arguments): Add room for the first 7 arguments.
60892         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
60893         (char_directives, u8_directives, u16_directives, u32_directives): Add
60894         room for the first 7 directives.
60895         * lib/printf-parse.c: Include <string.h>.
60896         (PRINTF_PARSE): Change memory handling code so that it uses the first
60897         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
60898         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
60899         Reported by Pádraig Brady <P@draigbrady.com>.
60901 2011-01-31  Eric Blake  <eblake@redhat.com>
60903         dup2: work around Haiku bug
60904         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
60905         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
60906         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60907         * tests/test-dup2.c (main): Enhance test.
60909 2011-01-31  Simon Josefsson  <simon@josefsson.org>
60911         doc: off_t is not available in eglibc 2.11.2 stdio.h.
60912         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
60913         declared by eglibc 2.11.2.
60914         * lib/stdio.in.h: Likewise.
60916 2011-01-31  Eric Blake  <eblake@redhat.com>
60918         ignore-value: add missing test dependency
60919         * tests/test-ignore-value.c: Revert previous change; stdio.h
60920         provides off_t.
60921         * modules/ignore-value-tests (Depends-on): Add missing dependency.
60923 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
60925         mktime: clarify long_int width checking
60926         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
60927         the top level, to make it clearer that the assumption about
60928         long_int width is being checked.  See
60929         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
60931 2011-01-30  Simon Josefsson  <simon@josefsson.org>
60933         ignore-value: Fix self-test.
60934         * tests/test-ignore-value.c: Include sys/types.h for off_t.
60936 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60938         TYPE_MAXIMUM: avoid theoretically undefined behavior
60939         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
60940         negative number, which the C Standard says has undefined behavior.
60941         In practice this is not a problem, but might as well do it by the book.
60942         Reported by Rich Felker and Eric Blake; see
60943         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
60944         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
60945         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60947         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
60948         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60949         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
60951         mktime: #undef mktime before #defining it
60952         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
60954         mktime: systematically normalize tm_isdst comparisons
60955         * lib/mktime.c (isdst_differ): New function.
60956         (__mktime_internal): Use it systematically for all isdst comparisons.
60957         This completes the fix for libc BZ #6723, and removes the need for
60958         normalizing tm_isdst.  See
60959         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
60960         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
60962         mktime: fix some integer overflow issues and sidestep the rest
60964         This was prompted by a bug report by Benjamin Lindner for MinGW
60965         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
60966         His bug is due to signed integer overflow (0 - INT_MIN), and I
60967         I scanned through mktime.c looking for other integer overflow
60968         problems, fixing all the bugs I found.
60970         Although the C Standard says the resulting code is still not safe
60971         in the presence of integer overflow, in practice it should be good
60972         enough for all real-world two's-complement implementations, except
60973         for debugging environments that deliberately trap on integer
60974         overflow (e.g., gcc -ftrapv).
60976         * lib/mktime.c (WRAPV): New macro.
60977         (SHR): Also check that long_int and time_t shift right in the
60978         usual way, before using the fast-but-unportable method.
60979         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
60980         used.  The code already assumed two's complement, so there's
60981         no need to test for alternatives.  All uses removed.
60982         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
60983         the C standard.  Problem reported by Rich Felker in
60984         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
60985         (twos_complement_arithmetic): Also check long_int and time_t.
60986         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
60987         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
60988         (__mktime_internal): Avoid integer overflow with unary subtraction
60989         in two instances where -1 - X is an adequate replacement for -X,
60990         since the calculations are approximate.
60992 2011-01-29  Eric Blake  <eblake@redhat.com>
60994         mktime: avoid infinite loop
60995         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
60996         type; behavior is still undefined but portable to all known targets.
60997         Reported by Rich Felker.
60999 2011-01-29  Simon Josefsson  <simon@josefsson.org>
61001         rename, unlink, same-inode: Relicense.
61002         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
61003         * modules/unlink (License): Likewise.
61004         * modules/same-inode (License): Likewise.
61006 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61008         mktime: avoid problems on NetBSD 5 / i386
61009         * lib/mktime.c (long_int): New type.  This works around a problem
61010         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
61011         but time_t is 64 bits, and where I expect the existing code is
61012         wrong in some cases.
61013         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
61014         (ydhms_diff): Bring back the compile-time check for wide-enough
61015         year and yday.
61017         mktime: fix misspelling in comment
61018         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
61019         This merges all recent glibc changes of importance.
61021 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61023         move-if-change: cope with concurrent mv of identical file.
61024         * build-aux/move-if-change (CMPPROG): Accept environment
61025         variable as an override for `cmp'.
61026         (usage): Document CMPPROG.
61027         Adjust comparison to drop stdout.  Cope with failure of mv if
61028         the target file exists and is identical to the source, for
61029         parallel builds.
61030         Report from H.J. Lu against binutils in PR binutils/12283.
61032 2011-01-28  Bruce Korb  <bkorb@gnu.org>
61034         * users.txt: Mention sharutils.
61036 2011-01-28  Simon Josefsson  <simon@josefsson.org>
61038         * users.txt: Mention OATH Toolkit.
61040 2011-01-27  Bruno Haible  <bruno@clisp.org>
61042         Prepare for supporting FreeBSD 10.
61043         * build-aux/config.libpath: Remove handling of freebsd1*.
61045 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
61047         Prepare for supporting FreeBSD 10.
61048         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
61049         match FreeBSD 10.0.
61051 2011-01-27  Bruno Haible  <bruno@clisp.org>
61053         vma-iter, get-rusage-as: Add OpenBSD support.
61054         * modules/vma-iter (configure.ac): Test for mquery.
61055         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
61056         * lib/vma-iter.c: Include <sys/mman.h>.
61057         (vma_iterate): Add an implementation based on mquery().
61058         * lib/resource-ext.h (get_rusage_as): Update comments.
61059         * lib/get-rusage-as.c: Likewise.
61060         * lib/get-rusage-data.c: Likewise.
61062 2011-01-26  Karl Berry  <karl@gnu.org>
61064         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
61065         variables to make it easier to override the makeinfo program used.
61067 2011-01-26  Eric Blake  <eblake@redhat.com>
61069         fcntl: work around Haiku F_DUPFD bugs
61070         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
61071         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
61072         cloexec bit on duplication.
61073         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
61075 2011-01-26  Bruno Haible  <bruno@clisp.org>
61077         Enable memory leak tests on AIX.
61078         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
61079         * tests/test-fprintf-posix3.c (main): Likewise.
61081 2011-01-26  Bruno Haible  <bruno@clisp.org>
61083         Tests for module 'get-rusage-data'.
61084         * modules/get-rusage-data-tests: New file.
61085         * tests/test-get-rusage-data.c: New file.
61087         New module 'get-rusage-data'.
61088         * lib/resource-ext.h (get_rusage_data): New declaration.
61089         * lib/get-rusage-data.c: New file.
61090         * modules/get-rusage-data: New file.
61092 2011-01-25  Bruno Haible  <bruno@clisp.org>
61094         get-rusage-as: Allow for easier testing.
61095         * lib/resource-ext.h (get_rusage_as): Add comment.
61096         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
61097         (main): New function for interactive testing.
61099 2011-01-25  Bruno Haible  <bruno@clisp.org>
61101         vma-iter: Treat Haiku like BeOS.
61102         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
61103         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
61105 2011-01-25  Eric Blake  <eblake@redhat.com>
61107         c-stack: fix regression on cygwin when libsigsegv is present
61108         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
61110 2011-01-24  Bruno Haible  <bruno@clisp.org>
61112         vma-iter: Avoid empty intervals.
61113         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
61114         on an empty interval.
61116 2011-01-24  Jim Meyering  <meyering@redhat.com>
61118         u64: remove unnecessary #include
61119         * lib/u64.h: Don't include <stddef.h>.  It was not used.
61121 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61123         Allow the user to avoid the HAVE_RAW_DECL_* macros.
61124         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
61126 2011-01-23  Bruno Haible  <bruno@clisp.org>
61128         New module 'vma-iter'.
61129         * lib/vma-iter.h: New file.
61130         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
61131         * modules/vma-iter: New file.
61132         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
61133         for get_rusage_as_via_iterator.
61134         (vma_iterate_callback): New function.
61135         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
61136         * modules/get-rusage-as (Depends-on): Add vma-iter.
61138 2011-01-23  Bruno Haible  <bruno@clisp.org>
61140         uninorm: Tweak includes.
61141         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
61142         Reported by Jim Meyering.
61144 2011-01-23  Bruno Haible  <bruno@clisp.org>
61146         get-rusage-as: Improve on NetBSD.
61147         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
61148         /proc, like on FreeBSD.
61150 2011-01-23  Jim Meyering  <meyering@redhat.com>
61152         xreadlink.h: remove unnecessary #include
61153         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
61155         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
61156         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
61158 2011-01-23  Bruno Haible  <bruno@clisp.org>
61160         get-rusage-as: Fix bug.
61161         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
61162         original limit when aborting the first loop.
61164 2011-01-23  Bruno Haible  <bruno@clisp.org>
61166         wctype: Ensure valid C syntax.
61167         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
61168         unconditionally, instead of gl_NEXT_HEADERS conditionally.
61170 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61172         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
61173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
61174         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
61175         as they are needed only for configure's test case.
61176         This removes two unnecessary symbols from config.h.
61178         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
61179         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
61180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
61181         AC_CHECK_HEADERS_ONCE on a header that we also invoke
61182         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
61183         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
61184         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
61185         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
61186         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61187         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61188         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
61189         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61190         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
61191         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
61192         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
61193         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61194         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
61195         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61197 2011-01-21  Eric Blake  <eblake@redhat.com>
61199         maintainer-makefile: work with older git for submodule check
61200         * top/maint.mk (public-submodule-commit): Rewrite to avoid
61201         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
61202         Reported by Matthias Bolte.
61204         bootstrap: minor portability fixes
61205         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
61206         (usage): Omit leading capital and trailing . on help phrases, per
61207         GNU Coding Standards.
61208         (check_versions, top level): Prefix messages with script name.
61210 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
61212         bootstrap: support --no-git option
61213         * build-aux/bootstrap: Add --no-git option, to be used when
61214         --gnulib-srcdir points to the exact desired checkout.
61216 2011-01-21  Eric Blake  <eblake@redhat.com>
61218         strerror_r-posix: work with glibc 2.13
61219         * lib/strerror_r.c (strerror_r): Fix return type.
61221 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61222             Bruno Haible  <bruno@clisp.org>
61224         uN_strstr: New unit tests.
61225         * modules/unistr/u8-strstr-tests: New file.
61226         * modules/unistr/u16-strstr-tests: New file.
61227         * modules/unistr/u32-strstr-tests: New file.
61228         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
61229         * tests/unistr/test-u8-strstr.c: New file.
61230         * tests/unistr/test-u16-strstr.c: New file.
61231         * tests/unistr/test-u32-strstr.c: New file.
61233 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61234             Bruno Haible  <bruno@clisp.org>
61236         Make uN_strstr functions O(n) worst-case.
61237         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
61238         16-bit and 32-bit unit cases, use the unibyte algorithm from
61239         lib/mbsstr.c.
61240         * lib/unistr/u8-strstr.c: Include <string.h>.
61241         (UNIT_IS_UINT8_T): New macro.
61242         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
61243         (U_STRLEN, U_STRNLEN): New macros.
61244         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
61245         (U_STRLEN, U_STRNLEN): New macros.
61246         * modules/unistr/u8-strstr (Depends-on): Add strstr.
61247         (configure.ac): Update required libunistring version.
61248         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
61249         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
61250         malloca.
61251         (configure.ac): Update required libunistring version.
61252         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
61253         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
61254         malloca.
61255         (configure.ac): Update required libunistring version.
61257 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61258             Bruno Haible  <bruno@clisp.org>
61260         Prepare for faster uN_strstr functions.
61261         * lib/str-kmp.h: Support definable UNITs.
61262         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
61263         needle_len argument.
61264         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
61265         * lib/mbscasestr.c (mbscasestr): Likewise.
61267 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61269         malloca-tests: make faster by unsetting MALLOC_PERTURB_
61270         * tests/test-malloca.c (main): Unset the environment variable
61271         to greatly speed up the test.
61272         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
61273         * modules/malloca-tests: Depend on unsetenv.
61275 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61277         ignore-value: remove stdint dependency
61278         * lib/ignore-value.h: Remove <stdint.h>
61279         * modules/ignore-value: Remove stdint dependency.
61281 2011-01-21  Jim Meyering  <meyering@redhat.com>
61283         maint.mk: adjust variable name to be consistent with other gl_ vars
61284         * top/maint.mk (gl_public_submodule_commit): Rename the variable
61285         to be lower case.
61287 2011-01-20  Jim Meyering  <meyering@redhat.com>
61289         maint.mk: make "check" depend on public-submodule-commit by default
61290         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
61292 2011-01-20  Bruno Haible  <bruno@clisp.org>
61294         mbfile, mbiter: Complete change from 2008-12-21.
61295         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
61296         * m4/mbiter.m4 (gl_MBITER): Likewise.
61298 2011-01-20  Jim Meyering  <meyering@redhat.com>
61300         init.sh: insert space between each function name and "()"
61301         * tests/init.sh: Make it a little easier to see that a function's
61302         name is "warn_", and not "warn" when looking at the first part of
61303         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
61305 2011-01-20  Jim Meyering  <meyering@redhat.com>
61307         mountlist: clean up code formatting
61308         * lib/mountlist.c (read_file_system_list): Split a long line,
61309         correct bracing style, use NULL in place of "(struct statfs *)0",
61310         don't parenthesize return value, add spaces around "=" and after
61311         ";-in-for-stmt".
61313 2011-01-14  Markus Duft  <mduft@gentoo.org>
61315         mountlist: add support for Interix
61316         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
61317         Apply statvfs to all entries of /dev/fs.
61318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
61319         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
61321 2011-01-20  Jim Meyering  <meyering@redhat.com>
61323         maint.mk: improve the public-submodule-commit rule
61324         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
61325         to suppress printing of its commands... unless V=1.
61326         Add git submodule's --quiet option to suppress printing of e.g.,
61327         "Entering gnulib" output.
61328         "cd" into $(srcdir) before running git submodule.
61330 2011-01-20  Bruno Haible  <bruno@clisp.org>
61332         include_next: Fix bug introduced on 2011-01-18.
61333         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
61334         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
61335         ac_cv_header_... variable if the second argument is not 'check'.
61336         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
61337         gl_NEXT_HEADERS_INTERNAL.
61339 2011-01-20  Bruno Haible  <bruno@clisp.org>
61341         Allow the user to avoid the GNULIB_TEST_* macros.
61342         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
61343         Suggested by Paul Eggert.
61345 2011-01-14  Jim Meyering  <meyering@redhat.com>
61347         bootstrap: avoid failure when there is no .gitmodules file
61348         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
61349         has been assigned to, even when its value is the empty string.
61350         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
61351         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
61352         Reported by John W. Eaton <jwe@gnu.org>.
61354 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61356         assume <ctype.h>, ..., <time.h> exist
61357         For years gnulib has been assuming the existence of the headers
61358         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
61359         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
61360         them, since they don't appear to be needed.
61361         * README (Portability guidelines): Document this.
61362         * lib/flock.c: Assume <fcntl.h> exists.
61363         * lib/regex_internal.h: Assume <locale.h> exists.
61364         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
61365         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
61366         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
61367         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
61368         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
61369         * m4/regex.m4 (gl_REGEX): Likewise.
61370         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
61371         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
61372         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
61373         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
61374         * tests/test-argp.c: Likewise.
61375         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
61377         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
61378         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
61379         AA_APPLE_UNIVERSAL_BUILD.  See
61380         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
61381         * NEWS: Document this.
61383 2011-01-19  Eric Blake  <eblake@redhat.com>
61385         c-stack: assume stack overflow if SA_SIGINFO unsupported
61386         * lib/c-stack.c (SIGACTION_WORKS): Rename...
61387         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
61388         sigaction will work.
61389         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
61390         behavior match Linux.
61391         * tests/test-c-stack.c (main): Prefer NULL for pointers.
61393         stdbool-tests: accommodate Haiku
61394         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
61396         binary-io: fix O_TEXT on Haiku
61397         * modules/binary-io (Depends-on): Add fcntl-h.
61398         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
61399         than blindly undefining O_TEXT.
61400         Reported by Scott McCreary.
61402 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61404         include_next: do not check for standard headers like stddef.h
61406         I found this problem when modifying Emacs to use gnulib.
61407         I noticed that it added HAVE_STDDEF_H to config.h, even though
61408         gnulib always assumes <stddef.h> exists as per README and this
61409         symbol is unnecessary.
61410         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
61411         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
61412         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
61413         faster for headers like stddef.h that are known to exist.
61414         (gl_CHECK_NEXT_HEADERS): Use it.
61415         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
61416         rather than gl_CHECK_NEXT_HEADERS.
61417         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
61418         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
61420 2011-01-18  Eric Blake  <eblake@redhat.com>
61422         ansi-c++-opt: skip C++ dependency style if C++ is unused
61423         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
61424         tests when we know C++ compilation is not desired.
61425         Reported by Scott McCreary.
61427 2011-01-18  Bruno Haible  <bruno@clisp.org>
61429         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
61430         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
61431         (main): Perform test also when getrlimit and setrlimit don't exist or
61432         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
61433         limiting the address space size using setrlimit, compare the address
61434         space size before and after the test.
61435         * tests/test-dprintf-posix2.c: Likewise.
61436         * tests/test-fprintf-posix3.sh: Update skip messages.
61437         * tests/test-dprintf-posix2.sh: Likewise.
61438         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
61439         * modules/dprintf-posix-tests (Depends-on): Likewise.
61440         Reported by Bruce Korb <bkorb@gnu.org> and
61441         Gary V. Vaughan <gary@gnu.org>.
61443 2011-01-18  Bruno Haible  <bruno@clisp.org>
61445         get-rusage-as: Improvement for Cygwin.
61446         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
61447         areas that are merely reserved.
61449 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61451         strftime: remove dependencies on multibyte modules
61453         strftime depended on mbrlen, mbsinit, and wchar, but these modules
61454         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
61455         only if __osf__ is defined, and I suspect OSF doesn't need these
61456         other modules.  If my guess is wrong, we'll need to come up with a
61457         variant of strftime that doesn't need the multibyte modules.
61459         I discovered this problem when attempting modify Emacs to use the
61460         strftime module.  With the previous gnulib, this caused Emacs to
61461         need 31 new files, ranging from lib/config.charset to
61462         m4/wint_t.m4.  This was overkill and I expect would be offputting
61463         to the Emacs maintainers.  After this change, only 6 new files are
61464         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
61465         stdbool.m4, and tm_gmtoff.m4.
61467         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
61468         Suggested by Bruno Haible in
61469         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
61470         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
61471         and do not check for wchar.h.
61472         * modules/strftime (Files): Remove m4/mbstate_t.m4.
61473         (Depends-on): Remove mbrlen, mbsinit, wchar.
61475 2011-01-18  Bruno Haible  <bruno@clisp.org>
61477         Tests for module 'get-rusage-as'.
61478         * modules/get-rusage-as-tests: New file.
61479         * tests/test-get-rusage-as.c: New file.
61481         New module 'get-rusage-as'.
61482         * modules/get-rusage-as: New file.
61483         * lib/resource-ext.h: New file.
61484         * lib/get-rusage-as.c: New file.
61486 2011-01-17  Eric Blake  <eblake@redhat.com>
61488         sigaction: relax license from LGPLv3+ to LGPLv2+
61489         * modules/sigaction (License): Relax to LGPLv2+.
61491 2011-01-14  Bruno Haible  <bruno@clisp.org>
61493         filemode: Make function declarations usable in C++ mode.
61494         * lib/filemode.h: Enclose function declarations in extern "C" block.
61495         Reported by John W. Eaton <jwe@gnu.org>.
61497 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
61499         save-cwd: no longer include "xgetcwd.h"
61500         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
61501         This avoids a compilation failure in projects that use save-cwd
61502         without also using the xgetcwd module.
61504 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61506         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
61507         This is so that a program like Emacs, which needs only dtoastr,
61508         does not have to bother with distributing and compiling ftoastr
61509         and ldtoastr.
61510         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
61511         * modules/dtoastr, modules/ldtoastr: New files.
61512         * modules/ftoastr: Now works just for 'float'.
61513         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
61514         (Makefile.am): Remove ftoastr.h (not needed and no effect),
61515         dtoastr.c, ldtoastr.c.
61517 2011-01-11  Jim Meyering  <meyering@redhat.com>
61519         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
61520         There is no need to work around the lack of the fchdir function,
61521         since gnulib can now provide a replacement when required.
61522         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
61523         * modules/save-cwd (Depends-on): Add fchdir.
61525 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61527         openat, save-cwd: avoid xmalloc
61529         This removes a direct (but undocumented) dependency of openat on
61530         xalloc, along with an indirect dependency via save-cwd.  It also
61531         removes a dependency of save-cwd on xgetcwd, and thereby
61532         indirectly on xalloc.  This change causes the openat substitute
61533         to fall back on save_cwd when memory is tight, and for save_cwd to
61534         fail instead of dying when memory is tight, but that's good enough.
61535         Problem and initial idea for fix reported by Bastien Roucaries in
61536         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
61538         * lib/openat-proc.c: Include stdlib.h (for malloc), not
61539         xalloc.h (for xmalloc).
61540         (openat_proc_name): Use malloc, not xmalloc.
61541         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
61542         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
61544         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
61545         This avoids heap allocation for file names whose lengths are in
61546         the range 512..1023, with the upper bound increasing to at most
61547         4031 depending on the platform's PATH_MAX.  (We do not want
61548         pathmax.h here as it might supply a non-constant PATH_MAX.)
61549         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
61550         Perhaps they should be moved to malloca.h?
61551         (OPENAT_BUFFER_SIZE): Use them.
61553 2011-01-10  Bruno Haible  <bruno@clisp.org>
61555         doc: Update users.txt.
61556         * users.txt: Add recutils.
61558 2011-01-09  Karl Berry  <karl@gnu.org>
61560         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
61562         * doc/configmake.texi: New file.
61563         * doc/gnulib.texi: Include it.
61564         * modules/configmake: Move documentation from here.
61566 2011-01-09  Bruno Haible  <bruno@clisp.org>
61568         Update to Unicode 6.0.0.
61569         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
61570         (get_lbp): Update for Unicode 6.0.0.
61571         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
61572         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
61573         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
61574         U+11001, U+11038..U+11046. Remove U+06DE.
61575         (uc_width): Fix bounds of planes.
61576         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61577         lib/uniwidth/width.c.
61578         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
61579         trailing whitespace removed.
61580         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
61581         without comments, but with the original copyright notice.
61582         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
61583         * lib/unicase/ignorable.h: Likewise.
61584         * lib/unicase/tocasefold.h: Likewise.
61585         * lib/unicase/tolower.h: Likewise.
61586         * lib/unicase/totitle.h: Likewise.
61587         * lib/unicase/toupper.h: Likewise.
61588         * lib/unictype/bidi_of.h: Likewise.
61589         * lib/unictype/blocks.h: Likewise.
61590         * lib/unictype/categ_C.h: Likewise.
61591         * lib/unictype/categ_Cn.h: Likewise.
61592         * lib/unictype/categ_L.h: Likewise.
61593         * lib/unictype/categ_Ll.h: Likewise.
61594         * lib/unictype/categ_Lm.h: Likewise.
61595         * lib/unictype/categ_Lo.h: Likewise.
61596         * lib/unictype/categ_Lu.h: Likewise.
61597         * lib/unictype/categ_M.h: Likewise.
61598         * lib/unictype/categ_Mc.h: Likewise.
61599         * lib/unictype/categ_Me.h: Likewise.
61600         * lib/unictype/categ_Mn.h: Likewise.
61601         * lib/unictype/categ_N.h: Likewise.
61602         * lib/unictype/categ_Nd.h: Likewise.
61603         * lib/unictype/categ_No.h: Likewise.
61604         * lib/unictype/categ_P.h: Likewise.
61605         * lib/unictype/categ_Po.h: Likewise.
61606         * lib/unictype/categ_S.h: Likewise.
61607         * lib/unictype/categ_Sc.h: Likewise.
61608         * lib/unictype/categ_Sk.h: Likewise.
61609         * lib/unictype/categ_Sm.h: Likewise.
61610         * lib/unictype/categ_So.h: Likewise.
61611         * lib/unictype/categ_of.h: Likewise.
61612         * lib/unictype/combining.h: Likewise.
61613         * lib/unictype/ctype_alnum.h: Likewise.
61614         * lib/unictype/ctype_alpha.h: Likewise.
61615         * lib/unictype/ctype_graph.h: Likewise.
61616         * lib/unictype/ctype_lower.h: Likewise.
61617         * lib/unictype/ctype_print.h: Likewise.
61618         * lib/unictype/ctype_punct.h: Likewise.
61619         * lib/unictype/ctype_upper.h: Likewise.
61620         * lib/unictype/decdigit.h: Likewise.
61621         * lib/unictype/digit.h: Likewise.
61622         * lib/unictype/numeric.h: Likewise.
61623         * lib/unictype/pr_alphabetic.h: Likewise.
61624         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61625         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61626         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61627         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61628         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61629         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61630         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61631         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61632         * lib/unictype/pr_case_ignorable.h: Likewise.
61633         * lib/unictype/pr_cased.h: Likewise.
61634         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
61635         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
61636         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
61637         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
61638         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
61639         * lib/unictype/pr_combining.h: Likewise.
61640         * lib/unictype/pr_composite.h: Likewise.
61641         * lib/unictype/pr_currency_symbol.h: Likewise.
61642         * lib/unictype/pr_decimal_digit.h: Likewise.
61643         * lib/unictype/pr_deprecated.h: Likewise.
61644         * lib/unictype/pr_format_control.h: Likewise.
61645         * lib/unictype/pr_grapheme_base.h: Likewise.
61646         * lib/unictype/pr_grapheme_extend.h: Likewise.
61647         * lib/unictype/pr_grapheme_link.h: Likewise.
61648         * lib/unictype/pr_id_continue.h: Likewise.
61649         * lib/unictype/pr_id_start.h: Likewise.
61650         * lib/unictype/pr_ideographic.h: Likewise.
61651         * lib/unictype/pr_lowercase.h: Likewise.
61652         * lib/unictype/pr_math.h: Likewise.
61653         * lib/unictype/pr_numeric.h: Likewise.
61654         * lib/unictype/pr_other_alphabetic.h: Likewise.
61655         * lib/unictype/pr_other_id_continue.h: Likewise.
61656         * lib/unictype/pr_other_math.h: Likewise.
61657         * lib/unictype/pr_punctuation.h: Likewise.
61658         * lib/unictype/pr_sentence_terminal.h: Likewise.
61659         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61660         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61661         * lib/unictype/pr_unified_ideograph.h: Likewise.
61662         * lib/unictype/pr_uppercase.h: Likewise.
61663         * lib/unictype/pr_xid_continue.h: Likewise.
61664         * lib/unictype/pr_xid_start.h: Likewise.
61665         * lib/unictype/scripts.h: Likewise.
61666         * lib/unictype/scripts_byname.gperf: Likewise.
61667         * lib/unictype/sy_java_ident.h: Likewise.
61668         * lib/unigbrk/gbrkprop.h: Likewise.
61669         * lib/unilbrk/lbrkprop1.h: Likewise.
61670         * lib/unilbrk/lbrkprop2.h: Likewise.
61671         * lib/uninorm/decomposition-table2.h: Likewise.
61672         * lib/uniwbrk/wbrkprop.h: Likewise.
61673         * tests/unicase/test-cased.c: Likewise.
61674         * tests/unicase/test-ignorable.c: Likewise.
61675         * tests/unicase/test-uc_tolower.c: Likewise.
61676         * tests/unicase/test-uc_totitle.c: Likewise.
61677         * tests/unicase/test-uc_toupper.c: Likewise.
61678         * tests/unictype/test-categ_C.c: Likewise.
61679         * tests/unictype/test-categ_Cn.c: Likewise.
61680         * tests/unictype/test-categ_L.c: Likewise.
61681         * tests/unictype/test-categ_Ll.c: Likewise.
61682         * tests/unictype/test-categ_Lm.c: Likewise.
61683         * tests/unictype/test-categ_Lo.c: Likewise.
61684         * tests/unictype/test-categ_Lu.c: Likewise.
61685         * tests/unictype/test-categ_M.c: Likewise.
61686         * tests/unictype/test-categ_Mc.c: Likewise.
61687         * tests/unictype/test-categ_Me.c: Likewise.
61688         * tests/unictype/test-categ_Mn.c: Likewise.
61689         * tests/unictype/test-categ_N.c: Likewise.
61690         * tests/unictype/test-categ_Nd.c: Likewise.
61691         * tests/unictype/test-categ_No.c: Likewise.
61692         * tests/unictype/test-categ_P.c: Likewise.
61693         * tests/unictype/test-categ_Po.c: Likewise.
61694         * tests/unictype/test-categ_S.c: Likewise.
61695         * tests/unictype/test-categ_Sc.c: Likewise.
61696         * tests/unictype/test-categ_Sk.c: Likewise.
61697         * tests/unictype/test-categ_Sm.c: Likewise.
61698         * tests/unictype/test-categ_So.c: Likewise.
61699         * tests/unictype/test-ctype_alnum.c: Likewise.
61700         * tests/unictype/test-ctype_alpha.c: Likewise.
61701         * tests/unictype/test-ctype_graph.c: Likewise.
61702         * tests/unictype/test-ctype_lower.c: Likewise.
61703         * tests/unictype/test-ctype_print.c: Likewise.
61704         * tests/unictype/test-ctype_punct.c: Likewise.
61705         * tests/unictype/test-ctype_upper.c: Likewise.
61706         * tests/unictype/test-decdigit.h: Likewise.
61707         * tests/unictype/test-digit.h: Likewise.
61708         * tests/unictype/test-numeric.h: Likewise.
61709         * tests/unictype/test-pr_alphabetic.c: Likewise.
61710         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61711         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61712         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61713         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61714         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61715         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61716         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61717         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61718         * tests/unictype/test-pr_case_ignorable.c: Likewise.
61719         * tests/unictype/test-pr_cased.c: Likewise.
61720         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
61721         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
61722         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
61723         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
61724         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
61725         * tests/unictype/test-pr_combining.c: Likewise.
61726         * tests/unictype/test-pr_composite.c: Likewise.
61727         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61728         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61729         * tests/unictype/test-pr_deprecated.c: Likewise.
61730         * tests/unictype/test-pr_format_control.c: Likewise.
61731         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61732         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61733         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61734         * tests/unictype/test-pr_id_continue.c: Likewise.
61735         * tests/unictype/test-pr_id_start.c: Likewise.
61736         * tests/unictype/test-pr_ideographic.c: Likewise.
61737         * tests/unictype/test-pr_lowercase.c: Likewise.
61738         * tests/unictype/test-pr_math.c: Likewise.
61739         * tests/unictype/test-pr_numeric.c: Likewise.
61740         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61741         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61742         * tests/unictype/test-pr_other_math.c: Likewise.
61743         * tests/unictype/test-pr_punctuation.c: Likewise.
61744         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61745         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61746         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61747         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61748         * tests/unictype/test-pr_uppercase.c: Likewise.
61749         * tests/unictype/test-pr_xid_continue.c: Likewise.
61750         * tests/unictype/test-pr_xid_start.c: Likewise.
61751         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61752         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61753         changes.
61754         * lib/unictype/categ_Cc.h: Likewise.
61755         * lib/unictype/categ_Cf.h: Likewise.
61756         * lib/unictype/categ_Co.h: Likewise.
61757         * lib/unictype/categ_Cs.h: Likewise.
61758         * lib/unictype/categ_Lt.h: Likewise.
61759         * lib/unictype/categ_Nl.h: Likewise.
61760         * lib/unictype/categ_Pc.h: Likewise.
61761         * lib/unictype/categ_Pd.h: Likewise.
61762         * lib/unictype/categ_Pe.h: Likewise.
61763         * lib/unictype/categ_Pf.h: Likewise.
61764         * lib/unictype/categ_Pi.h: Likewise.
61765         * lib/unictype/categ_Ps.h: Likewise.
61766         * lib/unictype/categ_Z.h: Likewise.
61767         * lib/unictype/categ_Zl.h: Likewise.
61768         * lib/unictype/categ_Zp.h: Likewise.
61769         * lib/unictype/categ_Zs.h: Likewise.
61770         * lib/unictype/ctype_blank.h: Likewise.
61771         * lib/unictype/ctype_cntrl.h: Likewise.
61772         * lib/unictype/ctype_digit.h: Likewise.
61773         * lib/unictype/ctype_space.h: Likewise.
61774         * lib/unictype/ctype_xdigit.h: Likewise.
61775         * lib/unictype/mirror.h: Likewise.
61776         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61777         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61778         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61779         * lib/unictype/pr_bidi_control.h: Likewise.
61780         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61781         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61782         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61783         * lib/unictype/pr_bidi_pdf.h: Likewise.
61784         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61785         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61786         * lib/unictype/pr_dash.h: Likewise.
61787         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61788         * lib/unictype/pr_diacritic.h: Likewise.
61789         * lib/unictype/pr_extender.h: Likewise.
61790         * lib/unictype/pr_hex_digit.h: Likewise.
61791         * lib/unictype/pr_hyphen.h: Likewise.
61792         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61793         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61794         * lib/unictype/pr_ignorable_control.h: Likewise.
61795         * lib/unictype/pr_iso_control.h: Likewise.
61796         * lib/unictype/pr_join_control.h: Likewise.
61797         * lib/unictype/pr_left_of_pair.h: Likewise.
61798         * lib/unictype/pr_line_separator.h: Likewise.
61799         * lib/unictype/pr_logical_order_exception.h: Likewise.
61800         * lib/unictype/pr_non_break.h: Likewise.
61801         * lib/unictype/pr_not_a_character.h: Likewise.
61802         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61803         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61804         * lib/unictype/pr_other_id_start.h: Likewise.
61805         * lib/unictype/pr_other_lowercase.h: Likewise.
61806         * lib/unictype/pr_other_uppercase.h: Likewise.
61807         * lib/unictype/pr_paired_punctuation.h: Likewise.
61808         * lib/unictype/pr_paragraph_separator.h: Likewise.
61809         * lib/unictype/pr_pattern_syntax.h: Likewise.
61810         * lib/unictype/pr_pattern_white_space.h: Likewise.
61811         * lib/unictype/pr_private_use.h: Likewise.
61812         * lib/unictype/pr_quotation_mark.h: Likewise.
61813         * lib/unictype/pr_radical.h: Likewise.
61814         * lib/unictype/pr_soft_dotted.h: Likewise.
61815         * lib/unictype/pr_space.h: Likewise.
61816         * lib/unictype/pr_titlecase.h: Likewise.
61817         * lib/unictype/pr_variation_selector.h: Likewise.
61818         * lib/unictype/pr_white_space.h: Likewise.
61819         * lib/unictype/pr_zero_width.h: Likewise.
61820         * lib/unictype/sy_c_ident.h: Likewise.
61821         * lib/unictype/sy_c_whitespace.h: Likewise.
61822         * lib/unictype/sy_java_whitespace.h: Likewise.
61823         * lib/uninorm/composition-table.gperf: Likewise.
61824         * lib/uninorm/decomposition-table1.h: Likewise.
61825         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
61826         LB8.
61827         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61828         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61829         * modules/unictype/*: Bump version number of expected libunistring
61830         version.
61832 2011-01-09  Bruno Haible  <bruno@clisp.org>
61834         Update to Unicode 5.2.0.
61835         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
61836         trailing whitespace removed.
61838 2011-01-09  Bruno Haible  <bruno@clisp.org>
61840         New Unicode character properties, from Unicode 5.2.0.
61841         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
61842         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
61843         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
61844         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
61845         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
61846         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
61847         uc_is_property_cased, uc_is_property_case_ignorable,
61848         uc_is_property_changes_when_lowercased,
61849         uc_is_property_changes_when_uppercased,
61850         uc_is_property_changes_when_titlecased,
61851         uc_is_property_changes_when_casefolded,
61852         uc_is_property_changes_when_casemapped): New declarations.
61853         * lib/unictype/pr_byname.gperf: Add the new properties.
61854         * modules/unictype/property-byname (Depends-on): Depend on the new
61855         properties modules.
61856         * modules/unictype/property-all (Depends-on): Likewise.
61857         * MODULES.html.sh (Unicode string functions): Add
61858         unictype/property-case-ignorable, unictype/property-cased,
61859         unictype/property-changes-when-casefolded,
61860         unictype/property-changes-when-casemapped,
61861         unictype/property-changes-when-lowercased,
61862         unictype/property-changes-when-titlecased,
61863         unictype/property-changes-when-uppercased.
61865         New module 'unictype/property-changes-when-casemapped'.
61866         * modules/unictype/property-changes-when-casemapped: New file.
61867         * lib/unictype/pr_changes_when_casemapped.c: New file.
61868         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
61869         generated by gen-uni-tables.
61870         * modules/unictype/property-changes-when-casemapped-tests: New file.
61871         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
61872         automatically generated by gen-uni-tables.
61874         New module 'unictype/property-changes-when-casefolded'.
61875         * modules/unictype/property-changes-when-casefolded: New file.
61876         * lib/unictype/pr_changes_when_casefolded.c: New file.
61877         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
61878         generated by gen-uni-tables.
61879         * modules/unictype/property-changes-when-casefolded-tests: New file.
61880         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
61881         automatically generated by gen-uni-tables.
61883         New module 'unictype/property-changes-when-titlecased'.
61884         * modules/unictype/property-changes-when-titlecased: New file.
61885         * lib/unictype/pr_changes_when_titlecased.c: New file.
61886         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
61887         generated by gen-uni-tables.
61888         * modules/unictype/property-changes-when-titlecased-tests: New file.
61889         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
61890         automatically generated by gen-uni-tables.
61892         New module 'unictype/property-changes-when-uppercased'.
61893         * modules/unictype/property-changes-when-uppercased: New file.
61894         * lib/unictype/pr_changes_when_uppercased.c: New file.
61895         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
61896         generated by gen-uni-tables.
61897         * modules/unictype/property-changes-when-uppercased-tests: New file.
61898         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
61899         automatically generated by gen-uni-tables.
61901         New module 'unictype/property-changes-when-lowercased'.
61902         * modules/unictype/property-changes-when-lowercased: New file.
61903         * lib/unictype/pr_changes_when_lowercased.c: New file.
61904         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
61905         generated by gen-uni-tables.
61906         * modules/unictype/property-changes-when-lowercased-tests: New file.
61907         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
61908         automatically generated by gen-uni-tables.
61910         New module 'unictype/property-case-ignorable'.
61911         * modules/unictype/property-case-ignorable: New file.
61912         * lib/unictype/pr_case_ignorable.c: New file.
61913         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
61914         by gen-uni-tables.
61915         * modules/unictype/property-case-ignorable-tests: New file.
61916         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
61917         generated by gen-uni-tables.
61919         New module 'unictype/property-cased'.
61920         * modules/unictype/property-cased: New file.
61921         * lib/unictype/pr_cased.c: New file.
61922         * lib/unictype/pr_cased.h: New file, automatically generated by
61923         gen-uni-tables.
61924         * modules/unictype/property-cased-tests: New file.
61925         * tests/unictype/test-pr_cased.c: New file, automatically generated by
61926         gen-uni-tables.
61928 2011-01-09  Bruno Haible  <bruno@clisp.org>
61930         Update to Unicode 5.2.0.
61931         * lib/gen-uni-tables.c (output_predicate, output_category,
61932         output_combclass, output_bidi_category, output_decimal_digit_test,
61933         output_decimal_digit, output_digit_test, output_digit,
61934         output_numeric_test, output_numeric, output_mirror, output_scripts,
61935         output_scripts_byname, output_blocks, output_ident_category): Fix
61936         comment header.
61937         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
61938         get_wbp.
61939         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
61940         items.
61941         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
61942         Changes_When_Lowercased, Changes_When_Uppercased,
61943         Changes_When_Titlecased, Changes_When_Casefolded,
61944         Changes_When_Casemapped.
61945         (is_property_alphabetic, is_property_default_ignorable_code_point):
61946         Update for Unicode 5.2.0.
61947         (is_property_cased, is_property_case_ignorable,
61948         is_property_changes_when_lowercased,
61949         is_property_changes_when_uppercased,
61950         is_property_changes_when_titlecased,
61951         is_property_changes_when_casefolded,
61952         is_property_changes_when_casemapped): New functions.
61953         (output_properties): Output also the properties cased, case_ignorable,
61954         changes_when_lowercased, changes_when_uppercased,
61955         changes_when_titlecased, changes_when_casefolded,
61956         changes_when_casemapped.
61957         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
61958         Unicode TR#11 revision 17 -> 19.
61959         (LBP_CP): New enumeration value.
61960         (LBP_*): Adjust values accordingly.
61961         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61962         TR#14 revision 22 -> 24.
61963         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
61964         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
61965         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61966         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
61967         is_WBP_MIDLETTER.
61968         (output_composition_tables): Allow for 24 bits instead of 16 bits in
61969         the code1 and code2 of each composition rule.
61970         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
61971         * lib/unicase/ignorable.h: Likewise.
61972         * lib/unicase/tocasefold.h: Likewise.
61973         * lib/unicase/tolower.h: Likewise.
61974         * lib/unicase/totitle.h: Likewise.
61975         * lib/unicase/toupper.h: Likewise.
61976         * lib/unictype/bidi_of.h: Likewise.
61977         * lib/unictype/blocks.h: Likewise.
61978         * lib/unictype/categ_C.h: Likewise.
61979         * lib/unictype/categ_Cf.h: Likewise.
61980         * lib/unictype/categ_Cn.h: Likewise.
61981         * lib/unictype/categ_L.h: Likewise.
61982         * lib/unictype/categ_Ll.h: Likewise.
61983         * lib/unictype/categ_Lm.h: Likewise.
61984         * lib/unictype/categ_Lo.h: Likewise.
61985         * lib/unictype/categ_Lu.h: Likewise.
61986         * lib/unictype/categ_M.h: Likewise.
61987         * lib/unictype/categ_Mc.h: Likewise.
61988         * lib/unictype/categ_Mn.h: Likewise.
61989         * lib/unictype/categ_N.h: Likewise.
61990         * lib/unictype/categ_Nd.h: Likewise.
61991         * lib/unictype/categ_Nl.h: Likewise.
61992         * lib/unictype/categ_No.h: Likewise.
61993         * lib/unictype/categ_P.h: Likewise.
61994         * lib/unictype/categ_Pd.h: Likewise.
61995         * lib/unictype/categ_Po.h: Likewise.
61996         * lib/unictype/categ_S.h: Likewise.
61997         * lib/unictype/categ_Sc.h: Likewise.
61998         * lib/unictype/categ_So.h: Likewise.
61999         * lib/unictype/categ_of.h: Likewise.
62000         * lib/unictype/combining.h: Likewise.
62001         * lib/unictype/ctype_alnum.h: Likewise.
62002         * lib/unictype/ctype_alpha.h: Likewise.
62003         * lib/unictype/ctype_graph.h: Likewise.
62004         * lib/unictype/ctype_lower.h: Likewise.
62005         * lib/unictype/ctype_print.h: Likewise.
62006         * lib/unictype/ctype_punct.h: Likewise.
62007         * lib/unictype/ctype_upper.h: Likewise.
62008         * lib/unictype/decdigit.h: Likewise.
62009         * lib/unictype/digit.h: Likewise.
62010         * lib/unictype/numeric.h: Likewise.
62011         * lib/unictype/pr_alphabetic.h: Likewise.
62012         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62013         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62014         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62015         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62016         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62017         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62018         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62019         * lib/unictype/pr_combining.h: Likewise.
62020         * lib/unictype/pr_composite.h: Likewise.
62021         * lib/unictype/pr_currency_symbol.h: Likewise.
62022         * lib/unictype/pr_dash.h: Likewise.
62023         * lib/unictype/pr_decimal_digit.h: Likewise.
62024         * lib/unictype/pr_deprecated.h: Likewise.
62025         * lib/unictype/pr_diacritic.h: Likewise.
62026         * lib/unictype/pr_extender.h: Likewise.
62027         * lib/unictype/pr_grapheme_base.h: Likewise.
62028         * lib/unictype/pr_grapheme_extend.h: Likewise.
62029         * lib/unictype/pr_grapheme_link.h: Likewise.
62030         * lib/unictype/pr_id_continue.h: Likewise.
62031         * lib/unictype/pr_id_start.h: Likewise.
62032         * lib/unictype/pr_ideographic.h: Likewise.
62033         * lib/unictype/pr_ignorable_control.h: Likewise.
62034         * lib/unictype/pr_logical_order_exception.h: Likewise.
62035         * lib/unictype/pr_lowercase.h: Likewise.
62036         * lib/unictype/pr_numeric.h: Likewise.
62037         * lib/unictype/pr_other_alphabetic.h: Likewise.
62038         * lib/unictype/pr_punctuation.h: Likewise.
62039         * lib/unictype/pr_sentence_terminal.h: Likewise.
62040         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62041         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62042         * lib/unictype/pr_unified_ideograph.h: Likewise.
62043         * lib/unictype/pr_uppercase.h: Likewise.
62044         * lib/unictype/pr_xid_continue.h: Likewise.
62045         * lib/unictype/pr_xid_start.h: Likewise.
62046         * lib/unictype/pr_zero_width.h: Likewise.
62047         * lib/unictype/scripts.h: Likewise.
62048         * lib/unictype/scripts_byname.gperf: Likewise.
62049         * lib/unictype/sy_java_ident.h: Likewise.
62050         * lib/unigbrk/gbrkprop.h: Likewise.
62051         * lib/unilbrk/lbrkprop1.h: Likewise.
62052         * lib/unilbrk/lbrkprop2.h: Likewise.
62053         * lib/unilbrk/lbrktables.h: Likewise.
62054         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
62055         LBP_CP. Implement rule LB30.
62056         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
62057         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
62058         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
62059         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
62060         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
62061         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
62062         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
62063         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
62064         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
62065         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
62066         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
62067         bits instead of 16 bits in the code1 and code2 of each composition
62068         rule.
62069         (uc_composition): Update for Unicode 5.2.0.
62070         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
62071         * lib/uninorm/decomposition-table2.h: Likewise.
62072         * lib/uniwbrk/wbrkprop.h: Likewise.
62073         * tests/unicase/test-cased.c: Likewise.
62074         * tests/unicase/test-ignorable.c: Likewise.
62075         * tests/unicase/test-uc_tolower.c: Likewise.
62076         * tests/unicase/test-uc_totitle.c: Likewise.
62077         * tests/unicase/test-uc_toupper.c: Likewise.
62078         * tests/unictype/test-categ_C.c: Likewise.
62079         * tests/unictype/test-categ_Cf.c: Likewise.
62080         * tests/unictype/test-categ_Cn.c: Likewise.
62081         * tests/unictype/test-categ_L.c: Likewise.
62082         * tests/unictype/test-categ_Ll.c: Likewise.
62083         * tests/unictype/test-categ_Lm.c: Likewise.
62084         * tests/unictype/test-categ_Lo.c: Likewise.
62085         * tests/unictype/test-categ_Lu.c: Likewise.
62086         * tests/unictype/test-categ_M.c: Likewise.
62087         * tests/unictype/test-categ_Mc.c: Likewise.
62088         * tests/unictype/test-categ_Mn.c: Likewise.
62089         * tests/unictype/test-categ_N.c: Likewise.
62090         * tests/unictype/test-categ_Nd.c: Likewise.
62091         * tests/unictype/test-categ_Nl.c: Likewise.
62092         * tests/unictype/test-categ_No.c: Likewise.
62093         * tests/unictype/test-categ_P.c: Likewise.
62094         * tests/unictype/test-categ_Pd.c: Likewise.
62095         * tests/unictype/test-categ_Po.c: Likewise.
62096         * tests/unictype/test-categ_S.c: Likewise.
62097         * tests/unictype/test-categ_Sc.c: Likewise.
62098         * tests/unictype/test-categ_So.c: Likewise.
62099         * tests/unictype/test-ctype_alnum.c: Likewise.
62100         * tests/unictype/test-ctype_alpha.c: Likewise.
62101         * tests/unictype/test-ctype_graph.c: Likewise.
62102         * tests/unictype/test-ctype_lower.c: Likewise.
62103         * tests/unictype/test-ctype_print.c: Likewise.
62104         * tests/unictype/test-ctype_punct.c: Likewise.
62105         * tests/unictype/test-ctype_upper.c: Likewise.
62106         * tests/unictype/test-decdigit.h: Likewise.
62107         * tests/unictype/test-digit.h: Likewise.
62108         * tests/unictype/test-numeric.h: Likewise.
62109         * tests/unictype/test-pr_alphabetic.c: Likewise.
62110         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62111         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62112         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62113         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62114         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62115         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62116         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62117         * tests/unictype/test-pr_combining.c: Likewise.
62118         * tests/unictype/test-pr_composite.c: Likewise.
62119         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62120         * tests/unictype/test-pr_dash.c: Likewise.
62121         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62122         * tests/unictype/test-pr_deprecated.c: Likewise.
62123         * tests/unictype/test-pr_diacritic.c: Likewise.
62124         * tests/unictype/test-pr_extender.c: Likewise.
62125         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62126         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62127         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62128         * tests/unictype/test-pr_id_continue.c: Likewise.
62129         * tests/unictype/test-pr_id_start.c: Likewise.
62130         * tests/unictype/test-pr_ideographic.c: Likewise.
62131         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62132         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62133         * tests/unictype/test-pr_lowercase.c: Likewise.
62134         * tests/unictype/test-pr_numeric.c: Likewise.
62135         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62136         * tests/unictype/test-pr_punctuation.c: Likewise.
62137         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62138         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62139         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62140         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62141         * tests/unictype/test-pr_uppercase.c: Likewise.
62142         * tests/unictype/test-pr_xid_continue.c: Likewise.
62143         * tests/unictype/test-pr_xid_start.c: Likewise.
62144         * tests/unictype/test-pr_zero_width.c: Likewise.
62145         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
62146         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
62147         changed behaviour: line breaking is now disallowed between a letter
62148         or '=' and '('.
62149         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
62150         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
62151         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
62152         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
62153         * tests/uniwidth/test-uc_width2.sh: Same updates as in
62154         lib/uniwidth/width.c.
62155         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
62156         without comments, but with the original copyright notice.
62157         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
62158         changes.
62159         * lib/unictype/categ_Cc.h: Likewise.
62160         * lib/unictype/categ_Co.h: Likewise.
62161         * lib/unictype/categ_Cs.h: Likewise.
62162         * lib/unictype/categ_Lt.h: Likewise.
62163         * lib/unictype/categ_Me.h: Likewise.
62164         * lib/unictype/categ_Pc.h: Likewise.
62165         * lib/unictype/categ_Pe.h: Likewise.
62166         * lib/unictype/categ_Pf.h: Likewise.
62167         * lib/unictype/categ_Pi.h: Likewise.
62168         * lib/unictype/categ_Ps.h: Likewise.
62169         * lib/unictype/categ_Sk.h: Likewise.
62170         * lib/unictype/categ_Sm.h: Likewise.
62171         * lib/unictype/categ_Z.h: Likewise.
62172         * lib/unictype/categ_Zl.h: Likewise.
62173         * lib/unictype/categ_Zp.h: Likewise.
62174         * lib/unictype/categ_Zs.h: Likewise.
62175         * lib/unictype/ctype_blank.h: Likewise.
62176         * lib/unictype/ctype_cntrl.h: Likewise.
62177         * lib/unictype/ctype_digit.h: Likewise.
62178         * lib/unictype/ctype_space.h: Likewise.
62179         * lib/unictype/ctype_xdigit.h: Likewise.
62180         * lib/unictype/mirror.h: Likewise.
62181         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62182         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62183         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62184         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62185         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62186         * lib/unictype/pr_bidi_control.h: Likewise.
62187         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62188         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62189         * lib/unictype/pr_bidi_pdf.h: Likewise.
62190         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62191         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62192         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62193         * lib/unictype/pr_format_control.h: Likewise.
62194         * lib/unictype/pr_hex_digit.h: Likewise.
62195         * lib/unictype/pr_hyphen.h: Likewise.
62196         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62197         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62198         * lib/unictype/pr_iso_control.h: Likewise.
62199         * lib/unictype/pr_join_control.h: Likewise.
62200         * lib/unictype/pr_left_of_pair.h: Likewise.
62201         * lib/unictype/pr_line_separator.h: Likewise.
62202         * lib/unictype/pr_math.h: Likewise.
62203         * lib/unictype/pr_non_break.h: Likewise.
62204         * lib/unictype/pr_not_a_character.h: Likewise.
62205         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62206         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62207         * lib/unictype/pr_other_id_continue.h: Likewise.
62208         * lib/unictype/pr_other_id_start.h: Likewise.
62209         * lib/unictype/pr_other_lowercase.h: Likewise.
62210         * lib/unictype/pr_other_math.h: Likewise.
62211         * lib/unictype/pr_other_uppercase.h: Likewise.
62212         * lib/unictype/pr_paired_punctuation.h: Likewise.
62213         * lib/unictype/pr_paragraph_separator.h: Likewise.
62214         * lib/unictype/pr_pattern_syntax.h: Likewise.
62215         * lib/unictype/pr_pattern_white_space.h: Likewise.
62216         * lib/unictype/pr_private_use.h: Likewise.
62217         * lib/unictype/pr_quotation_mark.h: Likewise.
62218         * lib/unictype/pr_radical.h: Likewise.
62219         * lib/unictype/pr_soft_dotted.h: Likewise.
62220         * lib/unictype/pr_space.h: Likewise.
62221         * lib/unictype/pr_titlecase.h: Likewise.
62222         * lib/unictype/pr_variation_selector.h: Likewise.
62223         * lib/unictype/pr_white_space.h: Likewise.
62224         * lib/unictype/sy_c_ident.h: Likewise.
62225         * lib/unictype/sy_c_whitespace.h: Likewise.
62226         * lib/unictype/sy_java_whitespace.h: Likewise.
62227         * modules/uni*/*: Bump version number of expected libunistring version.
62228         Reported by Simon Josefsson.
62230 2011-01-09  Karl Heuer  <kwzh@gnu.org>
62232         useless-if-before-free: fix typo in --help and make the internal,
62233         automatic version date update process work once again.
62234         --help output contained a NUL character instead of the
62235         backslash-zero that was intended.  Also, the "must lie within
62236         the first 8 lines" line is on line 9, and hence not getting
62237         automatically updated.
62238         * build-aux/useless-if-before-free: Fix the former by adding a
62239         backslash, and the latter by condensing the three lines of what-it-does
62240         to a single line, leaving one line of slack for the future.
62242 2011-01-09  Bruno Haible  <bruno@clisp.org>
62244         uniwidth/width: Fix width of U+1D173..U+1D17A.
62245         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
62246         symbolic_width, output_width_property_test): New functions.
62247         (main): Invoke output_nonspacing_property, output_width_property_test.
62248         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
62249         U+1D173..U+1D17A.
62250         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
62251         1.
62252         * modules/uniwidth/*: Bump version number of expected libunistring
62253         version.
62254         * modules/unilbrk/*: Likewise.
62256 2011-01-08  Bruno Haible  <bruno@clisp.org>
62258         uninorm tests: Preserve copyright of Unicode data file.
62259         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
62260         Mention modifications.
62262 2011-01-08  Bruno Haible  <bruno@clisp.org>
62264         gen-uni-tables: Prepare for Unicode 5.2.0.
62265         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
62266         (debug_output_lbp, output_lbp): Update.
62268 2011-01-08  Bruno Haible  <bruno@clisp.org>
62270         unilbrk: Clarify gen-uni-tables.c code.
62271         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
62272         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
62273         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
62275 2011-01-07  Bruno Haible  <bruno@clisp.org>
62277         strtod: Restore errno when successfully parsing Infinity or NaN.
62278         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
62279         restore the original errno.
62281 2011-01-07  Bruno Haible  <bruno@clisp.org>
62283         remove test: Avoid failure on HP-UX 11.
62284         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
62286 2011-01-07  Bruno Haible  <bruno@clisp.org>
62288         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
62289         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
62290         error code.
62292 2011-01-07  Pádraig Brady  <P@draigBrady.com>
62294         ignore-value: fixup comments, and add Eric Blake
62295         as an author since he rewrote the macros.
62296         * lib/ignore-value.h (ignore_value):  State that
62297         we now support aggregates.  Also specify exactly
62298         when the GCC warn_unused_result feature was added.
62300 2011-01-06  Eric Blake  <eblake@redhat.com>
62302         ignore-value: support aggregate types
62303         * lib/ignore-value.h (ignore_value): Provide separate gcc
62304         definition.
62305         * modules/ignore-value-tests: New test module.
62306         * tests/test-ignore-value.c: New test.
62308         maint.mk: improve sc_prohibit_strcmp regex
62309         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
62310         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
62311         definition of STRNEQ.
62313         signal: work around Haiku issue with SIGBUS
62314         * lib/siglist.h: Add comment.
62315         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
62316         strsignal's favoring of SIGSEGV.
62317         * tests/test-signal.c (main): Avoid test failure.
62318         * doc/posix-headers/signal.texi (signal.h): Document the issue.
62319         Reported by Scott McCreary.
62321         maint.mk: add pre-release check to ensure submodule commits are public
62322         * top/maint.mk (public-submodule-commit): New rule.
62323         (submodule-checks): New variable.
62324         (alpha beta stable): Depend on the variable.
62326 2011-01-05  Pádraig Brady  <P@draigBrady.com>
62327         and Jim Meyering  <meyering@redhat.com>
62329         ignore-value: make ignore_value more generic; deprecate ignore_ptr
62330         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
62331         (ATTRIBUTE_DEPRECATED): Define.
62332         (_ignore_case): New function.
62333         (ignore_value): New macro, to replace the old function.
62334         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
62335         * modules/ignore-value (Depends-on): Add stdint.
62337 2011-01-04  Eric Blake  <eblake@redhat.com>
62339         doc: regenerate INSTALL
62340         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
62341         @firstparagraphindent support, now that autoconf dropped it.
62342         (INSTALL_PRELUDE): Reinstate old macro.
62343         * doc/install.texi: Resync from autoconf.
62344         * doc/INSTALL: Reflect recent autoconf update.
62345         * doc/INSTALL.ISO: Likewise.
62346         * doc/INSTALL.UTF-8: Likewise.
62347         Reported by Karl Berry.
62349 2011-01-04  Bruce Korb  <address@hidden>
62351         git-version-gen: avoid a sub-shell
62352         * build-aux/git-version-gen: Redirect stderr in `...` via
62353         "exec 2>...", rather than via an added sub-shell.
62355 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
62357         git-version-gen: use (...) rather than sh -c '...'
62358         * build-aux/git-version-gen: Rather than hard-coding a shell's name
62359         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
62361 2011-01-03  Jim Meyering  <meyering@redhat.com>
62363         git-version-gen: convert leading TABs to spaces
62364         * build-aux/git-version-gen: Expand leading TABs.
62366         git-version-gen: handle failed "git rev-list"
62367         * build-aux/git-version-gen: Rather than leaking a "fatal" error
62368         from git and proceeding as if it had succeeded but printed no SHA1
62369         checksums, suppress the diagnostic and handle the failure.
62370         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
62372         git-version-gen: include command name in one more diagnostic
62373         * build-aux/git-version-gen: When the required .tarball-version file
62374         was missing or unreadable, you might see the diagnostic from "cat",
62375         but no trace of the name of the invoking script.  Now, you still see
62376         the diagnostic from cat, but also get one from "git-version-gen: ".
62377         Inspired by a patch from Bruce Korb.
62379         update-copyright: adjust test to match changed code
62380         * tests/test-update-copyright.sh: Change test's expected output
62381         to match new actual output.
62383 2011-01-02  Bruno Haible  <bruno@clisp.org>
62385         getlogin_r: Avoid test failure on HP-UX 11.
62386         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
62387         ERANGE when the second argument is zero.
62388         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
62389         portability problem.
62391 2011-01-02  Bruce Korb  <bkorb@gnu.org>
62393         * build-aux/update-copyright: doc Simon's changes
62395 2011-01-02  Simon Josefsson  <simon@josefsson.org>
62397         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
62398         environment variable.
62400 2011-01-02  Bruno Haible  <bruno@clisp.org>
62402         unigbrk: Avoid gcc warnings.
62403         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
62404         unused variable.
62405         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
62406         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
62407         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
62408         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
62409         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
62410         Change type of first argument to 'const char *'.
62411         (main): Remove unused variable.
62412         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
62413         type of first argument to 'const char *'.
62414         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
62415         Likewise.
62416         (main): Change type of variable 's'.
62417         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
62418         to 'int'.
62420 2011-01-02  Bruno Haible  <bruno@clisp.org>
62422         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
62423         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
62424         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
62425         bug.
62426         * lib/pwrite.c: Undo 2010-12-31 patch.
62427         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
62429 2011-01-02  Bruno Haible  <bruno@clisp.org>
62431         pread: Fix test whether it works.
62432         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
62434 2011-01-02  Bruno Haible  <bruno@clisp.org>
62436         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
62437         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
62438         ends in "6". Don't require a specific month name. Try also the locale
62439         names found on HP-UX 11 and Solaris 7.
62441 2011-01-02  Bruno Haible  <bruno@clisp.org>
62443         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
62444         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
62445         C linkage.
62446         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
62448 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62450         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
62451         for consistency, since the "cluster" term is not used elsewhere.
62452         * lib/unigbrk.in.h: Update name.
62453         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
62454         * lib/unigbrk/u16-grapheme-next.c: Update name.
62455         * lib/unigbrk/u16-grapheme-prev.c: Update name.
62456         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
62457         * lib/unigbrk/u32-grapheme-next.c: Update name.
62458         * lib/unigbrk/u32-grapheme-prev.c: Update name.
62459         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
62460         * lib/unigbrk/u8-grapheme-next.c: Update name.
62461         * lib/unigbrk/u8-grapheme-prev.c: Update name.
62462         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
62463         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
62464         Suggested by Bruno Haible.
62466 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62468         Remove module 'u8-grapheme-len' as too redundant with
62469         'u8-grapheme-next'.
62470         * modules/unigbrk/u8-grapheme-len: Delete file.
62471         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
62472         * lib/unigbrk.in.h: Remove prototype for deleted function.
62473         * lib/unigbrk/u8-grapheme-len.c: Delete file.
62474         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
62476         Remove module 'u16-grapheme-len' as too redundant with
62477         'u16-grapheme-next'.
62478         * modules/unigbrk/u16-grapheme-len: Delete file.
62479         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
62480         * lib/unigbrk.in.h: Remove prototype for deleted function.
62481         * lib/unigbrk/u16-grapheme-len.c: Delete file.
62482         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
62484         Remove module 'u32-grapheme-len' as too redundant with
62485         'u32-grapheme-next'.
62486         * modules/unigbrk/u32-grapheme-len: Delete file.
62487         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
62488         * lib/unigbrk.in.h: Remove prototype for deleted function.
62489         * lib/unigbrk/u32-grapheme-len.c: Delete file.
62490         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
62492         Suggested by Bruno Haible.
62494 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62496         * unigbrk.in.h: Fix typo: "ben" => "been".
62497         Reported by Bruno Haible.
62499 2011-01-01  Jim Meyering  <meyering@redhat.com>
62501         maint: update almost all copyright ranges to include 2011
62502         Run the new "make update-copyright" rule.
62504 2011-01-01  Jim Meyering  <meyering@redhat.com>
62506         maint: update-copyright: exempt doc/INSTALL*
62507         * Makefile (update-copyright): Also exclude doc/INSTALL*,
62508         since they are generated.  Suggested by Bruno Haible.
62510 2011-01-01  Jim Meyering  <meyering@redhat.com>
62512         maint: refine the update-copyright rule
62513         * Makefile (update-copyright): Also exclude any file that includes
62514         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
62515         code that merely generates the comment.
62517 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
62519         New module 'u8-grapheme-len'.
62520         * modules/unigbrk/u8-grapheme-len: New file.
62521         * modules/unigbrk/u8-grapheme-len-tests: New file.
62522         * lib/unigbrk.in.h: Add prototype for new function.
62523         * lib/unigbrk/u8-grapheme-len.c: New file.
62524         * tests/unigbrk/test-u8-grapheme-len.c: New file.
62526         New module 'u16-grapheme-len'.
62527         * modules/unigbrk/u16-grapheme-len: New file.
62528         * modules/unigbrk/u16-grapheme-len-tests: New file.
62529         * lib/unigbrk.in.h: Add prototype for new function.
62530         * lib/unigbrk/u16-grapheme-len.c: New file.
62531         * tests/unigbrk/test-u16-grapheme-len.c: New file.
62533         New module 'u32-grapheme-len'.
62534         * modules/unigbrk/u32-grapheme-len: New file.
62535         * modules/unigbrk/u32-grapheme-len-tests: New file.
62536         * lib/unigbrk.in.h: Add prototype for new function.
62537         * lib/unigbrk/u32-grapheme-len.c: New file.
62538         * tests/unigbrk/test-u32-grapheme-len.c: New file.
62540         New module 'u8-grapheme-next'.
62541         * modules/unigbrk/u8-grapheme-next: New file.
62542         * modules/unigbrk/u8-grapheme-next-tests: New file.
62543         * lib/unigbrk.in.h: Add prototype for new function.
62544         * lib/unigbrk/u8-grapheme-next.c: New file.
62545         * tests/unigbrk/test-u8-grapheme-next.c: New file.
62547         New module 'u16-grapheme-next'.
62548         * modules/unigbrk/u16-grapheme-next: New file.
62549         * modules/unigbrk/u16-grapheme-next-tests: New file.
62550         * lib/unigbrk.in.h: Add prototype for new function.
62551         * lib/unigbrk/u16-grapheme-next.c: New file.
62552         * tests/unigbrk/test-u16-grapheme-next.c: New file.
62554         New module 'u32-grapheme-next'.
62555         * modules/unigbrk/u32-grapheme-next: New file.
62556         * modules/unigbrk/u32-grapheme-next-tests: New file.
62557         * lib/unigbrk.in.h: Add prototype for new function.
62558         * lib/unigbrk/u32-grapheme-next.c: New file.
62559         * tests/unigbrk/test-u32-grapheme-next.c: New file.
62561         New module 'u8-grapheme-prev'.
62562         * modules/unigbrk/u8-grapheme-prev: New file.
62563         * modules/unigbrk/u8-grapheme-prev-tests: New file.
62564         * lib/unigbrk.in.h: Add prototype for new function.
62565         * lib/unigbrk/u8-grapheme-prev.c: New file.
62566         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
62568         New module 'u16-grapheme-prev'.
62569         * modules/unigbrk/u16-grapheme-prev: New file.
62570         * modules/unigbrk/u16-grapheme-prev-tests: New file.
62571         * lib/unigbrk.in.h: Add prototype for new function.
62572         * lib/unigbrk/u16-grapheme-prev.c: New file.
62573         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
62575         New module 'u32-grapheme-prev'.
62576         * modules/unigbrk/u32-grapheme-prev: New file.
62577         * modules/unigbrk/u32-grapheme-prev-tests: New file.
62578         * lib/unigbrk.in.h: Add prototype for new function.
62579         * lib/unigbrk/u32-grapheme-prev.c: New file.
62580         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
62582         New module 'u8-grapheme-breaks'.
62583         * modules/unigbrk/u8-grapheme-breaks: New file.
62584         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
62585         * lib/unigbrk.in.h: Add prototype for new function.
62586         * lib/unigbrk/u8-grapheme-breaks.c: New file.
62587         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
62589         New module 'u16-grapheme-breaks'.
62590         * modules/unigbrk/u16-grapheme-breaks: New file.
62591         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
62592         * lib/unigbrk.in.h: Add prototype for new function.
62593         * lib/unigbrk/u16-grapheme-breaks.c: New file.
62594         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
62596         New module 'u32-grapheme-breaks'.
62597         * modules/unigbrk/u32-grapheme-breaks: New file.
62598         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
62599         * lib/unigbrk.in.h: Add prototype for new function.
62600         * lib/unigbrk/u32-grapheme-breaks.c: New file.
62601         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
62603         New module 'ulc-grapheme-breaks'.
62604         * modules/unigbrk/ulc-grapheme-breaks: New file.
62605         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
62606         * m4/locale-ar.m4: New file.
62607         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
62608         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
62609         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
62611 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
62613         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
62614         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
62615         modified how this file was generated before I initially submitted
62616         the module, but failed to regenerate it.  This meant that several
62617         of the level2 entries were wrong.
62618         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
62619         Remove the division-by-2 that is folded into the table now that
62620         gbrkprop.h has been regenerated properly.  Now -1 entries are
62621         handled correctly.
62623         New module 'unigbrk/uc-gbrk-prop-tests'.
62624         * modules/unigbrk/uc-gbrk-prop-tests: New file.
62625         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
62626         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
62627         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
62629 2011-01-01  Bruno Haible  <bruno@clisp.org>
62631         Avoid use of hexadecimal escapes.
62632         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
62633         instead of hexadecimal escapes.
62635 2011-01-01  Jim Meyering  <meyering@redhat.com>
62637         maint: new rule to update copyright year ranges
62638         * Makefile (update-copyright): New rule.
62640         maint: indent with TABs in Makefile
62641         * Makefile: Expand leading sequences of spaces to TABs
62643         version-etc: update the copyright year it reports
62644         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
62646 2010-12-31  Bruno Haible  <bruno@clisp.org>
62648         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
62649         * lib/isfinite.c (zerof, zerod, zerol): New variables.
62650         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
62651         zero.
62653 2010-12-31  Bruno Haible  <bruno@clisp.org>
62655         pwrite: Work around HP-UX 11.11 bug.
62656         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
62657         works and set REPLACE_PWRITE if not.
62658         * lib/pwrite.c (pwrite): Add an implementation that uses the system
62659         function.
62660         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
62662 2010-12-31  Bruno Haible  <bruno@clisp.org>
62664         pread: Work around HP-UX 11 bugs.
62665         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
62666         and set REPLACE_PREAD if not.
62667         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
62669 2010-12-31  Eric Blake  <eblake@redhat.com>
62671         nl_langinfo: fix YESEXPR on Irix 6.5
62672         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
62673         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
62674         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
62675         it.
62677 2010-12-31  Bruno Haible  <bruno@clisp.org>
62679         iconv: Document HP-UX 11 bug.
62680         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
62682 2010-12-31  Bruno Haible  <bruno@clisp.org>
62684         ldexpl: Fix link error on HP-UX 11.
62685         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
62686         LDEXPL_LIBM, using $ISNANL_LIBM.
62688 2010-12-31  Eric Blake  <eblake@redhat.com>
62690         ftello: avoid compilation failure with SunStudio c89
62691         * lib/ftello.c (ftello): Use lseek, not llseek.
62693         tests: avoid failing coreutils tests on cygwin
62694         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
62695         (create_exe_shims_): Return 0 when skipping.
62697 2010-12-31  Bruno Haible  <bruno@clisp.org>
62699         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
62700         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
62702 2010-12-31  Bruno Haible  <bruno@clisp.org>
62704         waitpid: Fix link error in C++ mode.
62705         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
62707 2010-12-31  Bruno Haible  <bruno@clisp.org>
62709         isnan: Use GCC built-ins when possible.
62710         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
62711         __builtin_isnan.
62712         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
62713         (isnan): Define using GCC built-ins for GCC >= 4.0.
62715 2010-12-31  Bruno Haible  <bruno@clisp.org>
62717         isnand: Fix mistake.
62718         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
62719         __builtin_isnand.
62721 2010-12-31  Bruno Haible  <bruno@clisp.org>
62723         open: Avoid C++ error on HP-UX 11.
62724         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
62726 2010-12-31  Bruno Haible  <bruno@clisp.org>
62728         time_r: Add missing declarations on HP-UX 11.
62729         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
62730         instead of HAVE_LOCALTIME_R.
62731         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
62732         HAVE_LOCALTIME_R always.
62733         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
62734         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
62735         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
62736         HAVE_LOCALTIME_R.
62737         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
62738         * doc/posix-functions/localtime_r.texi: Likewise.
62740 2010-12-29  Eric Blake  <eblake@redhat.com>
62742         mountlist: tweak previous commit
62743         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
62744         Reported by Paul Eggert.
62746         mountlist: fix local drive detection on cygwin
62747         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
62748         that works for cygwin.
62750 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62752         ftoastr, snprintf: ftoastr + snprintf module
62753         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
62754         since the snprintf module now should be good enough here.
62755         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
62756         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
62757         and gl_MODULE_INDICATOR([snprintf]), but the former enables
62758         GNULIB_SNPRINTF only for the test directory, and the latter
62759         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
62760         seems to suffice by itself.
62762 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62764         alloca: one step towards thread-safety
62765         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
62766         need for a static variable.  All callers changed.  This does not
62767         make the alloca replacement thread-safe, but it's one step.
62769         tests: minor indenting change
62770         * tests/init.sh: Sync from coreutils housekeeping patch
62771         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
62772         to keep lines within 80 columns.
62774 2010-12-28  Jim Meyering  <meyering@redhat.com>
62776         regex: don't infloop on persistent failing calloc
62777         * lib/regexec.c (build_trtable): Return failure indication upon
62778         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
62779         In glibc, this was fixed for version 2.13:
62780         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
62782 2010-12-28  Bruno Haible  <bruno@clisp.org>
62783             Paul Eggert <eggert@cs.ucla.edu>
62785         linkat: Make implementation robust against system behaviour variations.
62786         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
62787         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
62788         way, and to -2 if it needs a generic runtime test.
62789         * lib/linkat.c (solaris_optimized_link_immediate,
62790         solaris_optimized_link_follow): New functions.
62791         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
62792         (check_same_link): Use it.
62794 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
62796         New module 'unigbrk/base'.
62797         * modules/unigbrk/base: New file.
62798         * lib/unigbrk.in.h: New file.
62800         New module 'unigbrk/uc-gbrk-prop'.
62801         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
62802         * modules/unigbrk/uc-gbrk-prop: New file.
62803         * lib/unigbrk/gbrkprop.h: New file.
62804         * lib/unigbrk/uc-gbrk-prop.c: New file.
62806         New module 'unigbrk/uc-is-grapheme-break'.
62807         * modules/unigbrk/uc-is-grapheme-break: New file.
62808         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
62809         * lib/unigbrk/uc-is-grapheme-break.c: New file.
62810         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
62811         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
62812         * tests/unigbrk/GraphemeBreakTest.txt: New file.
62814         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
62816 2010-12-27  Bruno Haible  <bruno@clisp.org>
62818         linkat test: Avoid failure on Solaris 11 2010-11.
62819         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
62821 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62823         utimens: work around glibc rounding bug on more platforms
62824         * lib/utimens.c (fdutimens): Work around rounding bug even if
62825         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
62826         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
62828 2010-12-27  Bruno Haible  <bruno@clisp.org>
62830         select tests: Improve comments.
62831         * tests/test-select.c (do_select): Add comments.
62833 2010-12-27  Bruno Haible  <bruno@clisp.org>
62835         select tests: Safer way of handling timeout.
62836         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
62837         at every invocation.
62839 2010-12-27  Bruno Haible  <bruno@clisp.org>
62841         select tests: Use 'bool' where appropriate.
62842         * tests/test-select.c (connect_to_socket): Change argument type to
62843         'bool'.
62845 2010-12-27  Bruno Haible  <bruno@clisp.org>
62847         select tests: Use existing modules.
62848         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
62849         (configure.ac): Don't test for unistd.h.
62850         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
62851         declared in <unistd.h>.
62853 2010-12-27  Bruno Haible  <bruno@clisp.org>
62855         mbrtowc: Work around a Solaris 7 bug.
62856         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
62857         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
62858         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
62859         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
62860         MBRTOWC_NULL_ARG1_BUG.
62861         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
62862         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
62863         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
62864         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
62866 2010-12-27  Jim Meyering  <meyering@redhat.com>
62868         read-file.c: tweak syntax
62869         * lib/read-file.c (fread_file): Remove space after "*" in function
62870         definitions.
62872 2010-12-27  Bruno Haible  <bruno@clisp.org>
62874         times test: Avoid gcc warnings on OSF/1.
62875         * tests/test-times.c (main): Cast printf arguments from clock_t to
62876         'long int'.
62878 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62880         utimens: work around glibc rounding bug on older Linux kernels
62881         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
62882         on Linux with a glibc whose utimes might not work, then work
62883         around a longstanding glibc bug involving rounding rather than
62884         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
62885         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62887 2010-12-26  Bruno Haible  <bruno@clisp.org>
62889         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
62890         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
62891         _GL_CXXALIAS_SYS.
62892         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62894 2010-12-26  Bruno Haible  <bruno@clisp.org>
62896         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
62897         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
62898         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62899         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
62900         looking for the declaration.
62901         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62902         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
62903         problem.
62904         * doc/posix-functions/inet_pton.texi: Likewise.
62906 2010-12-26  Bruno Haible  <bruno@clisp.org>
62908         arpa_inet: Use the common idioms with C++ support.
62909         * lib/arpa_inet.in.h: Include c++defs.h.
62910         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
62911         support.
62912         * modules/arpa_inet (Depends-on): Add c++defs.
62913         (Makefile.am): Substitute the contents of c++defs.h.
62914         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
62915         * modules/arpa_inet-c++-tests: New file.
62916         * tests/test-arpa_inet-c++.cc: New file.
62918 2010-12-25  Bruno Haible  <bruno@clisp.org>
62920         Fix more C++ link errors on Solaris 8.
62921         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
62922         $(LIB_EACCESS).
62923         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
62924         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
62925         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
62926         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
62927         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
62929 2010-12-25  Bruno Haible  <bruno@clisp.org>
62931         printf-posix: Fix link error when a non-GCC compiler is used.
62932         * lib/stdio.in.h (printf): When not using GCC, override printf
62933         correctly.
62934         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62936 2010-12-25  Bruno Haible  <bruno@clisp.org>
62938         strerror_r-posix: Update doc.
62939         * doc/posix-functions/strerror_r.texi: Update doc about the return
62940         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
62942 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62944         utimens: simplify the logic of the previous change
62945         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
62946         This should not affect whether the test succeeds or fails.
62948         utimens: configure better on hosts with NFS clock skew
62949         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
62950         uses the clock of the local host.  It might use the clock of the
62951         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
62952         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62954 2010-12-25  Bruno Haible  <bruno@clisp.org>
62956         ptsname test: Avoid failure on Solaris.
62957         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
62958         open a pseudo-terminal; don't use BSD-style ptys.
62959         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
62961 2010-12-25  Bruno Haible  <bruno@clisp.org>
62963         ptsname: Avoid ERANGE failure on some systems.
62964         * lib/ptsname.c (buffer): Increase size.
62966 2010-12-25  Bruno Haible  <bruno@clisp.org>
62968         rename, renameat: Avoid test failures at NFS mounted locations.
62969         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
62970         so that subsequent mkdir calls succeed.
62972 2010-12-25  Bruno Haible  <bruno@clisp.org>
62974         iswblank: Fix C++ link error on Solaris 8.
62975         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
62976         _GL_FUNCDECL_SYS.
62978 2010-12-25  Bruno Haible  <bruno@clisp.org>
62980         unistd: Fix C++ link error on Solaris 8.
62981         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
62983 2010-12-25  Bruno Haible  <bruno@clisp.org>
62985         readlink doc: Mention an old glibc bug.
62986         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
62988 2010-12-25  Bruno Haible  <bruno@clisp.org>
62990         fcntl-h: Fix for use of C++ on glibc systems.
62991         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62992         also on glibc systems in C++ mode.
62993         Reported by Gary V. Vaughan <gary@gnu.org>.
62995 2010-12-25  Bruno Haible  <bruno@clisp.org>
62997         roundl-ieee: Make it work on OSF/1 5.1 with cc.
62998         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
63000 2010-12-25  Bruno Haible  <bruno@clisp.org>
63002         truncl-ieee: Make it work on OSF/1 5.1 with cc.
63003         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
63004         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
63005         test whether truncl works according to ISO C 99 with IEC 60559.
63006         * m4/truncl-ieee.m4: New file.
63007         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
63008         m4/signbit.m4.
63009         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
63011 2010-12-25  Bruno Haible  <bruno@clisp.org>
63013         ceill-ieee: Make it work on OSF/1 5.1 with cc.
63014         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
63015         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
63016         test whether ceill works according to ISO C 99 with IEC 60559.
63017         * m4/ceill-ieee.m4: New file.
63018         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
63019         m4/signbit.m4.
63020         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
63022 2010-12-25  Bruno Haible  <bruno@clisp.org>
63024         Ensure all prerequisites of <wchar.h> are included.
63025         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
63026         before <wchar.h>.
63027         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
63028         gl_MBRLEN_NUL_RETVAL): Likewise.
63029         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
63030         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
63031         AC_FUNC_MBRTOWC): Likewise.
63032         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63033         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
63034         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63035         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
63036         Likewise.
63037         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
63038         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
63039         (gl_WCHAR_H): Improve comments.
63040         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
63042 2010-12-25  Bruno Haible  <bruno@clisp.org>
63044         strtok_r: Fix C syntax error in autoconf macro.
63045         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
63046         characters in test program.
63048 2010-12-24  Bruno Haible  <bruno@clisp.org>
63050         ceil, trunc, round: Fix gcc warnings.
63051         * lib/ceil.c (MIN): Undefine before redefining.
63052         * lib/trunc.c (MIN): Likewise.
63053         * lib/round.c (MIN): Likewise.
63054         Include <math.h> first.
63056 2010-12-24  Bruno Haible  <bruno@clisp.org>
63058         select tests: Avoid failures on OSF/1 5.1.
63059         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
63060         failure of closing the last socket; it may fail with ECONNRESET.
63062 2010-12-24  Eric Blake  <eblake@redhat.com>
63064         stdint: avoid HP-UX 10.20 preprocessor bug
63065         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
63066         than #if.
63067         * tests/test-floor2.c (main): Likewise.
63068         Reported by Peter O'Gorman.
63070         pipe: make obsoletion transition easier
63071         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
63072         * modules/pipe (Files): Include revived file.
63073         (Include): Drop reference, to mirror getdate's behavior.
63075 2010-12-24  Bruno Haible  <bruno@clisp.org>
63077         sys_socket: Hide mismatch of declarations on NonStop Kernel.
63078         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
63079         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
63080         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63082 2010-12-24  Bruno Haible  <bruno@clisp.org>
63084         gethostname: Ensure declaration on NonStop Kernel.
63085         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
63086         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63088 2010-12-24  Bruno Haible  <bruno@clisp.org>
63090         sys_select: Ensure all necessary types on NonStop Kernel.
63091         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
63092         include <sys/time.h>.
63093         * doc/posix-headers/sys_select.texi: Mention that it's missing on
63094         NonStop Kernel.
63095         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63097 2010-12-24  Bruno Haible  <bruno@clisp.org>
63099         sys_select: Remove unneeded include.
63100         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
63101         have <sys/select.h>.
63103 2010-12-24  Bruno Haible  <bruno@clisp.org>
63105         gethostname: Provide a fallback for HOST_NAME_MAX.
63106         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
63107         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
63108         instead.
63109         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63111 2010-12-24  Bruno Haible  <bruno@clisp.org>
63113         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
63114         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
63115         (SA_RESTART): Likewise.
63116         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63118 2010-12-24  Bruno Haible  <bruno@clisp.org>
63120         signal: Define NSIG.
63121         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
63122         * tests/test-signal.c (nsig): New variable.
63123         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63125 2010-12-24  Bruno Haible  <bruno@clisp.org>
63127         rename, renameat: Avoid test failures on OSF/1 5.1.
63128         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
63129         alternative error codes.
63130         * tests/test-renameat.c (main): Likewise.
63132 2010-12-24  Bruno Haible  <bruno@clisp.org>
63134         *printf: Detect large precisions bug on Solaris 10/SPARC.
63135         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
63136         by Paul Eggert.
63137         * tests/test-snprintf-posix.h (test_function): Add this test code here
63138         too.
63139         * tests/test-sprintf-posix.h (test_function): Likewise.
63140         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63141         * tests/test-vasprintf-posix.c (test_function): Likewise.
63142         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
63143         around by gnulib.
63144         * doc/posix-functions/printf.texi: Likewise.
63145         * doc/posix-functions/snprintf.texi: Likewise.
63146         * doc/posix-functions/sprintf.texi: Likewise.
63147         * doc/posix-functions/vfprintf.texi: Likewise.
63148         * doc/posix-functions/vprintf.texi: Likewise.
63149         * doc/posix-functions/vsnprintf.texi: Likewise.
63150         * doc/posix-functions/vsprintf.texi: Likewise.
63151         * doc/posix-functions/dprintf.texi: Undo last commit.
63152         * doc/posix-functions/vdprintf.texi: Likewise.
63154 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63156         tests: port test-fdutimensat.c to Solaris 8
63157         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
63158         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
63159         On Solaris 8, it fails with errno == ENOSYS, because there is no
63160         futimens (so it can't use the fd), and there is no lutimens (so it
63161         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
63163         vsnprintf: make more consistent with snprintf; doc fixes
63165         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
63166         the byte count return problem was promoted from the snprintf-posix
63167         to the snprintf module.
63168         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
63169         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
63170         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
63171         * tests/test-snprintf.c (main): Check the byte count returned.
63172         * tests/test-vsnprintf.c (main): Likewise.
63174 2010-12-23  Eric Blake  <eblake@redhat.com>
63176         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
63177         * modules/sigpipe (License): Relax license.
63179 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63181         doc: document Solaris printf bug with large float precisions
63182         * doc/posix-functions/dprintf.texi (dprintf):
63183         * doc/posix-functions/fprintf.texi (fprintf):
63184         * doc/posix-functions/printf.texi (printf):
63185         * doc/posix-functions/snprintf.texi (snprintf):
63186         * doc/posix-functions/sprintf.texi (sprintf):
63187         * doc/posix-functions/vdprintf.texi (vdprintf):
63188         * doc/posix-functions/vfprintf.texi (vfprintf):
63189         * doc/posix-functions/vprintf.texi (vprintf):
63190         * doc/posix-functions/vsnprintf.texi (vsnprintf):
63191         * doc/posix-functions/vsprintf.texi (vsprintf):
63192         Mention that these functions mishandle large floating point
63193         precisions on Solaris 10.  The same bug is also present in Solaris
63194         8, and I assume earlier.  This causes "cd gnulib-tests; make
63195         check" to fail on Solaris 8 (and I assume, later) when building
63196         the latest coreutils, in test-vasprintf-posix's call to
63197         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
63198         the wide flavors (e.g., wprintf) so this patch just updates the
63199         documentation for the narrow ones.
63201         test-posixtm.c: add two tests
63202         * tests/test-posixtm.c: Add two tests, to highlight the
63203         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
63204         around this bug; this is merely to document it.
63206 2010-12-22  Bruno Haible  <bruno@clisp.org>
63208         getlogin_r: Work around portability problem on OSF/1.
63209         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
63210         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
63211         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
63212         test for a truncated result.
63213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
63214         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
63215         * modules/getlogin_r (Depends-on): Add memchr.
63216         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
63218 2010-12-22  Bruno Haible  <bruno@clisp.org>
63220         ptsname: Avoid test failure on OSF/1 5.1.
63221         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
63222         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
63223         (same_slave): New function.
63224         (main): Use it to compare ptsname's result with the expected file name.
63226 2010-12-22  Bruno Haible  <bruno@clisp.org>
63228         Port extended stdio modules to HP NonStop Kernel.
63229         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
63230         macros.
63231         * lib/fbufmode.c: Update comments.
63232         * lib/fflush.c: Likewise.
63233         * lib/fpurge.c: Likewise.
63234         * lib/freadable.c: Likewise.
63235         * lib/freadahead.c: Likewise.
63236         * lib/freading.c: Likewise.
63237         * lib/freadptr.c: Likewise.
63238         * lib/freadseek.c: Likewise.
63239         * lib/fseeko.c: Likewise.
63240         * lib/fseterr.c: Likewise.
63241         * lib/fwritable.c: Likewise.
63242         * lib/fwriting.c: Likewise.
63243         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63245 2010-12-22  Bruno Haible  <bruno@clisp.org>
63247         ttyname_r: Work around bug on OSF/1 5.1.
63248         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
63249         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
63250         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
63251         present.
63252         * lib/ttyname_r.c (ttyname_r): Update comments.
63254 2010-12-22  Bruno Haible  <bruno@clisp.org>
63256         round: Implement result sign according to IEEE 754.
63257         * lib/round.c (MIN, MINUS_ZERO): New macros.
63258         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
63259         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
63260         * tests/test-round-ieee.c (main): Likewise.
63261         * tests/test-roundl-ieee.c (main): Likewise.
63263         trunc: Implement result sign according to IEEE 754.
63264         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
63265         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
63266         * tests/test-trunc2.c: Include minus-zero.h.
63267         (MINUS_ZERO): New macro.
63268         (trunc_reference): Keep in sync with lib/trunc.c.
63269         * tests/test-truncf2.c: Include minus-zero.h.
63270         (MINUS_ZERO): New macro.
63271         (truncf_reference): Keep in sync with lib/trunc.c.
63272         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
63273         * tests/test-trunc-ieee.c (main): Likewise.
63274         * tests/test-truncl-ieee.c (main): Likewise.
63276         ceil: Implement result sign according to IEEE 754.
63277         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
63278         (FUNC): Return -0.0 for -1 < x < 0.
63279         * tests/test-ceil2.c: Include minus-zero.h.
63280         (MINUS_ZERO): New macro.
63281         (ceil_reference): Keep in sync with lib/ceil.c.
63282         * tests/test-ceilf2.c: Include minus-zero.h.
63283         (MINUS_ZERO): New macro.
63284         (ceilf_reference): Keep in sync with lib/ceil.c.
63285         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
63286         * tests/test-ceil-ieee.c (main): Likewise.
63287         * tests/test-ceill-ieee.c (main): Likewise.
63289         floor: Implement result sign according to IEEE 754.
63290         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
63291         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
63292         * tests/test-floorf2.c (floorf_reference): Likewise.
63293         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
63294         * tests/test-floor-ieee.c (main): Likewise.
63295         * tests/test-floorl-ieee.c (main): Likewise.
63297 2010-12-22  Bruno Haible  <bruno@clisp.org>
63299         getaddrinfo: Update doc.
63300         * doc/posix-functions/gai_strerror.texi: Return type is also different
63301         on AIX and HP-UX.
63303 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63305         getaddrinfo, inet_ntop: Update doc for Solaris.
63306         * doc/posix-functions/gai_strerror.texi: Return type is also an
63307         issue on Solaris 9 and earlier.
63308         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
63309         on Solaris 10 and earlier.
63311 2010-12-21  Bruno Haible  <bruno@clisp.org>
63313         New module 'roundl-ieee'.
63314         * modules/roundl-ieee: New file.
63315         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
63316         test whether roundl works according to ISO C 99 with IEC 60559.
63317         * m4/roundl-ieee.m4: New file.
63318         * modules/roundl-ieee-tests: New file.
63319         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
63320         * tests/test-roundl.c (main): Remove signbit tests.
63321         * modules/roundl-tests (Depends-on): Remove signbit.
63322         * doc/posix-functions/roundl.texi: Mention the new module.
63324 2010-12-21  Bruno Haible  <bruno@clisp.org>
63326         New module 'truncl-ieee'.
63327         * modules/truncl-ieee: New file.
63328         * modules/truncl-ieee-tests: New file.
63329         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
63330         * tests/test-truncl.c (main): Remove signbit tests.
63331         * modules/truncl-tests (Depends-on): Remove signbit.
63332         * doc/posix-functions/truncl.texi: Mention the new module.
63334 2010-12-21  Bruno Haible  <bruno@clisp.org>
63336         New module 'ceill-ieee'.
63337         * modules/ceill-ieee: New file.
63338         * modules/ceill-ieee-tests: New file.
63339         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
63340         * tests/test-ceill.c (main): Remove signbit tests.
63341         * modules/ceill-tests (Depends-on): Remove signbit.
63342         * doc/posix-functions/ceill.texi: Mention the new module.
63344 2010-12-21  Bruno Haible  <bruno@clisp.org>
63346         New module 'floorl-ieee'.
63347         * modules/floorl-ieee: New file.
63348         * modules/floorl-ieee-tests: New file.
63349         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
63350         * tests/test-floorl.c (main): Remove signbit tests.
63351         * modules/floorl-tests (Depends-on): Remove signbit.
63352         * doc/posix-functions/floorl.texi: Mention the new module.
63354 2010-12-21  Bruno Haible  <bruno@clisp.org>
63356         New module 'round-ieee'.
63357         * modules/round-ieee: New file.
63358         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
63359         whether round works according to ISO C 99 with IEC 60559.
63360         * m4/round-ieee.m4: New file.
63361         * modules/round-ieee-tests: New file.
63362         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
63363         * tests/test-round1.c (main): Remove signbit tests.
63364         * modules/round-tests (Depends-on): Remove 'signbit'.
63365         * doc/posix-functions/round.texi: Mention the new module.
63367 2010-12-21  Bruno Haible  <bruno@clisp.org>
63369         New module 'trunc-ieee'.
63370         * modules/trunc-ieee: New file.
63371         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
63372         whether trunc works according to ISO C 99 with IEC 60559.
63373         * m4/trunc-ieee.m4: New file.
63374         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
63375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
63376         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
63377         * modules/trunc-ieee-tests: New file.
63378         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
63379         * tests/test-trunc1.c (main): Remove signbit tests.
63380         * modules/trunc-tests (Depends-on): Remove 'signbit'.
63381         * doc/posix-functions/trunc.texi: Mention the new module.
63383 2010-12-21  Bruno Haible  <bruno@clisp.org>
63385         New module 'ceil-ieee'.
63386         * modules/ceil-ieee: New file.
63387         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
63388         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
63389         ISO C 99 with IEC 60559.
63390         * m4/ceil-ieee.m4: New file.
63391         * modules/ceil (Files): Add lib/ceil.c.
63392         (Depends-on): Add 'float'.
63393         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
63394         * lib/math.in.h (ceil): New declaration.
63395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
63396         REPLACE_CEIL.
63397         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
63398         * modules/ceil-ieee-tests: New file.
63399         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
63400         * tests/test-math-c++.cc: Check the signature of 'ceil'.
63401         * doc/posix-functions/ceil.texi: Mention the new module.
63403 2010-12-21  Bruno Haible  <bruno@clisp.org>
63405         New module 'floor-ieee'.
63406         * modules/floor-ieee: New file.
63407         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
63408         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
63409         ISO C 99 with IEC 60559.
63410         * m4/floor-ieee.m4: New file.
63411         * modules/floor (Files): Add lib/floor.c.
63412         (Depends-on): Add 'float'.
63413         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
63414         * lib/math.in.h (floor): New declaration.
63415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
63416         REPLACE_FLOOR.
63417         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
63418         * modules/floor-ieee-tests: New file.
63419         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
63420         * tests/test-math-c++.cc: Check the signature of 'floor'.
63421         * doc/posix-functions/floor.texi: Mention the new module.
63423 2010-12-21  Bruno Haible  <bruno@clisp.org>
63425         New module 'roundf-ieee'.
63426         * modules/roundf-ieee: New file.
63427         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
63428         test whether roundf works according to ISO C 99 with IEC 60559.
63429         * m4/roundf-ieee.m4: New file.
63430         * modules/roundf-ieee-tests: New file.
63431         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
63432         * tests/test-roundf1.c (main): Remove signbit tests.
63433         * modules/roundf-tests (Depends-on): Remove 'signbit'.
63434         * doc/posix-functions/roundf.texi: Mention the new module.
63436 2010-12-21  Bruno Haible  <bruno@clisp.org>
63438         New module 'truncf-ieee'.
63439         * modules/truncf-ieee: New file.
63440         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
63441         test whether truncf works according to ISO C 99 with IEC 60559.
63442         * m4/truncf-ieee.m4: New file.
63443         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
63444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
63445         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
63446         * modules/truncf-ieee-tests: New file.
63447         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
63448         * tests/test-truncf1.c (main): Remove signbit tests.
63449         * modules/truncf-tests (Depends-on): Remove 'signbit'.
63450         * doc/posix-functions/truncf.texi: Mention the new module.
63452 2010-12-21  Bruno Haible  <bruno@clisp.org>
63454         New module 'ceilf-ieee'.
63455         * modules/ceilf-ieee: New file.
63456         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
63457         test whether ceilf works according to ISO C 99 with IEC 60559.
63458         * m4/ceilf-ieee.m4: New file.
63459         * modules/ceilf-ieee-tests: New file.
63460         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
63461         * tests/test-ceilf1.c (main): Remove signbit tests.
63462         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
63463         * doc/posix-functions/ceilf.texi: Mention the new module.
63465 2010-12-21  Bruno Haible  <bruno@clisp.org>
63467         New module 'floorf-ieee'.
63468         * modules/floorf-ieee: New file.
63469         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
63470         test whether floorf works according to ISO C 99 with IEC 60559.
63471         * m4/floorf-ieee.m4: New file.
63472         * modules/floorf-ieee-tests: New file.
63473         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
63474         * tests/test-floorf1.c (main): Remove signbit tests.
63475         * modules/floorf-tests (Depends-on): Remove 'signbit'.
63476         * doc/posix-functions/floorf.texi: Mention the new module.
63478 2010-12-21  Bruno Haible  <bruno@clisp.org>
63480         Support for minus zero in autoconf macros.
63481         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
63482         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
63483         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
63484         * tests/minus-zero.h: Update comments.
63486 2010-12-21  Bruno Haible  <bruno@clisp.org>
63488         Tests for module 'ceil'.
63489         * modules/ceil-tests: New file.
63490         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
63491         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
63493 2010-12-21  Bruno Haible  <bruno@clisp.org>
63495         Tests for module 'floor'.
63496         * modules/floor-tests: New file.
63497         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
63498         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
63500 2010-12-21  Bruno Haible  <bruno@clisp.org>
63502         math: Fix indentation.
63503         * lib/math.in.h (floorf): Fix indentation.
63505 2010-12-21  Bruno Haible  <bruno@clisp.org>
63507         Fix cross-compilation guesses on Solaris.
63508         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
63509         not match "solaris2.10".
63510         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63511         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
63512         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
63514 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63516         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
63517         This fixes a problem observed with the latest coreutils snapshot
63518         that caused a test to fail on Solaris 8.  src/csplit.c's call
63519         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
63520         earlier, instead of returning the number of bytes that would have
63521         been generated; this causes csplit to incorrectly report memory
63522         exhaustion.
63523         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
63524         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
63525         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
63526         comments to match.
63527         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
63528         Fix typo in matching older versions of Solaris: "solaris2.10"
63529         is matched by the shell pattern "solaris2.[0-9]*".  This matters
63530         only for guessing while cross-compiling.
63531         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
63533 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
63535         ftoastr: fix comment again
63536         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63537         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
63538         Also, simplify example a bit by using flags = 0.
63540 2010-12-20  Bruno Haible  <bruno@clisp.org>
63542         round*, trunc*: Update documentation regarding glibc.
63543         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
63544         * doc/posix-functions/round.texi: Likewise.
63545         * doc/posix-functions/roundl.texi: Likewise.
63546         * doc/posix-functions/truncf.texi: Likewise.
63547         * doc/posix-functions/trunc.texi: Likewise.
63548         * doc/posix-functions/truncl.texi: Likewise.
63550 2010-12-20  Bruno Haible  <bruno@clisp.org>
63552         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
63553         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
63554         * doc/posix-functions/round.texi: Likewise.
63555         * doc/posix-functions/roundl.texi: Likewise.
63557 2010-12-20  Bruno Haible  <bruno@clisp.org>
63559         ttyname_r: Add missing declaration on HP-UX 11.
63560         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
63561         HAVE_TTYNAME_R.
63562         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
63563         declared. Set HAVE_TTYNAME_R always.
63564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63565         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
63566         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
63567         HAVE_TTYNAME_R.
63568         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
63570 2010-12-20  Bruno Haible  <bruno@clisp.org>
63572         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
63573         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
63574         * doc/posix-functions/getlogin_r.texi: Likewise.
63575         * tests/test-getlogin.c: Include <errno.h>.
63576         (main): Avoid test failure on HP-UX 11.11.
63577         * tests/test-getlogin_r.c (main): Likewise.
63579 2010-12-20  Bruno Haible  <bruno@clisp.org>
63581         getlogin_r: Add missing declaration on HP-UX 11.
63582         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
63583         declared also when it exists as a function.
63584         * doc/posix-functions/getlogin_r.texi: Document this workaround.
63586 2010-12-20  Bruno Haible  <bruno@clisp.org>
63588         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
63589         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
63590         through wcrtomb.
63592 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63594         ftoastr: fix comment
63595         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63596         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
63598 2010-12-19  Bruno Haible  <bruno@clisp.org>
63600         isnan: Ensure it is a macro.
63601         * lib/math.in.h (isnan): Define as a macro if not already a macro.
63602         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
63603         Solaris.
63605 2010-12-19  Bruno Haible  <bruno@clisp.org>
63607         ldexpl test: Fix link error on OSF/1 5.1.
63608         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
63610 2010-12-19  Bruno Haible  <bruno@clisp.org>
63612         wctype: Make it work in C++ mode on OSF/1 5.1.
63613         * lib/wctype.in.h (iswblank): Declare but not define here.
63614         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
63615         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
63616         * modules/wctype (Files): Add lib/iswblank.c.
63618 2010-12-19  Bruno Haible  <bruno@clisp.org>
63620         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
63621         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
63622         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
63624 2010-12-19  Bruno Haible  <bruno@clisp.org>
63626         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
63627         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
63628         _POSIX_PII_SOCKET.
63629         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
63630         * doc/posix-functions/recvfrom.texi: Likewise.
63631         * doc/posix-functions/send.texi: Likewise.
63632         * doc/posix-functions/sendto.texi: Likewise.
63634 2010-12-19  Bruno Haible  <bruno@clisp.org>
63636         tcgetsid: Add missing declaration on OSF/1 5.1.
63637         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
63638         HAVE_TCGETSID.
63639         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
63640         Don't set HAVE_TCGETSID.
63641         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
63642         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
63643         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
63644         HAVE_TCGETSID.
63645         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
63647 2010-12-19  Bruno Haible  <bruno@clisp.org>
63649         stdio: Fix problem with popen() declaration on OSF/1 5.1.
63650         * lib/stdio.in.h: During the include_next statement, let recursive
63651         includes of this file include only the system header file.
63653 2010-12-19  Bruno Haible  <bruno@clisp.org>
63655         iconv_open: Fix regression from 2010-12-04.
63656         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
63657         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
63659 2010-12-19  Bruno Haible  <bruno@clisp.org>
63661         stdbool test: Avoid a gcc warning.
63662         * tests/test-stdbool.c (main): Fail if e1 is false.
63663         Reported by Jim Meyering.
63665 2010-12-19  Jim Meyering  <meyering@redhat.com>
63667         setenv: restore to working order
63668         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
63669         mistakenly removed.
63670         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
63671         HAVE_SETENV.
63672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
63673         HAVE_SETENV.
63675 2010-12-19  Bruno Haible  <bruno@clisp.org>
63677         Document some different function declarations on OSF/1 5.1.
63678         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
63679         * doc/posix-functions/inet_ntop.texi: Likewise.
63680         * doc/posix-functions/gethostname.texi: Likewise.
63681         * lib/unistd.in.h (gethostname): Update comment.
63683 2010-12-19  Bruno Haible  <bruno@clisp.org>
63685         doc: Mention vasprintf-posix module.
63686         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
63687         the 'vasprintf-posix' module.
63688         * doc/glibc-functions/vasprintf.texi: Likewise.
63690 2010-12-19  Bruno Haible  <bruno@clisp.org>
63692         unsetenv: Add missing declaration on OSF/1 5.1.
63693         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
63694         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
63695         Don't set HAVE_UNSETENV. In the test program, set _BSD.
63696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
63697         not HAVE_UNSETENV.
63698         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
63699         HAVE_UNSETENV.
63700         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
63702 2010-12-19  Bruno Haible  <bruno@clisp.org>
63704         setenv: Add missing declaration on OSF/1 5.1.
63705         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
63706         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
63707         declared. Don't set HAVE_SETENV.
63708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
63709         not HAVE_SETENV.
63710         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
63711         HAVE_SETENV.
63712         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
63714 2010-12-19  Bruno Haible  <bruno@clisp.org>
63716         nl_langinfo tests: Avoid gcc warning.
63717         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
63719 2010-12-19  Bruno Haible  <bruno@clisp.org>
63721         mknod: Avoid error in C++ mode on OSF/1 with GCC.
63722         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
63723         _GL_CXXALIAS_SYS.
63725 2010-12-19  Bruno Haible  <bruno@clisp.org>
63727         stdbool: Relax test.
63728         * tests/test-stdbool.c (e): Don't require that casts from a variable's
63729         address to 'bool' work in static initializer, for compilers other than
63730         GCC.
63732 2010-12-19  Bruno Haible  <bruno@clisp.org>
63734         ftello: Add missing declaration on OSF/1 5.1.
63735         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
63736         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
63737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
63738         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
63739         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
63741 2010-12-19  Bruno Haible  <bruno@clisp.org>
63743         fseeko: Add missing declaration on OSF/1 5.1.
63744         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
63745         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
63746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
63747         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
63748         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
63750 2010-12-19  Bruno Haible  <bruno@clisp.org>
63752         fchdir: Add missing declaration on OSF/1 5.1.
63753         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
63754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
63755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
63756         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
63757         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
63759 2010-12-19  Bruno Haible  <bruno@clisp.org>
63761         relocatable-prog-wrapper: Separate from relocatable-prog.
63762         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
63763         uninstall-relocwrapper rule here.
63764         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
63765         Reported by Ian Beckwith <ianb@erislabs.net>.
63767 2010-12-19  Bruno Haible  <bruno@clisp.org>
63769         unistr/u8-mbsnlen: Add missing dependency.
63770         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
63771         Reported by Ian Beckwith <ianb@erislabs.net>.
63773 2010-12-19  Bruno Haible  <bruno@clisp.org>
63775         iconv: Make it possible again to use this module without 'iconv-h'.
63776         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
63777         if it is not defined.
63778         Reported by Ian Beckwith <ianb@erislabs.net>.
63780 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63782         acl: port to Solaris 8 when copying from tmpfs to ufs
63783         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
63784         error number.  Problem observed on Solaris 8 with latest
63785         coreutils, with "mv A B", where A is on a tmpfs file system and B
63786         is on a ufs file system.  This caused coreutils' mv/part-symlink
63787         test to fail.
63789         tests: set fail=0 at start
63790         * tests/init.sh (setup_): Move fail=0 initialization here ...
63791         (mktempd_): ... from here, so that tests can rely on fail being
63792         set to 0 initially.  This fixes a problem in coreutils; see:
63793         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
63795 2010-12-18  Bruno Haible  <bruno@clisp.org>
63797         memmem-simple: Stylistic changes.
63798         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
63799         Fix preprocessor directive indentation.
63801 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63803         memmem, memmem-simple: reorganize and expand empty needle check
63804         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
63805         functional checks to memmem-simple so that one has a fully functional
63806         memmem by using just this module.
63807         Restrict the performance only check to the memmem module.
63808         Also expand the empty needle check to ensure the correct
63809         pointer is returned, not just a non NULL pointer.
63810         * doc/glibc-functions/memmem.texi: Rearrange the portability
63811         documentation to correlate with the rearranged checks.
63812         Clarify exactly how the memmem and memmem-simple modules
63813         relate to each other.
63815 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63816             Bruno Haible  <bruno@clisp.org>
63818         Improve cross-compilation guesses for uClibc.
63819         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
63820         that uClibc does not have the glibc bug.
63821         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
63822         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
63824 2010-12-14  Eric Blake  <eblake@redhat.com>
63826         configmake: provide fallbacks for oldest supported autotools
63827         * m4/configmake.m4: New file.
63828         * modules/configmake (Files): Ship it.
63829         (configure.ac): Use it to guarantee fallbacks.
63831 2010-12-13  Pádraig Brady  <P@draigBrady.com>
63833         read-file: Improve handling of large files
63834         * lib/read-file.c (fread_file): Minimize realloc()s
63835         for regular files, and better manage sizes around SIZE_MAX.
63837 2010-12-13  Eric Blake  <eblake@redhat.com>
63839         cloexec, fcntl: relax license
63840         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
63841         consent from all contributors.
63842         * modules/fcntl (License): Likewise.
63844 2010-12-10  Bruno Haible  <bruno@clisp.org>
63846         Tests for module 'pipe-posix'.
63847         * modules/pipe-posix-tests: New file.
63848         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
63850 2010-12-10  Bruno Haible  <bruno@clisp.org>
63852         pipe-posix: Make it work in C++ mode.
63853         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
63854         (pipe): Use common idiom, not a macro definition.
63855         * lib/pipe.c: New file.
63856         * m4/pipe.m4: New file.
63857         * modules/pipe-posix (Description): Enhance.
63858         (Files): Add lib/pipe.c, m4/pipe.m4.
63859         (configure.ac): Invoke gl_FUNC_PIPE.
63860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
63861         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
63862         * tests/test-unistd-c++.cc: Check the signature of pipe.
63864 2010-12-10  Bruno Haible  <bruno@clisp.org>
63866         Rename module 'pipe' to 'spawn-pipe'.
63867         * modules/spawn-pipe: New file, renamed from modules/pipe.
63868         (Files, configure.ac, Makefile.am): Update.
63869         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
63870         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
63871         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
63872         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
63873         "spawn-pipe.h" instead of "pipe.h".
63874         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
63875         to gl_SPAWN_PIPE.
63876         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
63877         (Files, Makefile.am): Update.
63878         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
63879         Update.
63880         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
63881         Include "spawn-pipe.h" instead of "pipe.h".
63882         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
63883         * lib/javacomp.c: Likewise.
63884         * lib/javaversion.c: Likewise.
63885         * lib/pipe-filter-gi.c: Likewise.
63886         * lib/pipe-filter-ii.c: Likewise.
63887         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
63888         * modules/javacomp (Depends-on): Likewise.
63889         * modules/javaversion (Depends-on): Likewise.
63890         * modules/pipe-filter-gi (Depends-on): Likewise.
63891         * modules/pipe-filter-ii (Depends-on): Likewise.
63892         * MODULES.html.sh (Executing programs): Update.
63893         * NEWS: Mention the change.
63895 2010-12-10  Eric Blake  <eblake@redhat.com>
63897         pipe-posix: new module
63898         * modules/pipe-posix: New file.
63899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
63900         (gl_UNISTD_H): Check for declaration.
63901         * modules/unistd (Makefile.am): Substitute it.
63902         * lib/unistd.in.h (pipe): Provide it for mingw.
63903         * doc/posix-functions/pipe.texi (pipe): Update documentation.
63904         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
63906 2010-12-07  Bruno Haible  <bruno@clisp.org>
63908         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
63909         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
63910         u8_strcmp_gnu.
63911         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
63913 2010-12-06  Bruno Haible  <bruno@clisp.org>
63915         Update internal documentation.
63916         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
63918 2010-12-04  Bruno Haible  <bruno@clisp.org>
63920         Put more information about failed tests into the test return codes.
63921         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
63922         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
63923         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63924         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63925         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
63926         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63927         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63928         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63929         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
63930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63931         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
63932         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63933         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
63934         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63935         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
63936         returns a bit mask.
63937         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
63938         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
63939         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
63940         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
63941         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63942         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
63945         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63946         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63947         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63948         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63949         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63950         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63951         * m4/link.m4 (gl_FUNC_LINK): Likewise.
63952         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63953         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
63954         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
63955         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63956         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
63957         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63958         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
63959         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
63960         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63961         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63962         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63963         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
63964         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63965         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63966         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
63967         gl_PRINTF_PRECISION): Likewise.
63968         * m4/regex.m4 (gl_REGEX): Likewise.
63969         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63970         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
63971         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
63972         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63973         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63974         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63975         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
63976         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
63977         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63978         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63979         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63980         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63981         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63982         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63983         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63984         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63985         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
63986         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63988         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
63989         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
63990         enumerated value.
63991         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
63993 2010-12-04  Bruno Haible  <bruno@clisp.org>
63995         Update for Solaris 11 2010-11.
63996         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
63997         Express, released in November 2010.
63999 2010-12-04  Bruno Haible  <bruno@clisp.org>
64001         nproc: Relax license.
64002         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
64003         and Paul Eggert.
64004         Requested by Ludovic Courtès <ludo@gnu.org>.
64006 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64008         utimecmp: fine-grained src to nearby coarse-grained dest
64010         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
64011         and the source is on a file system with higher-resolution time
64012         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
64013         not work, and the time stamps are close together, the algorithm to
64014         determine the exact resolution from the read-back mtime was buggy:
64015         it had a "!=" where it should have had an "==".  This bug has been
64016         in the code ever since it was introduced to gnulib.
64017         Problem reported by Dan Jacobson in
64018         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
64020 2010-11-30  Bruno Haible  <bruno@clisp.org>
64022         strerror_r-posix: Fix autoconf test.
64023         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
64025 2010-11-28  Bruno Haible  <bruno@clisp.org>
64026             Paul Eggert  <eggert@cs.ucla.edu>
64028         Tests for module 'getdomainname'.
64029         * modules/getdomainname-tests: New file.
64030         * tests/test-getdomainname.c: New file, based on
64031         tests/test-gethostname.c.
64033 2010-11-28  Bruno Haible  <bruno@clisp.org>
64034             Paul Eggert  <eggert@cs.ucla.edu>
64036         getdomainname: Use the system function when possible.
64037         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
64038         (getdomainname): Replace if needed. Provide the declaration if it is
64039         missing. Don't use _GL_CXXALIAS_SYS_CAST.
64040         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
64041         (getdomainname): When the system has getdomainname, call the system
64042         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
64043         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
64044         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
64045         found in libnsl. Look for the declaration also in <netdb.h>. Replace
64046         the function if its second argument is of type 'int' or if it is found
64047         in libnsl.
64048         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
64049         <sys/systeminfo.h> and sysinfo().
64050         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
64051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64052         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
64053         HAVE_GETDOMAINNAME.
64054         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
64055         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
64056         * doc/glibc-functions/getdomainname.texi: Document the problems with
64057         the getdomainname declaration.
64059 2010-11-28  Bruno Haible  <bruno@clisp.org>
64061         sys_socket: Ensure ss_family field on AIX.
64062         * lib/sys_socket.in.h (ss_family): New macro definition.
64063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
64064         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
64065         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
64066         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
64067         * modules/sys_socket (Makefile.am): Substitute
64068         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
64069         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
64071 2010-11-27  Bruno Haible  <bruno@clisp.org>
64073         readline: Improve configure output.
64074         * m4/readline.m4 (gl_FUNC_READLINE): Make the
64075         "checking for readline..." result understandable.
64077 2010-11-27  Bruno Haible  <bruno@clisp.org>
64079         *printf-posix: Detect a bug on Solaris 10/x86.
64080         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
64081         for floating-point output.
64082         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
64083         directive.
64084         * tests/test-snprintf-posix.h (test_function): Likewise.
64085         * tests/test-sprintf-posix.h (test_function): Likewise.
64086         * tests/test-vasprintf-posix.c (test_function): Likewise.
64087         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
64088         * doc/posix-functions/printf.texi: Likewise.
64089         * doc/posix-functions/snprintf.texi: Likewise.
64090         * doc/posix-functions/sprintf.texi: Likewise.
64091         * doc/posix-functions/vfprintf.texi: Likewise.
64092         * doc/posix-functions/vprintf.texi: Likewise.
64093         * doc/posix-functions/vsnprintf.texi: Likewise.
64094         * doc/posix-functions/vsprintf.texi: Likewise.
64095         * doc/glibc-functions/obstack_printf.texi: Likewise.
64096         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
64098 2010-11-27  Bruno Haible  <bruno@clisp.org>
64100         Fix link error when module libunistring-optional is in use.
64101         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
64102         * modules/striconveha-tests (Makefile.am): Likewise.
64104 2010-11-27  Bruno Haible  <bruno@clisp.org>
64106         regex: Mention link dependencies.
64107         * modules/regex (Link): New section.
64108         * modules/rpmatch (Link): Likewise.
64109         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
64111 2010-11-27  Bruno Haible  <bruno@clisp.org>
64113         ftoastr: Fix compilation error on Solaris.
64114         * lib/ftoastr.c: Include <config.h>.
64116 2010-11-27  Bruno Haible  <bruno@clisp.org>
64118         getloadavg: Update documentation.
64119         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
64121 2010-11-27  Bruno Haible  <bruno@clisp.org>
64123         sys_socket: Fix test whether the functions are declared.
64124         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
64125         not <sys/select.h>.
64127 2010-11-27  Bruno Haible  <bruno@clisp.org>
64129         getpass: Make sure to get system declaration on some platforms.
64130         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
64131         gl_USE_SYSTEM_EXTENSIONS.
64132         * modules/getpass (Depends-on): Add extensions.
64134 2010-11-26  Bruno Haible  <bruno@clisp.org>
64136         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
64137         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
64138         'iconv' module is present.
64139         (ICONV_CONST): New macro.
64140         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
64141         ICONV_CONST.
64142         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
64143         set ICONV_CONST.
64144         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
64145         here.
64146         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
64147         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
64148         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
64149         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
64150         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
64151         present.
64153 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64155         ftoastr: comment fix
64156         * lib/ftoastr.c: "little" -> "little or no" in comment
64158 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
64160         stdint: port to GCC 4.3 + OSX + Octave
64161         On this platform, stdint.h is buggy and defines int64_t to long
64162         long int.  The replacement defined it to long int, causing
64163         problems with C++ style name mangling.  Instead, trust the system
64164         definition if INT64_MAX is defined, and likewise for the unsigned
64165         variant.   Problem reported by Jarno Rajahalme in
64166         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
64167         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
64168         and don't mess with int64_t and INT64_MAX in this case.
64169         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
64171 2010-11-24  Bruno Haible  <bruno@clisp.org>
64173         doc: Corrections regarding MacOS X 10.4 and 10.5.
64174         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
64175         MacOS X.
64176         Reported by Simon Josefsson.
64178 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
64180         Uninstall ".bin" files installed by relocwrapper.
64181         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
64182         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
64183         unless it is already there.
64185 2010-11-21  Bruno Haible  <bruno@clisp.org>
64187         Update for NetBSD 5.0.
64188         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
64189         NetBSD; the test fails on NetBSD 5.0.
64190         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
64191         about NetBSD.
64193 2010-11-21  Bruno Haible  <bruno@clisp.org>
64195         Update for HP-UX 11.23 and HP-UX 11.31.
64196         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
64197         HP-UX.
64199 2010-11-21  Bruno Haible  <bruno@clisp.org>
64201         Update for MacOS X 10.5.
64202         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
64203         MacOS X; the test fails on MacOS X 10.5.8.
64204         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
64205         about MacOS X.
64207 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
64209         bootstrap: add bootstrap_sync option.
64210         See discussion at
64211         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
64212         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
64213         * build-aux/bootstrap: Accept --bootstrap-sync to update
64214         bootstrap if it is not identical to the local gnulib's
64215         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
64216         enable this by default.  Accept --no-bootstrap-sync to disable
64217         it.
64219 2010-11-20  Bruno Haible  <bruno@clisp.org>
64221         Ensure that <features.h> is included before __GLIBC__ is tested.
64222         * lib/printf-parse.h: Include <features.h>.
64223         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
64224         Reported by Mike Frysinger <vapier@gentoo.org>.
64226         Ensure that <features.h> is included before __GLIBC__ is tested.
64227         * lib/wchar.in.h: Include <features.h>.
64228         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
64229         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
64230         Reported by Mike Frysinger <vapier@gentoo.org>.
64232         Ensure that <features.h> is included before __GLIBC__ is tested.
64233         * lib/arpa_inet.in.h: Include <features.h>.
64234         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
64235         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
64236         Reported by Mike Frysinger <vapier@gentoo.org>.
64238         Ensure that <features.h> is included before __GLIBC__ is tested.
64239         * build-aux/link-warning.h: Include <features.h>.
64240         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
64241         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
64242         Reported by Mike Frysinger <vapier@gentoo.org>.
64244         Ensure that <features.h> is included before __GLIBC__ is tested.
64245         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
64246         Reported by Mike Frysinger <vapier@gentoo.org>.
64248 2010-11-20  Bruno Haible  <bruno@clisp.org>
64250         memmem: Fix autoconf test.
64251         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
64253 2010-11-20  Bruno Haible  <bruno@clisp.org>
64255         Port to uClibc.
64256         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
64257         * lib/fcntl.in.h: Likewise.
64258         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
64259         * lib/mbrtowc.c (mbrtowc): Likewise.
64260         * lib/relocatable.c (find_shared_library_fullname): Likewise.
64261         * lib/strerror_r.c: Likewise.
64262         * lib/unistr/u8-strnlen.c: Likewise.
64263         * lib/vasnprintf.c (decimal_point_char): Likewise.
64264         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
64265         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64266         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
64267         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
64268         * tests/test-sigaction.c (handler, main): Likewise.
64269         * lib/freading.h: Treat uClibc like a non-glibc platform.
64270         * lib/freading.c: Likewise.
64271         * lib/gettext.h: Likewise.
64272         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
64273         Likewise.
64274         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
64275         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64276         * lib/propername.c (proper_name_utf8): Likewise.
64277         * lib/spawn.in.h: Likewise.
64278         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
64279         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
64280         mem_cd_iconveh_internal): Likewise.
64281         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
64282         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
64283         strstr, strcasestr): Likewise.
64284         * lib/unicodeio.c (unicode_to_mb): Likewise.
64285         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
64286         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
64287         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
64288         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
64289         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
64290         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
64291         * lib/unistr/u8-stpncpy.c: Likewise.
64292         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64293         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
64294         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64295         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64296         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
64297         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
64298         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
64299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
64300         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
64301         Likewise.
64302         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64303         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64304         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
64305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64306         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64307         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
64308         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64309         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
64310         * tests/test-getopt.h (OPTIND_MIN): Likewise.
64311         * tests/test-striconveha.c (main): Likewise.
64312         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64313         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
64314         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
64315         * doc/posix-functions/getline.texi: Likewise.
64316         Reported by Mike Frysinger <vapier@gentoo.org>.
64318 2010-11-20  Bruno Haible  <bruno@clisp.org>
64320         nproc: Fix condition.
64321         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
64322         HAVE_PTHREAD_AFFINITY_NP.
64324 2010-11-20  Bruno Haible  <bruno@clisp.org>
64326         Fix a comment.
64327         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
64329 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
64331         ftoastr: don't assume snprintf
64332         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
64333         Implement a subset of snprintf here, by using sprintf safely.
64334         * modules/ftoastr (Depends-on): Remove snprintf.
64336 2010-11-19  Jim Meyering  <meyering@redhat.com>
64338         test-rename.h: fix compilation failure
64339         * tests/test-rename.h (test_rename): Add omitted "}".
64341 2010-11-17  Jim Meyering  <meyering@redhat.com>
64343         maint.mk: add a URL discussing the no-@acronym policy
64344         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
64346 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
64348         ftoastr: depend on snprintf, improve comments
64349         * lib/ftoastr.c: Also mention Loitsch's draft.
64350         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
64351         needed in the current implementation, but it might simplify
64352         speeding up the code later.
64353         * modules/ftoastr: Depend on snprintf; this improves portability.
64354         Suggested by Bruno Haible in the same email.
64356         ftoastr: port to hosts lacking strtof and strtold
64357         Problem reported by Bruno Haible in
64358         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
64359         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
64360         environment and strtold (and presumably strtof) are not available.
64361         * modules/ftoastr (Files): Add m4/c-strtod.m4.
64362         (configure.ac): Require gl_C99_STRTOLD.
64364 2010-11-18  Bruno Haible  <bruno@clisp.org>
64366         c-strtold: Avoid link error on AIX 7.
64367         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
64368         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
64369         (gl_C_STRTOLD): Test whether strtold_l exists.
64370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64372 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64374         intprops: new macro INT_BITS_STRLEN_BOUND
64375         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
64376         ftoastr.h.  This exposes an internal of intprops.h that was formerly
64377         not exposed.  Also, it uses a slightly tighter bound than before;
64378         though this makes no practical difference, we might as well be as
64379         tight as we easily can.
64381         ftoastr: new module, for lossless conversion of floats to short strings
64382         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
64383         * modules/ftoastr: New files.
64385 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64387         bootstrap: port to Solaris sed
64388         * build-aux/bootstrap (get_version): Port to Solaris sed.
64389         See Ralf Wildenhues's note in
64390         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
64392 2010-11-14  Jim Meyering  <meyering@redhat.com>
64394         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
64395         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
64396         and move definition closer to sole use.
64398 2010-11-13  Jim Meyering  <meyering@redhat.com>
64400         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
64401         Now we require at least autoconf-2.59, which means the work-around
64402         is no longer needed.
64403         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
64404         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64405         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64406         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64407         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64409 2010-11-13  Bruno Haible  <bruno@clisp.org>
64411         rename, renameat: Avoid test failures at NFS mounted locations.
64412         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
64413         functions.
64414         (test_rename): Use assert_nonexistent.
64415         * tests/test-rename.c: Include <dirent.h>.
64416         * tests/test-renameat.c: Likewise.
64417         Reported by Gary V. Vaughan <gary@gnu.org>.
64419         rename, renameat: Document Linux bug with NFS
64420         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
64421         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
64422         * doc/posix-functions/renameat.texi: Likewise.
64423         Suggested by Eric Blake.
64425 2010-11-13  Bruno Haible  <bruno@clisp.org>
64427         rename test: Add comments.
64428         * tests/test-rename.h (test_rename): Add structure and comments.
64430 2010-11-13  Eric Blake  <eblake@redhat.com>
64432         maintainer-makefile: cover a few more files
64433         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
64434         scripts generated within C files, for libvirt.
64436 2010-11-13  Bruno Haible  <bruno@clisp.org>
64438         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
64439         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
64440         character, return the number of bytes that belong together, not always
64441         1.
64442         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
64443         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
64444         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
64445         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
64446         number of bytes of an invalid character.
64447         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
64448         (main): Invoke it.
64449         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
64450         results.
64451         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
64452         malformed byte sequences.
64453         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
64454         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
64455         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
64456         Reported by Ben Pfaff and Paolo Bonzini.
64458 2010-11-13  Bruno Haible  <bruno@clisp.org>
64460         openat: Work around glibc bug with fchownat() and empty file names.
64461         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
64462         (gl_FUNC_FCHOWNAT): Invoke it.
64463         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
64464         * doc/posix-functions/fchownat.texi: Document the glibc bug.
64465         Reported by Gary V. Vaughan <gary@gnu.org>.
64467 2010-11-13  Bruno Haible  <bruno@clisp.org>
64469         openat: Ensure autoconf macro ordering.
64470         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
64471         gl_USE_SYSTEM_EXTENSIONS.
64472         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
64474 2010-11-13  Bruno Haible  <bruno@clisp.org>
64476         Update comments.
64477         * lib/unistr/u8-check.c: Update file name in comments.
64478         * lib/unistr/u8-mblen.c: Likewise.
64479         * lib/unistr/u8-prev.c: Likewise.
64480         * lib/unistr/u8-strmblen.c: Likewise.
64481         * lib/unistr/u8-strmbtouc.c: Likewise.
64483 2010-11-13  Jim Meyering  <meyering@redhat.com>
64485         tests: avoid test failure on Solaris 10 due to lack of PATH export
64486         * tests/test-update-copyright.sh: Don't forget to export PATH.
64488         init.sh: ensure that IFS is defined, just in case...
64489         * tests/init.sh (setup_): Ensure that IFS is defined,
64490         so that saving and restoring it works as expected.  This
64491         appears to be useful at least for an old version of dash
64492         from a long time ago (RH 6).  See here for details:
64493         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
64495         maint.mk: tighten "test a == b" check
64496         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
64497         test to files that contain something like #!/bin/sh.
64498         Without this, coreutils would get two false positives in
64499         the comments of C source files.
64501 2010-11-12  Eric Blake  <eblake@redhat.com>
64503         bootstrap: fix typo in previous attempt
64504         * build-aux/bootstrap (buildreq): Correct the grouping.
64505         Reported by Paul Eggert.
64507         maintainer-makefile: prohibit test x == x
64508         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
64509         Based on a report by Matthias Bolte.
64511         bootstrap: allow FreeBSD gzip
64512         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
64513         which has no '.' and goes to stderr.
64514         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
64515         Reported by Matthias Bolte.
64517         maintainer-makefile: check for i18n setup
64518         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
64519         will likely work.
64521 2010-11-12  Bruno Haible  <bruno@clisp.org>
64523         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
64524         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
64525         * lib/nanosleep.c (nanosleep): Likewise.
64527 2010-11-11  Bruno Haible  <bruno@clisp.org>
64529         fcntl-h: Fix for use of C++ on glibc systems.
64530         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
64531         also on glibc systems in C++ mode.
64532         Reported by Gary V. Vaughan <gary@gnu.org>.
64534 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64536         mknod: avoid false failure with dash
64537         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
64539 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64541         unlink: Fix "is it should" typo in diagnostic.
64542         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
64543         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
64545 2010-11-11  Bruno Haible  <bruno@clisp.org>
64547         Tests for module 'strerror_r-posix'.
64548         * modules/strerror_r-posix-tests: New file.
64549         * tests/test-strerror_r.c: New file.
64550         * tests/test-string-c++.cc: Check the signature of strerror_r.
64552         New module 'strerror_r-posix'.
64553         * lib/string.in.h (strerror_r): New declaration.
64554         * lib/strerror_r.c: New file.
64555         * m4/strerror_r.m4: New file.
64556         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
64557         of strerror_r.
64558         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
64559         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64560         * modules/strerror_r-posix: New file.
64561         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
64562         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64563         * doc/posix-functions/strerror_r.texi: Mention the new module and the
64564         portability problems.
64566 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
64568         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
64569         line is also considered for output. Quoted function name in shell
64570         command, so temporary files for functions like MyClass::operator()
64571         are removed correctly without errors.
64573 2010-11-09  Bruno Haible  <bruno@clisp.org>
64575         * doc/posix-functions/strerror.texi: List more failing platforms.
64577         * doc/posix-functions/strerror.texi: Add a comment.
64579 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64581         fdopendir: fix bug on MacOS X when low on file descriptors
64583         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
64584         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
64585         All callers changed.
64586         (fdopendir): Invoke save_cwd at the top level, not after using
64587         multiple dup() calls to use up file descriptors.  Then retry
64588         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
64589         less than the maximum number of open file descriptors, because
64590         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
64591         on Mac OS X 10.6.4 for tar 1.24
64592         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
64593         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
64594         and for tar 1.25
64595         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
64597 2010-11-07  Bruno Haible  <bruno@clisp.org>
64599         vasnprintf: Support I flag on glibc systems.
64600         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
64601         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
64602         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
64603         snprintf function.
64604         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
64605         glibc systems.
64606         * tests/test-vasnprintf-posix3.c: New file.
64607         * modules/vasnprintf-posix-tests (Files): Add it.
64608         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
64610 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64612         [html] Fix copy/paste bug: Use unique name for compiler warnings.
64613         * MODULES.html.sh: For compiler warnings, use name
64614         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
64616 2010-11-05  Eric Blake  <eblake@redhat.com>
64618         ceil, floor: avoid spurious failure with icc
64619         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
64620         [denormals-as-zero] when optimizing without -mieee-fp option.
64621         * tests/test-floorf2.c (floorf_reference): Likewise.
64622         * tests/test-ceilf1.c (dummy): New function.
64623         (main): Use it to outsmart icc's optimization.
64624         * tests/test-floorf1.c (dummy, main): Likewise.
64626         tests: require working signbit
64627         * modules/ceilf-tests (Depends-on): Add signbit.
64628         * modules/ceill-tests (Depends-on): Likewise.
64629         * modules/floorf-tests (Depends-on): Likewise.
64630         * modules/floorl-tests (Depends-on): Likewise.
64631         * modules/round-tests (Depends-on): Likewise.
64632         * modules/roundf-tests (Depends-on): Likewise.
64633         * modules/roundl-tests (Depends-on): Likewise.
64634         * modules/trunc-tests (Depends-on): Likewise.
64635         * modules/truncf-tests (Depends-on): Likewise.
64636         * modules/truncl-tests (Depends-on): Likewise.
64638         strtod: work around icc bug
64639         * lib/strtod.c (minus_zero): Define to working value.
64640         (strtod): Use it to avoid icc bug.
64642         copysign: enhance tests
64643         * modules/copysign-tests (Files): Add minus-zero.h.
64644         * tests/test-copysign.c (main): Also test zeros.
64646 2010-11-04  Eric Blake  <eblake@redhat.com>
64648         ceil, floor, round, trunc: enhance tests of -0
64649         * tests/test-ceilf1.c (main): Ensure correct sign of result.
64650         * tests/test-ceill.c (main): Likewise.
64651         * tests/test-floorf1.c (main): Likewise.
64652         * tests/test-floorl.c (main): Likewise.
64653         * tests/test-round1.c (main): Likewise.
64654         * tests/test-roundf1.c (main): Likewise.
64655         * tests/test-roundl.c (main): Likewise.
64656         * tests/test-trunc1.c (main): Likewise.
64657         * tests/test-truncf1.c (main): Likewise.
64658         * tests/test-truncl.c (main): Likewise.
64660 2010-11-04  Eric Blake  <eblake@redhat.com>
64662         frexp, tests: work around ICC bug with -zero
64663         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
64664         works with more compilers.
64665         * tests/minus-zero.h: New file.
64666         * modules/ceilf-tests (Files): Include it.
64667         * modules/ceill-tests (Files): Likewise.
64668         * modules/floorf-tests (Files): Likewise.
64669         * modules/floorl-tests (Files): Likewise.
64670         * modules/frexp-nolibm-tests (Files): Likewise.
64671         * modules/frexp-tests (Files): Likewise.
64672         * modules/frexpl-nolibm-tests (Files): Likewise.
64673         * modules/frexpl-tests (Files): Likewise.
64674         * modules/isnan-tests (Files): Likewise.
64675         * modules/isnand-nolibm-tests (Files): Likewise.
64676         * modules/isnand-tests (Files): Likewise.
64677         * modules/isnanf-nolibm-tests (Files): Likewise.
64678         * modules/isnanf-tests (Files): Likewise.
64679         * modules/isnanl-nolibm-tests (Files): Likewise.
64680         * modules/isnanl-tests (Files): Likewise.
64681         * modules/round-tests (Files): Likewise.
64682         * modules/roundf-tests (Files): Likewise.
64683         * modules/roundl-tests (Files): Likewise.
64684         * modules/ldexpl-tests (Files): Likewise.
64685         * modules/signbit-tests (Files): Likewise.
64686         * modules/snprintf-posix-tests (Files): Likewise.
64687         * modules/sprintf-posix-tests (Files): Likewise.
64688         * modules/strtod-tests (Files): Likewise.
64689         * modules/trunc-tests (Files): Likewise.
64690         * modules/truncf-tests (Files): Likewise.
64691         * modules/truncl-tests (Files): Likewise.
64692         * modules/vsnprintf-posix-tests (Files): Likewise.
64693         * modules/vsprintf-posix-tests (Files): Likewise.
64694         * modules/vasnprintf-posix-tests (Files): Likewise.
64695         * modules/vasprintf-posix-tests (Files): Likewise.
64696         * tests/test-ceilf1.c (main): Use it.
64697         * tests/test-ceill.c (main): Likewise.
64698         * tests/test-floorf1.c (main): Likewise.
64699         * tests/test-floorl.c (main): Likewise.
64700         * tests/test-frexp.c (main): Likewise.
64701         * tests/test-frexpl.c (main): Likewise.
64702         * tests/test-isnan.c (main): Likewise.
64703         * tests/test-isnand.h (main): Likewise.
64704         * tests/test-isnanf.h (main): Likewise.
64705         * tests/test-isnanl.h (main): Likewise.
64706         * tests/test-ldexpl.c (main): Likewise.
64707         * tests/test-round.c (main): Likewise.
64708         * tests/test-roundf.c (main): Likewise.
64709         * tests/test-roundl.c (main): Likewise.
64710         * tests/test-signbit.c (test_signbitf, test_signbitd)
64711         (test_signbitl): Likewise.
64712         * tests/test-snprintf-posix.h (test_function): Likewise.
64713         * tests/test-sprintf-posix.h (test_function): Likewise.
64714         * tests/test-strtod.c (main): Likewise.
64715         * tests/test-trunc1.c (main): Likewise.
64716         * tests/test-truncf1.c (main): Likewise.
64717         * tests/test-truncl.c (main): Likewise.
64719         isnanl: work around icc bug
64720         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
64722 2010-11-03  Eric Blake  <eblake@redhat.com>
64724         tests: fix compiler warnings
64725         * tests/test-getopt.h (test_getopt): Fix condition.
64726         * tests/test-getopt_long.h (test_getopt_long): Likewise.
64727         * tests/test-pipe2.c (main): Likewise.
64728         * tests/test-quotearg-simple.c (main): Avoid icc warning.
64730         utimens: fix broken m4 test
64731         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
64733 2010-10-28  Bruno Haible  <bruno@clisp.org>
64735         posix_spawn*, getdtablesize: Relax license.
64736         * modules/posix_spawn (License): Change to LGPLv2+.
64737         * modules/posix_spawnp (License): Likewise.
64738         * modules/posix_spawn-internal (License): Likewise.
64739         * modules/posix_spawnattr_init (License): Likewise.
64740         * modules/posix_spawnattr_getflags (License): Likewise.
64741         * modules/posix_spawnattr_setflags (License): Likewise.
64742         * modules/posix_spawnattr_getpgroup (License): Likewise.
64743         * modules/posix_spawnattr_setpgroup (License): Likewise.
64744         * modules/posix_spawnattr_getschedparam (License): Likewise.
64745         * modules/posix_spawnattr_setschedparam (License): Likewise.
64746         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
64747         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
64748         * modules/posix_spawnattr_getsigdefault (License): Likewise.
64749         * modules/posix_spawnattr_setsigdefault (License): Likewise.
64750         * modules/posix_spawnattr_getsigmask (License): Likewise.
64751         * modules/posix_spawnattr_setsigmask (License): Likewise.
64752         * modules/posix_spawnattr_destroy (License): Likewise.
64753         * modules/posix_spawn_file_actions_init (License): Likewise.
64754         * modules/posix_spawn_file_actions_addclose (License): Likewise.
64755         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
64756         * modules/posix_spawn_file_actions_addopen (License): Likewise.
64757         * modules/posix_spawn_file_actions_destroy (License): Likewise.
64758         * modules/getdtablesize (License): Likewise.
64759         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
64761 2010-10-26  Bruno Haible  <bruno@clisp.org>
64763         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
64764         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
64765         Cygwin and mingw.
64766         Suggested by Eric Blake.
64768 2010-10-26  Bruno Haible  <bruno@clisp.org>
64770         stdio: Work around compilation error due to renameat() on Solaris 10.
64771         * lib/stdio.in.h: Include <unistd.h> on Solaris.
64772         * lib/renameat.c: Don't include <unistd.h> here.
64773         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
64774         Reported by Paul Eggert and Eric Blake.
64776 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64778         renameat: port to Solaris 10, which declares renameat in unistd.h
64780         * lib/renameat.c: Include unistd.h before stdio.h, because
64781         Solaris 10 declares renameat in unistd.h.  Problem encountered
64782         when building GNU tar 1.24 on Solaris 10.
64784 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64786         fdopendir: fix C89 compilation
64787         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
64788         compilers.
64790 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
64792         inttostr: simplify by removing unnecessary redundancy
64793         * lib/anytostr.c: Don't include verify.h.
64794         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
64795         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
64796         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
64797         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
64798         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
64799         Likewise.
64800         * modules/inttostr (Depends-on): Remove 'verify'.
64802 2010-10-23  Bruno Haible  <bruno@clisp.org>
64804         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
64805         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
64806         Reported by Eric Blake.
64808 2010-10-23  Bruno Haible  <bruno@clisp.org>
64810         Tests: Fix LOCALE_JA on MirBSD 10.
64811         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
64812         to an UTF-8 locale.
64813         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
64814         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64815         Reported by Eric Blake.
64817 2010-10-21  Bruno Haible  <bruno@clisp.org>
64819         nl_langinfo test: Avoid test failure on NetBSD 5.
64820         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
64821         Reported by Eric Blake.
64823 2010-10-21  Eric Blake  <eblake@redhat.com>
64825         c-stack: work around libsigsegv 2.8 bug
64826         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
64827         overflow on at least PowerPC64.
64829 2010-10-17  Bruno Haible  <bruno@clisp.org>
64831         userspec: Drop redundant file.
64832         * modules/userspec (Files): Remove lib/inttostr.h.
64834 2010-10-17  Bruno Haible  <bruno@clisp.org>
64836         nl_langinfo tests: Silence some warnings.
64837         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
64838         Reported by Jim Meyering.
64840 2010-10-17  Bruno Haible  <bruno@clisp.org>
64842         Make use of GCC's attribute __alloc_size__.
64843         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
64844         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
64845         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
64846         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
64847         __alloc_size__.
64848         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
64849         Suggested by Jim Meyering.
64851 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
64853         bootstrap: anchor .gitignore entries.
64854         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
64855         with...
64856         (insert_vc_ignore): ... this new function, which prepends `/' to
64857         all .gitignore entries before passing them to
64858         insert_sorted_if_absent.
64860 2010-10-16  Bruno Haible  <bruno@clisp.org>
64862         nextafter: Fix configure check.
64863         * modules/nextafter (configure.ac): Correct expected prototype.
64865 2010-10-16  Bruno Haible  <bruno@clisp.org>
64867         termios: Update documentation.
64868         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
64870 2010-10-16  Bruno Haible  <bruno@clisp.org>
64872         tests: Make them compile with TinyCC.
64873         * tests/test-strstr.c (main): Remove parentheses around array
64874         initializer.
64876 2010-10-15  Eric Blake  <eblake@redhat.com>
64878         ignore-value: make header idempotent
64879         * lib/ignore-value.h: Add double-inclusion guards.
64880         Reported by Stefan Berger.
64882 2010-10-15  Jim Meyering  <meyering@redhat.com>
64884         GNUmakefile: handle "stable" target, not "major"
64885         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
64886         lists in maint.mk and announce-gen.  Without this, "make stable"
64887         would fail to ensure that $(VERSION) is up to date.
64889 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
64891         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
64892         & co.
64894 2010-10-14  Bruno Haible  <bruno@clisp.org>
64896         vasnprintf: Don't set errno to 0.
64897         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
64898         block that sets it to 0.
64899         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
64901 2010-10-14  Bruno Haible  <bruno@clisp.org>
64903         socketlib: Fix.
64904         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
64905         gl_PREREQ_SYS_H_WINSOCK2.
64906         Reported by Ian Beckwith <ianb@erislabs.net>.
64908 2010-10-13  Jim Meyering  <meyering@redhat.com>
64910         test-select-stdin.c: avoid warn_unused_result warnings
64911         * tests/test-select-stdin.c: Include "macros.h".
64912         ASSERT that read and fflush succeed.
64914 2010-10-13  Jim Meyering  <meyering@redhat.com>
64916         git-version-gen: do require git-VC'd files in cwd
64917         * build-aux/git-version-gen: Reject a git version string
64918         if there are no commits associated with the current directory.
64919         This avoids an unlikely false-positive (unrelated dir whose parent
64920         repository also contains a tag matching v*), as pointed out
64921         by Giuseppe Scrivano in
64922         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
64924 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64926         argv-iter: omit nonconforming declaration
64927         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
64928         enum arg_iter_err declaration, which doesn't conform to C99.
64929         Solaris 10 cc warns about this.
64931 2010-10-13  Eric Blake  <eblake@redhat.com>
64933         termios: fix compilation on mingw
64934         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
64935         (gl_TERMIOS_H): Adjust it on mingw.
64936         * modules/termios (Makefile.am): Substitute new key.
64937         * lib/termios.in.h (includes): Make include_next conditional.
64938         * doc/posix-headers/termios.texi (termios.h): Update
64939         documentation.
64940         Reported by Daniel P. Berrange.
64942 2010-10-13  Jim Meyering  <meyering@redhat.com>
64944         git-version-gen: don't require that .git/ be in the current dir
64945         * build-aux/git-version-gen: Adjust this script so that it works
64946         when run from any working directory beneath the top-level .git/-
64947         containing directory.  Inspired by a patch from Giuseppe Scrivano,
64948         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
64950         test-select: avoid warn_unused_result warnings
64951         * tests/test-select.c: Include "macros.h".
64952         ASSERT that each call to read, write, and pipe succeeds.
64953         While not technically required, also check each "close".
64954         * modules/select-tests (Files): Add tests/macros.h.
64956         test-symlinkat: remove declaration of unused local
64957         * tests/test-symlinkat.c (main): Remove unused local, "buf".
64959         test-inttostr: avoid shadowing warnings
64960         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
64961         and use malloc rather than the stack for the same reason as
64962         mentioned in the comment justifying the other allocation.
64964 2010-10-11  Bruno Haible  <bruno@clisp.org>
64966         stdlib: Allow multiple gnulib generated replacements to coexist.
64967         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
64968         Reported by Sam Steingold <sds@gnu.org>.
64970 2010-10-11  Jim Meyering  <meyering@redhat.com>
64972         fix a documentation typo
64973         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
64975 2010-10-11  Eric Blake  <eblake@redhat.com>
64977         futimens: work around Solaris 11 bug
64978         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
64979         * tests/test-futimens.h (test_futimens): Enhance, rather than
64980         weaken test.
64981         * doc/posix-functions/futimens.texi (futimens): Document the bug.
64983 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64985         Indentation.
64986         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
64987         higher-level operators more to the left.
64989 2010-10-11  Jim Meyering  <meyering@redhat.com>
64991         test-futimens: avoid unwarranted test failure on Solaris 5.11
64992         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
64993         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
64994         because it tries to dereference the NULL name argument.
64996 2010-10-11  Bruno Haible  <bruno@clisp.org>
64998         Indentation.
64999         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
65000         indentation.
65002 2010-10-11  Jim Meyering  <meyering@redhat.com>
65004         spawn.in.h: make indentation consistent with parentheses
65005         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
65006         Make indentation consistent with parentheses.
65008 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
65010         Fix mismatched parens in previous commit
65011         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
65012         parens.
65014 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65016         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
65018         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
65019         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
65020         * lib/malloca.c: Include "verify.h".
65021         (verify1): Remove, replacing with a verify call.
65022         * lib/relocwrapper.c (verify1): Likewise.
65023         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
65024         Likewise.
65025         * modules/malloca (Depends-on): Add 'verify'.
65026         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
65027         * modules/vasnprintf (Depends-on): Add 'verify'.
65028         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65029         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65030         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65031         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65032         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65033         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65034         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65036         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
65038         Formerly the style was sometimes 2*X - 1, because the C standard
65039         was wrongly thought to disallow ?: in integral constant expressions.
65040         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
65041         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
65042         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
65043         * lib/stdint.in.h (_verify_intmax_size): Likewise.
65044         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
65045         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
65046         verify that time_t cannot be floating.
65048 2010-10-08  Eric Blake  <eblake@redhat.com>
65050         time: enforce recent POSIX ruling that time_t is integral
65051         * lib/time.in.h (__time_t_must_be_integral): Detect any
65052         problematic systems, allowing the rest of gnulib to assume POSIX.
65054 2010-10-08  Jim Meyering  <meyering@redhat.com>
65056         fdopendir: fix a bug on systems lacking openat and /proc support
65057         OpenBSD 4.7 is one such system.  The most noticeable effect was
65058         failure of any application making nontrivial use of fts: rm, du,
65059         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
65060           ./rm: traversal failed: `a': Bad file descriptor
65061         Debugging that, you see that even though FD 6 was closed just
65062         prior to the opendir call in fd_clone_opendir, its resulting
65063         dir->dd_fd was 8, rather than the expected value of 6:
65065         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
65066         93                close (fd);
65067         (gdb) n
65068         94                dir = fd_clone_opendir (dupfd);
65069         (gdb) n
65070         95                saved_errno = errno;
65071         (gdb) p dir->dd_fd
65072         $11 = 8
65074         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
65075         The problem is that on OpenBSD, fd_clone_opendir has to resort
65076         to using the old-style save/restore CWD mechanism, due to its
65077         lack of openat/proc support, and *that* would steal the FD (6)
65078         that opendir was supposed to use.
65080         The fix is to squirrel away the desired FD so that save_cwd uses a
65081         different one, and then free the dest FD right before calling opendir.
65082         That guarantees opendir will use the required file descriptor.
65084         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
65086 2010-10-08  Bruno Haible  <bruno@clisp.org>
65088         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
65089         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
65091 2010-10-08  Bruno Haible  <bruno@clisp.org>
65093         nanosleep: Make replacement POSIX compliant.
65094         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
65095         is out of range.
65096         Reported by Jim Meyering.
65098 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65100         bootstrap: add hook for altering gnulib.mk, for Bison
65101         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
65102         the Bison bootstrapping process can rewrite file names and variables
65103         in this file before later parts of 'bootstrap' use the file.
65104         Bison wants to include lib/gnulib.mk from the top-level makefile,
65105         so it needs the file names in this file to be relative to the top
65106         level, not relative to lib; plus it needs variable names to be
65107         rewritten.
65108         (slurp): Use the new function.
65110         bootstrap: reformat for readability
65111         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
65113 2010-10-08  Eric Blake  <eblake@redhat.com>
65115         docs: update cygwin progress
65116         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
65117         1.7.7.
65118         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
65119         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
65120         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
65121         * doc/posix-functions/carg.texi (carg): Likewise.
65122         * doc/posix-functions/cargf.texi (cargf): Likewise.
65123         * doc/posix-functions/casin.texi (casin): Likewise.
65124         * doc/posix-functions/casinf.texi (casinf): Likewise.
65125         * doc/posix-functions/casinh.texi (casinh): Likewise.
65126         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
65127         * doc/posix-functions/catan.texi (catan): Likewise.
65128         * doc/posix-functions/catanf.texi (catanf): Likewise.
65129         * doc/posix-functions/catanh.texi (catanh): Likewise.
65130         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
65131         * doc/posix-functions/ccos.texi (ccos): Likewise.
65132         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
65133         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
65134         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
65135         * doc/posix-functions/cexp.texi (cexp): Likewise.
65136         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
65137         * doc/posix-functions/cimag.texi (cimag): Likewise.
65138         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
65139         * doc/posix-functions/clog.texi (clog): Likewise.
65140         * doc/posix-functions/clogf.texi (clogf): Likewise.
65141         * doc/posix-functions/conj.texi (conj): Likewise.
65142         * doc/posix-functions/conjf.texi (conjf): Likewise.
65143         * doc/posix-functions/cpow.texi (cpow): Likewise.
65144         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
65145         * doc/posix-functions/cproj.texi (cproj): Likewise.
65146         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
65147         * doc/posix-functions/creal.texi (creal): Likewise.
65148         * doc/posix-functions/crealf.texi (crealf): Likewise.
65149         * doc/posix-functions/csin.texi (csin): Likewise.
65150         * doc/posix-functions/csinf.texi (csinf): Likewise.
65151         * doc/posix-functions/csinh.texi (csinh): Likewise.
65152         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
65153         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
65154         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
65155         * doc/posix-functions/ctan.texi (ctan): Likewise.
65156         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
65157         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
65158         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
65159         * doc/posix-headers/complex.texi (complex.h): Likewise.
65161 2010-10-07  Jim Meyering  <meyering@redhat.com>
65163         parse-datetime: avoid compilation failure on OpenBSD 4.7
65164         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
65165         This works around a compilation failure on OpenBSD 4.7:
65166         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
65168 2010-10-07  Eric Blake  <eblake@redhat.com>
65170         docs: update cygwin progress
65171         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
65172         1.7.6.
65173         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
65174         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
65175         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
65176         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
65177         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
65178         Likewise.
65179         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
65180         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
65181         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
65182         Likewise.
65183         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
65184         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
65185         Likewise.
65186         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
65187         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
65188         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
65189         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
65190         Likewise.
65191         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
65192         Likewise.
65193         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
65195         docs: update parse-datetime history
65196         * doc/parse-datetime.texi (Authors of parse_datetime): Better
65197         documentation of this function's history and alternatives.
65199         cygwin: use more robust version check
65200         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
65201         exclude an eventual cygwin 1.9.1.
65202         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
65203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
65204         (gl_FUNC_STRCASESTR): Likewise.
65205         Reported by Bruno Haible.
65207 2010-10-06  Bruno Haible  <bruno@clisp.org>
65209         string, sys_select: Avoid #including large headers unless necessary.
65210         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
65211         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
65212         OSF/1, BeOS, Haiku.
65213         Reported by Jim Meyering.
65215 2010-10-05  Eric Blake  <eblake@redhat.com>
65217         memmem, strstr, strcasestr: fix bug with long periodic needle
65218         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
65219         periodic needle having false positive.
65220         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
65221         and cygwin 1.7.7.
65222         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
65223         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
65224         (gl_FUNC_STRCASESTR): Likewise.
65225         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
65226         * tests/test-memmem.c (main): Expose the bug.
65227         * tests/test-strcasestr.c (main): Likewise.
65228         * tests/test-strstr.c (main): Likewise.
65229         * tests/test-c-strcasestr.c (main): Likewise.
65230         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
65231         * doc/posix-functions/strstr.texi (strstr): Likewise.
65232         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
65233         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
65235 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65237         parse-datetime: do some more renaming
65238         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
65239         parse_datetime, not get_date.  Mention the renaming.
65240         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
65241         in comments.
65242         * m4/bison.m4: Likewise.
65244 2010-10-05  Eric Blake  <eblake@redhat.com>
65246         parse-datetime: better name than get_date
65247         * NEWS: Reword the deprecation notice.
65248         * modules/get_date: Rename to modules/parse-datetime.
65249         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
65250         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
65251         * lib/get_date.y: Rename to lib/parse-datetime.y.
65252         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
65253         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
65254         * doc/getdate.texi: Provide fallback wrapper.
65255         * lib/getdate.h: Move guts, and wrap...
65256         * lib/parse-datetime.h: ...new file.
65257         * lib/parse-datetime.y (get_date): Rename...
65258         (parse_datetime): ...to this.
65259         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
65260         (gl_PARSE_DATETIME): ...to this.
65261         * doc/posix-functions/getdate.texi (get_date): Provide fallback
65262         documentation.
65263         * modules/getdate (Files): Provide fallback docs and header.
65264         (Notice, Depends-on): Update references.
65265         * tests/test-parse-datetime.c: Likewise.
65266         * DEPENDENCIES: Likewise.
65267         * MODULES.html.sh (Date and time <time.h>): Likewise.
65268         * doc/parse-datetime.texi (Date input formats)
65269         (Authors of parse_datetime): Likewise.
65270         * modules/parse-datetime (Files, configure.ac, Makefile.am)
65271         (Include): Likewise.
65272         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
65273         * gnulib-tool: Likewise.
65274         * m4/bison.m4 (gl_BISON): Likewise.
65275         Suggested by Bruno Haible.
65277 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65279         more ports to Solaris tr, which needs [] around ranges
65280         * gnulib-tool: Solaris tr needs [] around ranges.
65281         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
65282         * tests/test-pipe-filter-gi1.c (main): Likewise.
65283         * tests/test-pipe-filter-ii1.c (main): Likewise.
65285 2010-10-05  Eric Blake  <eblake@redhat.com>
65287         bootstrap: fix Solaris regression
65288         * build-aux/bootstrap (check_versions): Solaris tr still needs []
65289         around ranges.
65290         Reported by Pádraig Brady.
65292         bootstrap: work with pkg-config
65293         * build-aux/bootstrap (check_versions): Also transliterate - in
65294         prerequisite name.
65295         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
65296         prerequisites that were already found, to avoid confusion.
65297         Reported by Justin Clift.
65299         faccessat: remove unused wrappers
65300         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
65301         presence of these wrappers dragged in -lgen on Solaris.
65302         Reported by Clemens Brogi; fix suggested by Paul Eggert.
65304 2010-10-05  Jim Meyering  <meyering@redhat.com>
65306         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
65307         * Makefile (sc_pragma_columns): New syntax-check rule.
65309 2010-10-04  Bruno Haible  <bruno@clisp.org>
65311         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
65312         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
65313         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
65314         Reported by Bruce Korb and Eric Blake.
65316 2010-10-04  Bruno Haible  <bruno@clisp.org>
65318         threadlib: Make option --with-libpth-prefix work.
65319         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
65320         use $LIBPTH, not just -lpth.
65322 2010-10-04  Bruno Haible  <bruno@clisp.org>
65324         Avoid line length limitation from HP NonStop system header files.
65325         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
65326         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
65327         * lib/ctype.in.h: Likewise.
65328         * lib/dirent.in.h: Likewise.
65329         * lib/errno.in.h: Likewise.
65330         * lib/fcntl.in.h: Likewise.
65331         * lib/float.in.h: Likewise.
65332         * lib/getopt.in.h: Likewise.
65333         * lib/iconv.in.h: Likewise.
65334         * lib/inttypes.in.h: Likewise.
65335         * lib/langinfo.in.h: Likewise.
65336         * lib/locale.in.h: Likewise.
65337         * lib/math.in.h: Likewise.
65338         * lib/netdb.in.h: Likewise.
65339         * lib/netinet_in.in.h: Likewise.
65340         * lib/poll.in.h: Likewise.
65341         * lib/pthread.in.h: Likewise.
65342         * lib/pty.in.h: Likewise.
65343         * lib/sched.in.h: Likewise.
65344         * lib/se-selinux.in.h: Likewise.
65345         * lib/search.in.h: Likewise.
65346         * lib/signal.in.h: Likewise.
65347         * lib/spawn.in.h: Likewise.
65348         * lib/stdarg.in.h: Likewise.
65349         * lib/stddef.in.h: Likewise.
65350         * lib/stdint.in.h: Likewise.
65351         * lib/stdio.in.h: Likewise.
65352         * lib/stdlib.in.h: Likewise.
65353         * lib/string.in.h: Likewise.
65354         * lib/strings.in.h: Likewise.
65355         * lib/sys_file.in.h: Likewise.
65356         * lib/sys_ioctl.in.h: Likewise.
65357         * lib/sys_select.in.h: Likewise.
65358         * lib/sys_socket.in.h: Likewise.
65359         * lib/sys_stat.in.h: Likewise.
65360         * lib/sys_time.in.h: Likewise.
65361         * lib/sys_times.in.h: Likewise.
65362         * lib/sys_utsname.in.h: Likewise.
65363         * lib/sys_wait.in.h: Likewise.
65364         * lib/sysexits.in.h: Likewise.
65365         * lib/termios.in.h: Likewise.
65366         * lib/time.in.h: Likewise.
65367         * lib/unistd.in.h: Likewise.
65368         * lib/wchar.in.h: Likewise.
65369         * lib/wctype.in.h: Likewise.
65370         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
65371         * modules/ctype (Makefile.am): Likewise.
65372         * modules/dirent (Makefile.am): Likewise.
65373         * modules/errno (Makefile.am): Likewise.
65374         * modules/fcntl-h (Makefile.am): Likewise.
65375         * modules/float (Makefile.am): Likewise.
65376         * modules/getopt-posix (Makefile.am): Likewise.
65377         * modules/iconv-h (Makefile.am): Likewise.
65378         * modules/inttypes (Makefile.am): Likewise.
65379         * modules/langinfo (Makefile.am): Likewise.
65380         * modules/locale (Makefile.am): Likewise.
65381         * modules/math (Makefile.am): Likewise.
65382         * modules/netdb (Makefile.am): Likewise.
65383         * modules/netinet_in (Makefile.am): Likewise.
65384         * modules/poll-h (Makefile.am): Likewise.
65385         * modules/pthread (Makefile.am): Likewise.
65386         * modules/pty (Makefile.am): Likewise.
65387         * modules/sched (Makefile.am): Likewise.
65388         * modules/search (Makefile.am): Likewise.
65389         * modules/selinux-h (Makefile.am): Likewise.
65390         * modules/signal (Makefile.am): Likewise.
65391         * modules/spawn (Makefile.am): Likewise.
65392         * modules/stdarg (Makefile.am): Likewise.
65393         * modules/stddef (Makefile.am): Likewise.
65394         * modules/stdint (Makefile.am): Likewise.
65395         * modules/stdio (Makefile.am): Likewise.
65396         * modules/stdlib (Makefile.am): Likewise.
65397         * modules/string (Makefile.am): Likewise.
65398         * modules/strings (Makefile.am): Likewise.
65399         * modules/sys_file (Makefile.am): Likewise.
65400         * modules/sys_ioctl (Makefile.am): Likewise.
65401         * modules/sys_select (Makefile.am): Likewise.
65402         * modules/sys_socket (Makefile.am): Likewise.
65403         * modules/sys_stat (Makefile.am): Likewise.
65404         * modules/sys_time (Makefile.am): Likewise.
65405         * modules/sys_times (Makefile.am): Likewise.
65406         * modules/sys_utsname (Makefile.am): Likewise.
65407         * modules/sys_wait (Makefile.am): Likewise.
65408         * modules/sysexits (Makefile.am): Likewise.
65409         * modules/termios (Makefile.am): Likewise.
65410         * modules/time (Makefile.am): Likewise.
65411         * modules/unistd (Makefile.am): Likewise.
65412         * modules/wchar (Makefile.am): Likewise.
65413         * modules/wctype (Makefile.am): Likewise.
65415 2010-10-04  Bruno Haible  <bruno@clisp.org>
65417         read-file tests: Avoid a test failure on NonStop Kernel.
65418         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
65419         a regular file.
65420         Reported by Joachim Schmitz <schmitz@hp.com>.
65422 2010-10-03  Bruno Haible  <bruno@clisp.org>
65424         gnulib-tool: Fixes for --create-testdir with --libtool.
65425         * gnulib-tool (func_get_automake_snippet): Don't augment
65426         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
65427         an executable.
65428         (func_create_testdir): Handle module 'alloca' like func_import.
65429         Reported by Bruce Korb <bruce.korb@gmail.com>.
65431 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65433         Avoid some lines longer than 80 characters.
65434         * lib/stdint.in.h: Break long comment lines.
65435         * lib/math.in.h: Likewise.
65436         (_GL_NUM_UINT_WORDS): New macro, for readability.
65437         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
65438         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
65439         * lib/stdlib.in.h: Likewise.
65440         * lib/spawn.in.h: Likewise.
65441         * lib/sys_socket.in.h: Update an URL.
65442         * lib/sys_stat.in.h: Break long line.
65444 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
65446         Improve pmccabe2html.
65447         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
65448         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
65449         when the sources change. Remove the line in the HTML about "Used
65450         ranges" (which implied that there might be other unused ranges),
65451         rename "Resume" to "Summary" (easier to understand for more users).
65452         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
65453         styles, and some unnecessary blank lines.
65455 2010-10-03  Bruno Haible  <bruno@clisp.org>
65456             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
65458         acl: Add support for ACLs on NonStop Kernel.
65459         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
65460         Check whether the function aclsort() exists.
65461         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
65462         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
65463         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65464         (acl_nontrivial [HAVE_ACLSORT]: New function.
65465         (file_has_acl): Implement for NonStop Kernel.
65466         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65467         (qset_acl): Implement for NonStop Kernel.
65468         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
65469         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65470         (main): Implement for NonStop Kernel.
65471         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
65472         Kernel. Handle this flavor.
65473         * tests/test-set-mode-acl.sh: Likewise.
65474         * tests/test-copy-acl.sh: Likewise.
65475         * tests/test-copy-file.sh: Likewise.
65477 2010-10-03  Bruno Haible  <bruno@clisp.org>
65479         Info about ACLs on NonStop Kernel.
65480         * doc/acl-resources.txt: Add info about NonStop Kernel.
65481         References by Joachim Schmitz <schmitz@hp.com>.
65483 2010-10-02  Bruno Haible  <bruno@clisp.org>
65485         Define missing EDQUOT on NonStop Kernel.
65486         * lib/errno.in.h (EDQUOT): Assign a value if missing.
65487         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
65488         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
65489         missing.
65490         * doc/posix-headers/errno.texi: Mention the NSK bug.
65491         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
65492         Reported by Joachim Schmitz <schmitz@hp.com>.
65494 2010-10-02  Bruno Haible  <bruno@clisp.org>
65496         Update doc for POSIX:2008.
65497         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
65498         Update URL of POSIX specification.
65500 2010-10-02  Bruno Haible  <bruno@clisp.org>
65502         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
65503         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
65504         from gnulib, not from Automake.
65506 2010-10-02  Bruno Haible  <bruno@clisp.org>
65508         New module 'system-posix'.
65509         * modules/system-posix: New file.
65510         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
65511         module is present.
65512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65513         GNULIB_SYSTEM_POSIX.
65514         * modules/stdlib (Depends-on): Remove sys_wait.
65515         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
65516         * doc/posix-functions/system.texi: Mention the new module.
65517         * doc/posix-headers/stdlib.texi: Likewise.
65518         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
65519         define test_sys_wait_macros to a no-op.
65520         Reported by Sam Steingold <sds@gnu.org>.
65522 2010-09-30  Bruno Haible  <bruno@clisp.org>
65524         More renaming from 'getdate' to 'get_date'.
65525         * doc/get_date.texi: Renamed from doc/getdate.texi.
65526         * modules/get_date (Files): Update.
65527         * MODULES.html.sh (Date and time <time.h>): Update.
65528         * DEPENDENCIES: Update.
65529         * gnulib-tool: Update comment.
65530         * m4/bison.m4 (gl_BISON): Likewise.
65531         * m4/get_date.m4 (gl_GET_DATE): Likewise.
65533 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
65535         bootstrap: support ACLOCAL_FLAGS during aclocal
65536         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
65537         can add additional -I dir for third-party .m4 files.
65539 2010-09-30  Eric Blake  <eblake@redhat.com>
65541         bootstrap: use glibtoolize on MacOS
65542         * build-aux/bootstrap (check_versions): Convert libtool into
65543         libtoolize.
65544         (tool search): Move libtool check earlier, and look for
65545         glibtoolize for MacOS.
65546         (gnulib_tool_options): Auto-add --libtool when appropriate.
65547         Reported by Justin Clift.
65549         poll: fix typo that broke test on MacOS
65550         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
65551         Reported by Justin Clift.
65553         getdate: rename to get_date
65554         Note: getdate.h is not renamed, to minimize client impact.
65555         * modules/getdate: Mark obsolete.  Move old contents...
65556         * modules/get_date: ...to new module name.
65557         * modules/getdate-tests: Move...
65558         * modules/get_date-tests: ...here.
65559         * m4/getdate.m4: Move...
65560         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
65561         * lib/getdate.y: Move...
65562         * lib/get_date.y: ...here.
65563         * tests/test-getdate.c: Move...
65564         * tests/test-get_date.c: ...here.
65565         * doc/posix-functions/getdate.texi (getdate): Update name.
65566         * NEWS: Mention the change.
65568 2010-09-29  Bruno Haible  <bruno@clisp.org>
65570         Separate the module 'waitpid' from the module 'sys_wait'.
65571         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
65572         present.
65573         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
65574         gl_MODULE_INDICATOR_FOR_TESTS.
65575         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
65576         * modules/sys_wait (Depends-on): Remove waitpid.
65577         (Makefile.am): Substitute GNULIB_WAITPID.
65578         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
65579         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
65580         signature only if the 'waitpid' module is present.
65581         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
65582         * NEWS: Mention the change.
65583         * modules/grantpt (Depends-on): Add waitpid.
65584         * modules/wait-process (Depends-on): Likewise.
65586 2010-09-29  Bruno Haible  <bruno@clisp.org>
65588         More tests for module 'sys_wait'.
65589         * modules/sys_wait-c++-tests: New file.
65590         * tests/test-sys_wait-c++.cc: New file.
65591         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
65592         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65594 2010-09-29  Bruno Haible  <bruno@clisp.org>
65596         New module 'waitpid'.
65597         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
65598         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
65599         Don't include <process.h>.
65600         (waitpid): Declare only, using modern idiom.
65601         * m4/waitpid.m4: New file.
65602         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
65603         * modules/waitpid: New file.
65604         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
65605         (Makefile.am): Update.
65606         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65608 2010-09-28  Bruno Haible  <bruno@clisp.org>
65610         poll: Assume ANSI C.
65611         * lib/poll.c (poll): Use an ANSI C declaration.
65613 2010-09-28  Bruno Haible  <bruno@clisp.org>
65615         poll-h: Create poll.h on all platforms.
65616         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
65617         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
65618         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
65619         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
65620         (gl_REPLACE_POLL_H): Don't set POLL_H.
65621         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
65622         * modules/poll-h (Depends-on): Add include_next.
65623         (Makefile.am): Create poll.h unconditionally. Substitute also
65624         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
65626 2010-09-28  Bruno Haible  <bruno@clisp.org>
65628         Tests for module 'poll-h'.
65629         * modules/poll-h-c++-tests: New file.
65630         * tests/test-poll-h-c++.cc: New file.
65632         Tests for module 'poll-h'.
65633         * modules/poll-h-tests: New file.
65634         * tests/test-poll-h.c: New file.
65636 2010-09-28  Bruno Haible  <bruno@clisp.org>
65638         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
65639         * modules/poll-h (Depends-on): Add 'extensions'.
65641 2010-09-28  Bruno Haible  <bruno@clisp.org>
65643         New module 'poll-h'.
65644         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
65645         (poll): Use modern idiom.
65646         * modules/poll-h: New file.
65647         * modules/poll (Files): Remove lib/poll.in.h.
65648         (Depends-on): Add poll-h.
65649         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
65650         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
65651         * m4/poll_h.m4: New file.
65652         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
65653         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
65654         and invoke gl_REPLACE_POLL_H.
65655         * lib/poll.c: Use common idiom.
65656         * tests/test-poll.c: Likewise.
65657         * doc/posix-headers/poll.texi: Mention the poll-h module.
65658         Suggested by Eric Blake.
65660 2010-09-26  Bruno Haible  <bruno@clisp.org>
65662         sys_wait: Implement WSTOPSIG.
65663         * lib/sys_wait.in.h (WSTOPSIG): New macro.
65664         Reported by Simon Josefsson.
65666 2010-09-26  Simon Josefsson  <simon@josefsson.org>
65668         stdlib, sys_wait: Avoid compilation error on mingw.
65669         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
65671 2010-09-26  Bruno Haible  <bruno@clisp.org>
65673         stdlib tests: Avoid code duplication.
65674         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
65675         * modules/sys_wait-tests (Files): Likewise.
65676         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
65677         * tests/test-stdlib.c: Include test-sys_wait.h.
65678         (main): Invoke test_sys_wait_macros.
65679         * tests/test-sys_wait.c: Include test-sys_wait.h.
65680         (main): Invoke test_sys_wait_macros.
65682 2010-09-25  Simon Josefsson  <simon@josefsson.org>
65684         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
65685         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
65686         sure Windows sockets are working before calling getaddrinfo.
65687         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
65688         * doc/gnulib.texi (Windows sockets): Fix typo.
65690 2010-09-25  Bruno Haible  <bruno@clisp.org>
65692         Tests for module 'regex-quote'.
65693         * modules/regex-quote-tests: New file.
65694         * tests/test-regex-quote.c: New file.
65696         New module 'regex-quote'.
65697         * lib/regex-quote.h: New file.
65698         * lib/regex-quote.c: New file.
65699         * modules/regex-quote: New file.
65700         Suggested by Reuben Thomas <rrt@sc3d.org>.
65702 2010-09-24  Bruno Haible  <bruno@clisp.org>
65704         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
65705         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
65707 2010-09-23  Bruno Haible  <bruno@clisp.org>
65709         setenv: Relax license.
65710         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
65711         Blake.
65712         Requested by Eric Blake.
65714 2010-09-22  Bruno Haible  <bruno@clisp.org>
65716         termios: Relax license.
65717         * modules/termios (License): Change to LGPLv2+.
65718         Requested by Eric Blake.
65720 2010-09-22  Bruno Haible  <bruno@clisp.org>
65722         threadlib: Allow the package to change the default to 'no'.
65723         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
65724         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
65725         Reported by Paul Eggert.
65727 2010-09-22  Pádraig Brady  <P@draigbrady.com>
65728             Bruno Haible  <bruno@clisp.org>
65730         Fix endless loop in mbmemcasecoll.
65731         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
65732         byte.
65733         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
65735 2010-09-22  Bruno Haible  <bruno@clisp.org>
65737         Tests for module 'memcoll'.
65738         * modules/memcoll-tests: New file.
65739         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
65741         memcoll, xmemcoll: Clarify size vs. length.
65742         * modules/memcoll.c (memcoll0): Clarify specification.
65743         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
65744         passed to collate_error.
65746 2010-09-22  Bruno Haible  <bruno@clisp.org>
65748         Tests for module 'memcasecmp'.
65749         * modules/memcasecmp-tests: New file.
65750         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
65752 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65754         * lib/pthread.in.h: Add split double-inclusion guard, and include
65755         system <pthread.h> if there is one.  Use @@-style as in other
65756         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
65757         pthread.h doesn't.
65758         (pthread_mutexattr_destroy, pthread_mutexattr_init):
65759         (pthread_mutexattr_settype, pthread_mutex_trylock):
65760         New static inline functions, if there's no system <pthread.h>.
65761         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
65762         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
65763         Approximate with mutexes if the system lacks spinlocks, as in
65764         MacOS.
65765         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
65766         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
65767         @@-style.  Check for spinlocks separately.
65768         (gl_PTHREAD_DEFAULTS): New macro.
65769         * modules/pthread: Redo to use a more typical style for in.h files.
65771 2010-09-21  Eric Blake  <eblake@redhat.com>
65773         net_if: enhance tests
65774         * tests/test-net_if.c (main): Move signature checks earlier.
65775         Print failures to stderr.
65776         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
65777         Document the bug that we do not yet fix.
65779 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65781         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
65782         about gnulib, not GSS.
65784 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65786         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
65787         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
65788         for Emacs.
65789         * build-aux/pmccabe2html: Make Makefile.am example code more
65790         cut-and-paste friendly.
65792 2010-09-21  Simon Josefsson  <simon@josefsson.org>
65794         * tests/test-net_if.c: New file.
65795         * modules/net_if-tests: New file.
65797 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65799         pthread: add pthread_spin_destroy
65800         * lib/pthread.in.h (pthread_spin_destroy): New function.
65802 2010-09-19  Bruno Haible  <bruno@clisp.org>
65804         gnulib-tool: Fix --help output.
65805         * gnulib-tool (func_usage): Fix help message.
65806         Reported by Reuben Thomas <rrt@sc3d.org>.
65808 2010-09-18  Jim Meyering  <meyering@redhat.com>
65810         maint.mk: avoid unexpanded \n in two diagnostics
65811         * top/maint.mk (sc_prohibit_always_true_header_tests):
65812         Don't use a literal \n in a halt=... assignment.  It would not be
65813         expanded, and the two \n bytes would appear in the diagnostic output
65814         rather than the desired newline.  Use halt=$$(printf ... instead.
65815         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65817 2010-09-18  Bruno Haible  <bruno@clisp.org>
65819         netinet_in: Doc tweak.
65820         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
65821         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65823 2010-09-18  Jim Meyering  <meyering@redhat.com>
65825         init.sh: correct an outdated comment
65826         * tests/init.sh (create_exe_shims_):  s/function/alias/
65828         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
65829         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
65830         a file named "*.exe" is removed between the glob expansion and the
65831         processing of that oddly named file.
65833 2010-09-17  Eric Blake  <eblake@redhat.com>
65835         mirbsd: add some more support
65836         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
65837         in BSD family.
65838         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
65839         devices as OpenBSD.
65840         * m4/host-os.m4 (mirbsd): Add MirBSD.
65842         tests: fix unportable assumption on sys/wait.h
65843         * tests/test-sys_wait.c (main): Relax test.
65844         * tests/test-stdlib.c (main): Likewise.
65846         init.sh: accommodate directory with no .exes
65847         * tests/init.sh: Accomodate directory containing only scripts.
65849         tests: avoid compiler warning
65850         * tests/test-stdlib.c (main): Use the variable.
65852         fdutimens, fdutimensat: update signature, again
65853         * lib/utimens.h (gl_futimens): Delete, and move signature...
65854         (fdutimens): ...here.
65855         (fdutimensat): Rearrange signature.
65856         (lutimensat): Rename variable for clarity.
65857         * lib/fdutimensat.c (fdutimensat): Update signature.
65858         * lib/utimens.c (fdutimens): Likewise.
65859         (gl_futimens): Delete.
65860         (utimens, lutimens): Update callers.
65861         * lib/futimens.c (futimens): Likewise.
65862         * tests/test-fdutimensat.c: Likewise.
65863         * tests/test-utimens.c: Likewise.
65864         * tests/test-futimens.h: Update comment.
65865         * NEWS: Mention this.
65866         Suggested by Paul Eggert.
65868 2010-09-17  Bruno Haible  <bruno@clisp.org>
65870         Take over the maintenance of some older macros from Autoconf.
65871         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
65872         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
65873         GNU Autoconf.
65874         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
65875         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
65877 2010-09-17  Eric Blake  <eblake@redhat.com>
65879         fdutimensat: drop atflag validation
65880         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
65881         with valid fd, to close a race scenario where futimens is
65882         unsupported and FILE was replaced by a symlink.
65883         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
65884         accordingly.
65885         Suggested by Paul Eggert.
65887 2010-09-16  Bruno Haible  <bruno@clisp.org>
65889         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
65890         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
65892 2010-09-16  Bruno Haible  <bruno@clisp.org>
65894         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
65895         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
65896         login_tty exists.
65897         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65899 2010-09-16  Bruno Haible  <bruno@clisp.org>
65901         login_tty: Make the replacement code work on BSD systems.
65902         * lib/login_tty.c: Include <sys/ioctl.h>.
65903         (login_tty): Use ioctl TIOCSCTTY when available.
65904         * modules/login_tty (Depends-on): Add sys_ioctl.
65905         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65907 2010-09-16  Bruno Haible  <bruno@clisp.org>
65909         login_tty: Stricter unit test.
65910         * modules/login_tty-tests (Depends-on): Add tcgetsid.
65911         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
65912         and tcgetsid() after login_tty.
65913         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65915 2010-09-16  Bruno Haible  <bruno@clisp.org>
65917         New module 'tcgetsid'.
65918         * lib/tcgetsid.c: New file.
65919         * m4/tcgetsid.m4: New file.
65920         * modules/tcgetsid: New file.
65921         * modules/termios (Depends-on): Add c++defs, warn-on-use.
65922         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
65923         GNULIB_TCGETSID, HAVE_TCGETSID.
65924         * lib/termios.in.h: Include <sys/types.h>.
65925         (tcgetsid): New declaration.
65926         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
65927         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
65928         * doc/posix-functions/tcgetsid.texi: Mention the new module.
65929         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
65931 2010-09-16  Bruno Haible  <bruno@clisp.org>
65933         Tests for module 'termios'.
65934         * modules/termios-c++-tests: New file.
65935         * modules/termios-tests: New file.
65936         * tests/test-termios-c++.cc: New file.
65937         * tests/test-termios.c: New file.
65939         New module 'termios'.
65940         * modules/termios: New file.
65941         * lib/termios.in.h: New file.
65942         * m4/termios_h.m4: New file.
65943         * doc/posix-headers/termios.texi: Mention the new module.
65945 2010-09-16  Eric Blake  <eblake@redhat.com>
65947         fdutimensat: add an atflag parameter
65948         * lib/fdutimensat.c (fdutimensat): Add new parameter.
65949         * lib/utimens.h (fdutimensat): Update prototype.
65950         * tests/test-fdutimensat.c: Adjust test to match.
65951         * NEWS: Document the change.
65952         Suggested by Paul Eggert.
65954 2010-09-16  Bruno Haible  <bruno@clisp.org>
65956         Fix typos in comments.
65957         * lib/striconveh.h: Fix typo in comment.
65958         * lib/login_tty.c (login_tty): Likewise.
65960 2010-09-15  Bruno Haible  <bruno@clisp.org>
65962         stdlib: clarify MirBSD WEXITSTATUS bug
65963         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
65964         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65966 2010-09-15  Eric Blake  <eblake@redhat.com>
65968         stdlib: work around MirBSD WEXITSTATUS bug
65969         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
65970         * modules/stdlib (Depends-on): Add sys_wait.
65971         * tests/test-sys_wait.c (main): Enhance test.
65972         * tests/test-stdlib.c (main): Likewise.
65973         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
65975         docs: mention MacOS issue with WEXITSTATUS(constant)
65976         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
65977         issue.
65978         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65980         strnlen: add tests
65981         * modules/strnlen-tests: New file.
65982         * tests/test-strnlen.c: Likewise.
65984 2010-09-14  Bruno Haible  <bruno@clisp.org>
65986         unistr/base: Avoid link errors when module 'libunistring' is also used.
65987         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
65988         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
65989         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
65990         Declare also when HAVE_LIBUNISTRING is set.
65991         Reported by Pádraig Brady <P@draigbrady.com>.
65993 2010-09-14  Eric Blake  <eblake@redhat.com>
65995         test-rawmemchr: make more robust
65996         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
65997         (Depends-on, configure.ac): Add needed prerequisites to use it.
65998         * modules/memchr-tests (Files, Depends-on, configure.ac):
65999         Likewise, to avoid implicit reliance on memchr module prereqs.
66000         * tests/test-memchr.c (main): Ensure proper masking.
66001         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
66002         reads.
66004         memchr: detect glibc Alpha bug
66005         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
66006         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
66007         Alpha.
66008         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
66009         * tests/test-memchr.c (main): Enhance test.
66010         Reported by Nelson H. F. Beebe.
66012 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66014         fts, getcwd, glob: audit for dirfd returning -1
66015         * lib/fts.c (opendir): Remove #define; no longer used.
66016         (opendirat): New arg PDIR_FD.  All callers changed.
66017         (fts_build, _opendir2): Use new opendirat to avoid the need for
66018         dirfd, or for checking whether dirfd returns a negative value.
66019         Don't use opendir; always use openat followed by fdopendir.
66020         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
66021         it.
66022         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
66023         returns -1 here.
66024         * modules/fts (Depends-on): Remove dirfd.
66025         * modules/getcwd (Depends-on): Likewise.
66027 2010-09-13  Eric Blake  <eblake@redhat.com>
66029         float: fix broken MirBSD header
66030         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
66031         * doc/posix-headers/float.texi (float.h): Document it.
66033 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66035         fts: use O_NOFOLLOW to avoid race condition when opening a directory
66036         * lib/fts.c (opendirat): New arg extra_flags.
66037         (__opendir2): Use it to avoid following symlinks when opening
66038         a directory, if symlinks are not supposed to be followed.  See
66039         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
66041         fdopendir: preserve argument fd before returning
66042         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
66043         (fdopendir_with_dup, fd_clone_opendir): New static functions.
66044         (fdopendir): Use them, arranging for FD to be open to the same
66045         directory that it was when it started.  (It might be temporarily
66046         closed while fdopendir is running, so this not thread- or
66047         signal-safe.)  Be careful to do the right thing even when file
66048         descriptors are scarce and dup fails with errno == EMFILE.  See
66049         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
66051 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
66053         regex: Pass the system regex if its only problem is 32-bit regoff_t.
66054         * NEWS: Document change.
66055         * m4/regex.m4: Disable test for regoff_t size.
66057 2010-09-13  Jim Meyering  <meyering@redhat.com>
66059         fts: don't operate on an invalid file descriptor after failed dup
66060         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
66061         negative file descriptor.
66063 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66065         savedir: add streamsavedir, deprecate fdsavedir
66066         * NEWS: Mention deprecation of fdsavedir.
66067         * lib/savedir.c (streamsavedir): New extern function, whose name
66068         ends in "savedir" to be consistent with the others.  This differs
66069         from savedirstream in that it doesn't close its argument.  The
66070         next version of GNU tar will use this instead of fdsavedir, to
66071         avoid some race conditions and conserve file descriptors.
66072         (savedirstream): Reimplement as a wrapper around streamsavedir.
66073         (fdsavedir): Add a comment deprecating this function.  As far as
66074         I know, only GNU tar used it, and GNU tar doesn't need it any more.
66075         * lib/savedir.h (streamsavedir): New decl.
66076         (fdsavedir): Add a comment deprecating this.
66078 2010-09-10  Bruno Haible  <bruno@clisp.org>
66080         langinfo: Fix last commit.
66081         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
66082         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
66083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66085 2010-09-10  Bruno Haible  <bruno@clisp.org>
66087         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
66088         * lib/progreloc.c (O_EXEC): Define fallback.
66090 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
66092         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
66093         * NEWS: Document recent changes to fcntl-h.
66094         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
66095         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
66096         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
66097         Similarly for O_SEARCH; this last was already true, but not documented.
66098         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
66099         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
66100         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
66101         Likewise.
66102         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
66103         is zero, not whether it is defined.
66104         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
66105         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
66106         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
66108 2010-09-10  Bruno Haible  <bruno@clisp.org>
66110         langinfo, nl_langinfo: Fix for IRIX 5.3.
66111         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
66112         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
66113         HAVE_LANGINFO_YESEXPR.
66114         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
66115         HAVE_LANGINFO_YESEXPR.
66116         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
66117         HAVE_LANGINFO_T_FMT_AMPM is 0.
66118         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
66119         HAVE_LANGINFO_YESEXPR is 0.
66120         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
66121         NOEXPR.
66122         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
66123         * doc/posix-functions/nl_langinfo.texi: Likewise.
66124         Reported by Eric Blake.
66126 2010-09-10  Bruno Haible  <bruno@clisp.org>
66128         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
66129         * doc/glibc-functions/login_tty.texi: Mention the include file problem
66130         on FreeBSD 8.0 and OpenBSD 4.6.
66131         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
66132         * m4/pty_h.m4 (gl_PTY_H): Likewise.
66133         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
66134         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
66135         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
66136         ac_includes_default.
66137         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
66139 2010-09-09  Eric Blake  <eblake@redhat.com>
66141         strsignal: work around NetBSD bug
66142         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
66143         * lib/string.in.h (includes): Likewise.
66144         * doc/posix-functions/strsignal.texi (strsignal): Document the
66145         bug.
66146         Reported by Nelson H. F. Beebe.
66148         gnulib-tool: work with NetBSD /bin/sh
66149         * gnulib-tool (func_cache_var, func_cache_lookup_module)
66150         (func_get_description, func_get_comment, func_get_status)
66151         (func_get_notice, func_get_applicability, func_get_filelist)
66152         (func_get_dependencies, func_get_autoconf_early_snippet)
66153         (func_get_autoconf_snippet, func_get_automake_snippet)
66154         (func_get_include_directive, func_get_link_directive)
66155         (func_get_license, func_get_maintainer, func_import): Avoid
66156         shell syntax errors from parsing syntax extensions.
66158 2010-09-09  Bruno Haible  <bruno@clisp.org>
66160         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
66161         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
66162         a reliable way to determine whether the 'alias' command works.
66164 2010-09-08  Jim Meyering  <meyering@redhat.com>
66166         init.sh: penalize a set-x-impaired shell; don't disqualify it
66167         * tests/init.sh: Too many shells corrupt application stderr when
66168         you set -x, so we can't afford to disqualify them, since at least
66169         on Irix-6.5, that would disqualify all bourne shells.
66170         Instead, use a two-pass approach.
66171         On the first pass, try to find a shell that meets the stricter
66172         condition that set -x does not corrupt stderr.
66173         If no shell meets the stricter condition, retest each candidate
66174         shell, but without that extra condition.  Finally, when
66175         VERBOSE=yes is requested and set -x might cause trouble, simply
66176         issue a warning and refrain from enabling debug output.
66178 2010-09-08  Eric Blake  <eblake@redhat.com>
66180         unsetenv: fix OpenBSD bug
66181         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
66182         * doc/posix-functions/unsetenv.texi (unsetenv): Update
66183         documentation.
66184         Reported by Jim Meyering.
66186         strtod: work around IRIX 6.5 bug
66187         * lib/strtod.c (strtod): Reparse number on shorter string if
66188         exponent parse was invalid.
66189         * tests/test-strtod.c (main): Add check for "0x1p 2".
66190         Reported by Tom G. Christensen.
66192         getopt: optimize previous patch
66193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
66194         empty variable.  Speed up awk script.
66195         Reported by Paolo Bonzini.
66197 2010-09-08  Jim Meyering  <meyering@redhat.com>
66199         test.sh: disqualify shells for which set -x corrupts stderr
66200         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
66201         and OpenBSD 4.7.  They make it so with "set -x", environment settings
66202         appear in stderr output.  For example, this command:
66203             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
66204         prints "P=1" on those two systems:
66206 2010-09-08  Bruno Haible  <bruno@clisp.org>
66208         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
66209         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
66210         commands, because some shells ignore redirections when there is an
66211         error in the command lookup.
66212         Reported by Eric Blake.
66214 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
66216         * lib/regex.h: Fix a mention of `regex_compile' (should be
66217         `re_compile_pattern').
66218         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
66219         (re_set_registers): Correct name of parameter in comment.
66221         * doc/regex.texi: Add documentation for missing syntax flags.
66222         Remove commented-out documentation of defunct syntax option
66223         RE_NO_EMPTY_ALTS.
66224         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
66225         Add documentation of re_set_registers.
66226         Document trick to re-use a pattern buffer by setting fastmap manually.
66227         Update documentation of struct re_pattern_buffer per public members.
66228         Uncomment documentation of equivalence class operators and
66229         collating symbol operators, since they are now implemented,
66230         Explain leftmost-longest matching in relation to alternatives.
66231         Tidy documentation of substring matching.
66232         Remove POSIX documentation, which is done better in
66233         glibc, and refer the reader there. Keep BSD API documentation, as
66234         that is not readily available elsewhere.
66236 2010-09-07  Eric Blake  <eblake@redhat.com>
66238         getopt: handle POSIXLY_CORRECT set but not exported
66239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
66240         export state of POSIXLY_CORRECT, due to bash set -o posix.
66241         Reported by Dustin J. Mitchell.
66243 2010-09-05  Bruno Haible  <bruno@clisp.org>
66245         gnulib-tool: Highlight the changed options.
66246         * gnulib-tool (func_usage): Display the --import, --add-import,
66247         --remove-import explanations in bold font.
66249 2010-09-06  Karl Berry  <karl@gnu.org>
66251         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
66253 2010-09-05  Bruno Haible  <bruno@clisp.org>
66255         uniwidth/width: Update comment.
66256         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
66257         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
66259 2010-09-05  Bruno Haible  <bruno@clisp.org>
66261         isinf, isnan: Relax license.
66262         * modules/isinf (License): Change from GPL to LGPL, with consent from
66263         Ben Pfaff.
66264         * modules/isnan (License): Likewise.
66265         Requested by Ludovic Courtès.
66267 2010-09-04  Bruno Haible  <bruno@clisp.org>
66269         gnulib-tool: Help migration from --import to --add-import or --update.
66270         * gnulib-tool: Emit a verbose error message when --import is used
66271         without any module name.
66273 2010-09-04  Bruno Haible  <bruno@clisp.org>
66275         Update doc about gnulib-tool.
66276         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
66277         'gnulib-tool --update' in more detail.
66278         Reported by Eric Blake.
66280 2010-09-04  Bruno Haible  <bruno@clisp.org>
66282         gnulib-tool: Change --import. New options --add/remove-import.
66283         * gnulib-tool: New options --add-import, --remove-import.
66284         (func_usage): Document them.
66285         (have_associative): Define always.
66286         (func_import): In import mode, don't merge the specified settings with
66287         the cached settings. Implement remove-import mode.
66288         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
66289         Explain when to use them versus --import.
66290         (Simple update): Use --add-import instead of --import.
66291         * NEWS: Mention the change.
66293 2010-09-04  Bruno Haible  <bruno@clisp.org>
66295         * doc/gnulib-tool.texi (Initial import): Update paragraph about
66296         separate gnulib.mk.
66298 2010-09-04  Bruno Haible  <bruno@clisp.org>
66300         gnulib-tool: Don't talk about CVS any more.
66301         * gnulib-tool (func_usage, func_import): Write "version control"
66302         instead of CVS.
66304 2010-09-04  Jim Meyering  <meyering@redhat.com>
66306         maint.mk: avoid obscure sc_copyright_check failure in coreutils
66307         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
66308         false positives (whose names may be ill-chosen) when searching
66309         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
66310         would cause a false-positive.
66312         avoid coreutils "make distcheck" failure
66313         Coreutils tests with an absolute build directory name that contains
66314         a space.  Not quoting this directory name caused a failure.
66315         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
66316         * tests/test-vc-list-files-cvs.sh: Likewise.
66318 2010-09-04  Bruno Haible  <bruno@clisp.org>
66320         gnulib-tool: Avoid error when run in a package without Makefile.am.
66321         * gnulib-tool: When collecting the m4dirs in a package that does not
66322         have a Makefile.am, eliminate those directories that contain no
66323         gnulib-cache.m4. Fix expression that counts these directories.
66325 2010-09-04  Bruno Haible  <bruno@clisp.org>
66327         update-copyright test: Improve output when perl is missing or too old.
66328         * tests/test-update-copyright.sh: Move test of Perl version down after
66329         the test whether Perl exists. Provide an explanation relating Perl's
66330         error message to Automake's SKIP: message.
66332 2010-09-04  Bruno Haible  <bruno@clisp.org>
66334         Don't augment PATH in TESTS_ENVIRONMENT.
66335         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
66336         set abs_aux_dir instead of augmenting PATH.
66337         * modules/vc-list-files-tests (Makefile.am): Likewise.
66338         * tests/test-update-copyright.sh: Augment PATH here.
66339         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
66340         path_prepend_.
66341         * tests/test-vc-list-files-git.sh: Likewise.
66343 2010-09-04  Jim Meyering  <meyering@redhat.com>
66345         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
66346         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
66348 2010-09-04  Bruno Haible  <bruno@clisp.org>
66350         strdup: Fix compilation error in C++ mode.
66351         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
66352         the macro.
66354 2010-09-04  Bruno Haible  <bruno@clisp.org>
66356         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
66357         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
66358         macro into a function.
66359         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66361 2010-09-04  Bruno Haible  <bruno@clisp.org>
66363         Set PATH_SEPARATOR the same way autoconf does.
66364         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
66365         the value of PATH_SEPARATOR the same way autoconf-generated configure
66366         scripts do.
66367         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
66368         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66370 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
66372         Set PATH_SEPARATOR the same way autoconf does.
66373         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
66374         the same way autoconf-generated configure scripts do.
66375         * posix-modules: Likewise.
66377 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66379         hash: fix safe_hasher const typo
66380         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
66381         const; otherwise, there is a type error later.
66383 2010-09-02  Jim Meyering  <meyering@redhat.com>
66385         test-update-copyright.sh: require perl 5.8.0
66386         * tests/test-update-copyright.sh: Require 5.8.0,
66387         which Tom G. Christensen has confirmed is adequate,
66388         while 5.6.1 is not.
66390 2010-09-02  Eric Blake  <eblake@redhat.com>
66392         tests: init.sh improvements for re-exec'ing with zsh
66393         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
66394         -vx through shell re-exec.
66395         Reported by Tom G. Christensen.
66397         wctype: fix typo in previous commit
66398         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
66399         Reported by Ludovic Courtès.
66401 2010-09-02  Jim Meyering  <meyering@redhat.com>
66403         test-update-copyright.sh: skip test if Perl is too old
66404         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
66405         Reported by Tom G. Christensen.
66407 2010-09-02  Bruno Haible  <bruno@clisp.org>
66409         wctype: Avoid compilation error on IRIX 6.5.30.
66410         * lib/wctype.in.h (iswblank): Declare with a replacement if
66411         REPLACE_ISWBLANK is set.
66412         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
66413         declared. Set REPLACE_ISWBLANK.
66414         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
66415         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
66416         * doc/posix-headers/wctype.texi: Likewise.
66417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66419 2010-09-01  Bruno Haible  <bruno@clisp.org>
66421         New module 'socketlib'.
66422         * modules/socketlib: New file.
66423         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
66424         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
66425         * modules/sockets (Depends-on): Add socketlib.
66426         Suggested by Sam Steingold <sds@gnu.org>.
66428 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66430         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
66432         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
66433         when one needs search access to a directory but not read access.
66434         On systems where it is available, it works in some cases where
66435         O_RDONLY does not, namely on directories that are searchable but
66436         not readable, and which need only to be searchable.  If O_SEARCH
66437         is not available, fall back to the traditional method of using
66438         O_RDONLY.
66440         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
66441         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
66442         when opening a directory that needs only to be searchable.
66443         * lib/chdir-safer.c (chdir_no_follow): Likewise.
66444         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
66445         * lib/openat-proc.c (openat_proc_name): Likewise.
66446         * lib/openat.c (openat_needs_fchdir): Likewise.
66447         * lib/save-cwd.c (save_cwd): Likewise.
66448         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
66450 2010-08-28  Bruno Haible  <bruno@clisp.org>
66452         New module 'host-cpu-c-abi'.
66453         * modules/host-cpu-c-abi: New file.
66454         * m4/host-cpu-c-abi.m4: New file, based on part of
66455         clisp/src/m4/general.m4.
66456         Requested by Sam Steingold <sds@gnu.org>.
66458 2010-08-31  Eric Blake  <eblake@redhat.com>
66459         and Jim Meyering  <meyering@redhat.com>
66461         hash: factor, and guard against misbehaving hasher function
66462         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
66463         of table->hasher's return value.  Also protect against a hash value
66464         so large that adding it to table->bucket results in a NULL pointer.
66465         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
66466         Use it in place of open-coded check-and-abort.
66468 2010-08-30  Bruno Haible  <bruno@clisp.org>
66470         hash: silence spurious clang warning
66471         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
66472         Reported by Eric Blake.
66474 2010-08-30  Eric Blake  <eblake@redhat.com>
66476         strstr, memmem, strcasestr: avoid leaked shell message
66477         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
66478         FreeBSD.
66479         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66482         tests: silence clang warning
66483         * tests/test-malloca.c (do_allocation): Avoid dead store.
66485 2010-08-29  Bruno Haible  <bruno@clisp.org>
66487         gettext: Fix recent mistake.
66488         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
66490 2010-08-29  Bruno Haible  <bruno@clisp.org>
66492         selinux-h: Offer a --without-selinux option.
66493         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
66494         --without-selinux was specified, skip all tests and define
66495         HAVE_SELINUX_SELINUX_H to 0.
66496         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
66497         set LIB_SELINUX to empty.
66498         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
66499         gl_LIBSELINUX. If --without-selinux was specified, replace
66500         selinux/context.h.
66501         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
66503 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66504             Bruno Haible  <bruno@clisp.org>
66506         Make the module 'realloc-gnu' work again on AIX and OSF/1.
66507         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
66508         of HAVE_REALLOC.
66509         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
66510         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
66511         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
66512         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
66514 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66515             Bruno Haible  <bruno@clisp.org>
66517         Make the module 'calloc-gnu' work again on AIX and OSF/1.
66518         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
66519         HAVE_CALLOC.
66520         * lib/xmalloc.c: Update accordingly.
66521         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
66522         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
66523         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
66525 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66526             Bruno Haible  <bruno@clisp.org>
66528         Make the module 'malloc-gnu' work again on AIX and OSF/1.
66529         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
66530         HAVE_MALLOC.
66531         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
66532         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
66533         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
66535 2010-08-29  Bruno Haible  <bruno@clisp.org>
66537         Update modules list.
66538         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
66539         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
66540         (String handling <string.h>): Add astrxfrm.
66541         (File system functions): Add readlinkat.
66543 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66545         Tests for module 'realloc-gnu'.
66546         * modules/realloc-gnu-tests: New file.
66547         * tests/test-realloc-gnu.c: New file.
66549         Tests for module 'calloc-gnu'.
66550         * modules/calloc-gnu-tests: New file.
66551         * tests/test-calloc-gnu.c: New file.
66553         Tests for module 'malloc-gnu'.
66554         * modules/malloc-gnu-tests: New file.
66555         * tests/test-malloc-gnu.c: New file.
66557 2010-08-28  Bruno Haible  <bruno@clisp.org>
66559         Rename module 'realloc' -> 'realloc-gnu'.
66560         * modules/realloc-gnu: New file, copied from modules/realloc.
66561         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
66562         obsolete.
66563         * modules/mgetgroups (Depends-on): Update.
66564         * doc/posix-functions/realloc.texi: Update.
66565         * NEWS: Mention the change.
66567         Rename module 'calloc' -> 'calloc-gnu'.
66568         * modules/calloc-gnu: New file, copied from modules/calloc.
66569         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
66570         obsolete.
66571         * doc/posix-functions/calloc.texi: Update.
66572         * NEWS: Mention the change.
66574         Rename module 'malloc' -> 'malloc-gnu'.
66575         * modules/malloc-gnu: New file, copied from modules/malloc.
66576         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
66577         obsolete.
66578         * modules/argp (Depends-on): Update.
66579         * modules/regex (Depends-on): Update.
66580         * doc/posix-functions/malloc.texi: Update.
66581         * NEWS: Mention the change.
66583 2010-08-28  Eric Blake  <eblake@redhat.com>
66585         pread, pwrite: add missing dependency
66586         * modules/pread (Depends-on): Add extensions.
66587         * modules/pwrite (Depends-on): Likewise.
66589 2010-08-28  Bruno Haible  <bruno@clisp.org>
66591         unistr/u*-strchr: Fix tests dependencies.
66592         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
66593         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
66594         Reported by Ian Beckwith <ianb@erislabs.net>.
66596 2010-08-28  Bruno Haible  <bruno@clisp.org>
66598         read-file: Don't occupy too much unused memory.
66599         * lib/read-file.c (fread_file): Shrink the buffer at the end.
66601 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
66602             Eric Blake  <eblake@redhat.com>
66603             Bruno Haible  <bruno@clisp.org>
66605         read-file: Avoid memory reallocations with regular files.
66606         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
66607         (fread_file): With regular files, use the remaining length as the
66608         initial buffer size.  Check against overflow.
66609         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
66610         sys_stat.
66612 2010-08-28  Bruno Haible  <bruno@clisp.org>
66614         ftello: Relax license.
66615         * modules/ftello (License): Relax to LGPLv2+.
66616         Reported by Eric Blake.
66618 2010-08-28  Bruno Haible  <bruno@clisp.org>
66620         Avoid relocwrapper link errors due to gnulib replacement functions.
66621         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
66622         function.
66623         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66625 2010-08-28  Bruno Haible  <bruno@clisp.org>
66627         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
66628         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
66629         defined.
66630         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
66631         Suggested by Eric Blake.
66633 2010-08-28  Bruno Haible  <bruno@clisp.org>
66635         sys_socket, netdb: Ensure socklen_t gets defined.
66636         * modules/sys_socket (Depends-on): Add socklen.
66637         * modules/netdb (Depends-on): Likewise.
66638         * modules/getaddrinfo (Depends-on): Remove socklen.
66639         * modules/getsockopt (Depends-on): Likewise.
66640         * modules/setsockopt (Depends-on): Likewise.
66641         * tests/test-sys_socket.c: Check that socklen_t is defined.
66642         * tests/test-netdb.c: Likewise.
66643         * m4/socklen.m4: Update comments.
66644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66646 2010-08-27  Eric Blake  <eblake@redhat.com>
66648         login_tty: add missing dependency
66649         * modules/login_tty (Depends-on): Add pty.
66651 2010-08-26  Eric Blake  <eblake@redhat.com>
66653         lib-symbol-versions: fix m4 quoting
66654         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
66655         format for AC_LINK_IFELSE.
66657         glob: fix compile test
66658         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
66660         btowc: fix missing file
66661         * modules/btowc (Files): Also ship locale-fr.m4.
66663         lseek: fix link test
66664         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
66665         AC_LINK_IFELSE.
66667         include_next: silence autoconf 2.68 warning
66668         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
66669         AC_COMPILE_IFELSE as special.
66670         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
66671         autoconf < 2.68.
66673         acl: fix compilation test
66674         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
66675         AC_COMPILE_IFELSE.
66677 2010-08-26  Bruno Haible  <bruno@clisp.org>
66679         Modernize AC_TRY_RUN invocations.
66680         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
66681         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
66682         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
66683         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
66684         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
66685         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66686         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
66687         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66688         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66689         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66690         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
66691         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
66692         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
66693         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66694         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
66695         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
66696         gl_MBRLEN_NUL_RETVAL): Likewise.
66697         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
66698         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
66699         Likewise.
66700         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
66701         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
66702         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
66703         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
66704         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
66705         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
66706         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
66707         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
66708         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
66709         Likewise.
66710         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
66711         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
66712         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66713         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66714         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66715         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
66716         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
66717         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
66718         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
66719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66721 2010-08-26  Bruno Haible  <bruno@clisp.org>
66723         Modernize AC_TRY_LINK invocations.
66724         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
66725         AC_TRY_LINK.
66726         * m4/argp.m4 (gl_ARGP): Likewise.
66727         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
66728         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
66729         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
66730         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66731         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66732         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
66733         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
66734         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
66735         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66736         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66737         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66738         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
66739         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
66740         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66741         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
66742         * m4/hostent.m4 (gl_HOSTENT): Likewise.
66743         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66744         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
66745         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
66746         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
66747         Likewise.
66748         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
66749         Likewise.
66750         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
66751         Likewise.
66752         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
66753         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
66754         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
66755         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
66756         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
66757         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66758         * m4/servent.m4 (gl_SERVENT): Likewise.
66759         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
66760         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
66761         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
66762         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
66763         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66764         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
66765         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66766         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66767         * modules/tsearch-tests (configure.ac): Likewise.
66769 2010-08-26  Bruno Haible  <bruno@clisp.org>
66771         Modernize AC_TRY_COMPILE invocations.
66772         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
66773         AC_TRY_COMPILE.
66774         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
66775         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
66776         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
66777         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66778         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
66779         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66780         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66781         * m4/lock.m4 (gl_LOCK): Likewise.
66782         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
66783         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66784         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
66785         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
66786         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
66787         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
66788         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66789         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
66790         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
66791         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
66792         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
66793         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66794         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
66795         extraneous semicolon.
66797 2010-08-26  Jim Meyering  <meyering@redhat.com>
66799         stat-time: relax license LGPL
66800         * modules/stat-time (License): Change from GPL to LGPL,
66801         with consent from all contributors, for use in libguile.
66802         Requested by Ludovic Courtès.
66804 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
66806         poll: return immediately on POLLHUP.
66807         * lib/poll.c (poll): Always set timeout before wait_timeout is
66808         computed.
66810 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66812         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
66813         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
66814         rmdir ("dir/.//"), unlinkat.
66816 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66818         stdbool: avoid spurious failure with modern xlc
66819         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66821 2010-08-24  Bruno Haible  <bruno@clisp.org>
66823         getloadavg: simplify code
66824         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
66825         gl_have_func. Update comments.
66827 2010-08-24  Eric Blake  <eblake@redhat.com>
66829         getloadavg: don't define SVR4 on cygwin
66830         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
66831         only define SVR4 when -lkvm is required.
66832         Reported by Yaakov Selkowitz.
66834 2010-08-24  Bruno Haible  <bruno@clisp.org>
66836         priv-set: fix comment
66837         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
66839 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66841         priv-set: fix comments
66842         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
66843         to match code, as suggested by David Bartley in:
66844         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
66846 2010-08-23  Eric Blake  <eblake@redhat.com>
66848         stdbool: avoid rejecting clang
66849         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66850         * tests/test-stdbool.c: Enable more tests if using the system
66851         <stdbool.h> instead of the gnulib replacement.
66852         (main): Move xlc bug test to a runtime test for all compilers.
66853         Reported by Anders Kaseorg.
66855         argz: fix shell quoting issue
66856         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
66857         Reported by Charles Wilson.
66859 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
66860             Erik Faye-Lund <kusmabite@gmail.com>
66862         poll, select: handle ERROR_BROKEN_PIPE.
66863         * lib/poll.c (win32_compute_revents): Return POLLHUP when
66864         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66865         * lib/select.c (win32_compute_revents): Do not mark a pipe
66866         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66868 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
66870         fts: allow compilation with C++
66871         * lib/fts_.h: Specify extern "C" linkage with C++.
66873 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66875         Fix gnulib-tool sed script de-commentation for AIX sed.
66876         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
66877         sed.
66879 2010-08-17  Eric Blake  <eblake@redhat.com>
66881         test-stddef: test for (some) offsetof bugs
66882         * tests/test-stddef.c: Enhance test to ensure correct type of
66883         offsetof.
66884         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
66885         that we are not fixing at this time.
66887 2010-08-15  Bruno Haible  <bruno@clisp.org>
66889         stpncpy: Allow stpncpy to be defined as a macro.
66890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
66891         if it's already correctly declared.
66892         * lib/string.in.h (stpncpy): Undefine before redefining.
66893         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
66895 2010-08-14  Bruno Haible  <bruno@clisp.org>
66897         Rename module 'memxfrm' to 'amemxfrm'.
66898         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
66899         (amemxfrm): Renamed from memxfrm.
66900         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
66901         (amemxfrm): Renamed from memxfrm.
66902         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
66903         * NEWS: Mention the change.
66904         * MODULES.html.sh (String handling <string.h>): Update.
66905         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
66906         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
66907         * lib/unicase/u16-casexfrm.c: Likewise.
66908         * lib/unicase/u32-casexfrm.c: Likewise.
66909         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
66910         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
66911         * lib/uninorm/u16-normxfrm.c: Likewise.
66912         * lib/uninorm/u32-normxfrm.c: Likewise.
66913         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
66914         memxfrm.
66915         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
66916         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
66917         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
66918         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
66919         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
66920         Suggested by Paul Eggert.
66922 2010-08-14  Bruno Haible  <bruno@clisp.org>
66924         Tests for module 'astrxfrm'.
66925         * modules/astrxfrm-tests: New file.
66926         * tests/test-astrxfrm.c: New file.
66928         New module 'astrxfrm'.
66929         * lib/astrxfrm.h: New file.
66930         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
66931         * modules/astrxfrm: New file.
66933 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
66935         regex: Tweak doc.
66936         * doc/regex.texi (Overview): Don't mention regex.c.
66937         (GNU Regular Expression Compiling): Likewise.
66938         (Match-end-of-line Operator): Mention 'not_eol'.
66940 2010-08-14  Brian Gough  <bjg@gnu.org>
66941             Bruno Haible  <bruno@clisp.org>
66943         git-merge-changelog: add doc relating to use with bzr and hg.
66944         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
66946 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
66948         pthread: fix pthread.h creation for srcdir != builddir
66949         * modules/pthread (Makefile.am): Fix the rule to work also in a
66950         non-srcdir build.
66952 2010-08-13  Karl Berry  <karl@gnu.org>
66954         * doc/regex.texi (Predefined Syntaxes): @smallexample.
66955         * doc/posix-*/*: force line break before @url of POSIX
66956         specifications.
66957         Suggested by Werner Lemberg.
66959 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66961         strtod: fix const diagnostic
66962         * lib/strtod.c (strtod): Don't assign const char * to char *,
66963         as this elicits a warning from GCC when warnings are enabled.
66965 2010-08-10  Pádraig Brady  <P@draigbrady.com>
66966         and Eric Blake  <eblake@redhat.com>
66968         copy-acl: ignore ENOTSUP on HP-UX
66969         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
66970         so that it is available for HP-UX.
66971         * lib/copy-acl.c (qcopy_acl): Use it.
66972         Reported by Patrick M. Callahan.
66974 2010-08-10  Eric Blake  <eblake@redhat.com>
66976         open, chown: relax license
66977         * modules/open (License): Change to LGPLv2+, with consent by all
66978         authors, for use in augeas.
66979         * modules/chown (License): Likewise.
66980         * modules/lchown (Likewise): Likewise.
66981         Requested by Adam Stokes.
66983 2010-08-09  Karl Berry  <karl@gnu.org>
66985         * build-aux/ar-lib: new file, import from Automake.
66986         * config/srclist.txt: autocheck for updates.
66988 2010-08-09  Eric Blake  <eblake@redhat.com>
66990         readlinkat: adjust client modules
66991         * modules/areadlinkat (Depends-on): Use readlinkat, not
66992         symlinkat.
66993         * modules/areadlinkat-with-size (Depends-on): Likewise.
66995         mknod: be more vocal about danger of running tests as root
66996         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
66997         root, since that is just asking for problems.
66998         Suggested by Bruno Haible, based on a report by Rainer Tammer.
67000         readlinkat: split into its own module
67001         * modules/symlinkat: Split readlinkat...
67002         * modules/readlinkat: ...into separate module.
67003         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
67004         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
67005         * lib/symlinkat.c (readlinkat): Move...
67006         * lib/readlinkat.c: ...into new file.
67007         * modules/symlinkat-tests: Split readlinkat test...
67008         * modules/readlinkat-tests: ...into separate module.
67009         * tests/test-symlinkat.c: Split...
67010         * tests/test-readlinkat.c: ...into new file.
67011         * NEWS: Document the split.
67012         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
67013         * lib/unistd.in.h (readlinkat): Likewise.
67014         Suggested by Bruno Haible.
67016 2010-08-08  Bruno Haible  <bruno@clisp.org>
67018         memxfrm: Speed up.
67019         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
67020         that usually only one call to strxfrm is necessary for each string
67021         part.
67022         Reported by Paul Eggert <eggert@cs.ucla.edu>.
67024 2010-08-07  Karl Berry  <karl@gnu.org>
67026         * doc/posix-headers/limits.texi,
67027         * doc/posix-functions/malloc.texi,
67028         * doc/posix-functions/strsignal.texi: missing @item.
67029         * doc/ld-version-script.texi: spurious leading i.
67030         * doc/regex.texi (Interval Operators): no commas inside @var.
67032 2010-08-01  Bruno Haible  <bruno@clisp.org>
67034         Integrate the regex documentation.
67035         * doc/gnulib.texi: Define 'cn' index.
67036         (Regular expressions): New a chapter that includes regex.texi and
67037         regexprops-generic.texi.
67038         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
67039         syntax.
67041         Whitespace cleanup.
67042         * doc/regex.texi: Remove trailing spaces.
67044         Add regex documentation.
67045         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
67046         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
67047         Written by Kathy A. Hargreaves and Karl Berry.
67049 2010-08-01  Bruno Haible  <bruno@clisp.org>
67051         link: Update documentation.
67052         * doc/posix-functions/link.texi: Update regarding Solaris.
67054 2010-07-31  Bruno Haible  <bruno@clisp.org>
67056         Update modules list.
67057         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
67058         (String handling <string.h>): Add memcmp2, memxfrm.
67059         (Container data structures): Add xlist, xsublist, xoset.
67060         (Core language properties): Add alignof, unused-parameter.
67061         (Process control, Numeric conversion functions <stdlib.h>): Renamed
67062         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
67063         (Unibyte characters <ctype.h>): New section.
67064         (String handling <string.h>): New section.
67065         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
67066         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
67067         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
67068         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
67069         tan, tanh, tanl, y0, y1, yn.
67070         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
67071         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
67072         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
67073         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
67074         unlockpt, vdprintf, vdprintf-posix.
67075         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
67076         (File system functions): Add concat-filename, sys_file, sys_ioctl,
67077         xconcat-filename.
67078         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
67079         getdtablesize, pipe2, pipe2-safer.
67080         (Security): New section.
67081         (Networking functions): Add accept4.
67082         (Signal handling): Add sigpipe.
67083         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
67084         mbmemcasecoll.
67085         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
67086         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
67087         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
67088         pipe-filter-ii.
67089         (Misc): Add argp-version-etc, login_tty, parse-duration.
67091 2010-07-31  Bruno Haible  <bruno@clisp.org>
67093         Improve doc in MODULES.html.
67094         * modules/linkat (Description): Add the word "function".
67095         * modules/mkfifo (Description): Likewise.
67096         * modules/mknod (Description): Likewise.
67097         * modules/remove (Description): Likewise.
67098         * modules/renameat (Description): Likewise.
67099         * modules/stat (Description): Likewise.
67100         * modules/symlink (Description): Likewise.
67101         * modules/unlink (Description): Likewise.
67103 2010-07-31  Bruno Haible  <bruno@clisp.org>
67105         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
67106         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
67107         option --enable/disable-c++ instead of --enable/disable-cxx.
67108         * NEWS: Mention the change.
67110 2010-07-31  Bruno Haible  <bruno@clisp.org>
67112         readlink, areadlink: Relax test a bit.
67113         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
67114         alternative to ENOTDIR.
67115         * tests/test-areadlink.h (test_areadlink): Likewise.
67116         Reported by Rainer Tammer.
67118 2010-07-31  Bruno Haible  <bruno@clisp.org>
67120         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
67121         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
67122         character, perform the search using U_STRCHR.
67123         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
67124         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
67125         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
67126         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
67127         Suggested by Paolo Bonzini.
67129 2010-07-31  Bruno Haible  <bruno@clisp.org>
67131         unistr/u*-strstr: Fix dependencies.
67132         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
67133         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
67134         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
67136 2010-07-31  Bruno Haible  <bruno@clisp.org>
67138         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
67139         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
67140         the beginning of the loop.
67141         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
67142         cases in 'switch' statement.
67144         unistr/u8-strchr: Fix several bugs.
67145         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
67146         the string. When not found, return NULL, not a pointer near the end.
67148         More tests for unistr/u8-strchr.
67149         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
67150         that the function does not read past the first occurrence of the byte
67151         being searched.
67152         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
67153         * tests/unistr/test-u16-strchr.c (main): New function.
67154         * tests/unistr/test-u32-strchr.c (main): New function.
67156 2010-07-31  Bruno Haible  <bruno@clisp.org>
67158         posix-modules: Ignore backup files of documentation files.
67159         * posix-modules: grep only through files named *.texi.
67161 2010-07-31  Bruno Haible  <bruno@clisp.org>
67163         symlinkat: Fix documentation.
67164         * doc/posix-functions/readlinkat.texi: Fix module name.
67166 2010-07-31  Bruno Haible  <bruno@clisp.org>
67168         fchownat: Replace also when chown has the trailing slash bug.
67169         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
67170         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
67171         introduced on 2010-04-10.
67172         Reported by Rainer Tammer.
67174 2010-07-31  Bruno Haible  <bruno@clisp.org>
67176         linkat: Work around AIX 7.1 bug.
67177         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
67178         whether linkat handles trailing slash correctly. If not, replace linkat
67179         and define LINKAT_TRAILING_SLASH_BUG.
67180         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
67181         check whether (fd1,file1) points to a directory if file1 or file2 ends
67182         in a slash. Code taken from lib/link.c.
67183         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
67184         Reported by Rainer Tammer.
67186 2010-07-31  Bruno Haible  <bruno@clisp.org>
67188         Correctly determine whether pow is available in libc on AIX 7 with xlc.
67189         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
67190         This disables an xlc optimization that was causing wrong test results.
67191         Reported by Rainer Tammer.
67193 2010-07-31  Bruno Haible  <bruno@clisp.org>
67195         iconv: Work around AIX 6.1..7.1 bug.
67196         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
67197         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
67198         cross-compiling, guess no on all versions of AIX.
67199         Reported by Rainer Tammer.
67201 2010-07-31  Bruno Haible  <bruno@clisp.org>
67203         readlink: Relax test a bit.
67204         * tests/test-readlink.h (test_readlink): Allow different errno value
67205         when readlink is called with a file name that ends in / and refers to
67206         a file.
67207         Suggested by Eric Blake.
67208         Reported by Rainer Tammer.
67210 2010-07-31  Bruno Haible  <bruno@clisp.org>
67212         copysign: Does not require -lm on glibc systems.
67213         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
67214         gl_COMMON_DOUBLE_MATHFUNC.
67215         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
67217 2010-07-31  Bruno Haible  <bruno@clisp.org>
67219         duplocale: Work around AIX 7.1 bug.
67220         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
67221         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
67222         * lib/duplocale.c (rpl_duplocale): Update comment.
67223         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
67224         Reported by Rainer Tammer.
67226 2010-07-30  Bruno Haible  <bruno@clisp.org>
67228         dirfd: Avoid link error on AIX 7.1.
67229         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
67230         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
67231         exist, set REPLACE_DIRFD.
67232         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
67233         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
67234         * doc/posix-functions/dirfd.texi: Update.
67235         Reported by Rainer Tammer.
67237 2010-07-30  Eric Blake  <eblake@redhat.com>
67239         strtod: next round of AIX fixes
67240         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
67241         exponent.
67242         * tests/test-strtod.c (main): Enhance tests.
67243         * doc/posix-functions/strtod.texi (strtod): Document next bug.
67244         Reported by Rainer Tammer.
67246         futimens: fix configure check
67247         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
67248         Reported by Bruno Haible.
67250 2010-07-30  Bruno Haible  <bruno@clisp.org>
67252         getline: Update regarding AIX.
67253         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
67254         Reported by Rainer Tammer.
67256 2010-07-30  Bruno Haible  <bruno@clisp.org>
67258         wcwidth: Drop replacement on AIX 7.
67259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
67260         AIX 7.
67261         Reported by Rainer Tammer.
67263 2010-07-30  Bruno Haible  <bruno@clisp.org>
67265         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
67266         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
67267         a 'char *'.
67268         Reported by Rainer Tammer.
67270 2010-07-30  Bruno Haible  <bruno@clisp.org>
67272         unlink: Update regarding AIX.
67273         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
67274         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
67275         Reported by Rainer Tammer.
67277 2010-07-30  Bruno Haible  <bruno@clisp.org>
67279         symlink: Update regarding AIX.
67280         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
67281         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
67282         Reported by Rainer Tammer.
67284 2010-07-30  Bruno Haible  <bruno@clisp.org>
67286         strndup: Update regarding AIX.
67287         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
67288         AIX 7.
67289         Reported by Rainer Tammer.
67291 2010-07-30  Bruno Haible  <bruno@clisp.org>
67293         stat: Update regarding AIX.
67294         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
67295         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
67296         Reported by Rainer Tammer.
67298 2010-07-30  Bruno Haible  <bruno@clisp.org>
67300         truncl: Fix autoconf test.
67301         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
67302         whether truncl works.
67303         Reported by Rainer Tammer.
67305 2010-07-30  Bruno Haible  <bruno@clisp.org>
67307         round: Update regarding AIX.
67308         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
67309         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
67310         Reported by Rainer Tammer.
67312 2010-07-30  Bruno Haible  <bruno@clisp.org>
67314         rename: Update regarding AIX.
67315         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
67316         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
67317         Reported by Rainer Tammer.
67319 2010-07-30  Bruno Haible  <bruno@clisp.org>
67321         printf.m4: Update regarding AIX.
67322         * m4/printf.m4: Update comments regarding AIX.
67323         Reported by Rainer Tammer.
67325 2010-07-30  Bruno Haible  <bruno@clisp.org>
67327         iconv: Update regarding AIX.
67328         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
67329         AIX 7.
67330         Reported by Rainer Tammer.
67332 2010-07-30  Bruno Haible  <bruno@clisp.org>
67334         getopt: Update regarding AIX.
67335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
67336         no on AIX.
67337         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
67338         Reported by Rainer Tammer.
67340 2010-07-30  Bruno Haible  <bruno@clisp.org>
67342         ldexpl; Update regarding AIX.
67343         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
67344         on AIX 7.
67345         Reported by Rainer Tammer.
67347 2010-07-30  Bruno Haible  <bruno@clisp.org>
67349         frexpl: Update regarding AIX.
67350         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
67351         on AIX 7.
67352         Reported by Rainer Tammer.
67354 2010-07-30  Bruno Haible  <bruno@clisp.org>
67356         open, fopen: Update regarding AIX.
67357         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
67358         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
67359         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
67360         * doc/posix-functions/fopen.texi: Likewise.
67361         Reported by Rainer Tammer.
67363 2010-07-30  Bruno Haible  <bruno@clisp.org>
67365         chown: Update doc regarding AIX.
67366         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
67367         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
67368         Reported by Rainer Tammer.
67370 2010-07-30  Eric Blake  <eblake@redhat.com>
67372         strtod: fix bug in replacement function on AIX
67373         * lib/strtod.c (strtod): Special case broken "0x" parse in
67374         underlying strtod.
67375         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
67376         * doc/posix-functions/strtod.texi (strtod): Likewise.
67377         Reported by Rainer Tammer.
67379 2010-07-30  Bruno Haible  <bruno@clisp.org>
67381         mbrlen: Fix cross-compilation guess for AIX.
67382         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
67383         guess. Leftover from 2008-12-22.
67385 2010-07-30  Bruno Haible  <bruno@clisp.org>
67387         mbrtowc: Fix cross-compilation guess for AIX.
67388         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
67389         guess. Leftover from 2008-12-21.
67391 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
67393         init.sh: work around trap limitation of some shells
67394         * tests/init.sh (setup_): Move exit trap outside of shell function.
67396 2010-07-29  Eric Blake  <eblake@redhat.com>
67398         strtod: aid debugging
67399         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
67400         understanding why strtod is rejected.
67402 2010-07-28  Bruno Haible  <bruno@clisp.org>
67404         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
67405         * lib/unistr/u8-chr.c: Include <string.h>.
67406         * tests/unistr/test-u8-chr.c: Likewise.
67407         * tests/unistr/test-u16-chr.c: Likewise.
67408         * tests/unistr/test-u32-chr.c: Likewise.
67409         * tests/unistr/test-u8-strchr.c: Likewise.
67410         * tests/unistr/test-u16-strchr.c: Likewise.
67411         * tests/unistr/test-u32-strchr.c: Likewise.
67412         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
67413         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
67414         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
67415         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
67417 2010-07-28  Bruno Haible  <bruno@clisp.org>
67419         Use spaces for indentation, not tabs.
67420         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
67422 2010-07-27  Bruno Haible  <bruno@clisp.org>
67424         mbspcasecmp: Fix function specification.
67425         * lib/string.in.h (mbspcasecmp): Fix specification comment.
67426         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
67427         Reported by Eric Blake <eblake@redhat.com>.
67429 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
67431         timespec: use cast and not conditional, as truncation isn't possible
67432         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
67433         instead of a conditional.  Comment about the situation in more detail.
67434         This undoes most of the 2009-10-29 patch.
67436 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
67438         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
67439         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
67440         * lib/unistr/u8-strchr.c: Likewise.
67441         * modules/unistr/u8-chr: Depend on memchr.
67443         unistr/u*-strchr: add tests
67444         * modules/unistr/u8-strchr-tests: New file.
67445         * modules/unistr/u16-strchr-tests: New file.
67446         * modules/unistr/u32-strchr-tests: New file.
67447         * tests/unistr/test-strchr.h: New file.
67448         * tests/unistr/test-u8-strchr.c: New file.
67449         * tests/unistr/test-u16-strchr.c: New file.
67450         * tests/unistr/test-u32-strchr.c: New file.
67452         unistr/u*-chr: test multibyte sequences more
67453         * tests/unistr/test-chr.h: Do complete testing of the characters in the
67454         test vector.
67455         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
67456         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
67457         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
67459         unistr/u*-chr: test multibyte sequences
67460         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
67462         unistr/u*-chr: prepare for multibyte tests
67463         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
67464         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
67465         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
67466         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
67467         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
67468         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
67470 2010-07-18  Bruno Haible  <bruno@clisp.org>
67472         unistr/u8-strchr: Optimize non-ASCII argument case.
67473         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
67474         because the first byte often matches anyway.
67475         Reported by Pádraig Brady <P@draigbrady.com>.
67477 2010-07-15  Karl Berry  <karl@gnu.org>
67479         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
67481 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
67483         getcwd: on Solaris, work better if ancestors are inaccessible
67484         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
67485         buffer and size, try again with a large buffer.  This works better
67486         on Solaris, since its getcwd succeeds even if the path to the root
67487         is inaccessible, and this is helpful in common cases such as .zfs
67488         hidden directories.  Problem reported by J Chapman Flack in
67489         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
67490         Use system getcwd if it's declared, not merely if it's partly
67491         working; use the partly-working test only to avoid needless effort
67492         if the system getcwd fails.
67493         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
67494         comment that was already obsolete and is now even more obsolete.
67495         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
67496         now might call strdup.
67498 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
67500         pthread: Add enough so that coreutils/src/sort.c compiles.
67501         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
67502         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
67503         gnulib. Include <sched.h> and <time.h>, as per POSIX.
67504         Include <sys/types.h>, in case it defines pthread_t.
67505         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
67506         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
67507         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
67508         (pthread_rwlockattr_t, pthread_spinlock_t):
67509         New typedefs, if HAVE_PTHREAD_T is not defined.
67510         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
67511         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
67512         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
67513         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
67514         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
67515         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
67516         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
67517         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
67518         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
67519         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
67520         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
67521         New macros.
67522         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
67523         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
67524         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
67525         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
67526         (pthread_spin_unlock): New dummy functions.
67527         (pthread_create): Return EAGAIN; don't set errno.
67528         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
67529         require AC_C_INLINE.
67530         * modules/pthread (Depends-on): Add sched, time.
67531         (pthread.h): Use AM_V_GEN.
67533 2010-07-13  Bruno Haible  <bruno@clisp.org>
67535         striconveh: Don't malloc memory if the result buffer is sufficient.
67536         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
67537         buffer if its size is sufficient.
67538         Reported by Ludovic Courtès <ludo@gnu.org>.
67540 2010-07-13  Bruno Haible  <bruno@clisp.org>
67542         strtod: Add safety check.
67543         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
67545 2010-07-12  Bruno Haible  <bruno@clisp.org>
67547         Unify tests that set gl_cv_func_ldexpl_no_libm.
67548         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
67549         gl_FUNC_LDEXPL.
67550         (gl_FUNC_LDEXPL): Invoke it.
67551         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67553 2010-07-12  Bruno Haible  <bruno@clisp.org>
67555         Unify tests that set gl_cv_func_ldexp_no_libm.
67556         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
67557         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
67558         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
67559         (configure.ac): Simply invoke gl_FUNC_LDEXP.
67560         * modules/strtod (Files): Add m4/ldexp.m4.
67562 2010-07-12  Bruno Haible  <bruno@clisp.org>
67564         Unify tests that set gl_cv_func_frexpl_no_libm.
67565         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
67566         gl_FUNC_FREXPL_NO_LIBM.
67567         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
67568         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67570 2010-07-12  Bruno Haible  <bruno@clisp.org>
67572         Unify tests that set gl_cv_func_frexp_no_libm.
67573         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
67574         gl_FUNC_FREXP_NO_LIBM.
67575         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
67576         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
67578 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67580         memcoll: clarify sizes versus lengths, document better, and tweak perf
67581         * lib/memcoll.c (strcoll_loop, memcoll0):
67582         Improve quality of descriptive comments.  Name variables
67583         consistently as to whether they are lengths (which do not include
67584         terminating null) versus sizes (which do).
67585         * lib/xmemcoll.c (xmemcoll0): Likewise.
67586         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
67587         returned when s1size == 0; this is easier to compile and saves
67588         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
67590 2010-07-12  Bruno Haible  <bruno@clisp.org>
67592         Tests for module '_Exit'.
67593         * modules/_Exit-tests: New file.
67594         * tests/test-_Exit.sh: New file.
67595         * tests/test-_Exit.c: New file.
67597         New module '_Exit'.
67598         * lib/stdlib.in.h (__attribute__): New macro.
67599         (_Exit): New declaration.
67600         * lib/_Exit.c: New file.
67601         * m4/_Exit.m4: New file.
67602         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
67603         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
67604         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
67605         * modules/_Exit: New file.
67606         * tests/test-stdlib-c++.cc (_Exit): Check signature.
67607         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
67609 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67611         strtod: make it more-accurate typically, and don't require libm
67612         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
67613         Include limits.h.  Don't include string.h.
67614         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
67615         (locale_isspace): New function, so that no casts are needed to
67616         check whether *s is a space.
67617         (ldexp): Provide an unused dummy if not available.
67618         (scale_radix_exp, parse_number, underlying_strtod): New functions.
67619         (strtod): Use them.  This implementation prefers to use the
67620         underlying strtod if available, falling back on our own code
67621         only to fix known bugs.  This is more likely to produce an
67622         accurate result.  Also, it avoids the use of libm functions.
67623         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
67624         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
67625         was absent, but it caused a test failure with coreutils.
67626         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
67627         with libm.
67628         * modules/strtod (Makefile.am, Link): libm is no longer needed.
67629         * modules/strtod-tests (Makefile.am): Likewise.
67631 2010-07-11  Pádraig Brady  <P@draigBrady.com>
67632             Bruno Haible  <bruno@clisp.org>
67634         unistr/u8-strchr: Optimize ASCII argument case.
67635         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
67637 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67639         (x)memcoll: minor tweaks
67640         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
67641         is after the type that it qualifies.
67642         (memcoll0): Likewise.
67643         * lib/memcoll.h (memcoll0): Likewise.
67644         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
67645         * lib/xmemcoll.h (xmemcoll0): Likewise.
67646         * lib/memcoll.c (memcoll0): Correct the comment.  This function
67647         differs from memcoll in that the NUL byte is part of the argument.
67648         Omit the abort-checks, as performance is a real issue here.  Plus,
67649         the checks were wrong anyway (an off-by-one error).  Omit local
67650         variable 'diff', as it's a bit clearer that way.
67651         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
67652         no longer needed.
67654 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
67656         (x)memcoll: speedup when input is known to be NUL delimited
67657         * lib/memcoll.c: Include stdlib.
67658         (memcoll0): New function.
67659         (strcoll_loop): New function, refactored for use in both memcoll
67660         and memcoll0.
67661         * lib/memcoll.h (memcoll0): Add prototype.
67662         * lib/xmemcoll.c (xmemcoll0): New function.
67663         (collate_error): New function, refactored for use in both xmemcoll
67664         and xmemcoll0.
67665         * lib/xmemcoll.h (xmemcoll0): Add prototype.
67666         * m4/memcoll.m4: add inline invocation.
67668 2010-07-06  Pádraig Brady  <P@draigBrady.com>
67670         * build-aux/bootstrap: Remove any local translations
67671         from the translation project synchronization directory,
67672         so that local only translations are not distributed.
67674 2010-07-04  Bruno Haible  <bruno@clisp.org>
67676         fsusage: Clarify which code applies to which platforms.
67677         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
67678         platform.
67679         * lib/fsusage.c (get_fs_usage): Likewise.
67681 2010-07-04  Bruno Haible  <bruno@clisp.org>
67683         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
67684         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
67685         Reported by Martin Lambers <marlam@marlam.de>.
67687 2010-07-04  Jim Meyering  <meyering@redhat.com>
67689         hash: once again explicitly disallow insertion of NULL
67690         * lib/hash.c (hash_insert0): Reinstate just-removed test:
67691         inserting a NULL pointer cannot work with these functions.
67692         Add a comment with details.
67693         This reverts part of the 2010-07-01 commit, 5bef1a35
67694         "hash: extend module to deal with non-pointer keys".
67696 2010-07-01  Bruno Haible  <bruno@clisp.org>
67698         stdbool: Update doc.
67699         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
67700         Info from Christian Weisgerber <naddy@mips.inka.de>.
67702 2010-07-01  Jim Meyering  <meyering@redhat.com>
67704         hash: extend module to deal with non-pointer keys
67705         * lib/hash.c (hash_insert0): New interface, much like hash_insert
67706         but that allows insertion of non-pointer entries.
67707         Do not disallow an ENTRY value of NULL.
67708         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
67709         * lib/hash.h (hash_insert0): Declare.
67711 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
67713         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
67714         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
67715         not present (i.e. with autoconf 2.59 and when using gettextize, not
67716         gnulib), require AC_GNU_SOURCE instead.
67718 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
67720         idpriv-drop: Fix tests.
67721         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
67722         not to the test-idpriv-droptemp program.
67724 2010-06-29  Bruno Haible  <bruno@clisp.org>
67726         string: Fix syntax error with g++ 2.96.
67727         * lib/string.in.h (__pure__): Remove definition.
67728         (_GL_ATTRIBUTE_PURE): New macro.
67729         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
67730         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
67731         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67733 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
67735         unitypes: Fix bug introduced on 2010-05-18.
67736         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
67738 2010-06-22  Eric Blake  <eblake@redhat.com>
67740         memmem: slight optimization
67741         * lib/str-two-way.h (critical_factorization): Update comments.
67742         Reduce work during factorization phase.
67743         Reported by Carlos Bueno <carlos@bueno.org>.
67745 2010-06-21  Bruno Haible  <bruno@clisp.org>
67747         Fix HAVE_CALLOC_POSIX misnomer.
67748         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
67749         !HAVE_CALLOC_POSIX.
67750         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
67751         HAVE_CALLOC_POSIX.
67752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
67753         instead of HAVE_CALLOC_POSIX.
67754         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
67755         HAVE_CALLOC_POSIX.
67757         Use modern idiom for calloc() replacement.
67758         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
67759         AC_FUNC_CALLOC.
67760         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
67761         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
67762         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67763         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
67764         (gl_REPLACE_CALLOC): New macro.
67766 2010-06-21  Bruno Haible  <bruno@clisp.org>
67768         Fix HAVE_REALLOC_POSIX misnomer.
67769         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
67770         !HAVE_REALLOC_POSIX.
67771         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
67772         HAVE_REALLOC_POSIX.
67773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
67774         instead of HAVE_REALLOC_POSIX.
67775         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
67776         HAVE_REALLOC_POSIX.
67778         Use modern idiom for realloc() replacement.
67779         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
67780         AC_FUNC_REALLOC.
67781         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
67782         Autoconf's AC_FUNC_REALLOC.
67783         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67784         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
67785         (gl_REPLACE_REALLOC): New macro.
67786         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67788 2010-06-21  Bruno Haible  <bruno@clisp.org>
67790         Fix HAVE_MALLOC_POSIX misnomer.
67791         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
67792         !HAVE_MALLOC_POSIX.
67793         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
67794         HAVE_MALLOC_POSIX.
67795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
67796         instead of HAVE_MALLOC_POSIX.
67797         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
67798         HAVE_MALLOC_POSIX.
67800         Use modern idiom for malloc() replacement.
67801         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
67802         AC_FUNC_MALLOC.
67803         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
67804         Autoconf's AC_FUNC_MALLOC.
67805         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67806         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
67807         (gl_REPLACE_MALLOC): New macro.
67808         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67810 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
67812         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
67813         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
67814         This macro takes 3 arguments, not 4.
67816 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
67818         ipv6: fix detection under mingw
67819         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
67820         in6_addr.
67822 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
67824         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
67825         that strtod() works when cross-compiling to a glibc version known
67826         to work.
67828 2010-06-15  Bruno Haible  <bruno@clisp.org>
67830         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
67832 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
67834         select: Correct timeout.
67835         * lib/select.c (rpl_select): Compute wait_timeout correctly.
67837 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67839         git-version-gen: init shell var to avoid env var influence
67840         * build-aux/git-version-gen (v): Init shell var to empty.
67842 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
67844         priv-set: Don't assume that priv.h exists merely because getppriv does.
67845         See Jan Andersen's bug report about AIX 5L in
67846         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
67847         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
67848         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
67849         * lib/priv-set.h: Likewise.
67850         * tests/test-priv-set.c: Likewise.
67852 2010-06-13  Bruno Haible  <bruno@clisp.org>
67854         relocatable: Make it easier to test whether to install wrappers.
67855         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
67856         RELOCATABLE_VIA_WRAPPER.
67858 2010-06-13  Bruno Haible  <bruno@clisp.org>
67860         gnulib-tool: Display specified modules and dependencies differently.
67861         * gnulib-tool (func_show_module_list): New function.
67862         (func_import, func_create_testdir): Invoke it.
67863         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
67865 2010-06-13  Bruno Haible  <bruno@clisp.org>
67867         gnulib-tool: Align code of func_import and func_create_testdir.
67868         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
67869         specified_modules.
67871 2010-06-12  Jim Meyering  <meyering@redhat.com>
67873         test-inttostr: avoid spurious failure on Solaris 9
67874         * tests/test-inttostr.c (main): Skip the test when snprintf fails
67875         to accept "%ju".  Reported by Bruno Haible.
67877 2010-06-11  Jim Meyering  <meyering@redhat.com>
67879         test-sys_socket: mark variables as used more readably
67880         * tests/test-sys_socket.c (main): Mark otherwise unused variables
67881         as "used" explicitly via (void) statement casts.  This is more
67882         readable than using them in an artificial return expression.
67883         Suggestion from Bruno Haible.
67885 2010-06-11  Bruno Haible  <bruno@clisp.org>
67887         Avoid some more warnings from "gcc -Wwrite-strings".
67888         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
67889         to 'const char *'.
67890         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
67891         * tests/test-c-strcasestr.c (main): Likewise.
67892         * tests/test-mbscasestr1.c (main): Likewise.
67893         * tests/test-mbscasestr2.c (main): Likewise.
67894         * tests/test-memmem.c (main): Likewise.
67895         * tests/test-strstr.c (main): Likewise.
67896         * tests/test-strcasestr.c (main): Likewise.
67898 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67900         init.sh: change framework_failure_ to fail with status 99, not 1
67901         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
67902         automake's parallel-tests rule that this is an unexpected failure,
67903         even if the test is listed in XFAIL_TESTS.
67905 2010-06-11  Jim Meyering  <meyering@redhat.com>
67907         test-inttostr: avoid warnings about 4-6KB literal strings
67908         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
67909         Include "macros.h", for its definition of ASSERT.
67910         (CK): s/assert/ASSERT/
67911         * modules/inttostr-tests (Files): Add macros.h.
67913         init.sh: don't use $ME_ or skip_ before they are defined
67914         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
67915         their first uses.  Also hoist their companions: warn_, fail_,
67916         framework_failure_, $stderr_fileno.  Prompted by a patch from
67917         Stefano Lattarini.
67919         test-sys_socket: avoid set-but-not-used warnings from gcc
67920         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
67921         avoid warning about set-but-not-used variables.
67923         test-xvasprintf: avoid 'const' discard warnings
67924         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
67925         "const" when assigning from literal strings.
67926         (test_xasprintf): Add "void" in function argument list to placate
67927         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
67929         tests: avoid compilation warnings in argmatch and exclude tests...
67930         in packages that define ARGMATCH_DIE_DECL, like coreutils.
67931         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
67932         Since it always exits, declare with the "noreturn" attribute.
67933         * tests/test-argmatch.c: Likewise.
67935         tests: avoid 'const' discard warnings in mbsstr tests
67936         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
67937         * tests/test-mbsstr2.c (main): Likewise.
67939         test-verify: avoid warning from gcc's -Wmissing-declarations
67940         * tests/test-verify.c (function): Declare to be static.
67942         test-inttostr.c: include <string.h> for use of strcmp
67943         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
67945         test-linkat: avoid failed assertion on "other" architectures
67946         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
67947         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
67948         sparc: https://bugs.launchpad.net/bugs/591968
67950 2010-06-11  Jim Meyering  <meyering@redhat.com>
67952         printf.m4: avoid autoconf's "Expanded Before Required" warning
67953         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
67954         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
67955         autoconf warning.
67957 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
67959         Replacement header templates are now named with ".in", not "_".
67960         * doc/gnulib-intro.texi: Correct.
67962 2010-06-10  Jim Meyering  <meyering@redhat.com>
67964         inttostr-tests: depend on snprintf, not snprintf-posix
67965         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
67966         snprintf-posix, to avoid this aclocal failure:
67967           missing file gnulib-tests/vasnprintf.c
67968           configure.ac:45: error: expected source file, required through \
67969           AC_LIBSOURCES, not found
67971 2010-06-10  Jim Meyering  <meyering@redhat.com>
67973         inttostr: add a new function, inttostr, and tests
67974         The namesake function was not available.  The existence of the
67975         template file, inttostr.c makes its addition nontrivial.
67976         * lib/anytostr.c: Rename from inttostr.c.
67977         (anytostr): Rename from inttostr.
67978         * lib/inttostr.c: New file.
67979         * modules/inttostr (Files): Add anytostr.c.
67980         (Makefile.am): Set lib_SOURCES instead of ...
67981         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
67982         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
67983         * lib/offtostr.c: Likewise.
67984         * lib/uinttostr.c: Likewise.
67985         * lib/umaxtostr.c: Likewise.
67986         * modules/inttostr-tests: New file.
67987         * tests/test-inttostr.c: New file.  Test these functions.
67989 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
67990             Bruno Haible  <bruno@clisp.org>
67992         Add "Extending Gnulib" chapter to manual.
67993         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
67994         chapter.
67995         (Extending Gnulib): New chapter.
67996         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
67997         chapter.
67999 2010-06-09  Bruno Haible  <bruno@clisp.org>
68001         Avoid relocwrapper link errors due to gnulib replacement functions.
68002         * lib/areadlink.c: Use the system's malloc, realloc functions.
68003         (areadlink): Set errno to ENOMEM explicitly.
68004         * modules/areadlink (Depends-on): Remove malloc-posix.
68005         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68007 2010-06-09  Bruno Haible  <bruno@clisp.org>
68009         Avoid relocwrapper link errors due to gnulib replacement functions.
68010         * lib/canonicalize-lgpl.c: Use the system's malloc function.
68011         * lib/malloca.c: Likewise.
68012         * lib/relocatable.c: Likewise.
68013         * lib/progreloc.c: Use the system's malloc, sprintf functions.
68014         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
68015         * lib/setenv.c: Use the system's malloc, realloc functions.
68016         * lib/strerror.c: Use the system's sprintf function.
68017         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68019 2010-06-04  Bruno Haible  <bruno@clisp.org>
68021         Prefer documented low-level autoconf macro names.
68022         * m4/lib-link.m4: Use m4_translit instead of translit.
68023         * m4/environ.m4: Likewise.
68024         * m4/mathfunc.m4: Likewise.
68025         * m4/onceonly.m4: Likewise.
68026         * m4/stdint.m4: Likewise.
68027         Suggested by Eric Blake.
68029 2010-06-04  Martin Lambers  <marlam@marlam.de>
68030             Bruno Haible  <bruno@clisp.org>
68032         havelib: Allow library names with '+' characters.
68033         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68034         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
68036 2010-06-09  Bruno Haible  <bruno@clisp.org>
68038         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
68039         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
68040         realloc failed.
68042 2010-06-08  Peter Simons  <simons@cryp.to>
68044         maint.mk: make the news-check rule more configurable
68045         * top/maint.mk (news-check-lines-spec): New variable.
68046         (news-check): Use "sed -n 1,10p" in place of "head".
68048 2010-06-07  Jim Meyering  <meyering@redhat.com>
68050         do-release-commit-and-tag: fix typo in --help
68051         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
68053         regex: avoid new dead-code warning with gcc-4.6.0
68054         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
68055         if-block containing a while-loop.  It's been unused for at least
68056         5 years.
68058 2010-06-05  Bruno Haible  <bruno@clisp.org>
68060         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
68061         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
68063 2010-06-04  Bruno Haible  <bruno@clisp.org>
68065         Update to GNU gettext 0.18.1.
68066         * modules/gettext (configure.ac): Require gettext infrastructure from
68067         version 0.18.1.
68069 2010-06-03  Bruno Haible  <bruno@clisp.org>
68071         Don't use AC_LIBOBJ with file names in subdirectories.
68072         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
68073         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
68074         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
68075         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
68076         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
68077         gl_LIBUNISTRING_LIBSOURCE.
68078         (Makefile.am): Augment lib_SOURCES here, conditionally.
68079         * NEWS: Drop requirement for Automake option 'subdir-objects'.
68081 2010-06-03  Bruno Haible  <bruno@clisp.org>
68083         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
68084         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
68085         expansion does not end with a newline.
68086         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
68087         unnecessary newline.
68089 2010-06-03  Bruno Haible  <bruno@clisp.org>
68091         Reduce dependencies.
68092         * tests/test-quotearg.h: New file, extracted from
68093         tests/test-quotearg.c.
68094         * tests/test-quotearg-simple.c: New file, extracted from
68095         tests/test-quotearg.c.
68096         * tests/test-quotearg.c: Don't include <ctype.h>.
68097         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
68098         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
68099         use_quote_double_quotes, use_quotearg_colon): Moved to
68100         tests/test-quotearg.h.
68101         (results_g, flag_results, custom_quotes, custom_results): Moved
68102         to tests/test-quotearg-simple.c.
68103         (main): Moved the part that does not depend on gettext to
68104         tests/test-quotearg-simple.c. Return 77 if the test cannot be
68105         performed.
68106         * modules/quotearg-simple: New file.
68107         * modules/quotearg-simple-tests: New file.
68108         * modules/quotearg (Depends-on): Add quotearg-simple.
68109         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
68110         (Files): Add tests/test-quotearg.h.
68111         Reported by Paolo Bonzini.
68113 2010-06-03  Bruno Haible  <bruno@clisp.org>
68115         Reduce dependencies.
68116         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
68118 2010-06-03  Bruno Haible  <bruno@clisp.org>
68120         time: Undefine more broken macros.
68121         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
68122         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
68123         Reported by Eric Blake.
68125 2010-06-03  Bruno Haible  <bruno@clisp.org>
68127         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
68128         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
68129         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
68130         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
68131         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
68132         Reported by Ludovic Courtès <ludo@gnu.org>.
68134 2010-06-02  Eric Blake  <eblake@redhat.com>
68136         time: work with mingw + pthreads-win32 library
68137         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
68138         if timespec is defined only in pthread.h.
68139         * modules/time (Makefile.am): Substitute it.
68140         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
68141         <pthread.h>, when needed.
68142         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
68143         from the library.
68145 2010-05-31  Bruno Haible  <bruno@clisp.org>
68147         Avoid expanding two macros in the wrong order.
68148         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
68149         gl_LIBUNISTRING if it is defined.
68150         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
68151         autoconf >= 2.64.
68152         Reported by Ludovic Courtès <ludo@gnu.org>.
68154 2010-05-27  Jim Meyering  <meyering@redhat.com>
68156         maint.mk: also prohibit "#undef" of always-defined symbols
68157         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
68158         Allow more than one space before the symbol name.
68159         (sc_prohibit_always-defined_macros): Use grep's -E, now that
68160         the regexp uses alternation.
68162 2010-05-26  Eric Blake  <eblake@redhat.com>
68164         maint.mk: avoid echo -e
68165         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
68166         Convert all uses of echo -* to printf.
68167         Reported by Matthias Bolte.
68169 2010-05-25  Bruno Haible  <bruno@clisp.org>
68171         Update to GNU gettext 0.18, part 2.
68172         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
68173         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
68175 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68177         Add missing include in test-pwrite.c.
68178         * tests/test-pwrite.c: Include string.h, for strcmp.
68180 2010-05-24  Bruno Haible  <bruno@clisp.org>
68182         * NEWS: Mention requirement for Automake option 'subdir-objects'.
68184 2010-05-24  Bruno Haible  <bruno@clisp.org>
68186         Don't use conversion with transliteration in u{8,16,32}_strcoll.
68187         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
68188         iconveh_error argument.
68189         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
68190         U_STRCONV_TO_LOCALE.
68191         * lib/unistr/u16-strcoll.c: Likewise.
68192         * lib/unistr/u32-strcoll.c: Likewise.
68193         * modules/unistr/u8-strcoll (Depends-on): Add
68194         uniconv/u8-strconv-to-enc, localcharset. Remove
68195         uniconv/u8-strconv-to-locale.
68196         (configure.ac): Bump version number.
68197         * modules/unistr/u16-strcoll (Depends-on): Add
68198         uniconv/u16-strconv-to-enc, localcharset. Remove
68199         uniconv/u16-strconv-to-locale.
68200         (configure.ac): Bump version number.
68201         * modules/unistr/u32-strcoll (Depends-on): Add
68202         uniconv/u32-strconv-to-enc, localcharset. Remove
68203         uniconv/u32-strconv-to-locale.
68204         (configure.ac): Bump version number.
68206 2010-05-24  Bruno Haible  <bruno@clisp.org>
68208         Avoid a test failure on NetBSD 5.0.
68209         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
68210         an iconv() bug.
68212 2010-05-24  Bruno Haible  <bruno@clisp.org>
68214         Adjust #include directive style.
68215         * modules/regex (Includes): Recommend to write <regex.h>.
68217 2010-05-24  Bruno Haible  <bruno@clisp.org>
68219         regex: Don't require alloca.
68220         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
68221         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
68222         only inside if (0).
68224 2010-05-23  Jim Meyering  <meyering@redhat.com>
68226         test-renameat.c: include <sys/stat.h>
68227         * tests/test-renameat.c: Include <sys/stat.h>; required for
68228         definition of S_IS* macros.
68230 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
68232         Update maintainer documentation for 'relocatable-prog' module.
68233         * doc/relocatable-maint.texi: Update.
68234         Comments by Bruno Haible.
68236 2010-05-23  Bruno Haible  <bruno@clisp.org>
68238         git-merge-changelog: Enable --split-merged-entry by default.
68239         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
68240         (usage): Don't mention this option any more.
68241         Reported by Ralf Wildenhues.
68243 2010-05-23  Jim Meyering  <meyering@redhat.com>
68245         test-pwrite: do not leave behind a test file named "out"
68246         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
68247         The trivial-looking use of init.sh is really necessary.
68248         It ensures that the temporary file, "out", is created in
68249         a temporary directory, and removed upon termination.
68250         * tests/test-pwrite.sh: Re-add file.
68251         * modules/pwrite-tests: Reference it.
68253 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68255         Fix output redirection buglet in init.sh.
68256         * tests/init.sh: Fix redirection of stderr.
68258 2010-05-20  Simon Josefsson  <simon@josefsson.org>
68260         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
68262 2010-05-17  Simon Josefsson  <simon@josefsson.org>
68264         * modules/valgrind-tests: New file.
68265         * m4/valgrind-tests.m4: New file.
68266         * doc/valgrind-tests.texi: New file.
68267         * doc/gnulib.texi (Running self-tests under valgrind): New
68268         section.
68270 2010-05-19  Bruno Haible  <bruno@clisp.org>
68272         Clean up dead code in recent commit.
68273         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
68274         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
68275         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
68276         Suggested by Paolo Bonzini.
68278 2010-05-19  Bruno Haible  <bruno@clisp.org>
68280         Avoid valgrind error reports from libunistring.
68281         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
68282         * modules/libunistring (Files): Add it.
68283         * modules/libunistring-optional (Files): Likewise.
68285 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
68286             Bruno Haible  <bruno@clisp.org>
68288         New module 'libunistring-optional'.
68289         * modules/libunistring-optional: New file.
68290         * m4/libunistring-base.m4: New file.
68291         * m4/libunistring-optional.m4: New file.
68292         * lib/unicase.in.h: Renamed from lib/unicase.h.
68293         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
68294         * lib/unictype.in.h: Renamed from lib/unictype.h.
68295         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
68296         * lib/uniname.in.h: Renamed from lib/uniname.h.
68297         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
68298         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
68299         * lib/unistr.in.h: Renamed from lib/unistr.h.
68300         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
68301         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
68302         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
68303         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
68304         gl_LIBUNISTRING. If the library was found, determine the installed
68305         version and set LIBUNISTRING_VERSION.
68306         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
68307         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
68308         handle a configuration option --with-included-libunistring.
68309         * modules/libunistring (Files): Add m4/absolute-header.m4.
68310         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
68311         Add m4/libunistring-base.m4.
68312         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68313         (Makefile.am): Build unicase.h from unicase.in.h.
68314         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
68315         Add m4/libunistring-base.m4.
68316         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68317         (Makefile.am): Build uniconv.h from uniconv.in.h.
68318         * modules/unictype/base (Files): Use unictype.in.h instead of
68319         unictype.h. Add m4/libunistring-base.m4.
68320         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68321         (Makefile.am): Build unictype.h from unictype.in.h.
68322         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
68323         Add m4/libunistring-base.m4.
68324         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68325         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
68326         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
68327         Add m4/libunistring-base.m4.
68328         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68329         (Makefile.am): Build uniname.h from uniname.in.h.
68330         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
68331         Add m4/libunistring-base.m4.
68332         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68333         (Makefile.am): Build uninorm.h from uninorm.in.h.
68334         * modules/unistdio/base (Files): Use unistdio.in.h instead of
68335         unistdio.h. Add m4/libunistring-base.m4.
68336         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68337         (Makefile.am): Build unistdio.h from unistdio.in.h.
68338         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
68339         Add m4/libunistring-base.m4.
68340         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68341         (Makefile.am): Build unistr.h from unistr.in.h.
68342         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
68343         Add m4/libunistring-base.m4.
68344         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68345         (Makefile.am): Build unitypes.h from unitypes.in.h.
68346         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
68347         Add m4/libunistring-base.m4.
68348         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68349         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
68350         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
68351         uniwidth.h. Add m4/libunistring-base.m4.
68352         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68353         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
68354         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
68355         instead of augmenting lib_SOURCES.
68356         * modules/unicase/empty-suffix-context: Likewise.
68357         * modules/unicase/locale-language: Likewise.
68358         * modules/unicase/tolower: Likewise.
68359         * modules/unicase/totitle: Likewise.
68360         * modules/unicase/toupper: Likewise.
68361         * modules/unicase/u8-casecmp: Likewise.
68362         * modules/unicase/u8-casecoll: Likewise.
68363         * modules/unicase/u8-casefold: Likewise.
68364         * modules/unicase/u8-casexfrm: Likewise.
68365         * modules/unicase/u8-ct-casefold: Likewise.
68366         * modules/unicase/u8-ct-tolower: Likewise.
68367         * modules/unicase/u8-ct-totitle: Likewise.
68368         * modules/unicase/u8-ct-toupper: Likewise.
68369         * modules/unicase/u8-is-cased: Likewise.
68370         * modules/unicase/u8-is-casefolded: Likewise.
68371         * modules/unicase/u8-is-lowercase: Likewise.
68372         * modules/unicase/u8-is-titlecase: Likewise.
68373         * modules/unicase/u8-is-uppercase: Likewise.
68374         * modules/unicase/u8-prefix-context: Likewise.
68375         * modules/unicase/u8-suffix-context: Likewise.
68376         * modules/unicase/u8-tolower: Likewise.
68377         * modules/unicase/u8-totitle: Likewise.
68378         * modules/unicase/u8-toupper: Likewise.
68379         * modules/unicase/u16-casecmp: Likewise.
68380         * modules/unicase/u16-casecoll: Likewise.
68381         * modules/unicase/u16-casefold: Likewise.
68382         * modules/unicase/u16-casexfrm: Likewise.
68383         * modules/unicase/u16-ct-casefold: Likewise.
68384         * modules/unicase/u16-ct-tolower: Likewise.
68385         * modules/unicase/u16-ct-totitle: Likewise.
68386         * modules/unicase/u16-ct-toupper: Likewise.
68387         * modules/unicase/u16-is-cased: Likewise.
68388         * modules/unicase/u16-is-casefolded: Likewise.
68389         * modules/unicase/u16-is-lowercase: Likewise.
68390         * modules/unicase/u16-is-titlecase: Likewise.
68391         * modules/unicase/u16-is-uppercase: Likewise.
68392         * modules/unicase/u16-prefix-context: Likewise.
68393         * modules/unicase/u16-suffix-context: Likewise.
68394         * modules/unicase/u16-tolower: Likewise.
68395         * modules/unicase/u16-totitle: Likewise.
68396         * modules/unicase/u16-toupper: Likewise.
68397         * modules/unicase/u32-casecmp: Likewise.
68398         * modules/unicase/u32-casecoll: Likewise.
68399         * modules/unicase/u32-casefold: Likewise.
68400         * modules/unicase/u32-casexfrm: Likewise.
68401         * modules/unicase/u32-ct-casefold: Likewise.
68402         * modules/unicase/u32-ct-tolower: Likewise.
68403         * modules/unicase/u32-ct-totitle: Likewise.
68404         * modules/unicase/u32-ct-toupper: Likewise.
68405         * modules/unicase/u32-is-cased: Likewise.
68406         * modules/unicase/u32-is-casefolded: Likewise.
68407         * modules/unicase/u32-is-lowercase: Likewise.
68408         * modules/unicase/u32-is-titlecase: Likewise.
68409         * modules/unicase/u32-is-uppercase: Likewise.
68410         * modules/unicase/u32-prefix-context: Likewise.
68411         * modules/unicase/u32-suffix-context: Likewise.
68412         * modules/unicase/u32-tolower: Likewise.
68413         * modules/unicase/u32-totitle: Likewise.
68414         * modules/unicase/u32-toupper: Likewise.
68415         * modules/unicase/ulc-casecmp: Likewise.
68416         * modules/unicase/ulc-casecoll: Likewise.
68417         * modules/unicase/ulc-casexfrm: Likewise.
68418         * modules/uniconv/u8-conv-from-enc: Likewise.
68419         * modules/uniconv/u8-conv-to-enc: Likewise.
68420         * modules/uniconv/u8-strconv-from-enc: Likewise.
68421         * modules/uniconv/u8-strconv-from-locale: Likewise.
68422         * modules/uniconv/u8-strconv-to-enc: Likewise.
68423         * modules/uniconv/u8-strconv-to-locale: Likewise.
68424         * modules/uniconv/u16-conv-from-enc: Likewise.
68425         * modules/uniconv/u16-conv-to-enc: Likewise.
68426         * modules/uniconv/u16-strconv-from-enc: Likewise.
68427         * modules/uniconv/u16-strconv-from-locale: Likewise.
68428         * modules/uniconv/u16-strconv-to-enc: Likewise.
68429         * modules/uniconv/u16-strconv-to-locale: Likewise.
68430         * modules/uniconv/u32-conv-from-enc: Likewise.
68431         * modules/uniconv/u32-conv-to-enc: Likewise.
68432         * modules/uniconv/u32-strconv-from-enc: Likewise.
68433         * modules/uniconv/u32-strconv-from-locale: Likewise.
68434         * modules/uniconv/u32-strconv-to-enc: Likewise.
68435         * modules/uniconv/u32-strconv-to-locale: Likewise.
68436         * modules/unictype/bidicategory-byname: Likewise.
68437         * modules/unictype/bidicategory-name: Likewise.
68438         * modules/unictype/bidicategory-of: Likewise.
68439         * modules/unictype/bidicategory-test: Likewise.
68440         * modules/unictype/block-list: Likewise.
68441         * modules/unictype/block-test: Likewise.
68442         * modules/unictype/category-C: Likewise.
68443         * modules/unictype/category-Cc: Likewise.
68444         * modules/unictype/category-Cf: Likewise.
68445         * modules/unictype/category-Cn: Likewise.
68446         * modules/unictype/category-Co: Likewise.
68447         * modules/unictype/category-Cs: Likewise.
68448         * modules/unictype/category-L: Likewise.
68449         * modules/unictype/category-Ll: Likewise.
68450         * modules/unictype/category-Lm: Likewise.
68451         * modules/unictype/category-Lo: Likewise.
68452         * modules/unictype/category-Lt: Likewise.
68453         * modules/unictype/category-Lu: Likewise.
68454         * modules/unictype/category-M: Likewise.
68455         * modules/unictype/category-Mc: Likewise.
68456         * modules/unictype/category-Me: Likewise.
68457         * modules/unictype/category-Mn: Likewise.
68458         * modules/unictype/category-N: Likewise.
68459         * modules/unictype/category-Nd: Likewise.
68460         * modules/unictype/category-Nl: Likewise.
68461         * modules/unictype/category-No: Likewise.
68462         * modules/unictype/category-P: Likewise.
68463         * modules/unictype/category-Pc: Likewise.
68464         * modules/unictype/category-Pd: Likewise.
68465         * modules/unictype/category-Pe: Likewise.
68466         * modules/unictype/category-Pf: Likewise.
68467         * modules/unictype/category-Pi: Likewise.
68468         * modules/unictype/category-Po: Likewise.
68469         * modules/unictype/category-Ps: Likewise.
68470         * modules/unictype/category-S: Likewise.
68471         * modules/unictype/category-Sc: Likewise.
68472         * modules/unictype/category-Sk: Likewise.
68473         * modules/unictype/category-Sm: Likewise.
68474         * modules/unictype/category-So: Likewise.
68475         * modules/unictype/category-Z: Likewise.
68476         * modules/unictype/category-Zl: Likewise.
68477         * modules/unictype/category-Zp: Likewise.
68478         * modules/unictype/category-Zs: Likewise.
68479         * modules/unictype/category-and: Likewise.
68480         * modules/unictype/category-and-not: Likewise.
68481         * modules/unictype/category-byname: Likewise.
68482         * modules/unictype/category-name: Likewise.
68483         * modules/unictype/category-none: Likewise.
68484         * modules/unictype/category-of: Likewise.
68485         * modules/unictype/category-or: Likewise.
68486         * modules/unictype/category-test: Likewise.
68487         * modules/unictype/combining-class: Likewise.
68488         * modules/unictype/ctype-alnum: Likewise.
68489         * modules/unictype/ctype-alpha: Likewise.
68490         * modules/unictype/ctype-blank: Likewise.
68491         * modules/unictype/ctype-cntrl: Likewise.
68492         * modules/unictype/ctype-digit: Likewise.
68493         * modules/unictype/ctype-graph: Likewise.
68494         * modules/unictype/ctype-lower: Likewise.
68495         * modules/unictype/ctype-print: Likewise.
68496         * modules/unictype/ctype-punct: Likewise.
68497         * modules/unictype/ctype-space: Likewise.
68498         * modules/unictype/ctype-upper: Likewise.
68499         * modules/unictype/ctype-xdigit: Likewise.
68500         * modules/unictype/decimal-digit: Likewise.
68501         * modules/unictype/digit: Likewise.
68502         * modules/unictype/mirror: Likewise.
68503         * modules/unictype/numeric: Likewise.
68504         * modules/unictype/property-alphabetic: Likewise.
68505         * modules/unictype/property-ascii-hex-digit: Likewise.
68506         * modules/unictype/property-bidi-arabic-digit: Likewise.
68507         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
68508         * modules/unictype/property-bidi-block-separator: Likewise.
68509         * modules/unictype/property-bidi-boundary-neutral: Likewise.
68510         * modules/unictype/property-bidi-common-separator: Likewise.
68511         * modules/unictype/property-bidi-control: Likewise.
68512         * modules/unictype/property-bidi-embedding-or-override: Likewise.
68513         * modules/unictype/property-bidi-eur-num-separator: Likewise.
68514         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
68515         * modules/unictype/property-bidi-european-digit: Likewise.
68516         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
68517         * modules/unictype/property-bidi-left-to-right: Likewise.
68518         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
68519         * modules/unictype/property-bidi-other-neutral: Likewise.
68520         * modules/unictype/property-bidi-pdf: Likewise.
68521         * modules/unictype/property-bidi-segment-separator: Likewise.
68522         * modules/unictype/property-bidi-whitespace: Likewise.
68523         * modules/unictype/property-byname: Likewise.
68524         * modules/unictype/property-combining: Likewise.
68525         * modules/unictype/property-composite: Likewise.
68526         * modules/unictype/property-currency-symbol: Likewise.
68527         * modules/unictype/property-dash: Likewise.
68528         * modules/unictype/property-decimal-digit: Likewise.
68529         * modules/unictype/property-default-ignorable-code-point: Likewise.
68530         * modules/unictype/property-deprecated: Likewise.
68531         * modules/unictype/property-diacritic: Likewise.
68532         * modules/unictype/property-extender: Likewise.
68533         * modules/unictype/property-format-control: Likewise.
68534         * modules/unictype/property-grapheme-base: Likewise.
68535         * modules/unictype/property-grapheme-extend: Likewise.
68536         * modules/unictype/property-grapheme-link: Likewise.
68537         * modules/unictype/property-hex-digit: Likewise.
68538         * modules/unictype/property-hyphen: Likewise.
68539         * modules/unictype/property-id-continue: Likewise.
68540         * modules/unictype/property-id-start: Likewise.
68541         * modules/unictype/property-ideographic: Likewise.
68542         * modules/unictype/property-ids-binary-operator: Likewise.
68543         * modules/unictype/property-ids-trinary-operator: Likewise.
68544         * modules/unictype/property-ignorable-control: Likewise.
68545         * modules/unictype/property-iso-control: Likewise.
68546         * modules/unictype/property-join-control: Likewise.
68547         * modules/unictype/property-left-of-pair: Likewise.
68548         * modules/unictype/property-line-separator: Likewise.
68549         * modules/unictype/property-logical-order-exception: Likewise.
68550         * modules/unictype/property-lowercase: Likewise.
68551         * modules/unictype/property-math: Likewise.
68552         * modules/unictype/property-non-break: Likewise.
68553         * modules/unictype/property-not-a-character: Likewise.
68554         * modules/unictype/property-numeric: Likewise.
68555         * modules/unictype/property-other-alphabetic: Likewise.
68556         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
68557         * modules/unictype/property-other-grapheme-extend: Likewise.
68558         * modules/unictype/property-other-id-continue: Likewise.
68559         * modules/unictype/property-other-id-start: Likewise.
68560         * modules/unictype/property-other-lowercase: Likewise.
68561         * modules/unictype/property-other-math: Likewise.
68562         * modules/unictype/property-other-uppercase: Likewise.
68563         * modules/unictype/property-paired-punctuation: Likewise.
68564         * modules/unictype/property-paragraph-separator: Likewise.
68565         * modules/unictype/property-pattern-syntax: Likewise.
68566         * modules/unictype/property-pattern-white-space: Likewise.
68567         * modules/unictype/property-private-use: Likewise.
68568         * modules/unictype/property-punctuation: Likewise.
68569         * modules/unictype/property-quotation-mark: Likewise.
68570         * modules/unictype/property-radical: Likewise.
68571         * modules/unictype/property-sentence-terminal: Likewise.
68572         * modules/unictype/property-soft-dotted: Likewise.
68573         * modules/unictype/property-space: Likewise.
68574         * modules/unictype/property-terminal-punctuation: Likewise.
68575         * modules/unictype/property-test: Likewise.
68576         * modules/unictype/property-titlecase: Likewise.
68577         * modules/unictype/property-unassigned-code-value: Likewise.
68578         * modules/unictype/property-unified-ideograph: Likewise.
68579         * modules/unictype/property-uppercase: Likewise.
68580         * modules/unictype/property-variation-selector: Likewise.
68581         * modules/unictype/property-white-space: Likewise.
68582         * modules/unictype/property-xid-continue: Likewise.
68583         * modules/unictype/property-xid-start: Likewise.
68584         * modules/unictype/property-zero-width: Likewise.
68585         * modules/unictype/scripts: Likewise.
68586         * modules/unictype/syntax-c-ident: Likewise.
68587         * modules/unictype/syntax-c-whitespace: Likewise.
68588         * modules/unictype/syntax-java-ident: Likewise.
68589         * modules/unictype/syntax-java-whitespace: Likewise.
68590         * modules/unilbrk/u8-possible-linebreaks: Likewise.
68591         * modules/unilbrk/u8-width-linebreaks: Likewise.
68592         * modules/unilbrk/u16-possible-linebreaks: Likewise.
68593         * modules/unilbrk/u16-width-linebreaks: Likewise.
68594         * modules/unilbrk/u32-possible-linebreaks: Likewise.
68595         * modules/unilbrk/u32-width-linebreaks: Likewise.
68596         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
68597         * modules/unilbrk/ulc-width-linebreaks: Likewise.
68598         * modules/uniname/uniname: Likewise.
68599         * modules/uninorm/canonical-decomposition: Likewise.
68600         * modules/uninorm/composition: Likewise.
68601         * modules/uninorm/decomposing-form: Likewise.
68602         * modules/uninorm/decomposition: Likewise.
68603         * modules/uninorm/filter: Likewise.
68604         * modules/uninorm/nfc: Likewise.
68605         * modules/uninorm/nfd: Likewise.
68606         * modules/uninorm/nfkc: Likewise.
68607         * modules/uninorm/nfkd: Likewise.
68608         * modules/uninorm/u8-normalize: Likewise.
68609         * modules/uninorm/u8-normcmp: Likewise.
68610         * modules/uninorm/u8-normcoll: Likewise.
68611         * modules/uninorm/u8-normxfrm: Likewise.
68612         * modules/uninorm/u16-normalize: Likewise.
68613         * modules/uninorm/u16-normcmp: Likewise.
68614         * modules/uninorm/u16-normcoll: Likewise.
68615         * modules/uninorm/u16-normxfrm: Likewise.
68616         * modules/uninorm/u32-normalize: Likewise.
68617         * modules/uninorm/u32-normcmp: Likewise.
68618         * modules/uninorm/u32-normcoll: Likewise.
68619         * modules/uninorm/u32-normxfrm: Likewise.
68620         * modules/unistdio/u8-asnprintf: Likewise.
68621         * modules/unistdio/u8-asprintf: Likewise.
68622         * modules/unistdio/u8-snprintf: Likewise.
68623         * modules/unistdio/u8-sprintf: Likewise.
68624         * modules/unistdio/u8-u8-asnprintf: Likewise.
68625         * modules/unistdio/u8-u8-asprintf: Likewise.
68626         * modules/unistdio/u8-u8-snprintf: Likewise.
68627         * modules/unistdio/u8-u8-sprintf: Likewise.
68628         * modules/unistdio/u8-u8-vasnprintf: Likewise.
68629         * modules/unistdio/u8-u8-vasprintf: Likewise.
68630         * modules/unistdio/u8-u8-vsnprintf: Likewise.
68631         * modules/unistdio/u8-u8-vsprintf: Likewise.
68632         * modules/unistdio/u8-vasnprintf: Likewise.
68633         * modules/unistdio/u8-vasprintf: Likewise.
68634         * modules/unistdio/u8-vsnprintf: Likewise.
68635         * modules/unistdio/u8-vsprintf: Likewise.
68636         * modules/unistdio/u16-asnprintf: Likewise.
68637         * modules/unistdio/u16-asprintf: Likewise.
68638         * modules/unistdio/u16-snprintf: Likewise.
68639         * modules/unistdio/u16-sprintf: Likewise.
68640         * modules/unistdio/u16-u16-asnprintf: Likewise.
68641         * modules/unistdio/u16-u16-asprintf: Likewise.
68642         * modules/unistdio/u16-u16-snprintf: Likewise.
68643         * modules/unistdio/u16-u16-sprintf: Likewise.
68644         * modules/unistdio/u16-u16-vasnprintf: Likewise.
68645         * modules/unistdio/u16-u16-vasprintf: Likewise.
68646         * modules/unistdio/u16-u16-vsnprintf: Likewise.
68647         * modules/unistdio/u16-u16-vsprintf: Likewise.
68648         * modules/unistdio/u16-vasnprintf: Likewise.
68649         * modules/unistdio/u16-vasprintf: Likewise.
68650         * modules/unistdio/u16-vsnprintf: Likewise.
68651         * modules/unistdio/u16-vsprintf: Likewise.
68652         * modules/unistdio/u32-asnprintf: Likewise.
68653         * modules/unistdio/u32-asprintf: Likewise.
68654         * modules/unistdio/u32-snprintf: Likewise.
68655         * modules/unistdio/u32-sprintf: Likewise.
68656         * modules/unistdio/u32-u32-asnprintf: Likewise.
68657         * modules/unistdio/u32-u32-asprintf: Likewise.
68658         * modules/unistdio/u32-u32-snprintf: Likewise.
68659         * modules/unistdio/u32-u32-sprintf: Likewise.
68660         * modules/unistdio/u32-u32-vasnprintf: Likewise.
68661         * modules/unistdio/u32-u32-vasprintf: Likewise.
68662         * modules/unistdio/u32-u32-vsnprintf: Likewise.
68663         * modules/unistdio/u32-u32-vsprintf: Likewise.
68664         * modules/unistdio/u32-vasnprintf: Likewise.
68665         * modules/unistdio/u32-vasprintf: Likewise.
68666         * modules/unistdio/u32-vsnprintf: Likewise.
68667         * modules/unistdio/u32-vsprintf: Likewise.
68668         * modules/unistdio/ulc-asnprintf: Likewise.
68669         * modules/unistdio/ulc-asprintf: Likewise.
68670         * modules/unistdio/ulc-fprintf: Likewise.
68671         * modules/unistdio/ulc-snprintf: Likewise.
68672         * modules/unistdio/ulc-sprintf: Likewise.
68673         * modules/unistdio/ulc-vasnprintf: Likewise.
68674         * modules/unistdio/ulc-vasprintf: Likewise.
68675         * modules/unistdio/ulc-vfprintf: Likewise.
68676         * modules/unistdio/ulc-vsnprintf: Likewise.
68677         * modules/unistdio/ulc-vsprintf: Likewise.
68678         * modules/unistr/u8-check: Likewise.
68679         * modules/unistr/u8-chr: Likewise.
68680         * modules/unistr/u8-cmp: Likewise.
68681         * modules/unistr/u8-cmp2: Likewise.
68682         * modules/unistr/u8-cpy: Likewise.
68683         * modules/unistr/u8-cpy-alloc: Likewise.
68684         * modules/unistr/u8-endswith: Likewise.
68685         * modules/unistr/u8-mblen: Likewise.
68686         * modules/unistr/u8-mbsnlen: Likewise.
68687         * modules/unistr/u8-mbtouc: Likewise.
68688         * modules/unistr/u8-mbtouc-unsafe: Likewise.
68689         * modules/unistr/u8-mbtoucr: Likewise.
68690         * modules/unistr/u8-move: Likewise.
68691         * modules/unistr/u8-next: Likewise.
68692         * modules/unistr/u8-prev: Likewise.
68693         * modules/unistr/u8-set: Likewise.
68694         * modules/unistr/u8-startswith: Likewise.
68695         * modules/unistr/u8-stpcpy: Likewise.
68696         * modules/unistr/u8-stpncpy: Likewise.
68697         * modules/unistr/u8-strcat: Likewise.
68698         * modules/unistr/u8-strchr: Likewise.
68699         * modules/unistr/u8-strcmp: Likewise.
68700         * modules/unistr/u8-strcoll: Likewise.
68701         * modules/unistr/u8-strcpy: Likewise.
68702         * modules/unistr/u8-strcspn: Likewise.
68703         * modules/unistr/u8-strdup: Likewise.
68704         * modules/unistr/u8-strlen: Likewise.
68705         * modules/unistr/u8-strmblen: Likewise.
68706         * modules/unistr/u8-strmbtouc: Likewise.
68707         * modules/unistr/u8-strncat: Likewise.
68708         * modules/unistr/u8-strncmp: Likewise.
68709         * modules/unistr/u8-strncpy: Likewise.
68710         * modules/unistr/u8-strnlen: Likewise.
68711         * modules/unistr/u8-strpbrk: Likewise.
68712         * modules/unistr/u8-strrchr: Likewise.
68713         * modules/unistr/u8-strspn: Likewise.
68714         * modules/unistr/u8-strstr: Likewise.
68715         * modules/unistr/u8-strtok: Likewise.
68716         * modules/unistr/u8-to-u16: Likewise.
68717         * modules/unistr/u8-to-u32: Likewise.
68718         * modules/unistr/u8-uctomb: Likewise.
68719         * modules/unistr/u16-check: Likewise.
68720         * modules/unistr/u16-chr: Likewise.
68721         * modules/unistr/u16-cmp: Likewise.
68722         * modules/unistr/u16-cmp2: Likewise.
68723         * modules/unistr/u16-cpy: Likewise.
68724         * modules/unistr/u16-cpy-alloc: Likewise.
68725         * modules/unistr/u16-endswith: Likewise.
68726         * modules/unistr/u16-mblen: Likewise.
68727         * modules/unistr/u16-mbsnlen: Likewise.
68728         * modules/unistr/u16-mbtouc: Likewise.
68729         * modules/unistr/u16-mbtouc-unsafe: Likewise.
68730         * modules/unistr/u16-mbtoucr: Likewise.
68731         * modules/unistr/u16-move: Likewise.
68732         * modules/unistr/u16-next: Likewise.
68733         * modules/unistr/u16-prev: Likewise.
68734         * modules/unistr/u16-set: Likewise.
68735         * modules/unistr/u16-startswith: Likewise.
68736         * modules/unistr/u16-stpcpy: Likewise.
68737         * modules/unistr/u16-stpncpy: Likewise.
68738         * modules/unistr/u16-strcat: Likewise.
68739         * modules/unistr/u16-strchr: Likewise.
68740         * modules/unistr/u16-strcmp: Likewise.
68741         * modules/unistr/u16-strcoll: Likewise.
68742         * modules/unistr/u16-strcpy: Likewise.
68743         * modules/unistr/u16-strcspn: Likewise.
68744         * modules/unistr/u16-strdup: Likewise.
68745         * modules/unistr/u16-strlen: Likewise.
68746         * modules/unistr/u16-strmblen: Likewise.
68747         * modules/unistr/u16-strmbtouc: Likewise.
68748         * modules/unistr/u16-strncat: Likewise.
68749         * modules/unistr/u16-strncmp: Likewise.
68750         * modules/unistr/u16-strncpy: Likewise.
68751         * modules/unistr/u16-strnlen: Likewise.
68752         * modules/unistr/u16-strpbrk: Likewise.
68753         * modules/unistr/u16-strrchr: Likewise.
68754         * modules/unistr/u16-strspn: Likewise.
68755         * modules/unistr/u16-strstr: Likewise.
68756         * modules/unistr/u16-strtok: Likewise.
68757         * modules/unistr/u16-to-u32: Likewise.
68758         * modules/unistr/u16-to-u8: Likewise.
68759         * modules/unistr/u16-uctomb: Likewise.
68760         * modules/unistr/u32-check: Likewise.
68761         * modules/unistr/u32-chr: Likewise.
68762         * modules/unistr/u32-cmp: Likewise.
68763         * modules/unistr/u32-cmp2: Likewise.
68764         * modules/unistr/u32-cpy: Likewise.
68765         * modules/unistr/u32-cpy-alloc: Likewise.
68766         * modules/unistr/u32-endswith: Likewise.
68767         * modules/unistr/u32-mblen: Likewise.
68768         * modules/unistr/u32-mbsnlen: Likewise.
68769         * modules/unistr/u32-mbtouc: Likewise.
68770         * modules/unistr/u32-mbtouc-unsafe: Likewise.
68771         * modules/unistr/u32-mbtoucr: Likewise.
68772         * modules/unistr/u32-move: Likewise.
68773         * modules/unistr/u32-next: Likewise.
68774         * modules/unistr/u32-prev: Likewise.
68775         * modules/unistr/u32-set: Likewise.
68776         * modules/unistr/u32-startswith: Likewise.
68777         * modules/unistr/u32-stpcpy: Likewise.
68778         * modules/unistr/u32-stpncpy: Likewise.
68779         * modules/unistr/u32-strcat: Likewise.
68780         * modules/unistr/u32-strchr: Likewise.
68781         * modules/unistr/u32-strcmp: Likewise.
68782         * modules/unistr/u32-strcoll: Likewise.
68783         * modules/unistr/u32-strcpy: Likewise.
68784         * modules/unistr/u32-strcspn: Likewise.
68785         * modules/unistr/u32-strdup: Likewise.
68786         * modules/unistr/u32-strlen: Likewise.
68787         * modules/unistr/u32-strmblen: Likewise.
68788         * modules/unistr/u32-strmbtouc: Likewise.
68789         * modules/unistr/u32-strncat: Likewise.
68790         * modules/unistr/u32-strncmp: Likewise.
68791         * modules/unistr/u32-strncpy: Likewise.
68792         * modules/unistr/u32-strnlen: Likewise.
68793         * modules/unistr/u32-strpbrk: Likewise.
68794         * modules/unistr/u32-strrchr: Likewise.
68795         * modules/unistr/u32-strspn: Likewise.
68796         * modules/unistr/u32-strstr: Likewise.
68797         * modules/unistr/u32-strtok: Likewise.
68798         * modules/unistr/u32-to-u16: Likewise.
68799         * modules/unistr/u32-to-u8: Likewise.
68800         * modules/unistr/u32-uctomb: Likewise.
68801         * modules/uniwbrk/u8-wordbreaks: Likewise.
68802         * modules/uniwbrk/u16-wordbreaks: Likewise.
68803         * modules/uniwbrk/u32-wordbreaks: Likewise.
68804         * modules/uniwbrk/ulc-wordbreaks: Likewise.
68805         * modules/uniwbrk/wordbreak-property: Likewise.
68806         * modules/uniwidth/u8-strwidth: Likewise.
68807         * modules/uniwidth/u8-width: Likewise.
68808         * modules/uniwidth/u16-strwidth: Likewise.
68809         * modules/uniwidth/u16-width: Likewise.
68810         * modules/uniwidth/u32-strwidth: Likewise.
68811         * modules/uniwidth/u32-width: Likewise.
68812         * modules/uniwidth/width: Likewise.
68813         * modules/unicase/cased-tests (Makefile.am): Link all test programs
68814         with $(LIBUNISTRING).
68815         * modules/unicase/ignorable-tests: Likewise.
68816         * modules/unicase/locale-language-tests: Likewise.
68817         * modules/unicase/tolower-tests: Likewise.
68818         * modules/unicase/totitle-tests: Likewise.
68819         * modules/unicase/toupper-tests: Likewise.
68820         * modules/unicase/u8-casecmp-tests: Likewise.
68821         * modules/unicase/u8-casecoll-tests: Likewise.
68822         * modules/unicase/u8-casefold-tests: Likewise.
68823         * modules/unicase/u8-is-cased-tests: Likewise.
68824         * modules/unicase/u8-is-casefolded-tests: Likewise.
68825         * modules/unicase/u8-is-lowercase-tests: Likewise.
68826         * modules/unicase/u8-is-titlecase-tests: Likewise.
68827         * modules/unicase/u8-is-uppercase-tests: Likewise.
68828         * modules/unicase/u8-tolower-tests: Likewise.
68829         * modules/unicase/u8-totitle-tests: Likewise.
68830         * modules/unicase/u8-toupper-tests: Likewise.
68831         * modules/unicase/u16-casecmp-tests: Likewise.
68832         * modules/unicase/u16-casecoll-tests: Likewise.
68833         * modules/unicase/u16-casefold-tests: Likewise.
68834         * modules/unicase/u16-is-cased-tests: Likewise.
68835         * modules/unicase/u16-is-casefolded-tests: Likewise.
68836         * modules/unicase/u16-is-lowercase-tests: Likewise.
68837         * modules/unicase/u16-is-titlecase-tests: Likewise.
68838         * modules/unicase/u16-is-uppercase-tests: Likewise.
68839         * modules/unicase/u16-tolower-tests: Likewise.
68840         * modules/unicase/u16-totitle-tests: Likewise.
68841         * modules/unicase/u16-toupper-tests: Likewise.
68842         * modules/unicase/u32-casecmp-tests: Likewise.
68843         * modules/unicase/u32-casecoll-tests: Likewise.
68844         * modules/unicase/u32-casefold-tests: Likewise.
68845         * modules/unicase/u32-is-cased-tests: Likewise.
68846         * modules/unicase/u32-is-casefolded-tests: Likewise.
68847         * modules/unicase/u32-is-lowercase-tests: Likewise.
68848         * modules/unicase/u32-is-titlecase-tests: Likewise.
68849         * modules/unicase/u32-is-uppercase-tests: Likewise.
68850         * modules/unicase/u32-tolower-tests: Likewise.
68851         * modules/unicase/u32-totitle-tests: Likewise.
68852         * modules/unicase/u32-toupper-tests: Likewise.
68853         * modules/unicase/ulc-casecmp-tests: Likewise.
68854         * modules/unicase/ulc-casecoll-tests: Likewise.
68855         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
68856         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
68857         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
68858         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
68859         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
68860         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
68861         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
68862         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
68863         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
68864         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
68865         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
68866         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
68867         * modules/unictype/bidicategory-byname-tests: Likewise.
68868         * modules/unictype/bidicategory-name-tests: Likewise.
68869         * modules/unictype/bidicategory-of-tests: Likewise.
68870         * modules/unictype/bidicategory-test-tests: Likewise.
68871         * modules/unictype/block-list-tests: Likewise.
68872         * modules/unictype/block-of-tests: Likewise.
68873         * modules/unictype/block-test-tests: Likewise.
68874         * modules/unictype/category-C-tests: Likewise.
68875         * modules/unictype/category-Cc-tests: Likewise.
68876         * modules/unictype/category-Cf-tests: Likewise.
68877         * modules/unictype/category-Cn-tests: Likewise.
68878         * modules/unictype/category-Co-tests: Likewise.
68879         * modules/unictype/category-Cs-tests: Likewise.
68880         * modules/unictype/category-L-tests: Likewise.
68881         * modules/unictype/category-Ll-tests: Likewise.
68882         * modules/unictype/category-Lm-tests: Likewise.
68883         * modules/unictype/category-Lo-tests: Likewise.
68884         * modules/unictype/category-Lt-tests: Likewise.
68885         * modules/unictype/category-Lu-tests: Likewise.
68886         * modules/unictype/category-M-tests: Likewise.
68887         * modules/unictype/category-Mc-tests: Likewise.
68888         * modules/unictype/category-Me-tests: Likewise.
68889         * modules/unictype/category-Mn-tests: Likewise.
68890         * modules/unictype/category-N-tests: Likewise.
68891         * modules/unictype/category-Nd-tests: Likewise.
68892         * modules/unictype/category-Nl-tests: Likewise.
68893         * modules/unictype/category-No-tests: Likewise.
68894         * modules/unictype/category-P-tests: Likewise.
68895         * modules/unictype/category-Pc-tests: Likewise.
68896         * modules/unictype/category-Pd-tests: Likewise.
68897         * modules/unictype/category-Pe-tests: Likewise.
68898         * modules/unictype/category-Pf-tests: Likewise.
68899         * modules/unictype/category-Pi-tests: Likewise.
68900         * modules/unictype/category-Po-tests: Likewise.
68901         * modules/unictype/category-Ps-tests: Likewise.
68902         * modules/unictype/category-S-tests: Likewise.
68903         * modules/unictype/category-Sc-tests: Likewise.
68904         * modules/unictype/category-Sk-tests: Likewise.
68905         * modules/unictype/category-Sm-tests: Likewise.
68906         * modules/unictype/category-So-tests: Likewise.
68907         * modules/unictype/category-Z-tests: Likewise.
68908         * modules/unictype/category-Zl-tests: Likewise.
68909         * modules/unictype/category-Zp-tests: Likewise.
68910         * modules/unictype/category-Zs-tests: Likewise.
68911         * modules/unictype/category-and-not-tests: Likewise.
68912         * modules/unictype/category-and-tests: Likewise.
68913         * modules/unictype/category-byname-tests: Likewise.
68914         * modules/unictype/category-name-tests: Likewise.
68915         * modules/unictype/category-none-tests: Likewise.
68916         * modules/unictype/category-of-tests: Likewise.
68917         * modules/unictype/category-or-tests: Likewise.
68918         * modules/unictype/category-test-withtable-tests: Likewise.
68919         * modules/unictype/combining-class-tests: Likewise.
68920         * modules/unictype/ctype-alnum-tests: Likewise.
68921         * modules/unictype/ctype-alpha-tests: Likewise.
68922         * modules/unictype/ctype-blank-tests: Likewise.
68923         * modules/unictype/ctype-cntrl-tests: Likewise.
68924         * modules/unictype/ctype-digit-tests: Likewise.
68925         * modules/unictype/ctype-graph-tests: Likewise.
68926         * modules/unictype/ctype-lower-tests: Likewise.
68927         * modules/unictype/ctype-print-tests: Likewise.
68928         * modules/unictype/ctype-punct-tests: Likewise.
68929         * modules/unictype/ctype-space-tests: Likewise.
68930         * modules/unictype/ctype-upper-tests: Likewise.
68931         * modules/unictype/ctype-xdigit-tests: Likewise.
68932         * modules/unictype/decimal-digit-tests: Likewise.
68933         * modules/unictype/digit-tests: Likewise.
68934         * modules/unictype/mirror-tests: Likewise.
68935         * modules/unictype/numeric-tests: Likewise.
68936         * modules/unictype/property-alphabetic-tests: Likewise.
68937         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
68938         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
68939         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
68940         * modules/unictype/property-bidi-block-separator-tests: Likewise.
68941         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
68942         * modules/unictype/property-bidi-common-separator-tests: Likewise.
68943         * modules/unictype/property-bidi-control-tests: Likewise.
68944         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
68945         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
68946         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
68947         * modules/unictype/property-bidi-european-digit-tests: Likewise.
68948         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
68949         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
68950         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
68951         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
68952         * modules/unictype/property-bidi-pdf-tests: Likewise.
68953         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
68954         * modules/unictype/property-bidi-whitespace-tests: Likewise.
68955         * modules/unictype/property-byname-tests: Likewise.
68956         * modules/unictype/property-combining-tests: Likewise.
68957         * modules/unictype/property-composite-tests: Likewise.
68958         * modules/unictype/property-currency-symbol-tests: Likewise.
68959         * modules/unictype/property-dash-tests: Likewise.
68960         * modules/unictype/property-decimal-digit-tests: Likewise.
68961         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
68962         * modules/unictype/property-deprecated-tests: Likewise.
68963         * modules/unictype/property-diacritic-tests: Likewise.
68964         * modules/unictype/property-extender-tests: Likewise.
68965         * modules/unictype/property-format-control-tests: Likewise.
68966         * modules/unictype/property-grapheme-base-tests: Likewise.
68967         * modules/unictype/property-grapheme-extend-tests: Likewise.
68968         * modules/unictype/property-grapheme-link-tests: Likewise.
68969         * modules/unictype/property-hex-digit-tests: Likewise.
68970         * modules/unictype/property-hyphen-tests: Likewise.
68971         * modules/unictype/property-id-continue-tests: Likewise.
68972         * modules/unictype/property-id-start-tests: Likewise.
68973         * modules/unictype/property-ideographic-tests: Likewise.
68974         * modules/unictype/property-ids-binary-operator-tests: Likewise.
68975         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
68976         * modules/unictype/property-ignorable-control-tests: Likewise.
68977         * modules/unictype/property-iso-control-tests: Likewise.
68978         * modules/unictype/property-join-control-tests: Likewise.
68979         * modules/unictype/property-left-of-pair-tests: Likewise.
68980         * modules/unictype/property-line-separator-tests: Likewise.
68981         * modules/unictype/property-logical-order-exception-tests: Likewise.
68982         * modules/unictype/property-lowercase-tests: Likewise.
68983         * modules/unictype/property-math-tests: Likewise.
68984         * modules/unictype/property-non-break-tests: Likewise.
68985         * modules/unictype/property-not-a-character-tests: Likewise.
68986         * modules/unictype/property-numeric-tests: Likewise.
68987         * modules/unictype/property-other-alphabetic-tests: Likewise.
68988         * modules/unictype/property-other-default-ignorable-code-point-tests:
68989         Likewise.
68990         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
68991         * modules/unictype/property-other-id-continue-tests: Likewise.
68992         * modules/unictype/property-other-id-start-tests: Likewise.
68993         * modules/unictype/property-other-lowercase-tests: Likewise.
68994         * modules/unictype/property-other-math-tests: Likewise.
68995         * modules/unictype/property-other-uppercase-tests: Likewise.
68996         * modules/unictype/property-paired-punctuation-tests: Likewise.
68997         * modules/unictype/property-paragraph-separator-tests: Likewise.
68998         * modules/unictype/property-pattern-syntax-tests: Likewise.
68999         * modules/unictype/property-pattern-white-space-tests: Likewise.
69000         * modules/unictype/property-private-use-tests: Likewise.
69001         * modules/unictype/property-punctuation-tests: Likewise.
69002         * modules/unictype/property-quotation-mark-tests: Likewise.
69003         * modules/unictype/property-radical-tests: Likewise.
69004         * modules/unictype/property-sentence-terminal-tests: Likewise.
69005         * modules/unictype/property-soft-dotted-tests: Likewise.
69006         * modules/unictype/property-space-tests: Likewise.
69007         * modules/unictype/property-terminal-punctuation-tests: Likewise.
69008         * modules/unictype/property-test-tests: Likewise.
69009         * modules/unictype/property-titlecase-tests: Likewise.
69010         * modules/unictype/property-unassigned-code-value-tests: Likewise.
69011         * modules/unictype/property-unified-ideograph-tests: Likewise.
69012         * modules/unictype/property-uppercase-tests: Likewise.
69013         * modules/unictype/property-variation-selector-tests: Likewise.
69014         * modules/unictype/property-white-space-tests: Likewise.
69015         * modules/unictype/property-xid-continue-tests: Likewise.
69016         * modules/unictype/property-xid-start-tests: Likewise.
69017         * modules/unictype/property-zero-width-tests: Likewise.
69018         * modules/unictype/scripts-tests: Likewise.
69019         * modules/unictype/syntax-c-ident-tests: Likewise.
69020         * modules/unictype/syntax-c-whitespace-tests: Likewise.
69021         * modules/unictype/syntax-java-ident-tests: Likewise.
69022         * modules/unictype/syntax-java-whitespace-tests: Likewise.
69023         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
69024         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
69025         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
69026         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
69027         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
69028         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
69029         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
69030         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
69031         * modules/uniname/uniname-tests: Likewise.
69032         * modules/uninorm/canonical-decomposition-tests: Likewise.
69033         * modules/uninorm/compat-decomposition-tests: Likewise.
69034         * modules/uninorm/composition-tests: Likewise.
69035         * modules/uninorm/decomposing-form-tests: Likewise.
69036         * modules/uninorm/decomposition-tests: Likewise.
69037         * modules/uninorm/filter-tests: Likewise.
69038         * modules/uninorm/nfc-tests: Likewise.
69039         * modules/uninorm/nfd-tests: Likewise.
69040         * modules/uninorm/nfkc-tests: Likewise.
69041         * modules/uninorm/nfkd-tests: Likewise.
69042         * modules/uninorm/u8-normcmp-tests: Likewise.
69043         * modules/uninorm/u8-normcoll-tests: Likewise.
69044         * modules/uninorm/u16-normcmp-tests: Likewise.
69045         * modules/uninorm/u16-normcoll-tests: Likewise.
69046         * modules/uninorm/u32-normcmp-tests: Likewise.
69047         * modules/uninorm/u32-normcoll-tests: Likewise.
69048         * modules/unistdio/u8-asnprintf-tests: Likewise.
69049         * modules/unistdio/u8-vasnprintf-tests: Likewise.
69050         * modules/unistdio/u8-vasprintf-tests: Likewise.
69051         * modules/unistdio/u8-vsnprintf-tests: Likewise.
69052         * modules/unistdio/u8-vsprintf-tests: Likewise.
69053         * modules/unistdio/u16-asnprintf-tests: Likewise.
69054         * modules/unistdio/u16-vasnprintf-tests: Likewise.
69055         * modules/unistdio/u16-vasprintf-tests: Likewise.
69056         * modules/unistdio/u16-vsnprintf-tests: Likewise.
69057         * modules/unistdio/u16-vsprintf-tests: Likewise.
69058         * modules/unistdio/u32-asnprintf-tests: Likewise.
69059         * modules/unistdio/u32-vasnprintf-tests: Likewise.
69060         * modules/unistdio/u32-vasprintf-tests: Likewise.
69061         * modules/unistdio/u32-vsnprintf-tests: Likewise.
69062         * modules/unistdio/u32-vsprintf-tests: Likewise.
69063         * modules/unistdio/ulc-asnprintf-tests: Likewise.
69064         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
69065         * modules/unistdio/ulc-vasprintf-tests: Likewise.
69066         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
69067         * modules/unistdio/ulc-vsprintf-tests: Likewise.
69068         * modules/unistr/u8-check-tests: Likewise.
69069         * modules/unistr/u8-chr-tests: Likewise.
69070         * modules/unistr/u8-cmp-tests: Likewise.
69071         * modules/unistr/u8-cmp2-tests: Likewise.
69072         * modules/unistr/u8-cpy-alloc-tests: Likewise.
69073         * modules/unistr/u8-cpy-tests: Likewise.
69074         * modules/unistr/u8-mblen-tests: Likewise.
69075         * modules/unistr/u8-mbsnlen-tests: Likewise.
69076         * modules/unistr/u8-mbtouc-tests: Likewise.
69077         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
69078         * modules/unistr/u8-mbtoucr-tests: Likewise.
69079         * modules/unistr/u8-move-tests: Likewise.
69080         * modules/unistr/u8-next-tests: Likewise.
69081         * modules/unistr/u8-prev-tests: Likewise.
69082         * modules/unistr/u8-set-tests: Likewise.
69083         * modules/unistr/u8-stpcpy-tests: Likewise.
69084         * modules/unistr/u8-stpncpy-tests: Likewise.
69085         * modules/unistr/u8-strcat-tests: Likewise.
69086         * modules/unistr/u8-strcmp-tests: Likewise.
69087         * modules/unistr/u8-strcoll-tests: Likewise.
69088         * modules/unistr/u8-strcpy-tests: Likewise.
69089         * modules/unistr/u8-strdup-tests: Likewise.
69090         * modules/unistr/u8-strlen-tests: Likewise.
69091         * modules/unistr/u8-strmblen-tests: Likewise.
69092         * modules/unistr/u8-strmbtouc-tests: Likewise.
69093         * modules/unistr/u8-strncat-tests: Likewise.
69094         * modules/unistr/u8-strncmp-tests: Likewise.
69095         * modules/unistr/u8-strncpy-tests: Likewise.
69096         * modules/unistr/u8-strnlen-tests: Likewise.
69097         * modules/unistr/u8-to-u16-tests: Likewise.
69098         * modules/unistr/u8-to-u32-tests: Likewise.
69099         * modules/unistr/u8-uctomb-tests: Likewise.
69100         * modules/unistr/u16-check-tests: Likewise.
69101         * modules/unistr/u16-chr-tests: Likewise.
69102         * modules/unistr/u16-cmp-tests: Likewise.
69103         * modules/unistr/u16-cmp2-tests: Likewise.
69104         * modules/unistr/u16-cpy-alloc-tests: Likewise.
69105         * modules/unistr/u16-cpy-tests: Likewise.
69106         * modules/unistr/u16-mblen-tests: Likewise.
69107         * modules/unistr/u16-mbsnlen-tests: Likewise.
69108         * modules/unistr/u16-mbtouc-tests: Likewise.
69109         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
69110         * modules/unistr/u16-mbtoucr-tests: Likewise.
69111         * modules/unistr/u16-move-tests: Likewise.
69112         * modules/unistr/u16-next-tests: Likewise.
69113         * modules/unistr/u16-prev-tests: Likewise.
69114         * modules/unistr/u16-set-tests: Likewise.
69115         * modules/unistr/u16-stpcpy-tests: Likewise.
69116         * modules/unistr/u16-stpncpy-tests: Likewise.
69117         * modules/unistr/u16-strcat-tests: Likewise.
69118         * modules/unistr/u16-strcmp-tests: Likewise.
69119         * modules/unistr/u16-strcoll-tests: Likewise.
69120         * modules/unistr/u16-strcpy-tests: Likewise.
69121         * modules/unistr/u16-strdup-tests: Likewise.
69122         * modules/unistr/u16-strlen-tests: Likewise.
69123         * modules/unistr/u16-strmblen-tests: Likewise.
69124         * modules/unistr/u16-strmbtouc-tests: Likewise.
69125         * modules/unistr/u16-strncat-tests: Likewise.
69126         * modules/unistr/u16-strncmp-tests: Likewise.
69127         * modules/unistr/u16-strncpy-tests: Likewise.
69128         * modules/unistr/u16-strnlen-tests: Likewise.
69129         * modules/unistr/u16-to-u32-tests: Likewise.
69130         * modules/unistr/u16-to-u8-tests: Likewise.
69131         * modules/unistr/u16-uctomb-tests: Likewise.
69132         * modules/unistr/u32-check-tests: Likewise.
69133         * modules/unistr/u32-chr-tests: Likewise.
69134         * modules/unistr/u32-cmp-tests: Likewise.
69135         * modules/unistr/u32-cmp2-tests: Likewise.
69136         * modules/unistr/u32-cpy-alloc-tests: Likewise.
69137         * modules/unistr/u32-cpy-tests: Likewise.
69138         * modules/unistr/u32-mblen-tests: Likewise.
69139         * modules/unistr/u32-mbsnlen-tests: Likewise.
69140         * modules/unistr/u32-mbtouc-tests: Likewise.
69141         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
69142         * modules/unistr/u32-mbtoucr-tests: Likewise.
69143         * modules/unistr/u32-move-tests: Likewise.
69144         * modules/unistr/u32-next-tests: Likewise.
69145         * modules/unistr/u32-prev-tests: Likewise.
69146         * modules/unistr/u32-set-tests: Likewise.
69147         * modules/unistr/u32-stpcpy-tests: Likewise.
69148         * modules/unistr/u32-stpncpy-tests: Likewise.
69149         * modules/unistr/u32-strcat-tests: Likewise.
69150         * modules/unistr/u32-strcmp-tests: Likewise.
69151         * modules/unistr/u32-strcoll-tests: Likewise.
69152         * modules/unistr/u32-strcpy-tests: Likewise.
69153         * modules/unistr/u32-strdup-tests: Likewise.
69154         * modules/unistr/u32-strlen-tests: Likewise.
69155         * modules/unistr/u32-strmblen-tests: Likewise.
69156         * modules/unistr/u32-strmbtouc-tests: Likewise.
69157         * modules/unistr/u32-strncat-tests: Likewise.
69158         * modules/unistr/u32-strncmp-tests: Likewise.
69159         * modules/unistr/u32-strncpy-tests: Likewise.
69160         * modules/unistr/u32-strnlen-tests: Likewise.
69161         * modules/unistr/u32-to-u16-tests: Likewise.
69162         * modules/unistr/u32-to-u8-tests: Likewise.
69163         * modules/unistr/u32-uctomb-tests: Likewise.
69164         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
69165         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
69166         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
69167         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
69168         * modules/uniwidth/u8-strwidth-tests: Likewise.
69169         * modules/uniwidth/u8-width-tests: Likewise.
69170         * modules/uniwidth/u16-strwidth-tests: Likewise.
69171         * modules/uniwidth/u16-width-tests: Likewise.
69172         * modules/uniwidth/u32-strwidth-tests: Likewise.
69173         * modules/uniwidth/u32-width-tests: Likewise.
69174         * modules/uniwidth/width-tests: Likewise.
69176 2010-05-18  Richard Jones  <rjones@redhat.com>
69178         doc: users.txt: list hivex
69179         * users.txt: Add hivex.
69181 2010-05-18  Richard Jones  <rjones@redhat.com>
69183         doc: users.txt: list febootstrap
69184         * users.txt: Add febootstrap.
69186 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
69188         bootstrap: fix an error when gnulib is not used as a git submodule
69189         * build-aux/bootstrap (gnulib_path): If its length is zero then
69190         assign "gnulib" to it.
69191         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
69193 2010-05-16  Bruno Haible  <bruno@clisp.org>
69195         Avoid autoconf warnings about AM_ICONV.
69196         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
69197         2.64.
69199 2010-05-16  Bruno Haible  <bruno@clisp.org>
69201         absolute-header: Make the macro usable in more situations.
69202         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
69203         from gl_ABSOLUTE_HEADER.
69204         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
69206 2010-05-16  James Youngman  <jay@gnu.org>
69208         doc: update users.txt
69209         * users.txt: Add CSSC.
69211 2010-05-16  Jim Meyering  <meyering@redhat.com>
69213         init.sh: fix an error in the previous change; add more comments
69214         * tests/init.sh: Compare exit code in loop against 9, not 2.
69215         Patch by Bruno Haible.
69216         Make the two tests more similar by adding an empty "then" clause.
69217         Add comments.
69219         init.sh: avoid unnecessary shell re-exec
69220         * tests/init.sh: Improve the re-exec-required check to first test the
69221         current shell.  If it passes the test, do not search for a shell that
69222         does pass, and do not re-exec.  This test is particularly contorted to
69223         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
69224         of $(...) evokes a syntax error and causes immediate shell exit with
69225         status 2.  Bruno Haible reported that the re-exec made it impossible
69226         to single-step through any init.sh-using script.
69228 2010-05-16  Bruno Haible  <bruno@clisp.org>
69230         Fix collision between gnulib's and libintl's printf replacements.
69231         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
69232         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
69233         (printf): When using GNU C, map the __printf__ function to rpl_printf
69234         via __asm__. When not using GNU C, define rpl_printf instead of
69235         __printf__.
69236         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
69237         commit.
69238         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
69239         commit.
69240         * m4/asm-underscore.m4: New file.
69241         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
69242         * modules/stdio (Files): Add m4/asm-underscore.m4.
69243         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
69244         Reported by Ben Pfaff.
69246 2010-05-16  Bruno Haible  <bruno@clisp.org>
69248         verify: Avoid skipping the test on openSUSE 11.0.
69249         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
69251 2010-05-13  Bruno Haible  <bruno@clisp.org>
69253         Avoid useless warnings from G++.
69254         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
69255         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
69256         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69258 2010-05-11  Jim Meyering  <meyering@redhat.com>
69260         maint.mk: tweak preceding change
69261         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
69262         regexps tighter by anchoring at EOL, and make the new group "shy"
69263         for slightly decreased overhead.
69265 2010-05-11  Eric Blake  <eblake@redhat.com>
69267         maint.mk: gnulib doesn't guarantee NSIG
69268         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
69270 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
69272         test-pwrite.c: Remove unused variable declaration.
69273         * tests/test-pwrite.c (main): Remove read_buf declaration.
69275         Remove useless test-pwrite.sh file.
69276         * tests/test-pwrite.sh: Delete file.
69277         * modules/pwrite-tests: Remove references.
69278         Reported by Bruno Haible.
69280 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
69282         init.sh: fix a typo
69283         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
69285 2010-05-10  Jim Meyering  <meyering@redhat.com>
69287         maint.mk: avoid using a temporary file in the always-defined-macros check
69288         * top/maint.mk (.re-defmac): Remove rule.
69289         (gl_trap_): Remove definition.
69290         (sc_prohibit_always-defined_macros): Rewrite not to create and
69291         depend on a temporary file.  Instead, depend on GNU grep's ability
69292         to read a list of regular expressions from stdin when given "-f -".
69294 2010-05-09  Bruno Haible  <bruno@clisp.org>
69296         Update to GNU gettext 0.18, part 1.
69297         * m4/gettext.m4: Update to GNU gettext 0.18.
69298         * m4/intl.m4: Likewise.
69299         * m4/po.m4: Likewise.
69300         * modules/gettext (Files): Add m4/fcntl-o.m4.
69301         (configure.ac): Require gettext infrastructure from version 0.18.
69303 2010-05-09  Jim Meyering  <meyering@redhat.com>
69305         init.sh: enable MALLOC_PERTURB_
69306         * tests/init.sh: Enable glibc's malloc-perturbing option.
69308         maint.mk: improve sc_cross_check_PATH_usage_in_tests
69309         With my recent change in init.sh from the two-line form:
69310             -#   : ${srcdir=.}
69311             -#   . "$srcdir/init.sh"; path_prepend_ .
69312             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
69313         I noticed that using the one-line form would cause this test
69314         to fail with a false-positive, or to stop working altogether,
69315         depending on whether help-version changed or all the tests did.
69316         * top/maint.mk (_hv_regex): Remove this definition.
69317         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
69318         (_hv_regex_strong): Use a stronger regex to check for conformance.
69319         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
69320         Give a separate diagnostic for lack of conforming use.
69322         maint.mk: prohibit definition of symbols defined by gnulib
69323         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
69324         definition of symbols defined by gnulib.
69326 2010-05-09  Bruno Haible  <bruno@clisp.org>
69328         acl: Avoid test failure on Cygwin-hosted mingw.
69329         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
69331 2010-05-09  Bruno Haible  <bruno@clisp.org>
69333         error: Use system's fcntl function.
69334         * lib/error.c (fcntl): Undefine.
69336 2010-05-09  Jim Meyering  <meyering@redhat.com>
69338         verify: adjust formatting to be more consistent
69339         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
69340         argument-list '('s, and after one comma.
69342 2010-05-09  Bruno Haible  <bruno@clisp.org>
69344         error: More reliable output on mingw.
69345         * lib/error.c: Include <windows.h>.
69346         (is_open): New function.
69347         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
69348         defined.
69350 2010-05-09  Bruno Haible  <bruno@clisp.org>
69352         vasnprintf: Fix syntax errors in libintl build on mingw.
69353         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
69354         pad_ourselves and prec_ourselves after use.
69356 2010-05-08  Bruno Haible  <bruno@clisp.org>
69358         * lib/config.charset: Update comments for Cygwin 1.7.
69359         * lib/localcharset.c: Likewise.
69361 2010-05-07  Jim Meyering  <meyering@redhat.com>
69363         init.sh: improve comments
69364         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
69365         . "${srcdir=.}/init.sh"; path_prepend_ .
69366         Add a note about path_prepend_ and the alternative of using
69367         TESTS_ENVIRONMENT.
69369 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
69371         exclude: Unescape hashed patterns in wildcard mode.
69372         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
69373         to the hash list.
69374         * tests/test-exclude8.sh: New test case.
69375         * modules/exclude-tests: Add new test.
69377 2010-05-05  Eric Blake  <eblake@redhat.com>
69379         verify: automate tests
69380         * modules/verify-tests: New module.
69381         * tests/test-verify.sh: New file.
69382         * tests/test-verify.c: Guard each negative test with a unique id.
69383         Also avoid warning about unused left hand of comma expressions.
69385 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69387         Further improvements to verify.h, suggested by Eric Blake.
69388         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
69389         the GL_* versions, to avoid collision with OpenGL.
69390         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
69391         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
69392         than testing merely whether it's defined.
69394         Modify verify.h to pacify gcc -Wredundant_decls.
69395         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
69396         These use the prefix "GL_" since they're likely to be useful elsewhere.
69397         We may need to break them out into a different .h file.
69398         (__COUNTER__): Define to 0 if the compiler doesn't support it.
69399         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
69400         of verify_function__.
69402 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
69404         Tests for module pwrite.
69405         * modules/pwrite-tests: New file.
69406         * tests/test-pwrite.sh: New file.
69407         * tests/test-pwrite.c: New file.
69409         New module pwrite.
69410         * lib/unistd.in.h (pwrite): New declaration.
69411         * lib/pwrite.c: New file, from glibc with modifications.
69412         * m4/pwrite.m4: New file.
69413         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
69414         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
69415         REPLACE_PWRITE.
69416         * modules/pwrite: New file.
69417         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
69418         REPLACE_PWRITE.
69419         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
69420         * doc/posix-functions/pwrite.texi: Mention the new module.
69422 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
69424         pread: Update documentation.
69425         * doc/posix-functions/pread.texi: Mention the 'pread' module.
69427 2010-05-04  Eric Blake  <eblake@redhat.com>
69429         docs: update cygwin progress
69430         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
69431         this bug.
69432         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
69433         Added in cygwin 1.7.2.
69434         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
69435         Likewise.
69436         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
69437         Likewise.
69438         * doc/glibc-functions/dup3.texi (dup3): Likewise.
69439         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
69440         * doc/glibc-functions/accept4.texi (accept4): Likewise.
69441         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
69442         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
69443         Mention nproc module.
69444         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
69445         bug in cygwin 1.7.5 addition.
69446         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
69447         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
69448         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
69449         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
69450         1.7.5.
69451         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
69452         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
69453         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
69454         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
69455         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
69456         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
69457         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
69458         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
69459         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
69460         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
69461         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
69462         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
69463         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
69464         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
69465         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
69466         Likewise.
69467         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
69468         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
69469         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
69470         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
69471         Likewise.
69472         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
69473         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
69474         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
69475         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
69476         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
69477         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
69478         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
69479         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
69480         Likewise.
69481         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
69482         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
69483         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
69484         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
69485         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
69486         Likewise.
69487         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
69488         Likewise.
69489         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
69490         Likewise.
69491         * doc/glibc-functions/xdrrec_endofrecord.texi
69492         (xdrrec_endofrecord): Likewise.
69493         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
69494         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
69495         Likewise.
69496         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
69497         Likewise.
69499 2010-05-04  Jim Meyering  <meyering@redhat.com>
69501         gendocs.sh: make its "-s FILE" option more useful
69502         * build-aux/gendocs.sh: When honoring the -s FILE option, update
69503         $PACKAGE to reflect the probably-different basename of "FILE".
69505 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
69507         bootstrap: don't ignore download_po_files failure
69508         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
69509         failure.
69511 2010-05-03  Jim Meyering  <meyering@redhat.com>
69513         maint.mk: allow to pass options to gendocs.sh
69514         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
69515         (gendocs_options_): New overridable variable.
69517         gnu-web-doc-update: don't ignore configure or build failure
69518         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
69520         announce-gen: backslash-escape '@'s in --help output
69521         * build-aux/announce-gen: Fix syntax errors.
69523         maint.mk, announce-gen: allow project-specific announcement mail headers
69524         * top/maint.mk (translation_project_): Define default.
69525         (announcement_Cc_, announcement_mail_headers_): Likewise.
69526         (announcement): Invoke announce-gen with new --mail-headers option.
69527         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
69529         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
69530         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
69531         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
69532         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
69533         line in the "err2" output file when running "make check" in verbose
69534         mode (i.e., with set -x enabled).
69536 2010-05-03  Bruno Haible  <bruno@clisp.org>
69538         wctob: Fix for weird platforms.
69539         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
69540         argument value.
69542 2010-05-03  Jim Meyering  <meyering@redhat.com>
69544         maint.mk: prohibit unwarranted use of <strings.h>
69545         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
69546         strings.h in a file that does not also use strcasecmp, strncasecmp,
69547         ffs or ffsll.
69549         maint.mk: remove obsolete comments
69550         * top/maint.mk: Remove stale, commented-out rules.
69552 2010-05-02  Bruno Haible  <bruno@clisp.org>
69554         wcwidth: Declare also when it's aliased.
69555         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
69556         macro.
69558 2010-05-02  Bruno Haible  <bruno@clisp.org>
69560         Fix regression from 2010-04-25.
69561         * gnulib-tool (func_modules_transitive_closure): Check the status of
69562         all modules, not only of the tests that are of the form foo-tests where
69563         foo is a module.
69565 2010-05-02  Bruno Haible  <bruno@clisp.org>
69567         wctob: Work around nasty Cygwin 1.7.2 bug.
69568         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
69569         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
69571 2010-05-01  Bruno Haible  <bruno@clisp.org>
69573         fpurge: Sharper test.
69574         * tests/test-fpurge.c (main): Add one more ftell check.
69575         * modules/fpurge-tests (Depends-on): Add ftell.
69576         Suggested by Eric Blake.
69578 2010-05-01  Bruno Haible  <bruno@clisp.org>
69580         ftello: Another test.
69581         * tests/test-ftello3.c: New file.
69582         * modules/ftello-tests (Files): Add it.
69583         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69584         MOSTLYCLEANFILES.
69586         ftell: Another test.
69587         * tests/test-ftell3.c: New file.
69588         * modules/ftell-tests (Files): Add it.
69589         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69590         MOSTLYCLEANFILES.
69592 2010-05-01  Bruno Haible  <bruno@clisp.org>
69594         ftell, ftello: Work around Solaris bug.
69595         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
69596         * lib/ftello.c: Include stdio-impl.h.
69597         (ftello): On Solaris, when _IOWRT is set, compute the result without
69598         looking at _IOREAD.
69599         * modules/ftello (Files): Add lib/stdio-impl.h.
69600         * doc/posix-functions/ftell.texi: Mention Solaris bug.
69601         * doc/posix-functions/ftello.texi: Likewise.
69602         Reported by Eric Blake.
69604 2010-05-01  Bruno Haible  <bruno@clisp.org>
69606         freading: Adapt to special meaning of _IOREAD flag on Solaris.
69607         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
69608         the _IOWRT flag is also set.
69610 2010-05-01  Bruno Haible  <bruno@clisp.org>
69612         Fix doc about a HP-UX stdio bug.
69613         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
69614         * doc/posix-functions/ftello.texi: Likewise.
69616 2010-05-01  Bruno Haible  <bruno@clisp.org>
69618         lseek test: Fix failure on Solaris.
69619         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
69620         output.
69622 2010-04-30  Jim Meyering  <meyering@redhat.com>
69624         bootstrap: don't ignore failure to generate po*/Makevars
69625         * build-aux/bootstrap (with_gettext): Don't ignore failure
69626         to create po/Makevars or runtime-po/Makevars.
69628 2010-04-29  Eric Blake  <eblake@redhat.com>
69630         headers: relax license to LGPLv2+
69631         * modules/fcntl-h (License): Relax license.
69632         * modules/getopt-posix (License): Likewise.
69633         * modules/locale (License): Likewise.
69634         * modules/math (License): Likewise.
69635         * modules/pty (License): Likewise.
69636         * modules/sched (License): Likewise.
69637         * modules/search (License): Likewise.
69638         * modules/spawn (License): Likewise.
69639         * modules/stdarg (License): Likewise.
69640         * modules/sysexits (License): Likewise.
69642 2010-04-29  Jim Meyering  <meyering@redhat.com>
69644         inttypes: relax license to LGPLv2+
69645         * modules/inttypes (License): Relax license.
69647 2010-04-29  Simon Josefsson  <simon@josefsson.org>
69649         * top/maint.mk (indent): Run twice to produce idempotent results.
69651 2010-04-28  Bruno Haible  <bruno@clisp.org>
69653         getdate: Generate getdate.c in the source directory.
69654         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
69655         MOSTLYCLEANFILES.
69656         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
69658 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
69660         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
69661         is not declared as a const *; avoid warnings in that case.
69663 2010-04-28  Eric Blake  <eblake@redhat.com>
69665         canonicalize-lgpl: avoid compiler warning
69666         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
69667         declaration' / 'extraneous semicolon' warning with some compilers.
69668         Reported by Andreas Gruenbacher.
69670 2010-04-28  Jim Meyering  <meyering@redhat.com>
69672         init.sh: ensure a more reliable exit status when exiting via trap
69673         * tests/init.sh (setup_): Don't rely on $? in signal handler.
69674         Inspired by patches from Dmitry V. Levin.
69675         Also trap on signal 3 (SIGQUIT).
69677 2010-04-27  Bruno Haible  <bruno@clisp.org>
69679         Update doc about utimes().
69680         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
69681         'utimens' module.
69682         Reported by Andreas Gruenbacher <agruen@suse.de>.
69684 2010-04-27  Eric Blake  <eblake@redhat.com>
69686         full-read, full-write: relax license
69687         * modules/full-read (License): Drop to LGPLv2+.
69688         * modules/full-write (License): Likewise.
69689         * modules/safe-read (License): Likewise.
69690         * modules/safe-write (License): Likewise.
69692         pthread: mention library for linking
69693         * modules/pthread (Link): Mention $(LIB_PTHREAD).
69695 2010-04-27  Jim Meyering  <meyering@redhat.com>
69697         maint.mk: fix a bug introduced in last change
69698         * top/maint.mk (gl_assured_headers_): Now that all names are on
69699         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
69700         is not anchored to end of word, it should be adequate.
69702         maint.mk: avoid side-effect in latest syntax-check
69703         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
69704         to run commands via $(shell...), and hence to incur cost only when
69705         the new rule is actually run.
69707         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
69708         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
69709         and use that to create a regexp used to detect all #if HAVE_..._H uses.
69710         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
69711         (gl_assured_headers_, az_, AZ_): Define.
69712         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
69714 2010-04-26  Jim Meyering  <jim@meyering.net>
69715             Bruno Haible  <bruno@clisp.org>
69717         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
69718         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
69719         Prompted by an exchange with Gilles Espinasse.
69721 2010-04-26  Jim Meyering  <meyering@redhat.com>
69723         git-version-gen: aesthetic tweak
69724         * build-aux/git-version-gen: Use "$nl" rather than a literal,
69725         so that the command remains on a single line.
69727 2010-04-26  Eric Blake  <eblake@redhat.com>
69729         git-version-gen: allow use on EBCDIC hosts
69730         * build-aux/git-version-gen (dirty): Use literal rather than tying
69731         ourselves to ascii.
69732         Reported by Steve Goetze.
69734 2010-04-25  Bruno Haible  <bruno@clisp.org>
69736         netdb: Add support for GNULIB_POSIXCHECK.
69737         * lib/netdb.in.h: Include warn-on-use.h.
69738         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
69739         functions are used when GNULIB_POSIXCHECK is defined and the
69740         getaddrinfo module is not in use.
69741         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
69742         freeaddrinfo, gai_strerror, getnameinfo are declared.
69743         * modules/netdb (Depends-on): Add warn-on-use.
69744         (Makefile.am): Include warn-on-use.h in netdb.h.
69746 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
69748         build: avoid "make check" failure without .git/ directory
69749         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
69750         there is no .git/ directory.
69752 2010-04-25  Bruno Haible  <bruno@clisp.org>
69754         ptsname: Fix misuse of ttyname_r.
69755         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
69756         of errno.
69758 2010-04-25  Bruno Haible  <bruno@clisp.org>
69760         ttyname_r: Make it work on Solaris 10.
69761         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
69762         if the system function has the POSIX declaration. Test whether the
69763         function fails if the buffer is less than 128 bytes large.
69764         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
69765         system's ttyname_r function. Provide a reasonably large buffer.
69766         * modules/ttyname_r (Depends-on): Add extensions.
69767         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
69769 2010-04-25  Bruno Haible  <bruno@clisp.org>
69771         Use the 'extensions' module for some more functions on Solaris.
69772         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
69773         module.
69774         * doc/posix-functions/ctime_r.texi: Likewise.
69775         * doc/posix-functions/getgrgid_r.texi: Likewise.
69776         * doc/posix-functions/getgrnam_r.texi: Likewise.
69777         * doc/posix-functions/getpwnam_r.texi: Likewise.
69778         * doc/posix-functions/getpwuid_r.texi: Likewise.
69779         * doc/posix-functions/readdir_r.texi: Likewise.
69780         * doc/posix-functions/sigwait.texi: Likewise.
69781         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
69782         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
69784 2010-04-25  Bruno Haible  <bruno@clisp.org>
69786         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
69787         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
69788         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
69789         * lib/ttyname_r.c: Include <limits.h>.
69790         (ttyname_r): Define using the system's ttyname_r function, if it exists
69791         and not on Solaris.
69792         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
69793         set.
69794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
69795         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
69796         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
69797         Reported by Simon Josefsson.
69799 2010-04-25  Bruno Haible  <bruno@clisp.org>
69801         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
69802         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
69803         * doc/posix-functions/ctime_r.texi: Likewise.
69804         * doc/posix-functions/getgrgid_r.texi: Likewise.
69805         * doc/posix-functions/getgrnam_r.texi: Likewise.
69806         * doc/posix-functions/getlogin_r.texi: Likewise.
69807         * doc/posix-functions/getpwnam_r.texi: Likewise.
69808         * doc/posix-functions/getpwuid_r.texi: Likewise.
69809         * doc/posix-functions/readdir_r.texi: Likewise.
69810         * doc/posix-functions/sigwait.texi: Likewise.
69811         * doc/posix-functions/ttyname_r.texi: Likewise.
69812         Reported by Simon Josefsson.
69814 2010-04-25  Bruno Haible  <bruno@clisp.org>
69816         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
69817         * gnulib-tool (func_usage): Document that --with-*-tests options apply
69818         also to --create-testdir.
69819         (func_acceptable): Don't consider the status of *-tests modules here.
69820         (func_modules_transitive_closure): Consider it here, before including a
69821         test module.
69822         (func_import, func_create_testdir): Set inc_all_direct_tests,
69823         inc_all_indirect_tests.
69824         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
69825         --create-testdir and --create-megatestdir.
69827 2010-04-25  Bruno Haible  <bruno@clisp.org>
69829         gnulib-tool: Add --without-*-tests options.
69830         * gnulib-tool (func_usage): Document the --without-*-tests options.
69831         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
69832         excl_unportable_tests): New variables.
69833         Fail if they are specified with --import or --update.
69834         (func_acceptable): Respect the excl_*_tests variables.
69835         (func_import): Set the excl_*_tests variables to empty.
69837 2010-04-25  Simon Josefsson  <simon@josefsson.org>
69838             Bruno Haible  <bruno@clisp.org>
69840         Work around a MacOS X 10.4 bug with openpty.
69841         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
69842         * tests/test-openpty.c (main): Close the master side explicitly.
69844 2010-04-25  Bruno Haible  <bruno@clisp.org>
69846         strnlen: Fix a C++ test error on MacOS X and Solaris.
69847         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
69848         the function is not declared.
69849         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
69850         Simon Josefsson.
69852 2010-04-24  Bruno Haible  <bruno@clisp.org>
69854         Avoid a gcc warning.
69855         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
69856         of correct type for %08lx directive.
69857         Reported by Eric Blake.
69859 2010-04-24  Bruno Haible  <bruno@clisp.org>
69861         vasnprintf: Correct errno value in case of out-of-memory.
69862         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
69863         or sprintf. Use the errno value from SNPRINTF or sprintf.
69864         Reported by Ian Beckwith <ianb@erislabs.net>.
69866 2010-04-24  Bruno Haible  <bruno@clisp.org>
69868         ansi-c++-opt: Find correct compiler when cross-compiling.
69869         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
69870         AC_CHECK_PROGS.
69871         Reported by Simon Josefsson.
69873 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
69875         vc-list-files: Add support for subversion
69876         * build-aux/vc-list-files: Use "svn list" to generate the list of
69877         files controlled by subversion.
69879 2010-04-23  Jim Meyering  <meyering@redhat.com>
69881         vc-list-files tests: convert to use init.sh
69882         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
69883         path_prepend_.
69884         Use Exit, not exit.
69885         Use skip_ rather than open coding it.
69886         Remove trap set-up and compare definitions.
69887         * tests/test-vc-list-files-git.sh: Likewise.
69888         * modules/vc-list-files-tests (Files): Add tests/init.sh.
69890 2010-04-22  Simon Josefsson  <simon@josefsson.org>
69892         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
69893         backup files.
69895 2010-04-21  Simon Josefsson  <simon@josefsson.org>
69897         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
69899 2010-04-20  Eric Blake  <eblake@redhat.com>
69901         tests: be robust to ignored SIGPIPE
69902         * tests/test-select-in.sh: Consume all output.
69903         * tests/test-lseek.sh: Check correct exit status, while avoiding
69904         EPIPE.
69906 2010-04-20  Simon Josefsson  <simon@josefsson.org>
69907             Bruno Haible  <bruno@clisp.org>
69909         visibility: Don't use -fvisibility if it leads to a warning.
69910         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
69911         yes, don't pretend that visibility works if it leads to a warning.
69912         Reported by Mike Gran <spk121@yahoo.com>.
69914 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
69916         * build-aux/bootstrap: Use "git -h" for testing for supported options
69917         instead of "git --help".  The short-form option only shows a summary,
69918         and doesn't layout the full man page.  Grep for the full option name
69919         in the summary, too.
69921 2010-04-19  Bruno Haible  <bruno@clisp.org>
69923         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
69924         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
69925         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
69926         mention of RELOCATABLE_STRIP.
69927         Reported by Sylvain Beucler <beuc@beuc.net>.
69929 2010-04-19  Bruno Haible  <bruno@clisp.org>
69931         * lib/diffseq.h: Fix typo in comment.
69932         Reported by Eric Blake.
69934 2010-04-19  Bruno Haible  <bruno@clisp.org>
69936         ioctl: Move autoconf macro to a .m4 file.
69937         * m4/ioctl.m4: New file, extracted from modules/ioctl.
69938         * modules/ioctl (Files): Add it.
69939         (configure.ac): Simply invoke gl_FUNC_IOCTL.
69940         Reported by Ian Beckwith <ianb@erislabs.net>.
69942 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
69943             Bruno Haible  <bruno@clisp.org>
69945         diffseq: Accommodate use-case with abstract arrays.
69946         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
69947         is not defined.
69948         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
69949         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
69951 2010-04-18  Bruno Haible  <bruno@clisp.org>
69953         * doc/posix-headers/stdbool.texi: More precise wording.
69955 2010-04-17  Jim Meyering  <meyering@redhat.com>
69957         maint.mk: use gnu-style indentation in an embedded perl script
69958         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
69959         Rename variable: s/two/last_two_bytes/
69961 2010-04-16  Eric Blake  <eblake@redhat.com>
69963         test-stdbool: skip test that fails with Solaris CC
69964         * tests/test-stdbool.c (f): Skip test that causes compilation
69965         error under buggy C++ compiler.
69966         * lib/stdbool.in.h: Document the limitation.
69967         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
69969         setenv: allow compilation with C++
69970         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
69971         register keyword.
69973         stdint: allow test to pass with C++
69974         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
69976         getopt: allow compilation with C++
69977         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
69978         struct.
69979         * lib/getopt.c (_getopt_internal_r): Use correct type.
69980         Reported by Dagobert Michelson, via Joel E. Denny.
69982 2010-04-16  Bruno Haible  <bruno@clisp.org>
69984         Override netdb.h always.
69985         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
69986         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
69987         Reported by Ludovic Courtès <ludo@gnu.org>.
69989 2010-04-15  Bruno Haible  <bruno@clisp.org>
69991         openpty: Fix mistake from 2010-03-21.
69992         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
69993         Reported by Simon Josefsson.
69995 2010-04-15  Eric Blake  <eblake@redhat.com>
69997         test-forkpty: fix expected signature
69998         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
69999         Reported by Simon Josefsson.
70001 2010-04-15  Jim Meyering  <meyering@redhat.com>
70003         maint.mk: texinfo_suffix_re_: correct the default regexp
70004         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
70006         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
70007         make it configurable via texinfo_suffix_re_.
70009 2010-04-14  Eric Blake  <eblake@redhat.com>
70011         strtok_r: relax license to LGPLv2+
70012         * modules/strtok_r (License): Relax license.
70013         Reported by Matthias Bolte.
70015 2010-04-14  Simon Josefsson  <simon@josefsson.org>
70017         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
70018         version 1.4.4 by default instead of requiring the libgcrypt
70019         version used during build.  This makes it possible to use the
70020         application with older but still binary compatible libgcrypt
70021         versions.
70023 2010-04-13  Eric Blake  <eblake@redhat.com>
70025         getopt-gnu: match recent glibc fixes and posix ruling
70026         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
70027         '+' handling, when requesting extensions.
70028         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
70029         'W;' handling.
70030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
70031         * doc/posix-functions/getopt.texi (getopt): Document this.
70032         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
70033         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
70034         Likewise.
70036         getopt: merge bug fixes from glibc
70037         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
70038         diagnostics.  Honor '+:' correctly.  Reject ';'.
70040         getopt-posix: detect MacOS bug
70041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
70042         optind when missing a required argument.
70043         * doc/posix-functions/getopt.texi (getopt): Document the bug.
70044         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
70045         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
70046         Likewise.
70048         getopt-posix: avoid spurious failure on Solaris
70049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
70050         an indicator that setting optind=1 is sufficient for reset.
70052         getopt-posix: avoid spurious failure on FreeBSD
70053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
70054         in POSIX mode, since the m4 test uses it.
70056         gnulib-tool: silence warning on BSD sh
70057         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
70059 2010-04-13  Jim Meyering  <meyering@redhat.com>
70061         doc: users.txt: GNU patch now uses gnulib
70062         * users.txt: Add patch.
70064 2010-04-12  Jim Meyering  <meyering@redhat.com>
70066         maint.mk: generate more concise timing data for syntax-check rules
70067         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
70068         " done" from each line that reports a syntax-check test duration.
70070 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
70072         git-version-gen: use "git update-index..." rather than "git status"
70073         * build-aux/git-version-gen: Use git update-index --refresh, not
70074         "git status".  With some versions of git, "git status" would fail
70075         to update the index and result in an unwarranted "-dirty" suffix.
70077 2010-04-11  Jim Meyering  <meyering@redhat.com>
70079         openat: correct formatting (no semantic change)
70080         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
70081         Suggested by Bruno Haible.
70083 2010-04-11  Bruno Haible  <bruno@clisp.org>
70085         Stricter declaration checking in testdirs.
70086         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70087         If for_tests is true, augment AM_CPPFLAGS to define
70088         GNULIB_STRICT_CHECKING.
70089         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
70090         GNULIB_STRICT_CHECKING is defined, verify that the function is
70091         declared.
70093 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
70094             Bruno Haible  <bruno@clisp.org>
70096         libunistring: Improve configure output.
70097         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
70098         Don't say "consider installing GNU libunistring" when checking again
70099         with libiconv.
70101 2010-04-11  Bruno Haible  <bruno@clisp.org>
70103         libunistring: Correct value of $LTLIBUNISTRING.
70104         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
70105         correct the value of $LTLIBUNISTRING.
70107 2010-04-11  Bruno Haible  <bruno@clisp.org>
70109         havelib: Add static libraries to LIBS in the right order.
70110         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
70111         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
70113 2010-04-11  Bruno Haible  <bruno@clisp.org>
70115         libunistring: Detect libunistring also when it depends on libiconv.
70116         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
70117         the second AC_LIB_HAVE_LINKFLAGS invocation.
70119 2010-04-11  James Youngman  <jay@gnu.org>
70121         close-stream: declare local scalars to be "const"
70122         * lib/close-stream.c (close_stream): Make boolean variables const
70123         to document the fact that we set but do not change them.
70125 2010-04-11  Bruno Haible  <bruno@clisp.org>
70127         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
70129 2010-04-11  Jim Meyering  <meyering@redhat.com>
70131         maint.mk: don't include dist-check.mk
70132         * top/maint.mk: Remove bogus include directive.
70134         maint.mk: improve empty-line-at-EOF check
70135         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
70136         solution, rather than tail+Perl-based one.  The latter would read
70137         a few kilobytes from the end of each file, and did not handle empty
70138         files properly.
70140         maint.mk: print the elapsed time for each syntax-check rule
70141         * top/maint.mk (sc_m_rules_): Save start time in a file.
70142         (sc_z_rules_): New rules: remove temp file and print elapsed time.
70143         (local-check): Interpose the .z rules
70145 2010-04-11  Jim Meyering  <meyering@redhat.com>
70147         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
70148         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
70149         empty file with one that ends in an empty line.
70151 2010-04-10  Bruno Haible  <bruno@clisp.org>
70153         mkdir: Make it work on mingw64.
70154         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
70155         * lib/mkdir.c: Update comment.
70156         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
70158 2010-04-10  Bruno Haible  <bruno@clisp.org>
70160         Don't override improved macro from newer autoconf.
70161         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
70162         autoconf >= 2.62.
70163         Reported by Joel E. Denny <jdenny@clemson.edu>.
70165 2010-04-10  Jim Meyering  <meyering@redhat.com>
70167         maint.mk: new syntax-check rule: prohibit empty lines at end of file
70168         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
70170         maint.mk: correct a diagnostic
70171         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
70172         in diagnostic; now use $prohibit.
70174 2010-04-10  Bruno Haible  <address@hidden>
70176         fchownat: Fix a C++ test error on Solaris 8.
70177         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
70178         the function does not exist.
70180 2010-04-10  Bruno Haible  <bruno@clisp.org>
70182         vasnprintf: Add more tests.
70183         * tests/test-vasnprintf-posix.c: Include <errno.h>.
70184         (test_function): Test converting an invalid wide string.
70186         vasnprintf: Correct handling of unconvertible wide string arguments.
70187         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
70188         VASNPRINTF.
70189         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
70190         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
70191         smaller than the expected maximum need for the directive. Set errno to
70192         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
70193         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
70194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
70195         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
70196         * modules/vasnprintf (Files): Add m4/printf.m4.
70197         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
70199 2010-04-10  Bruno Haible  <bruno@clisp.org>
70201         vasnprintf: Fix crash in %ls directive.
70202         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
70203         string is passed as argument to %ls, with no precision and no width.
70204         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
70206 2010-04-10  Bruno Haible  <bruno@clisp.org>
70208         vasnprintf: Fix multiple test failures on mingw.
70209         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
70210         _snprintf, or snwprintf, not _snwprintf.
70212 2010-04-10  Bruno Haible  <bruno@clisp.org>
70214         write: Fix a C++ test error on mingw.
70215         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
70217 2010-04-10  Bruno Haible  <bruno@clisp.org>
70219         vasnprintf test: Reduce code duplication.
70220         * tests/test-vasnprintf.c (test_function): New function, extracted from
70221         test_vasnprintf.
70222         (test_vasnprintf, test_asnprintf): Invoke it.
70224 2010-04-10  Bruno Haible  <bruno@clisp.org>
70226         strnlen: Fix warning in C++ mode on MacOS X.
70227         * lib/string.in.h (strnlen): Use the modern idiom.
70228         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
70229         defining strnlen as a macro already in <config.h>.
70230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70231         REPLACE_STRNLEN.
70232         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
70233         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
70235 2010-04-08  James Youngman  <jay@gnu.org>
70237         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
70238         the example.
70240 2010-04-09  Jim Meyering  <meyering@redhat.com>
70242         maint.mk: print better diagnostic when there is no $(_hv_file)
70243         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
70244         announce that when $(_hv_file) (aka help-version) does not exist.
70246         init.sh: run tr in the "C" locale to avoid multibyte interpretation
70247         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
70248         not try to interpret its random input bytes.  Jarno Rajahalme reported
70249         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
70250         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
70251         (mktempd_): Likewise, just in case.
70253         ftruncate: add two years to projected module removal date: 2012
70254         * m4/ftruncate.m4: Adjust comments.
70256         ftruncate: mark module as obsolete; even MinGW provides it, now
70257         * modules/ftruncate (Status): Obsolete.
70258         (Notice): Say that.
70259         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
70260         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
70262 2010-04-08  Bruno Haible  <bruno@clisp.org>
70264         Fix side effects from tests-related modules.
70265         * modules/dprintf-posix (Comment): New section.
70266         * modules/fprintf-posix (Comment): Likewise.
70267         * modules/obstack-printf-posix (Comment): Likewise.
70268         * modules/printf-posix (Comment): Likewise.
70269         * modules/snprintf-posix (Comment): Likewise.
70270         * modules/sprintf-posix (Comment): Likewise.
70271         * modules/vasnprintf-posix (Comment): Likewise.
70272         * modules/vasprintf-posix (Comment): Likewise.
70273         * modules/vdprintf-posix (Comment): Likewise.
70274         * modules/vfprintf-posix (Comment): Likewise.
70275         * modules/vprintf-posix (Comment): Likewise.
70276         * modules/vsnprintf-posix (Comment): Likewise.
70277         * modules/vsprintf-posix (Comment): Likewise.
70278         * modules/xprintf-posix (Comment): Likewise.
70279         * modules/xvasprintf-posix (Comment): Likewise.
70280         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
70281         * modules/floorf-tests (Depends-on): Likewise.
70282         * modules/round-tests (Depends-on): Likewise.
70283         * modules/roundf-tests (Depends-on): Likewise.
70284         * modules/trunc-tests (Depends-on): Likewise.
70285         * modules/truncf-tests (Depends-on): Likewise.
70286         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
70287         'fprintf-posix' module is not present.
70288         * tests/test-floorf2.c (check): Likewise.
70289         * tests/test-trunc2.c (check): Likewise.
70290         * tests/test-truncf2.c (check): Likewise.
70291         * tests/test-round2.c (equal): Likewise.
70292         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
70294 2010-04-07  Karl Berry  <karl@gnu.org>
70296         * config/srclist.txt,
70297         * config/srclistvars.sh,
70298         * config/srclist-update: doc fixes.
70300 2010-04-07  Jim Meyering  <meyering@redhat.com>
70302         maint.mk: add a PATH crosschecking syntax-check rule
70303         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
70304         Useful if you use a test like the one in help-version (coreutils,
70305         diffutils, grep, gzip) that ensures $(VERSION) matches what is
70306         printed by prog --version.
70308 2010-04-06  Bruno Haible  <bruno@clisp.org>
70310         Fix link error on mingw.
70311         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
70312         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
70314 2010-04-06  Bruno Haible  <bruno@clisp.org>
70316         Assume rmdir exists.
70317         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
70319 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
70321         doc: update users.txt
70322         * users.txt: Add gcal.
70324 2010-04-06  Jim Meyering  <meyering@redhat.com>
70326         init.sh: simply unset TMPDIR rather than risking env -i
70327         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
70328         although it probably works fine on all Unix-based systems, some
70329         systems (Cygwin?) cannot tolerate a totally cleared environment.
70330         Suggestion from Eric Blake.
70332 2010-04-06  Jim Meyering  <meyering@redhat.com>
70334         init.sh: portability fix: use env's POSIX-specified -i option not -u
70335         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
70336         than unportable env -u.  Solaris 5.11's env lacks support for -u.
70338 2010-04-05  Bruno Haible  <bruno@clisp.org>
70340         btowc: Work around Cygwin 1.7.2 bug.
70341         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
70342         does not map NUL to 0.
70343         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
70345 2010-04-05  Bruno Haible  <bruno@clisp.org>
70347         Make the multithread modules work on Cygwin 1.7.2.
70348         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
70349         imported symbols can be declared weak, so that it returns "no" on
70350         Cygwin 1.7.2.
70352 2010-04-05  Bruno Haible  <bruno@clisp.org>
70354         Use the module 'strncat'.
70355         * modules/unistr/u8-strncat (Depends-on): Add strncat.
70357         Tests for module 'strncat'.
70358         * modules/strncat-tests: New file.
70359         * tests/test-strncat.c: New file.
70361         New module 'strncat'.
70362         * lib/string.in.h (strncat): New declaration.
70363         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
70364         * m4/strncat.m4: New file, based on m4/memchr.m4.
70365         * modules/strncat: New file.
70366         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
70367         is declared.
70368         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
70369         REPLACE_STRNCAT.
70370         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
70371         REPLACE_STRNCAT.
70372         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
70373         module.
70374         * tests/test-string-c++.cc: Check signature of strncat.
70376 2010-04-05  Jim Meyering  <meyering@redhat.com>
70378         xstrtoumax-tests: convert to use init.sh
70379         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
70380         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70381         Use Exit, not exit.
70382         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70384         xstrtoimax-tests: convert to use init.sh
70385         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
70386         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70387         Use Exit, not exit.
70388         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70390 2010-04-05  Bruno Haible  <bruno@clisp.org>
70392         sys_socket: Avoid #define replacements in C++ mode.
70393         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
70394         warning to the function if possible, rather than #defining the symbol
70395         to a dysfunctional alias.
70397 2010-04-05  Bruno Haible  <bruno@clisp.org>
70399         fseeko: Fix C++ test error on mingw.
70400         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
70401         gl_FUNC_FSEEKO.
70402         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
70403         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
70404         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
70405         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
70407 2010-04-05  Bruno Haible  <bruno@clisp.org>
70409         duplocale: Improve test output.
70410         * tests/test-duplocale.c (main): Print reason for skipped test.
70412 2010-04-05  Bruno Haible  <bruno@clisp.org>
70414         Assume rmdir exists.
70415         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
70416         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
70418 2010-04-05  Bruno Haible  <bruno@clisp.org>
70420         Fix link error on Solaris 8 with cc.
70421         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
70423 2010-04-05  Bruno Haible  <bruno@clisp.org>
70425         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
70426         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
70428 2010-04-05  Bruno Haible  <bruno@clisp.org>
70430         vasprintf: Update documentation.
70431         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
70433 2010-04-05  Bruno Haible  <bruno@clisp.org>
70435         ptsname: Improve test.
70436         * tests/test-ptsname.c (main): Also try the various master names of BSD
70437         systems.
70439 2010-04-05  Bruno Haible  <bruno@clisp.org>
70441         memchr: Avoid a possible C++ test error.
70442         * lib/string.in.h (memchr): Provide declaration if function is missing.
70443         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
70444         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
70445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
70446         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
70448 2010-04-05  Bruno Haible  <bruno@clisp.org>
70450         strtok_r: Improve idiom.
70451         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
70452         AC_LIBOBJ is used.
70454 2010-04-05  Bruno Haible  <bruno@clisp.org>
70456         strdup: Improve idiom.
70457         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
70458         AC_LIBOBJ is used.
70459         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
70460         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
70461         when AC_LIBOBJ is used.
70463 2010-04-05  Bruno Haible  <bruno@clisp.org>
70465         mbsinit, mbrtowc, wcrtomb: Improve idioms.
70466         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
70467         don't set REPLACE_MBSINIT to 1.
70468         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
70469         don't set REPLACE_MBRTOWC to 1.
70470         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
70471         exist, don't set REPLACE_MBSRTOWCS to 1.
70472         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
70473         exist, don't set REPLACE_MBSNRTOWCS to 1.
70474         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
70475         don't set REPLACE_WCRTOMB to 1.
70476         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
70477         exist, don't set REPLACE_WCSRTOMBS to 1.
70478         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
70479         exist, don't set REPLACE_WCSNRTOMBS to 1.
70481 2010-04-05  Bruno Haible  <bruno@clisp.org>
70483         ldexpl: Improve idiom.
70484         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
70485         make sure to set HAVE_DECL_LDEXPL to 0.
70487 2010-04-05  Jim Meyering  <meyering@redhat.com>
70489         xstrtol-tests: convert to use init.sh
70490         * modules/xstrtol-tests (Files): Add tests/init.sh.
70491         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70492         Use Exit, not exit.
70493         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70495         atexit-tests: convert to use init.sh
70496         * modules/atexit-tests (Files): Add tests/init.sh.
70497         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70498         Use Exit, not exit.
70499         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70501         init.sh: fix typo
70502         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
70504         init.sh: make it easier for a test script to write to the tty, ...
70505         when using automake's parallel-tests mode.
70506         * tests/init.sh (stderr_fileno_): Define overridable variable.
70507         (warn_): New function, to use it.
70508         (fail_, skip_, framework_failure_): Use warn_.
70510 2010-04-04  Bruno Haible  <bruno@clisp.org>
70512         btowc: Avoid warning.
70513         * lib/btowc.c: Include <stdlib.h>.
70514         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
70516 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
70517             Bruno Haible  <bruno@clisp.org>
70519         wchar: Port to NetBSD 1.5.
70520         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
70521         * lib/wctype.in.h (WEOF): Likewise.
70523 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
70524             Bruno Haible  <bruno@clisp.org>
70526         Port extended stdio to NetBSD 1.5.
70527         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
70528         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
70529         older.
70531 2010-04-04  Bruno Haible  <bruno@clisp.org>
70533         string: Remove unused substitution.
70534         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70535         HAVE_DECL_STRERROR.
70536         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
70538 2010-04-04  Bruno Haible  <bruno@clisp.org>
70540         strtod: Avoid a possible C++ test error.
70541         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
70542         set REPLACE_STRTOD.
70544 2010-04-04  Bruno Haible  <bruno@clisp.org>
70546         strerror: Update documentation.
70547         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
70549 2010-04-04  Bruno Haible  <bruno@clisp.org>
70551         stdio: Fix some C++ test errors on Solaris 8 with GCC.
70552         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
70553         _GL_CXXALIAS_SYS_CAST.
70555 2010-04-04  Bruno Haible  <bruno@clisp.org>
70557         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
70558         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
70559         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
70560         REPLACE_FREXPL to 1.
70561         * doc/posix-functions/frexpl.texi: Update documentation.
70563 2010-04-04  Bruno Haible  <bruno@clisp.org>
70565         math: Fix some C++ test errors on Solaris 8 and Cygwin.
70566         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
70568 2010-04-04  Bruno Haible  <bruno@clisp.org>
70570         Implement nanosleep for native Windows.
70571         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
70573 2010-04-04  Bruno Haible  <bruno@clisp.org>
70575         math: Fix some C++ test errors on Solaris 8.
70576         * lib/math.in.h (truncf, trunc): Use simpler idiom.
70578 2010-04-04  Bruno Haible  <bruno@clisp.org>
70580         math: Fix some C++ test errors on Cygwin.
70581         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
70582         truncl): Provide declaration if the system does not have it.
70583         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
70584         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
70585         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
70586         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
70587         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
70588         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
70589         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
70590         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
70591         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
70592         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
70593         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
70594         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
70595         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
70596         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
70597         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
70598         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
70599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
70600         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70601         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70602         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
70603         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70604         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70606 2010-04-04  Bruno Haible  <bruno@clisp.org>
70608         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
70609         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
70610         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
70611         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
70612         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
70613         * m4/isinf.m4 (gl_ISINF): Likewise.
70614         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
70616 2010-04-04  Bruno Haible  <bruno@clisp.org>
70618         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
70619         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
70621 2010-04-04  Bruno Haible  <bruno@clisp.org>
70623         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
70624         * modules/tmpfile (configure.ac): Update.
70626         tmpfile: Fix C++ test error on mingw.
70627         * lib/stdio.in.h (tmpfile): New declaration.
70628         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
70629         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
70630         * modules/tmpfile (Depends-on): Add stdio.
70631         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70632         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
70633         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
70634         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
70635         REPLACE_TMPFILE.
70636         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
70638 2010-04-04  Bruno Haible  <bruno@clisp.org>
70640         ioctl: Fix C++ test error on mingw.
70641         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
70642         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
70643         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
70645 2010-04-03  Bruno Haible  <bruno@clisp.org>
70647         wcwidth: Fix C++ test error on mingw.
70648         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
70649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
70650         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
70652 2010-04-03  Bruno Haible  <bruno@clisp.org>
70654         nanosleep: Fix C++ test error on mingw.
70655         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
70656         * lib/time.in.h (nanosleep): Use modern idiom.
70657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
70658         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
70659         REPLACE_NANOSLEEP to 1.
70660         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
70661         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
70663 2010-04-03  Bruno Haible  <bruno@clisp.org>
70665         strptime: Fix C++ test error on mingw.
70666         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
70667         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
70668         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
70669         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
70670         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
70671         not REPLACE_STRPTIME.
70672         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
70673         REPLACE_STRPTIME.
70675 2010-04-03  Bruno Haible  <bruno@clisp.org>
70677         timegm: Fix C++ test error on mingw.
70678         * lib/time.in.h (timegm): Use modern idiom.
70679         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
70680         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
70681         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
70682         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
70684 2010-04-03  Bruno Haible  <bruno@clisp.org>
70686         timegm: Assume declaration if function exists.
70687         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
70688         if it exists. Don't clobber ac_cv_func_timegm.
70690 2010-04-03  Bruno Haible  <bruno@clisp.org>
70692         time_r: Fix C++ test error on mingw.
70693         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
70694         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
70695         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
70696         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
70697         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
70699 2010-04-03  Bruno Haible  <bruno@clisp.org>
70701         time_r: Minor updates.
70702         * modules/time_r (Description): Mention the provided functions.
70703         * lib/time_r.c: Don't include <string.h>.
70704         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
70705         * doc/posix-functions/localtime_r.texi: Likewise.
70707 2010-04-03  Bruno Haible  <bruno@clisp.org>
70709         time: Fix regression introduced on 2010-03-08.
70710         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
70711         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
70713 2010-04-03  Jim Meyering  <meyering@redhat.com>
70715         maint.mk: don't silently disable project-specific syntax-check rules
70716         * top/maint.mk (_prohibit_regexp): Define, to help people realize
70717         that they need to convert their project-specific syntax-check rules
70718         to use the new _sc_search_regexp.
70720 2010-04-03  Bruno Haible  <bruno@clisp.org>
70722         fchdir: Fix regression introduced on 2010-03-08.
70723         * lib/unistd.in.h (fchdir): Fix declaration.
70724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
70725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
70726         REPLACE_FCHDIR.
70727         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
70728         REPLACE_FCHDIR.
70730 2010-04-03  Bruno Haible  <bruno@clisp.org>
70732         getpagesize: Fix C++ test error on mingw.
70733         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
70734         system does not declare the function.
70735         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
70736         declared.
70737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70738         HAVE_DECL_GETPAGESIZE.
70739         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
70741 2010-04-03  Bruno Haible  <bruno@clisp.org>
70743         stdio: Make C++ tests work on mingw.
70744         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
70745         does not declare the function.
70747 2010-04-03  Bruno Haible  <bruno@clisp.org>
70749         ftello: Fix C++ test error on mingw.
70750         * lib/stdio.in.h (ftello): Use modern idiom.
70751         * lib/ftello.c (ftello): Renamed from rpl_ftello.
70752         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
70753         is missing and that it needs to be replaced.
70754         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
70755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
70756         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
70758 2010-04-03  Bruno Haible  <bruno@clisp.org>
70760         fseeko: Fix C++ test error on mingw.
70761         * lib/stdio.in.h (fseeko): Use modern idiom.
70762         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
70763         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
70764         is missing and that it needs to be replaced.
70765         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
70766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
70767         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
70769 2010-04-03  Bruno Haible  <bruno@clisp.org>
70771         mkstemp: Fix C++ test error on mingw.
70772         * lib/stdlib.in.h (mkstemp): Use modern idiom.
70773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
70774         function is missing and that it needs to be replaced.
70775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
70776         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
70778 2010-04-03  Bruno Haible  <bruno@clisp.org>
70780         stpncpy: Fix C++ test error on mingw.
70781         * lib/string.in.h (stpncpy): Use modern idiom.
70782         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
70783         function is missing and that it needs to be replaced.
70784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70785         REPLACE_STPNCPY.
70786         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
70788 2010-04-03  Bruno Haible  <bruno@clisp.org>
70790         sys_stat: Fix C++ test error on mingw.
70791         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
70792         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
70794 2010-04-03  Bruno Haible  <bruno@clisp.org>
70796         pty: Update doc.
70797         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
70799 2010-04-03  Bruno Haible  <bruno@clisp.org>
70801         unistd: Fix C++ test error on mingw.
70802         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
70804 2010-04-03  Bruno Haible  <bruno@clisp.org>
70806         Update doc regarding mingw.
70807         * doc/glibc-functions/openpty.texi: Update regarding mingw.
70808         * doc/glibc-functions/login_tty.texi: Likewise.
70809         * doc/glibc-functions/forkpty.texi: Likewise.
70811 2010-04-03  Bruno Haible  <bruno@clisp.org>
70813         stdlib: Avoid compilation failure of c-strtold on mingw.
70814         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
70816 2010-04-03  Bruno Haible  <bruno@clisp.org>
70818         locale: Make C++ tests work on Cygwin and mingw.
70819         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
70820         cannot provide the function.
70821         Reported by Simon Josefsson.
70823 2010-04-03  Bruno Haible  <bruno@clisp.org>
70825         localename: Port to MacOS X 10.6.
70826         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
70827         memory layout of the locales in MacOS X 10.6 as well.
70828         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
70830 2010-04-02  Bruno Haible  <bruno@clisp.org>
70832         gnulib-tool: Ensure that long-running tests are executed last.
70833         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
70834         running tests after the one for the other tests.
70836 2010-04-02  Bruno Haible  <bruno@clisp.org>
70838         gnulib-tool: Ensure the tests in the main directory are executed first.
70839         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
70840         start with the current directory.
70842 2010-04-02  Bruno Haible  <bruno@clisp.org>
70844         Tests for module 'havelib', moved here from GNU gettext.
70845         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
70846         modifications.
70847         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
70848         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
70849         with modifications.
70850         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
70851         modifications.
70852         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
70853         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
70854         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
70855         with modifications.
70856         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
70857         with modifications.
70858         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
70859         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
70860         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
70861         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
70862         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
70863         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
70864         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
70865         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
70866         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
70867         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
70868         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
70869         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
70870         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
70871         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
70872         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
70873         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
70874         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
70875         with modifications.
70876         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
70877         with modifications.
70878         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
70879         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
70880         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
70881         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
70882         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
70883         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
70884         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
70885         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
70886         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
70887         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
70888         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
70889         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
70890         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
70891         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
70892         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
70893         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
70894         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
70895         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
70896         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
70897         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
70898         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
70899         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
70900         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
70901         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
70902         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
70903         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
70904         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
70905         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
70906         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
70907         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
70908         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
70909         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
70910         * tests/havelib/rpathx/rpathx.c: New file, from
70911         gettext/autoconf-lib-link.
70912         * tests/havelib/rpathx/Makefile.am: New file, from
70913         gettext/autoconf-lib-link.
70914         * tests/havelib/rpathx/configure.ac: New file, from
70915         gettext/autoconf-lib-link with modifications.
70916         * tests/havelib/rpathy/rpathy.c: New file, from
70917         gettext/autoconf-lib-link.
70918         * tests/havelib/rpathy/Makefile.am: New file, from
70919         gettext/autoconf-lib-link.
70920         * tests/havelib/rpathy/configure.ac: New file, from
70921         gettext/autoconf-lib-link with modifications.
70922         * tests/havelib/rpathz/rpathz.c: New file, from
70923         gettext/autoconf-lib-link.
70924         * tests/havelib/rpathz/Makefile.am: New file, from
70925         gettext/autoconf-lib-link.
70926         * tests/havelib/rpathz/configure.ac: New file, from
70927         gettext/autoconf-lib-link with modifications.
70928         * tests/havelib/rpathlx/usex.c: New file, from
70929         gettext/autoconf-lib-link.
70930         * tests/havelib/rpathlx/Makefile.am: New file, from
70931         gettext/autoconf-lib-link.
70932         * tests/havelib/rpathlx/configure.ac: New file, from
70933         gettext/autoconf-lib-link with modifications.
70934         * tests/havelib/rpathly/usey.c: New file, from
70935         gettext/autoconf-lib-link.
70936         * tests/havelib/rpathly/Makefile.am: New file, from
70937         gettext/autoconf-lib-link.
70938         * tests/havelib/rpathly/configure.ac: New file, from
70939         gettext/autoconf-lib-link with modifications.
70940         * tests/havelib/rpathlz/usez.c: New file, from
70941         gettext/autoconf-lib-link.
70942         * tests/havelib/rpathlz/Makefile.am: New file, from
70943         gettext/autoconf-lib-link.
70944         * tests/havelib/rpathlz/configure.ac: New file, from
70945         gettext/autoconf-lib-link with modifications.
70946         * tests/havelib/rpathlyx/usey.c: New file, from
70947         gettext/autoconf-lib-link.
70948         * tests/havelib/rpathlyx/Makefile.am: New file, from
70949         gettext/autoconf-lib-link.
70950         * tests/havelib/rpathlyx/configure.ac: New file, from
70951         gettext/autoconf-lib-link with modifications.
70952         * tests/havelib/rpathlzyx/usez.c: New file, from
70953         gettext/autoconf-lib-link.
70954         * tests/havelib/rpathlzyx/Makefile.am: New file, from
70955         gettext/autoconf-lib-link.
70956         * tests/havelib/rpathlzyx/configure.ac: New file, from
70957         gettext/autoconf-lib-link with modifications.
70958         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
70959         with modifications.
70961 2010-04-02  Bruno Haible  <bruno@clisp.org>
70963         gnulib-tool: Create distributed built sources also for the tests.
70964         * gnulib-tool (func_create_testdir): Also generate distributed built
70965         sources in the tests directory.
70967 2010-04-02  Bruno Haible  <bruno@clisp.org>
70969         gnulib-tool: Obey user's environment variables.
70970         * gnulib-tool (func_create_testdir): When creating built sources,
70971         respect the environment variables for autoconf, automake, etc. given by
70972         the user.
70974 2010-04-02  Bruno Haible  <bruno@clisp.org>
70976         gnulib-tool: Provide the value of --m4-base to modules.
70977         * gnulib-tool (func_import, func_create_testdir): Emit a definition
70978         of gl_m4_base.
70980 2010-04-02  Eric Blake  <eblake@redhat.com>
70982         maint.mk: fix some fallout
70983         * NEWS: Document the incompatible change, and its effect on cfg.mk.
70984         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
70986 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70988         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
70989         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
70990         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
70991         (sc_cast_of_x_alloc_return_value): Likewise.
70992         (sc_cast_of_alloca_return_value): Likewise.
70993         (sc_space_tab): Likewise.
70994         (sc_prohibit_atoi_atof): Likewise.
70995         (sc_prohibit_magic_number_exit): Likewise.
70996         (sc_error_exit_success): Likewise.
70997         (sc_file_system): Likewise.
70998         (sc_prohibit_have_config_h): Likewise.
70999         (sc_require_config_h): Likewise.
71000         (sc_prohibit_HAVE_MBRTOWC): Likewise.
71001         (sc_obsolete_symbols): Likewise.
71002         (sc_changelog): Likewise.
71003         (sc_program_name): Likewise.
71004         (sc_the_the): Likewise.
71005         (sc_trailing_blank): Likewise.
71006         (sc_two_space_separator_in_usage): Likewise.
71007         (sc_useless_cpp_parens): Likewise.
71008         (sc_GPL_version): Likewise.
71009         (sc_GFDL_version): Likewise.
71010         (sc_texinfo_acronym): Likewise.
71011         (sc_prohibit_cvs_keyword): Likewise.
71012         (sc_prohibit_stat_st_blocks): Likewise.
71013         (sc_prohibit_S_IS_definition): Likewise.
71014         (sc_redundant_const): Likewise.
71015         (sc_makefile_TAB_only_indentation): Likewise.
71016         (sc_m4_quote_check): Likewise.
71017         (sc_makefile_path_separator_check): Likewise.
71018         (sc_copyright_check): Likewise.
71019         (sc_Wundef_boolean): Likewise.
71020         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
71022         maint.mk: match 0 or more whitespace-before-function-call '('
71023         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
71024         that have zero or two-and-more spaces between the function name
71025         and the open parenthesis.
71026         (sc_error_message_warn_fatal): Likewise.
71027         (sc_error_message_uppercase): Likewise.
71028         (sc_error_message_period): Likewise.
71030 2010-03-31  Eric Blake  <eblake@redhat.com>
71032         maint.mk: check for [ as well as test
71033         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
71034         Based on a libvirt report by Matthias Bolte.
71036         gnumakefile: don't squelch _version output
71037         * top/GNUmakefile (_version): Create one-shot dependency rather
71038         than using $(shell) when version must be regenerated.
71039         (_autoreconf): Run verbosely, by default.
71041         sys_time: avoid compiler warnings
71042         * lib/sys_time.in.h (includes): Ensure gcc pragma is
71043         unconditional, fixing regression from 2010-03-29.
71044         Reported by Simon Josefsson.
71046 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
71048         maint.mk: s/_header_without_use/_sc_header_without_use/
71049         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
71050         (sc_prohibit_assert_without_use): Use the new name.
71051         (sc_prohibit_close_stream_without_use): Likewise.
71052         (sc_prohibit_getopt_without_use): Likewise.
71053         (sc_prohibit_quotearg_without_use): Likewise.
71054         (sc_prohibit_quote_without_use): Likewise.
71055         (sc_prohibit_long_options_without_use): Likewise.
71056         (sc_prohibit_inttostr_without_use): Likewise.
71057         (sc_prohibit_ignore_value_without_use): Likewise.
71058         (sc_prohibit_error_without_use): Likewise.
71059         (sc_prohibit_xalloc_without_use): Likewise.
71060         (sc_prohibit_hash_without_use): Likewise.
71061         (sc_prohibit_hash_pjw_without_use): Likewise.
71062         (sc_prohibit_safe_read_without_use): Likewise.
71063         (sc_prohibit_argmatch_without_use): Likewise.
71064         (sc_prohibit_canonicalize_without_use): Likewise.
71065         (sc_prohibit_root_dev_ino_without_use): Likewise.
71066         (sc_prohibit_openat_without_use): Likewise.
71067         (sc_prohibit_c_ctype_without_use): Likewise.
71068         (sc_prohibit_signal_without_use): Likewise.
71069         (sc_prohibit_intprops_without_use): Likewise.
71071 2010-03-30  Eric Blake  <eblake@redhat.com>
71073         maint: improve module indicators
71074         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
71075         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
71076         columns, and avoid extra macro expansion.
71078         fdopendir: work around FreeBSD bug
71079         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
71080         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
71081         * modules/dirent (Makefile.am): Substitute it.
71082         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
71083         declaration.
71084         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
71085         fix.
71086         Reported by Christian Weisgerber <naddy@mips.inka.de>.
71088 2010-03-29  Bruno Haible  <bruno@clisp.org>
71090         Emit #pragma system_header after the inclusion guard, not before.
71091         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
71092         guard that spans the entire file, not before. This enables an
71093         optimization in GCC's preprocessor.
71094         * lib/ctype.in.h: Likewise.
71095         * lib/dirent.in.h: Likewise.
71096         * lib/errno.in.h: Likewise.
71097         * lib/float.in.h: Likewise.
71098         * lib/getopt.in.h: Likewise.
71099         * lib/iconv.in.h: Likewise.
71100         * lib/langinfo.in.h: Likewise.
71101         * lib/locale.in.h: Likewise.
71102         * lib/math.in.h: Likewise.
71103         * lib/netdb.in.h: Likewise.
71104         * lib/netinet_in.in.h: Likewise.
71105         * lib/pty.in.h: Likewise.
71106         * lib/sched.in.h: Likewise.
71107         * lib/se-selinux.in.h: Likewise.
71108         * lib/search.in.h: Likewise.
71109         * lib/spawn.in.h: Likewise.
71110         * lib/stdarg.in.h: Likewise.
71111         * lib/stdint.in.h: Likewise.
71112         * lib/string.in.h: Likewise.
71113         * lib/strings.in.h: Likewise.
71114         * lib/sys_file.in.h: Likewise.
71115         * lib/sys_ioctl.in.h: Likewise.
71116         * lib/sys_time.in.h: Likewise.
71117         * lib/sys_times.in.h: Likewise.
71118         * lib/sys_utsname.in.h: Likewise.
71119         * lib/sys_wait.in.h: Likewise.
71120         * lib/sysexits.in.h: Likewise.
71121         * lib/wctype.in.h: Likewise.
71123 2010-03-28  James Youngman  <jay@gnu.org>
71125         save-cwd: don't leak a file descriptor when the caller execs.
71126         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
71127         saved file descriptor.
71128         * modules/save-cwd (Depends-on): Depend on cloexec.
71130 2010-03-29  Bruno Haible  <bruno@clisp.org>
71132         Remove vestiges of fts-lgpl module.
71133         * lib/fts_.h: Assume GNULIB_FTS is 1.
71134         * lib/fts.c: Likewise.
71135         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
71137 2010-03-28  Bruno Haible  <bruno@clisp.org>
71139         Fix definition of tests witness macro.
71140         * gnulib-tool (func_import): Fix definition of witness macro.
71142 2010-03-28  Bruno Haible  <bruno@clisp.org>
71144         Fix ioctl's protoype on glibc systems.
71145         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
71146         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
71147         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
71148         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
71149         signature. If not, arrange to replace the ioctl function.
71150         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
71151         REPLACE_IOCTL.
71152         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
71153         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
71154         Reported by Ludovic Courtès <ludo@gnu.org>.
71156 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
71158         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
71159         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
71160         made it so grep -r --include=GLOB* ... did not work.
71162 2010-03-26  Jim Meyering  <meyering@redhat.com>
71163             Eric Blake  <eblake@redhat.com>
71165         maint.mk: prohibit use of test's -o and -a operators
71166         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
71168 2010-03-28  Bruno Haible  <bruno@clisp.org>
71170         Remove unused GNULIB_XYZ macro definitions.
71171         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
71172         invocation.
71174 2010-03-28  Bruno Haible  <bruno@clisp.org>
71176         Mark privileged tests modules.
71177         * modules/idpriv-drop-tests (Status): New section.
71178         * modules/idpriv-droptemp-tests (Status): New section.
71180 2010-03-28  Bruno Haible  <bruno@clisp.org>
71182         Split C++ tests into separate tests modules.
71183         * modules/dirent-c++-tests: New file, extracted from
71184         modules/dirent-tests.
71185         * modules/dirent-tests: Depend on it.
71186         * modules/fcntl-h-c++-tests: New file, extracted from
71187         modules/fcntl-h-tests.
71188         * modules/fcntl-h-tests: Depend on it.
71189         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
71190         * modules/glob-tests: Depend on it.
71191         * modules/iconv-h-c++-tests: New file, extracted from
71192         modules/iconv-h-tests.
71193         * modules/iconv-h-tests: Depend on it.
71194         * modules/langinfo-c++-tests: New file, extracted from
71195         modules/langinfo-tests.
71196         * modules/langinfo-tests: Depend on it.
71197         * modules/locale-c++-tests: New file, extracted from
71198         modules/locale-tests.
71199         * modules/locale-tests: Depend on it.
71200         * modules/math-c++-tests: New file, extracted from modules/math-tests.
71201         * modules/math-tests: Depend on it.
71202         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
71203         * modules/pty-tests: Depend on it.
71204         * modules/search-c++-tests: New file, extracted from
71205         modules/search-tests.
71206         * modules/search-tests: Depend on it.
71207         * modules/signal-c++-tests: New file, extracted from
71208         modules/signal-tests.
71209         * modules/signal-tests: Depend on it.
71210         * modules/spawn-c++-tests: New file, extracted from
71211         modules/spawn-tests.
71212         * modules/spawn-tests: Depend on it.
71213         * modules/stdio-c++-tests: New file, extracted from
71214         modules/stdio-tests.
71215         * modules/stdio-tests: Depend on it.
71216         * modules/stdlib-c++-tests: New file, extracted from
71217         modules/stdlib-tests.
71218         * modules/stdlib-tests: Depend on it.
71219         * modules/string-c++-tests: New file, extracted from
71220         modules/string-tests.
71221         * modules/string-tests: Depend on it.
71222         * modules/sys_ioctl-c++-tests: New file, extracted from
71223         modules/sys_ioctl-tests.
71224         * modules/sys_ioctl-tests: Depend on it.
71225         * modules/sys_select-c++-tests: New file, extracted from
71226         modules/sys_select-tests.
71227         * modules/sys_select-tests: Depend on it.
71228         * modules/sys_socket-c++-tests: New file, extracted from
71229         modules/sys_socket-tests.
71230         * modules/sys_socket-tests: Depend on it.
71231         * modules/sys_stat-c++-tests: New file, extracted from
71232         modules/sys_stat-tests.
71233         * modules/sys_stat-tests: Depend on it.
71234         * modules/sys_time-c++-tests: New file, extracted from
71235         modules/sys_time-tests.
71236         * modules/sys_time-tests: Depend on it.
71237         * modules/time-c++-tests: New file, extracted from modules/time-tests.
71238         * modules/time-tests: Depend on it.
71239         * modules/unistd-c++-tests: New file, extracted from
71240         modules/unistd-tests.
71241         * modules/unistd-tests: Depend on it.
71242         * modules/wchar-c++-tests: New file, extracted from
71243         modules/wchar-tests.
71244         * modules/wchar-tests: Depend on it.
71245         * modules/wctype-c++-tests: New file, extracted from
71246         modules/wctype-tests.
71247         * modules/wctype-tests: Depend on it.
71248         Reported by Simon Josefsson.
71250 2010-03-28  Bruno Haible  <bruno@clisp.org>
71252         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
71253         * gnulib-tool (func_exists_module): New function, extracted from
71254         func_verify_module.
71255         (func_verify_module): Use it.
71256         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
71257         'foo' only if 'foo' exists.
71258         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
71259         module.
71261 2010-03-28  Bruno Haible  <bruno@clisp.org>
71263         gnulib-tool: Add support for special categories of tests.
71264         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
71265         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
71266         (func_usage): Document them.
71267         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
71268         inc_unportable_tests, inc_all_tests): New variables.
71269         (func_acceptable): Consider these variables.
71270         (func_modules_transitive_closure): Make it work when the 'Status' field
71271         consists of multiple words.
71272         (func_import): Store and restore the values of inc_cxx_tests,
71273         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
71274         inc_all_tests in gnulib-comp.m4.
71275         (func_create_testdir): Set inc_all_tests to true.
71276         * doc/gnulib.texi (Extra tests modules): New section.
71277         Suggested by Jim Meyering.
71279 2010-03-28  Bruno Haible  <bruno@clisp.org>
71281         ansi-c++-opt: Allow turning off the C++ build by default.
71282         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
71283         gl_CXX_CHOICE_DEFAULT_NO is defined.
71284         Requested by Eric Blake.
71286 2010-03-28  Bruno Haible  <bruno@clisp.org>
71288         unistd: Avoid #define replacements in C++ mode.
71289         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
71290         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
71291         setsockopt, shutdown, select): In C++, attach a warning to the function
71292         if possible, rather than #defining the symbol to a dysfunctional alias.
71293         Reported by John W. Eaton <jwe@gnu.org>.
71295 2010-03-28  Bruno Haible  <bruno@clisp.org>
71297         Fix link errors on mingw.
71298         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
71299         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
71300         $(LIBSOCKET).
71301         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
71302         $(LIBSOCKET).
71304 2010-03-28  Bruno Haible  <bruno@clisp.org>
71305             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71307         lib-ignore: Determine different options for different compilers.
71308         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
71309         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
71310         Add comments.
71311         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
71312         * NEWS: Mention the change.
71314 2010-03-27  Bruno Haible  <bruno@clisp.org>
71316         Remove unused GNULIB_XYZ macro definitions.
71317         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
71318         * modules/fseek (configure.ac): Likewise.
71319         * modules/ioctl (configure.ac): Likewise.
71320         * modules/open (configure.ac): Likewise.
71321         * modules/stdlib-safer (configure.ac): Likewise.
71323 2010-03-27  Bruno Haible  <bruno@clisp.org>
71325         Add a remark about certain modules.
71326         * modules/malloc (Comment): New section.
71327         * modules/realloc (Comment): Likewise.
71328         * modules/sigpipe (Comment): Likewise.
71330 2010-03-27  Bruno Haible  <bruno@clisp.org>
71332         Resolve conflict between the two kinds of module indicators.
71333         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
71334         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
71335         * modules/canonicalize (configure.ac): Invoke
71336         gl_MODULE_INDICATOR_FOR_TESTS.
71337         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
71338         GNULIB_XYZ.
71339         * tests/test-dirent-c++.cc: Likewise.
71340         * tests/test-dirent-safer.c: Likewise.
71341         * tests/test-dup2.c: Likewise.
71342         * tests/test-fchdir.c: Likewise.
71343         * tests/test-fcntl-h-c++.cc: Likewise.
71344         * tests/test-getopt.c: Likewise.
71345         * tests/test-getopt.h: Likewise.
71346         * tests/test-langinfo-c++.cc: Likewise.
71347         * tests/test-locale-c++.cc: Likewise.
71348         * tests/test-math-c++.cc: Likewise.
71349         * tests/test-pty-c++.cc: Likewise.
71350         * tests/test-search-c++.cc: Likewise.
71351         * tests/test-signal-c++.cc: Likewise.
71352         * tests/test-spawn-c++.cc: Likewise.
71353         * tests/test-stdio-c++.cc: Likewise.
71354         * tests/test-stdlib-c++.cc: Likewise.
71355         * tests/test-string-c++.cc: Likewise.
71356         * tests/test-sys_ioctl-c++.cc: Likewise.
71357         * tests/test-sys_select-c++.cc: Likewise.
71358         * tests/test-sys_socket-c++.cc: Likewise.
71359         * tests/test-sys_stat-c++.cc: Likewise.
71360         * tests/test-sys_time-c++.cc: Likewise.
71361         * tests/test-time-c++.cc: Likewise.
71362         * tests/test-unistd-c++.cc: Likewise.
71363         * tests/test-wchar-c++.cc: Likewise.
71364         * tests/uninorm/test-u8-nfc.c: Likewise.
71365         * tests/uninorm/test-u8-nfd.c: Likewise.
71366         * tests/uninorm/test-u8-nfkc.c: Likewise.
71367         * tests/uninorm/test-u8-nfkd.c: Likewise.
71368         * tests/uninorm/test-u16-nfc.c: Likewise.
71369         * tests/uninorm/test-u16-nfd.c: Likewise.
71370         * tests/uninorm/test-u16-nfkc.c: Likewise.
71371         * tests/uninorm/test-u16-nfkd.c: Likewise.
71372         * tests/uninorm/test-u32-nfc.c: Likewise.
71373         * tests/uninorm/test-u32-nfc-big.c: Likewise.
71374         * tests/uninorm/test-u32-nfd.c: Likewise.
71375         * tests/uninorm/test-u32-nfd-big.c: Likewise.
71376         * tests/uninorm/test-u32-nfkc.c: Likewise.
71377         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
71378         * tests/uninorm/test-u32-nfkd.c: Likewise.
71379         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
71380         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71382 2010-03-27  Bruno Haible  <bruno@clisp.org>
71384         Distinguish two kinds of module indicators.
71385         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
71386         gl_MODULE_INDICATOR.
71387         (gl_MODULE_INDICATOR): New macro.
71388         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71389         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
71390         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
71391         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
71392         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
71393         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
71394         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
71395         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
71396         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
71397         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
71398         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
71399         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
71400         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
71401         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
71402         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
71403         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
71404         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
71405         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
71406         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
71407         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
71408         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
71409         * modules/cloexec (configure.ac): Likewise.
71410         * modules/getopt-gnu (configure.ac): Likewise.
71411         * modules/uninorm/u8-normalize (configure.ac): Likewise.
71412         * modules/uninorm/u16-normalize (configure.ac): Likewise.
71413         * modules/uninorm/u32-normalize (configure.ac): Likewise.
71414         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
71416 2010-03-27  Bruno Haible  <bruno@clisp.org>
71418         New module description field 'Comment'.
71419         * gnulib-tool: New option --extract-comment.
71420         (func_usage): Document it.
71421         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
71422         (func_get_comment): New function.
71423         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
71425 2010-03-27  Bruno Haible  <bruno@clisp.org>
71427         Addendum to 2010-02-07 commit.
71428         * gnulib-tool (func_usage): Document --extract-applicability option.
71430 2010-03-27  Bruno Haible  <bruno@clisp.org>
71432         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
71433         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
71434         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
71435         rather than link errors.
71437 2010-03-27  Bruno Haible  <bruno@clisp.org>
71439         Avoid side effects from tests-related modules on the compilation of lib.
71440         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
71441         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
71442         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
71443         parameter. Emit into AM_CPPFLAGS a definition of the designated C
71444         macro.
71445         (func_import): Define a witness macro. Assign it a value that depends
71446         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
71447         tests-related modules.
71448         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
71449         Reported by Jim Meyering.
71451 2010-03-27  Bruno Haible  <bruno@clisp.org>
71453         Factorize common .m4 code.
71454         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
71455         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
71456         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
71457         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
71458         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
71459         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
71460         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
71461         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
71462         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
71463         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
71464         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
71465         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
71466         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
71467         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
71468         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
71469         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
71470         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
71471         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
71472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
71473         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
71474         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
71475         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
71476         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
71477         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
71478         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
71479         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
71480         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
71481         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
71482         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
71483         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
71484         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
71485         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
71487 2010-03-27  Bruno Haible  <bruno@clisp.org>
71489         Fix a compilation error on Cygwin with g++ >= 4.3.
71490         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
71491         if it is undefined or if we alias it to chmod.
71492         (lstat): Don't warn about the use of this function if it is undefined
71493         or if we alias it to stat.
71494         Reported by Simon Josefsson.
71496 2010-03-27  Bruno Haible  <bruno@clisp.org>
71498         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
71499         * modules/getlogin (configure.ac): Update.
71501         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
71502         * modules/getlogin_r (configure.ac): Update.
71504         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
71505         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
71506         * modules/inet_ntop (configure.ac): Update.
71508         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
71509         * modules/inet_pton (configure.ac): Update.
71511         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
71512         * modules/mbslen (configure.ac): Update.
71514         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
71515         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
71516         * modules/forkpty (configure.ac): Update.
71517         * modules/openpty (configure.ac): Update.
71519 2010-03-26  Simon Josefsson  <simon@josefsson.org>
71521         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
71522         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
71524 2010-03-25  Eric Blake  <eblake@redhat.com>
71526         maint: use pragma consistently across replacement headers
71527         * lib/ctype.in.h (system_header): Hoist for consistent placement.
71528         * lib/dirent.in.h (system_header): Likewise.
71529         * lib/errno.in.h (system_header): Likewise.
71530         * lib/float.in.h (system_header): Likewise.
71531         * lib/getopt.in.h (system_header): Likewise.
71532         * lib/iconv.in.h (system_header): Likewise.
71533         * lib/inttypes.in.h (system_header): Likewise.
71534         * lib/langinfo.in.h (system_header): Likewise.
71535         * lib/locale.in.h (system_header): Likewise.
71536         * lib/math.in.h (system_header): Likewise.
71537         * lib/netdb.in.h (system_header): Likewise.
71538         * lib/netinet_in.in.h (system_header): Likewise.
71539         * lib/pty.in.h (system_header): Likewise.
71540         * lib/sched.in.h (system_header): Likewise.
71541         * lib/se-selinux.in.h (system_header): Likewise.
71542         * lib/search.in.h (system_header): Likewise.
71543         * lib/spawn.in.h (system_header): Likewise.
71544         * lib/stdarg.in.h (system_header): Likewise.
71545         * lib/stdint.in.h (system_header): Likewise.
71546         * lib/string.in.h (system_header): Likewise.
71547         * lib/strings.in.h (system_header): Likewise.
71548         * lib/sys_file.in.h (system_header): Likewise.
71549         * lib/sys_ioctl.in.h (system_header): Likewise.
71550         * lib/sys_socket.in.h (system_header): Likewise.
71551         * lib/sys_times.in.h (system_header): Likewise.
71552         * lib/sys_utsname.in.h (system_header): Likewise.
71553         * lib/sys_wait.in.h (system_header): Likewise.
71554         * lib/sysexits.in.h (system_header): Likewise.
71555         * lib/unistd.in.h (system_header): Likewise.
71556         * lib/wctype.in.h (system_header): Likewise.
71558         arpa/inet: fix mingw compilation warning
71559         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
71560         Reported by Matthew Bolte.
71562 2010-03-25  Bruno Haible  <bruno@clisp.org>
71564         Avoid collision between gnulib wrapper and libintl wrapper.
71565         * lib/printf.c (printf): Don't define if a printf wrapper is already
71566         defined in intl/printf.c.
71567         Reported by Michel Boaventura <michel@michelboaventura.com>.
71569 2010-03-25  Bruno Haible  <bruno@clisp.org>
71571         Use ANSI C.
71572         * lib/readutmp.h (getutent): Provide ANSI C prototype.
71574 2010-03-25  Bruno Haible  <bruno@clisp.org>
71576         Minor formatting changes.
71577         * lib/acosl.c: Insert space before function argument list.
71578         * lib/argz.c: Likewise.
71579         * lib/asinl.c: Likewise.
71580         * lib/expl.c: Likewise.
71581         * lib/gen-uni-tables.c: Likewise.
71582         * lib/gettext.h: Likewise.
71583         * lib/glthread/lock.h: Likewise.
71584         * lib/tanl.c: Likewise.
71585         * lib/uniname/uniname.c: Likewise.
71586         * tests/test-idpriv-drop.c: Likewise.
71587         * tests/test-idpriv-droptemp.c: Likewise.
71588         * tests/test-lock.c: Likewise.
71589         * tests/test-tls.c: Likewise.
71590         * lib/argp-help.c: Insert space before function-like macro argument
71591         list.
71592         * lib/memcmp.c: Likewise.
71593         * tests/test-base64.c: Likewise.
71594         * lib/localename.c: Insert space before sizeof's argument list.
71595         * lib/safe-alloc.h: Likewise.
71596         * lib/file-set.h: Insert space before macro argument list.
71597         * tests/test-argp.c: Likewise.
71598         * lib/argp-namefrob.h: Insert space before function parameter list.
71599         * lib/getaddrinfo.c: Likewise.
71600         * lib/netdb.in.h: Likewise.
71601         * lib/parse-duration.h: Likewise.
71602         * lib/parse-duration.c: Likewise.
71603         * lib/poll.c: Likewise.
71604         * lib/select.c: Likewise.
71605         * lib/trim.h: Likewise.
71606         * tests/test-usleep.c: Likewise.
71607         * lib/ldexpl.c: Insert space before function parameter list and before
71608         function argument list.
71609         * lib/logl.c: Likewise.
71610         * lib/sqrtl.c: Likewise.
71611         * lib/trim.c: Likewise.
71612         * lib/cosl.c: Use GNU style indentation. Insert space before function
71613         argument list.
71614         * lib/sinl.c: Likewise.
71615         * lib/tsearch.c: Insert space after 'for'.
71616         Reported by Jim Meyering.
71618 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
71620         * maint.mk (sc_Wundef_boolean): Check for the presence of the
71621         config header before grepping, as it's not present before
71622         autoreconf/configure are run.  Reported by Simon Josefsson.
71624 2010-03-23  Bruno Haible  <bruno@clisp.org>
71626         pt_chown: Make it work with automake < 1.11.
71627         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
71628         Reported by Simon Josefsson.
71630 2010-03-23  Bruno Haible  <bruno@clisp.org>
71632         pt_chown: Don't depend on GPLed modules.
71633         * lib/pt_chown.c: Don't include idpriv.h.
71634         (main): Don't drop privileges.
71635         * modules/pt_chown (Depends-on): Remove idpriv-drop.
71636         Reported by Simon Josefsson.
71638 2010-03-24  Simon Josefsson  <simon@josefsson.org>
71640         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
71641         suggestions from karl@freefriends.org (Karl Berry).
71643 2010-03-22  Eric Blake  <eblake@redhat.com>
71645         gethostname: further tweaks
71646         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
71647         are overriding gethostname.
71648         Suggested by Bruno Haible.
71650 2010-03-21  Bruno Haible  <bruno@clisp.org>
71652         Fix comments.
71653         * lib/forkpty.c (rpl_forkpty): Fix comment.
71654         * lib/openpty.c (rpl_openpty): Likewise.
71655         Reported by Eric Blake.
71657 2010-03-22  Eric Blake  <eblake@redhat.com>
71659         gethostname: fix build on mingw
71660         * lib/unistd.in.h (includes): Work around fact that mingw
71661         <winsock2.h> re-includes <unistd.h>, by avoiding any
71662         redeclarations if we are being included by <winsock2.h>.
71663         Reported by Matthias Bolte.
71665 2010-03-21  Bruno Haible  <bruno@clisp.org>
71667         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71668         * lib/forkpty.c (forkpty): New replacement function, from glibc with
71669         modifications.
71670         * lib/pty.in.h (forkpty): Update declaration. Add comments.
71671         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
71672         provide the replacement.
71673         * modules/forkpty (Depends-on): Add openpty, login_tty.
71674         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
71675         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
71676         * doc/glibc-functions/forkpty.texi: More supported platforms.
71677         * config/srclist.txt: Add forkpty.c (commented).
71679 2010-03-21  Bruno Haible  <bruno@clisp.org>
71681         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
71682         (Makefile.am): Verify that PTY_LIB is defined.
71684         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
71686 2010-03-21  Bruno Haible  <bruno@clisp.org>
71688         Tests for module 'login_tty'.
71689         * modules/login_tty-tests: New file.
71690         * tests/test-login_tty.c: New file.
71692         New module 'login_tty'.
71693         * lib/login_tty.c: New file.
71694         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
71695         * modules/login_tty: New file.
71696         * doc/glibc-functions/login_tty.texi: Mention the new module.
71698 2010-03-21  Bruno Haible  <bruno@clisp.org>
71700         login_tty: Documentation.
71701         * doc/glibc-functions/login_tty.texi: New file.
71702         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
71704 2010-03-21  Bruno Haible  <bruno@clisp.org>
71706         pty: Consistent macro naming.
71707         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
71708         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
71709         * modules/pty (configure.ac): Update.
71711 2010-03-21  Bruno Haible  <bruno@clisp.org>
71713         Tests for openpty: Make stricter.
71714         * tests/test-openpty.c (main): Add test of canonical processing and
71715         erase.
71716         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
71718         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71719         * lib/openpty.c (openpty): New replacement function.
71720         * lib/pty.in.h: Include <termios.h>.
71721         (openpty): Update declaration. Add comments.
71722         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
71723         is not declared, arrange to provide the replacement. Check for _getpty
71724         and posix_openpt.
71725         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
71726         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
71727         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
71728         * modules/pty-tests (test_pty_c___LDADD): New variable.
71729         * doc/glibc-functions/openpty.texi: More supported platforms.
71731 2010-03-21  Bruno Haible  <bruno@clisp.org>
71733         setenv: Tweaks.
71734         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
71735         the test program.
71736         * doc/posix-functions/setenv.texi: Update platforms list.
71738 2010-03-21  Bruno Haible  <bruno@clisp.org>
71740         New module 'unlockpt'.
71741         * lib/unlockpt.c: New file, from glibc with modifications.
71742         * m4/unlockpt.m4: New file.
71743         * modules/unlockpt: New file.
71744         * lib/stdlib.in.h (unlockpt): New declaration.
71745         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
71746         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
71747         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
71748         HAVE_UNLOCKPT.
71749         * doc/posix-functions/unlockpt.texi: Mention the new module.
71750         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
71751         * config/srclist.txt: Add unlockpt.c (commented).
71753 2010-03-21  Jim Meyering  <meyering@redhat.com>
71755         maint.mk: prohibit inclusion of "intprops.h" without use
71756         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
71758 2010-03-21  Bruno Haible  <bruno@clisp.org>
71760         New module 'grantpt'.
71761         * lib/grantpt.c: New file, from glibc with modifications.
71762         * m4/grantpt.m4: New file.
71763         * modules/grantpt: New file.
71764         * lib/stdlib.in.h (grantpt): New declaration.
71765         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
71766         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
71767         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
71768         HAVE_GRANTPT.
71769         * doc/posix-functions/grantpt.texi: Mention the new module.
71770         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
71771         * config/srclist.txt: Add grantpt.c (commented).
71773 2010-03-21  Bruno Haible  <bruno@clisp.org>
71775         New module 'pt_chown'.
71776         * lib/pt_chown.c: New file, from glibc with modifications.
71777         * lib/pty-private.h: New file, from glibc with modifications.
71778         * modules/pt_chown: New file.
71779         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
71781 2010-03-21  Bruno Haible  <bruno@clisp.org>
71783         Tests for module 'ptsname'.
71784         * modules/ptsname-tests: New file.
71785         * tests/test-ptsname.c: New file.
71787         New module 'ptsname'.
71788         * lib/ptsname.c: New file, from glibc with modifications.
71789         * m4/ptsname.m4: New file.
71790         * modules/ptsname: New file.
71791         * lib/stdlib.in.h (ptsname): New declaration.
71792         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
71793         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
71794         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
71795         HAVE_PTSNAME.
71796         * doc/posix-functions/ptsname.texi: Mention the new module.
71797         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
71798         * config/srclist.txt: Add ptsname.c (commented).
71800 2010-03-21  Bruno Haible  <bruno@clisp.org>
71802         Tests for module 'ttyname_r'.
71803         * modules/ttyname_r-tests: New file.
71804         * tests/test-ttyname_r.c: New file.
71806         New module 'ttyname_r'.
71807         * lib/ttyname_r.c: New file.
71808         * m4/ttyname_r.m4: New file.
71809         * modules/ttyname_r: New file.
71810         * lib/unistd.in.h (ttyname_r): New declaration.
71811         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
71812         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
71813         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
71814         HAVE_TTYNAME_R.
71815         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
71816         * doc/posix-functions/ttyname_r.texi: Mention the new module.
71818 2010-03-20  Bruno Haible  <bruno@clisp.org>
71820         signal: Undefine macro definitions in C++ mode.
71821         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
71822         sigfillset): Undefine macro definitions from the system header in C++
71823         mode.
71824         Reported by John W. Eaton <jwe@gnu.org>.
71826 2010-03-20  Bruno Haible  <bruno@clisp.org>
71828         Ensure no #include statements inside extern "C" { ... }.
71829         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
71830         contain #include statements.
71831         * lib/time.in.h: Likewise.
71833 2010-03-20  Bruno Haible  <bruno@clisp.org>
71835         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
71836         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
71837         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
71838         Reported by John W. Eaton <jwe@gnu.org>.
71840 2010-03-20  Bruno Haible  <bruno@clisp.org>
71842         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
71843         Reported by Jim Meyering.
71845 2010-03-20  Bruno Haible  <bruno@clisp.org>
71847         pipe: Set errno upon failure.
71848         * lib/pipe.h: Specify that when -1 is returned, errno is set.
71849         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
71850         errno value in error message.
71852 2010-03-20  Bruno Haible  <bruno@clisp.org>
71853             Jim Meyering  <meyering@redhat.com>
71855         lchown: Avoid "unused variable" warning.
71856         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
71858 2010-03-20  Bruno Haible  <bruno@clisp.org>
71860         Work around unlink() bug on MacOS X 10.5.6.
71861         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
71862         attempting to unlink a parent directory.
71863         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
71864         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
71865         activate for the replacement function.
71866         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
71868 2010-03-20  Bruno Haible  <bruno@clisp.org>
71870         Fix link errors on Solaris 8.
71871         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
71872         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
71874 2010-03-19  Jim Meyering  <meyering@redhat.com>
71876         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
71877         The _LIBC implementation of build_range_exp correctly honors the
71878         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
71879         However, the non-_LIBC implementation would ignore that syntax-bit
71880         flag and return REG_ERANGE unconditionally.
71881         This change makes it honor that flag.
71882         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
71883         Make two pointer parameters "const".
71884         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
71885         (parse_bracket_exp): Update caller.
71887         regex.m4: correct the reversed range endpoint ([b-a]) test
71888         * m4/regex.m4: When requiring that [b-a] evoke failure,
71889         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
71890         test pass once again for x86-based systems.
71892 2010-03-19  Bruno Haible  <bruno@clisp.org>
71894         scandir: Fix link error on Solaris 8.
71895         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
71896         macros.
71898 2010-03-19  Bruno Haible  <bruno@clisp.org>
71900         getusershell: Fix documentation.
71901         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
71902         module.
71903         * doc/glibc-functions/setusershell.texi: Likewise.
71905         getusershell: Provide declaration, missing on Solaris 9.
71906         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
71907         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
71908         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
71909         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
71910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71911         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
71912         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
71913         HAVE_GETUSERSHELL.
71914         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
71916 2010-03-19  Bruno Haible  <bruno@clisp.org>
71918         wctype: Provide iswblank function.
71919         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
71920         exists and is fine.
71921         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
71922         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
71923         * tests/test-wctype.c (main): Re-enable the iswblank tests.
71924         * doc/posix-functions/iswblank.texi: Update.
71926 2010-03-19  Bruno Haible  <bruno@clisp.org>
71928         Tests of module 'pty' in C++ mode.
71929         * modules/pty-tests: New file.
71930         * tests/test-pty-c++.cc: New file.
71931         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71933 2010-03-19  Eric Blake  <eblake@redhat.com>
71935         logb: fix documentation
71936         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
71937         1.5 declaration bug.
71939         forkpty, openpty: prefer glibc's const-safe prototype
71940         * lib/forkpty.c (rpl_forkpty): New file.
71941         * lib/openpty.c (rpl_openpty): Likewise.
71942         * modules/forkpty (Files): Distribute it.
71943         * modules/openpty (Files): Likewise.
71944         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
71945         check...
71946         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
71947         replacement for non-const BSD signature.
71948         * modules/pty (Makefile.am): Substitute witnesses.
71949         * lib/pty.in.h (forkpty, openpty): Declare replacements.
71950         * tests/test-forkpty.c: Update signature check.
71951         * tests/test-openpty.c: Likewise.
71952         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
71953         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71955         forkpty, openpty: split functions into new modules
71956         * modules/pty (Makefile.am): Substitute new witnesses.
71957         (Libraries): Move library detection...
71958         * modules/forkpty: ...into new module.
71959         * modules/openpty: Another new module.
71960         * modules/pty-tests: Rename and split...
71961         * modules/forkpty-tests: ...to this...
71962         * modules/openpty-tests: ...and this.
71963         * tests/test-pty.c: Rename and split...
71964         * tests/test-forkpty.c: ...to this...
71965         * tests/test-openpty.c: ...and this.
71966         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
71967         (gl_PTY): Split library searching...
71968         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
71969         (gl_FORKPTY, gl_OPENPTY): New macros.
71970         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
71971         * NEWS: Mention the split.
71972         * MODULES.html.sh (Misc): Document the modules.
71973         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
71974         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71976         pty: improve replacement header
71977         * lib/pty.in.h: New file.
71978         * modules/pty (Files): Ship it.
71979         (Makefile.am): Always build replacement.
71980         * m4/pty.m4: Rename...
71981         * m4/pty_h.m4: ...to this.
71982         (gl_PTY): Modernize setting of witness macros; update check of
71983         forkpty to take proper advantage of cache.
71984         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
71986         getopt: avoid compiler warning
71987         * lib/getopt.c (attribute_hidden): Remove unused macro.
71989 2010-03-18  Bruno Haible  <bruno@clisp.org>
71991         Fix link errors on Solaris 8.
71992         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
71993         * modules/search-tests (test_search_c___LDADD): Likewise.
71994         * modules/signal-tests (test_signal_c___LDADD): Likewise.
71995         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
71996         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
71997         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
71998         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
71999         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
72000         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
72002 2010-03-18  Bruno Haible  <bruno@clisp.org>
72004         Fix bug introduced on 2010-03-14.
72005         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
72006         (gl_SPAWN_H): Require it.
72007         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
72008         Reported by Simon Josefsson.
72010 2010-03-18  Bruno Haible  <bruno@clisp.org>
72012         Fix typo introduced on 2009-12-31.
72013         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
72014         posix_spawn_file_actions_adddup2.
72016 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
72017         and Eric Blake  <eblake@redhat.com>
72019         test-vc-list-files-git: make more robust
72020         * tests/test-vc-list-files-git.sh: Unset problematic environment
72021         variables.  Chain commands together.
72023 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
72025         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
72026         `AC_CHECK_DECL' invocation.
72028 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
72030         * lib/inttostr.c (inttostr): Make sure the invocation of verify
72031         appears before executable statements. Suggested by Petr Sumbera
72032         <Petr.Sumbera@Sun.COM>.
72034 2010-03-14  Bruno Haible  <bruno@clisp.org>
72036         * tests/test-flock.c (test_exclusive): Comment out a test that causes
72037         portability problems. Instead use a simpler test.
72038         (main): Check that invalid arguments are rejected only on Linux.
72040 2010-03-14  Bruno Haible  <bruno@clisp.org>
72042         Fix bug introduced on 2009-12-31.
72043         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
72044         gl_PREREQ_SYS_H_WINSOCK2 always.
72045         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
72046         SYS_SOCKET_H variable.
72047         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
72048         Update comments.
72049         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
72050         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72051         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72052         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72053         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
72055 2010-03-14  Bruno Haible  <bruno@clisp.org>
72057         Fix values returned by sinl, cosl.
72058         * lib/trigl.h: Add specification comments.
72059         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
72060         that combines the values from the precomputed table with the values of
72061         the Chebyshev polynomials.
72063 2010-03-14  Bruno Haible  <bruno@clisp.org>
72065         Fix compilation error when modules 'posix_spawn[p]' are not used.
72066         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
72067         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
72069 2010-03-14  Bruno Haible  <bruno@clisp.org>
72071         Fix compilation error on mingw when module 'time_r' is not used.
72072         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
72073         is 1.
72074         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
72075         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
72076         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
72077         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
72079 2010-03-14  Bruno Haible  <bruno@clisp.org>
72081         Fix compilation error with Sun C.
72082         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
72083         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
72084         instead of GCC specific ULONG_LONG_MAX.
72085         * lib/xstrtoll.c: Likewise.
72086         * lib/xstrtoull.c: Likewise.
72088 2010-03-13  Bruno Haible  <bruno@clisp.org>
72090         Allow the user to disable C++ code and tests.
72091         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
72092         (gl_PROG_ANSI_CXX): Require it.
72094 2010-03-13  Bruno Haible  <bruno@clisp.org>
72096         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
72097         cases.
72099 2010-03-13  Bruno Haible  <bruno@clisp.org>
72101         Test that gnulib does not break the standard C++ headers.
72102         * tests/test-locale-c++2.cc: New file.
72103         * modules/locale-tests (Files): Add it.
72104         (Makefile.am): Compile it for test-locale-c++.
72105         * tests/test-math-c++2.cc: New file.
72106         * modules/math-tests (Files): Add it.
72107         (Makefile.am): Compile it for test-math-c++.
72108         * tests/test-signal-c++2.cc: New file.
72109         * modules/signal-tests (Files): Add it.
72110         (Makefile.am): Compile it for test-signal-c++.
72111         * tests/test-stdio-c++2.cc: New file.
72112         * modules/stdio-tests (Files): Add it.
72113         (Makefile.am): Compile it for test-stdio-c++.
72114         * tests/test-stdlib-c++2.cc: New file.
72115         * modules/stdlib-tests (Files): Add it.
72116         (Makefile.am): Compile it for test-stdlib-c++.
72117         * tests/test-string-c++2.cc: New file.
72118         * modules/string-tests (Files): Add it.
72119         (Makefile.am): Compile it for test-string-c++.
72120         * tests/test-time-c++2.cc: New file.
72121         * modules/time-tests (Files): Add it.
72122         (Makefile.am): Compile it for test-time-c++.
72123         Reported by John W. Eaton <jwe@gnu.org>.
72125 2010-03-13  Bruno Haible  <bruno@clisp.org>
72127         * gnulib-tool (func_usage): Clarify which options are available for
72128         --create-testdir and --create-megatestdir.
72130 2010-03-13  Bruno Haible  <bruno@clisp.org>
72132         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
72133         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
72134         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
72135         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
72136         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
72137         when appropriate.
72138         Reported by Jim Meyering.
72140 2010-03-12  Simon Josefsson  <simon@josefsson.org>
72142         * gnulib-tool (func_import): Explain origin of code.
72144 2010-03-12  Bruno Haible  <bruno@clisp.org>
72146         Fix problem with automake's definition of CXXLINK.
72147         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
72148         Reported by Simon Josefsson and Ludovic Courtès.
72150 2010-03-12  Bruno Haible  <bruno@clisp.org>
72152         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
72153         stable releases.
72155 2010-03-11  Bruno Haible  <bruno@clisp.org>
72157         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
72158         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
72159         whether the system provides one variant or multiple variants of the
72160         function.
72161         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
72162         C++ compilers.
72163         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
72164         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
72165         Reported by Jim Meyering.
72167 2010-03-09  Simon Josefsson  <simon@josefsson.org>
72169         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
72171 2010-03-08  Bruno Haible  <bruno@clisp.org>
72173         gnulib-tool: Add support for --libtool in --create-testdir.
72174         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
72175         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
72177 2010-03-08  Eric Blake  <eblake@redhat.com>
72179         gnulib-tool.texi: mention possibility of git submodule
72180         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
72181         submodules.
72182         * doc/.gitignore: Ignore another generated file.
72184 2010-03-08  Karl Berry  <karl@gnu.org>
72186         * doc/gnulib-tool.texi (VCS Issues): Mention third option
72187         of committing gnulib files while skipping others.
72189 2010-03-07  Bruno Haible  <bruno@clisp.org>
72191         Tests of module 'wctype' in C++ mode.
72192         * tests/test-wctype-c++.cc: New file.
72193         * modules/wctype-tests (Files): Add it and tests/signature.h.
72194         (Depends-on): Add ansi-c++-opt.
72195         (Makefile.am): Arrange to compile and run test-wctype-c++.
72197         Tests of module 'wchar' in C++ mode.
72198         * tests/test-wchar-c++.cc: New file.
72199         * modules/wchar-tests (Files): Add it and tests/signature.h.
72200         (Depends-on): Add ansi-c++-opt.
72201         (Makefile.am): Arrange to compile and run test-wchar-c++.
72202         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
72203         gl_MODULE_INDICATOR.
72205         Tests of module 'unistd' in C++ mode.
72206         * tests/test-unistd-c++.cc: New file.
72207         * modules/unistd-tests (Files): Add it and tests/signature.h.
72208         (Depends-on): Add ansi-c++-opt.
72209         (Makefile.am): Arrange to compile and run test-unistd-c++.
72210         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
72211         gl_MODULE_INDICATOR.
72213         Tests of module 'time' in C++ mode.
72214         * tests/test-time-c++.cc: New file.
72215         * modules/time-tests (Files): Add it and tests/signature.h.
72216         (Depends-on): Add ansi-c++-opt.
72217         (Makefile.am): Arrange to compile and run test-time-c++.
72218         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
72220         Tests of module 'sys_time' in C++ mode.
72221         * tests/test-sys_time-c++.cc: New file.
72222         * modules/sys_time-tests (Files): Add it and tests/signature.h.
72223         (Depends-on): Add ansi-c++-opt.
72224         (Makefile.am): Arrange to compile and run test-sys_time-c++.
72225         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
72226         gl_MODULE_INDICATOR.
72228         Tests of module 'sys_stat' in C++ mode.
72229         * tests/test-sys_stat-c++.cc: New file.
72230         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
72231         (Depends-on): Add ansi-c++-opt.
72232         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
72233         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
72234         gl_MODULE_INDICATOR.
72236         Tests of module 'sys_socket' in C++ mode.
72237         * tests/test-sys_socket-c++.cc: New file.
72238         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
72239         (Depends-on): Add ansi-c++-opt.
72240         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
72241         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
72242         gl_MODULE_INDICATOR.
72244         Tests of module 'sys_select' in C++ mode.
72245         * tests/test-sys_select-c++.cc: New file.
72246         * modules/sys_select-tests (Files): Add it and tests/signature.h.
72247         (Depends-on): Add ansi-c++-opt.
72248         (Makefile.am): Arrange to compile and run test-sys_select-c++.
72249         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
72250         gl_MODULE_INDICATOR.
72252         Tests of module 'sys_ioctl' in C++ mode.
72253         * tests/test-sys_ioctl-c++.cc: New file.
72254         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
72255         (Depends-on): Add ansi-c++-opt.
72256         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
72257         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
72258         gl_MODULE_INDICATOR.
72260         Tests of module 'string' in C++ mode.
72261         * tests/test-string-c++.cc: New file.
72262         * modules/string-tests (Files): Add it and tests/signature.h.
72263         (Depends-on): Add ansi-c++-opt.
72264         (Makefile.am): Arrange to compile and run test-string-c++.
72265         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
72266         gl_MODULE_INDICATOR.
72268         Tests of module 'stdlib' in C++ mode.
72269         * tests/test-stdlib-c++.cc: New file.
72270         * modules/stdlib-tests (Files): Add it and tests/signature.h.
72271         (Depends-on): Add ansi-c++-opt.
72272         (Makefile.am): Arrange to compile and run test-stdlib-c++.
72273         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
72274         gl_MODULE_INDICATOR.
72276         Tests of module 'stdio' in C++ mode.
72277         * tests/test-stdio-c++.cc: New file.
72278         * modules/stdio-tests (Files): Add it and tests/signature.h.
72279         (Depends-on): Add ansi-c++-opt.
72280         (Makefile.am): Arrange to compile and run test-stdio-c++.
72281         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
72282         gl_MODULE_INDICATOR.
72284         Tests of module 'spawn' in C++ mode.
72285         * tests/test-spawn-c++.cc: New file.
72286         * modules/spawn-tests (Files): Add it and tests/signature.h.
72287         (Depends-on): Add ansi-c++-opt.
72288         (Makefile.am): Arrange to compile and run test-spawn-c++.
72289         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
72290         gl_MODULE_INDICATOR.
72292         Tests of module 'signal' in C++ mode.
72293         * tests/test-signal-c++.cc: New file.
72294         * modules/signal-tests (Files): Add it and tests/signature.h.
72295         (Depends-on): Add ansi-c++-opt.
72296         (Makefile.am): Arrange to compile and run test-signal-c++.
72297         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
72298         gl_MODULE_INDICATOR.
72300         Tests of module 'search' in C++ mode.
72301         * tests/test-search-c++.cc: New file.
72302         * modules/search-tests (Files): Add it and tests/signature.h.
72303         (Depends-on): Add ansi-c++-opt.
72304         (Makefile.am): Arrange to compile and run test-search-c++.
72305         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
72306         gl_MODULE_INDICATOR.
72308         Tests of module 'math' in C++ mode.
72309         * tests/test-math-c++.cc: New file.
72310         * modules/math-tests (Files): Add it and tests/signature.h.
72311         (Depends-on): Add ansi-c++-opt.
72312         (Makefile.am): Arrange to compile and run test-math-c++.
72313         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
72315         Tests of module 'locale' in C++ mode.
72316         * tests/test-locale-c++.cc: New file.
72317         * modules/locale-tests (Files): Add it and tests/signature.h.
72318         (Depends-on): Add ansi-c++-opt.
72319         (Makefile.am): Arrange to compile and run test-locale-c++.
72320         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
72321         gl_MODULE_INDICATOR.
72323         Tests of module 'langinfo' in C++ mode.
72324         * tests/test-langinfo-c++.cc: New file.
72325         * modules/langinfo-tests (Files): Add it and tests/signature.h.
72326         (Depends-on): Add ansi-c++-opt.
72327         (Makefile.am): Arrange to compile and run test-langinfo-c++.
72328         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
72329         gl_MODULE_INDICATOR.
72331         Tests of module 'iconv-h' in C++ mode.
72332         * tests/test-iconv-h-c++.cc: New file.
72333         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
72334         (Depends-on): Add ansi-c++-opt.
72335         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
72337         Tests of module 'glob' in C++ mode.
72338         * tests/test-glob-c++.cc: New file.
72339         * modules/glob-tests (Files): Add it.
72340         (Depends-on): Add ansi-c++-opt.
72341         (Makefile.am): Arrange to compile and run test-glob-c++.
72343         Tests of module 'fcntl-h' in C++ mode.
72344         * tests/test-fcntl-h-c++.cc: New file.
72345         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
72346         (Depends-on): Add ansi-c++-opt.
72347         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
72348         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
72349         gl_MODULE_INDICATOR.
72351         Tests of module 'dirent' in C++ mode.
72352         * tests/test-dirent-c++.cc: New file.
72353         * modules/dirent-tests (Files): Add it and tests/signature.h.
72354         (Depends-on): Add ansi-c++-opt.
72355         (Makefile.am): Arrange to compile and run test-dirent-c++.
72356         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
72357         gl_MODULE_INDICATOR.
72359         New module 'ansi-c++-opt'.
72360         * modules/ansi-c++-opt: New file.
72361         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
72363         Document C++ namespace mode.
72364         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
72366         wctype: Avoid #define replacements in C++ mode.
72367         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
72368         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
72369         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
72370         In C++, define a namespaced alias symbol.
72371         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
72372         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
72373         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
72374         rule.
72376         wchar: Avoid #define replacements in C++ mode.
72377         * lib/wchar.in.h: Include c++defs.h.
72378         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
72379         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
72380         symbol.
72381         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
72382         * modules/wchar (Depends-on): Add c++defs.
72383         (Makefile.am): Update wchar.h rule.
72385         unistd: Avoid #define replacements in C++ mode.
72386         * lib/unistd.in.h: Include c++defs.h.
72387         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
72388         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
72389         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
72390         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
72391         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
72392         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
72393         symbol.
72394         (environ): Update.
72395         * modules/unistd (Depends-on): Add c++defs.
72396         (Makefile.am): Update unistd.h rule.
72398         time: Avoid #define replacements in C++ mode.
72399         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
72400         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
72401         define a namespaced alias symbol.
72402         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
72403         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
72404         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
72405         * modules/time (Depends-on): Add c++defs, warn-on-use.
72406         (Makefile.am): Update time.h rule.
72407         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
72408         * modules/nanosleep (configure.ac): Likewise.
72409         * modules/strptime (configure.ac): Likewise.
72410         * modules/timegm (configure.ac): Likewise.
72412         sys_time: Avoid #define replacements in C++ mode.
72413         * lib/sys_time.in.h: Include c++defs.h.
72414         (gettimeofday): In C++, define a namespaced alias symbol.
72415         * modules/sys_time (Depends-on): Add c++defs.
72416         (Makefile.am): Update sys/time.h rule.
72418         sys_stat: Avoid #define replacements in C++ mode.
72419         * lib/sys_stat.in.h: Include c++defs.h.
72420         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
72421         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
72422         namespaced alias symbol.
72423         In C++, define a namespaced alias symbol.
72424         * modules/sys_stat (Depends-on): Add c++defs.
72425         (Makefile.am): Update sys/stat.h rule.
72427         sys_socket: Avoid #define replacements in C++ mode.
72428         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
72429         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
72430         definitions also when the system has a <sys/socket.h>.
72431         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
72432         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
72433         In C++, define a namespaced alias symbol.
72434         * modules/sys_socket (Depends-on): Add c++defs.
72435         (Makefile.am): Update sys/socket.h rule.
72437         sys_select: Avoid #define replacements in C++ mode.
72438         * lib/sys_select.in.h: Include c++defs.h. Enable the function
72439         definitions also when the system has a <sys/select.h>.
72440         (select): In C++, define a namespaced alias symbol.
72441         * modules/sys_select (Depends-on): Add c++defs.
72442         (Makefile.am): Update sys/select.h rule.
72444         sys_ioctl: Avoid #define replacements in C++ mode.
72445         * lib/sys_ioctl.in.h: Include c++defs.h.
72446         (ioctl): In C++, define a namespaced alias symbol.
72447         * modules/sys_ioctl (Depends-on): Add c++defs.
72448         (Makefile.am): Update sys/ioctl.h rule.
72450         string: Avoid #define replacements in C++ mode.
72451         * lib/string.in.h: Include c++defs.h.
72452         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
72453         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72454         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72455         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
72456         strsignal, strverscmp): In C++, define a namespaced alias symbol.
72457         * modules/string (Depends-on): Add c++defs.
72458         (Makefile.am): Update string.h rule.
72460         stdlib: Avoid #define replacements in C++ mode.
72461         * lib/stdlib.in.h: Include c++defs.h.
72462         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
72463         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
72464         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
72465         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
72466         symbol.
72467         * modules/stdlib (Depends-on): Add c++defs.
72468         (Makefile.am): Update stdlib.h rule.
72470         stdio: Avoid #define replacements in C++ mode.
72471         * lib/stdio.in.h: Include c++defs.h.
72472         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
72473         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
72474         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
72475         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
72476         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
72477         namespaced alias symbol.
72478         * modules/stdio (Depends-on): Add c++defs.
72479         (Makefile.am): Update stdio.h rule.
72481         spawn: Avoid #define replacements in C++ mode.
72482         * lib/spawn.in.h: Include c++defs.h.
72483         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72484         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72485         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72486         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72487         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72488         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72489         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72490         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72491         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72492         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72493         In C++, define a namespaced alias symbol.
72494         * modules/spawn (Depends-on): Add c++defs.
72495         (Makefile.am): Update spawn.h rule.
72497         signal: Avoid #define replacements in C++ mode.
72498         * lib/signal.in.h: Include c++defs.h.
72499         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72500         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
72501         namespaced alias symbol.
72502         * modules/signal (Depends-on): Add c++defs.
72503         (Makefile.am): Update signal.h rule.
72505         search: Avoid #define replacements in C++ mode.
72506         * lib/search.in.h: Include c++defs.h.
72507         (_gl_search_compar_fn, _gl_search_action_fn): New types.
72508         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
72509         symbol.
72510         * modules/search (Depends-on): Add c++defs.
72511         (Makefile.am): Update search.h rule.
72513         math: Avoid #define replacements in C++ mode.
72514         * lib/math.in.h: Include c++defs.h.
72515         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
72516         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
72517         trunc, truncl): In C++, define a namespaced alias symbol.
72518         * modules/math (Depends-on): Add c++defs.
72519         (Makefile.am): Update math.h rule.
72521         locale: Avoid #define replacements in C++ mode.
72522         * lib/locale.in.h: Include c++defs.h.
72523         (duplocale): In C++, define a namespaced alias symbol.
72524         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
72525         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
72526         * modules/locale (Depends-on): Add c++defs.
72527         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
72529         langinfo: Avoid #define replacements in C++ mode.
72530         * lib/langinfo.in.h: Include c++defs.h.
72531         (nl_langinfo): In C++, define a namespaced alias symbol.
72532         * modules/langinfo (Depends-on): Add c++defs.
72533         (Makefile.am): Update langinfo.h rule.
72535         iconv-h: Avoid #define replacements in C++ mode.
72536         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
72537         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
72538         symbol.
72539         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72540         whenever iconv is present.
72541         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
72542         (Makefile.am): Update iconv.h rule.
72544         glob: Avoid #define replacements in C++ mode.
72545         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
72546         (_gl_glob_errfunc_fn): New type.
72547         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
72548         symbol.
72549         * modules/glob (Depends-on): Add c++defs, warn-on-use.
72550         (Makefile.am): Update glob.h rule.
72552         fcntl-h: Avoid #define replacements in C++ mode.
72553         * lib/fcntl.in.h: Include c++defs.h.
72554         (fcntl, open, openat): In C++, define a namespaced alias symbol.
72555         * modules/fcntl-h (Depends-on): Add c++defs.
72556         (Makefile.am): Update fcntl.h rule.
72558         dirent: Avoid #define replacements in C++ mode.
72559         * lib/dirent.in.h: Include c++defs.h.
72560         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
72561         namespaced alias symbol.
72562         (dirfd): Update declaration.
72563         * modules/dirent (Depends-on): Add c++defs.
72564         (Makefile.am): Update dirent.h rule.
72566         ctype: Make it usable in C++ code.
72567         * lib/ctype.in.h: Include c++defs.h.
72568         (isblank): Declare as extern "C".
72569         * modules/ctype (Depends-on): Add c++defs.
72570         (Makefile.am): Update ctype.h rule.
72572         New module 'c++defs'.
72573         * modules/c++defs: New file.
72574         * build-aux/c++defs.h: New file.
72575         Reported by John W. Eaton <jwe@gnu.org>.
72577 2010-03-07  Bruno Haible  <bruno@clisp.org>
72579         logb: Provide missing declaration for Cygwin.
72580         * lib/math.in.h (logb): New declaration.
72581         * m4/logb.m4: New file.
72582         * modules/logb (Files): Add m4/logb.m4.
72583         (Depends-on): Add math.
72584         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
72585         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
72586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
72587         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
72588         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
72590 2010-03-07  Bruno Haible  <bruno@clisp.org>
72592         Fix test-cond link error.
72593         * tests/test-cond.c: Include <stdio.h>.
72595 2010-03-07  Bruno Haible  <bruno@clisp.org>
72597         Fix test-dirent-safer link error.
72598         * modules/dirent-safer-tests (Makefile.am): Define
72599         test_dirent_safer_LDADD.
72601 2010-03-07  Bruno Haible  <bruno@clisp.org>
72603         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
72604         among default module list.
72606 2010-03-07  Bruno Haible  <bruno@clisp.org>
72608         Fix link error on platforms with GNU libiconv.
72609         * modules/unistr/u8-strcoll-tests (Makefile): Define
72610         test_u8_strcoll_LDADD.
72611         * modules/unistr/u16-strcoll-tests (Makefile): Define
72612         test_u16_strcoll_LDADD.
72613         * modules/unistr/u32-strcoll-tests (Makefile): Define
72614         test_u32_strcoll_LDADD.
72616 2010-03-07  Bruno Haible  <bruno@clisp.org>
72618         Use POSIX declarations for socket functions.
72619         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
72620         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
72621         rpl_sendto): Change declaration to match POSIX.
72622         * lib/connect.c (rpl_connect): Likewise.
72623         * lib/accept.c (rpl_accept): Likewise.
72624         * lib/bind.c (rpl_bind): Likewise.
72625         * lib/getpeername.c (rpl_getpeername): Likewise.
72626         * lib/getsockname.c (rpl_getsockname): Likewise.
72627         * lib/recv.c (rpl_recv): Likewise.
72628         * lib/send.c (rpl_send): Likewise.
72629         * lib/recvfrom.c (rpl_recvfrom): Likewise.
72630         * lib/sendto.c (rpl_sendto): Likewise.
72632 2010-03-06  Bruno Haible  <bruno@clisp.org>
72634         Clarify access, euidaccess, faccessat.
72635         * doc/posix-functions/faccessat.texi: Mention security problem under
72636         "Other problems", not "Portability problems".
72637         * doc/posix-functions/access.texi: Likewise. Mention a related security
72638         problem.
72639         * doc/glibc-functions/euidaccess.texi: Mention security problems.
72640         * lib/euidaccess.c: Add comments about platforms.
72641         * lib/unistd.in.h (access, euidaccess): Add warnings.
72643 2010-03-07  Bruno Haible  <bruno@clisp.org>
72645         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
72646         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
72647         (POSIX_SPAWN_SETSCHEDULER): Likewise.
72648         (POSIX_SPAWN_USEVFORK): Define in a way that works when
72649         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72650         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
72651         declare when POSIX_SPAWN_SETSCHEDULER is zero.
72652         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
72653         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
72654         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
72655         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
72656         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
72657         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
72658         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
72659         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
72660         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
72661         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
72662         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
72663         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
72664         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
72665         Likewise.
72666         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
72667         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
72668         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
72669         Likewise.
72670         * tests/test-spawn.c (main): Make it work when
72671         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72673 2010-03-07  Bruno Haible  <bruno@clisp.org>
72675         Fix incorrect Makefile.am generation in German locale.
72676         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72677         Execute sed command with character range in C locale.
72679 2010-03-06  Bruno Haible  <bruno@clisp.org>
72681         Tests for module 'iconv-h'.
72682         * modules/iconv-h-tests: New file.
72683         * tests/test-iconv-h.c: New file.
72685         New module 'iconv-h'.
72686         * modules/iconv-h: New file.
72687         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
72688         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
72689         (configure.ac): Remove gl_ICONV_H.
72690         (Makefile.am): Remove rule for iconv.h.
72692 2010-03-06  Bruno Haible  <bruno@clisp.org>
72694         More consistent naming of *.m4 files.
72695         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
72696         * modules/wctype (Files): Update.
72698         More consistent naming of *.m4 files.
72699         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
72700         * modules/wchar (Files): Update.
72702 2010-03-06  Jim Meyering  <meyering@redhat.com>
72704         euidaccess: relax license to LGPLv2+
72705         * modules/euidaccess (License): Relax to LGPLv2+.
72707 2010-03-06  Bruno Haible  <bruno@clisp.org>
72709         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
72710         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
72711         (Makefile.am): Augment lib_SOURCES instead.
72713 2010-03-04  Jim Meyering  <meyering@redhat.com>
72715         utime: remove obsolete module
72716         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
72717         unnecessary for years, and has been marked as obsolete for 10 months.
72718         * modules/utime: Remove file.
72719         * lib/utime.c: Remove file.
72720         * m4/utime.m4: Remove file.
72721         * m4/utimes-null.m4: Remove file.
72722         * doc/posix-functions/utime.texi (utime): Remove reference to
72723         the module.  Move the sole "fixed by gnulib" item into the
72724         "problems not fixed by Gnulib" list.
72725         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
72727 2010-03-05  Simon Josefsson  <simon@josefsson.org>
72729         * modules/exit (License): Relax license to LGPLv2+.
72730         (Status): Mark as obsolete.
72731         * NEWS: Mention deprecated 'exit' module.
72732         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
72733         of now obsolete 'exit'.
72735 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72737         fts-lgpl: remove unused module
72738         * modules/fts-lgpl: Remove.
72739         * MODULES.html.sh (func_all_modules): Adjust.
72740         * check-module (find_included_lib_files): Adjust.
72741         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
72743 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
72745         copy-acl: enhance Solaris ACL error handling
72746         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
72747         * lib/set-mode-acl.c (qset_acl): Likewise.
72749 2010-03-02  Bruno Haible  <bruno@clisp.org>
72751         spawn: Don't override the system defined values on FreeBSD 8.
72752         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
72753         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
72754         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
72755         if HAVE_POSIX_SPAWN is 1.
72756         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
72758 2010-03-01  Bruno Haible  <bruno@clisp.org>
72760         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
72761         regarding Automake.
72763 2010-02-25  Bruno Haible  <bruno@clisp.org>
72765         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
72766         * gnulib-tool: Define 'echo' as a function only before the ksh alias
72767         setting, not afterwards.
72768         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
72770 2010-02-24  Eric Blake  <eblake@redhat.com>
72772         bootstrap, git-version-gen: use timestamp
72773         * build-aux/git-version-gen (scriptversion): Force UTC.
72774         * build-aux/bootstrap (scriptversion): New variable.
72776         bootstrap: allow older git
72777         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
72778         older than 1.6.4.  Requested by the libvirt project.
72780 2010-02-23  Eric Blake  <eblake@redhat.com>
72782         warn-on-use: work with old autoconf
72783         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
72784         AS_VAR semantics of autoconf 2.60.
72785         Reported by Bruno Haible.
72787         bootstrap: improve some comments
72788         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
72789         clarification comments.
72791         gettimeofday: provide correct function
72792         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
72793         when replacement is declared, otherwise provide gettimeofday.
72794         Reported by Michael Goffioul.
72796 2010-02-23  Jim Meyering  <meyering@redhat.com>
72798         lib-ignore: relax license to "unlimited", not LGPLv2+
72799         * modules/lib-ignore (License): Relax to "unlimited".
72801 2010-02-23  Jim Meyering  <meyering@redhat.com>
72803         lib-ignore: relax license to LGPLv2+
72804         * modules/lib-ignore (License): Relax to LGPLv2+.
72806 2010-02-22  Eric Blake  <eblake@redhat.com>
72808         lseek: avoid bash 3.2 broken pipe bug
72809         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
72810         warning from bash 3.2.
72811         Reported by Ben Pfaff, with analysis from Bruno Haible.
72813         bootstrap: support non-FSF copyright holder
72814         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
72815         bootstrap.conf override of COPYRIGHT_HOLDER.
72816         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
72818         bootstrap: interoperate with gettext 0.14.1
72819         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
72821         bootstrap: allow for alternate submodule location
72822         * build-aux/bootstrap (gnulib_path): New variable; use instead of
72823         hardcoding submodule location.
72824         (gnulib_mk): Allow direct use of Makefile.am.
72826         bootstrap: use GNULIB_SRCDIR to reduce disk usage
72827         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
72828         rather than reconfiguring where the submodule points.
72830         gettimeofday: restore support for platforms that lack function
72831         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
72832         replacement if function is missing.
72833         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
72834         * modules/sys_time (Makefile.am): Substitute it.
72835         * lib/sys_time.in.h (gettimeofday): Check it.
72836         Reported by Michael Goffioul.
72838 2010-02-21  Bruno Haible  <bruno@clisp.org>
72840         * lib/stdio.in.h (obstack_printf): Fix typo.
72842 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
72844         vc-list-files: use bzr ls's -R option
72845         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
72846         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
72848 2010-02-21  Jim Meyering  <meyering@redhat.com>
72850         init.sh: fix EXEEXT shims to work also for names like test-prog
72851         * tests/init.sh: Re-exec a better shell, when needed.
72852         If the current shell lacks support for posix $(...), an init.sh-using
72853         test will now try to find a shell that supports that.  If EXEEXT is
72854         nonempty, we also require support for hyphen-in-alias-name and shell
72855         substitutions like ${var#glob}.  Failure to find such a shell results
72856         in a skipped test.
72858 2010-02-21  Bruno Haible  <bruno@clisp.org>
72860         Really work around "broken pipe" error message from bash 3.2.
72861         * gnulib-tool (func_reset_sigpipe): Remove function.
72862         (echo): In bash 3.2, define to a function that uses printf.
72863         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
72865 2010-02-20  Bruno Haible  <bruno@clisp.org>
72867         Restore support for automake 1.9.6 with autoconf 2.61.
72868         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
72869         Reported by James Youngman <jay@gnu.org>.
72871 2010-02-20  Bruno Haible  <bruno@clisp.org>
72873         Improve *printf warning condition.
72874         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
72875         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
72876         and the function is overridden due to SIGPIPE emulation.
72878 2010-02-20  Bruno Haible  <bruno@clisp.org>
72880         * lib/stdio.in.h: Tweak comments.
72882 2010-02-19  Bruno Haible  <bruno@clisp.org>
72884         Make it easier to find modules. New gnulib-tool option '--find'.
72885         * gnulib-tool: New option --find.
72886         (func_usage): Document it.
72887         (func_sanitize_modulelist): New function, extracted from
72888         func_all_modules.
72889         (func_all_modules): Invoke it.
72890         * doc/gnulib-tool.texi (Which modules?): New node.
72892 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
72894         * lib/sys_select.in.h: Provide select replacement even if
72895         sys/select.h exists on a system, for Interix.
72897 2010-02-18  Jim Meyering  <meyering@redhat.com>
72899         init.sh: don't use $(...) just yet
72900         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
72901         to accommodate e.g., Solaris' /bin/sh.
72903 2010-02-17  Bruno Haible  <bruno@clisp.org>
72905         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
72906         Reported by Ludovic Courtès <ludo@gnu.org>.
72908 2010-02-16  Simon Josefsson  <simon@josefsson.org>
72910         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
72911         linking with -lintl.
72913 2010-02-17  Simon Josefsson  <simon@josefsson.org>
72915         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
72916         if not provided by the system's netdb.h.  Reported by
72917         ludo@gnu.org (Ludovic Courtès).
72919 2010-02-15  Jim Meyering  <meyering@redhat.com>
72921         init.sh: improve portability and efficiency
72922         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
72923         "dummy" in a for loop.
72924         Use '!', not '^' to select the complement of a character set used
72925         in a "case" statement.
72926         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
72927         Suggestions from Eric Blake.
72929         init.sh: automatically accommodate programs with the .exe suffix
72930         Automatically arrange for an invocation of "prog" to execute the
72931         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
72932         may use the simpler "prog", yet still work when built on a system
72933         that requires specifying the added suffix.
72934         Do this by constructing a function named "prog" that invokes
72935         "prog.exe" for each .exe file in selected directories.
72936         * tests/init.sh (find_exe_basenames_): New function.
72937         (create_exe_shim_functions_): New function.
72938         (path_prepend_): Use it.
72940         maint.mk: mark syntax-check sc_*.m rules as .PHONY
72941         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
72942         "make -t syntax-check" doesn't create a ton of sc_*.m files.
72944 2010-02-14  Jim Meyering  <meyering@redhat.com>
72946         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
72947         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
72948         (sc_prohibit_hash_pjw_without_use): New rule.
72950         maint.mk: allow the default upload destination dir to be overridden
72951         * top/maint.mk (upload_dest_dir_): Define with a default that
72952         preserves the status quo.
72953         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
72954         Reported by Peter Simons.
72956         maint.mk: prohibit inclusion of "hash.h" without_use
72957         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
72959 2010-02-10  Jim Meyering  <meyering@redhat.com>
72961         maint.mk: prohibit inclusion of "ignore-value.h" without_use
72962         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
72964 2010-02-09  Eric Blake  <ebb9@byu.net>
72965         and Bruno Haible  <bruno@clisp.org>
72967         obstack-printf-posix: ensure declaration
72968         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
72969         extracted from gl_FUNC_OBSTACK_PRINTF.
72970         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
72971         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72972         Likewise.
72973         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
72974         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
72975         0.
72977 2010-02-08  Bruno Haible  <bruno@clisp.org>
72979         gnulib-tool: Fix typo in 2010-02-07 commit.
72980         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
72981         Reported by Eric Blake.
72983 2010-02-07  Bruno Haible  <bruno@clisp.org>
72985         gnulib-tool: Fix up caching patches.
72986         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
72987         option --no-cache. Use associative arrays when supported by the shell.
72988         (sed_comments): New variable.
72989         (modcache): Renamed from do_cache.
72990         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
72991         abbreviate unnecessarily.
72992         (have_associative): New variable.
72993         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
72994         way also for ksh and zsh.
72995         (func_init_sed_convert_to_cache_statements): New function, extracted
72996         from func_cache_lookup_module. Add support for associative arrays.
72997         Don't set the c_MODULE_cached variable here. Ignore all lines before
72998         the first field header. Remove only the final newline, not all trailing
72999         newlines. Support empty fields correctly. Limit the use of 'eval' to
73000         assignments.
73001         (func_get_description, func_get_status, func_get_notice,
73002         func_get_applicability, func_get_filelist, func_get_dependencies,
73003         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
73004         func_get_automake_snippet, func_get_include_directive,
73005         func_get_link_directive, func_get_license, func_get_maintainer):
73006         Update documentation. List the unoptimized code first. Add support for
73007         associative arrays. Limit the use of 'eval' to assignments.
73008         (func_get_applicability): Undo stylistic pessimisations.
73009         (func_get_automake_snippet, func_get_include_directive): Reduce code
73010         duplication.
73011         (func_modules_transitive_closure, func_modules_add_dummy,
73012         func_modules_notice, func_modules_to_filelist, func_add_file,
73013         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
73014         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
73015         func_create_testdir, func_create_megatestdir): Update documentation.
73017 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73019         * gnulib-tool (func_cache_lookup_module): Store the module name
73020         belonging to the cache variable; error out if two different
73021         module names map to the same cache variable name.
73023 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73025         gnulib-tool: Make caching optional.
73026         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
73027         Update matching short versions of --no-changelog.
73028         (func_usage): Update.
73029         (sed_extract_cache_prog): Renamed from ...
73030         (sed_extract_prog): ... this; revert to old extraction script.
73031         (func_get_description, func_get_status)
73032         (func_get_notice, func_get_applicability, func_get_filelist)
73033         (func_get_dependencies, func_get_autoconf_early_snippet)
73034         (func_get_autoconf_snippet, func_get_automake_snippet)
73035         (func_get_include_directive, func_get_link_directive)
73036         (func_get_license, func_get_maintainer): If $do_cache is false,
73037         use old, non-caching extraction scripts.
73038         Suggestion by Bruno Haible.
73040 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73042         gnulib-tool: cache module metainformation.
73043         * gnulib-tool (sed_extract_prog): Match newline before each
73044         header, and rewrite header to a shell variable suffix.
73045         (func_cache_var, func_cache_lookup_module): New functions,
73046         to turn a module name into a cache variable prefix, and to
73047         look up and cache module metainformation.
73048         (func_get_description, func_get_status)
73049         (func_get_notice, func_get_applicability, func_get_filelist)
73050         (func_get_dependencies, func_get_autoconf_early_snippet)
73051         (func_get_autoconf_snippet, func_get_automake_snippet)
73052         (func_get_include_directive, func_get_link_directive)
73053         (func_get_license, func_get_maintainer): Use
73054         func_cache_lookup_module.
73056 2010-02-07  Bruno Haible  <bruno@clisp.org>
73058         fnctl: Fix missing dependency.
73059         * modules/fcntl (Depends-on): Add getdtablesize.
73060         Reported by John W. Eaton <jwe@gnu.org>.
73062 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
73064         Argp: fix recognition of short alias options.
73066         * lib/argp-parse.c (convert_options): Fix improper use of
73067         `|' between character values.
73068         * tests/test-argp.c (group1_option): New alias option
73069         --read (-r).
73070         (group1_parser): Special handling for 'r'.
73071         (test15): New test case.
73072         (test_fun): Add test15.
73073         * tests/test-argp-2.sh: Update expected --help and --usage
73074         outputs.
73076 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
73078         * tests/test-argp.c: Fix indentation.
73080 2010-02-04  Eric Blake  <ebb9@byu.net>
73082         gettimeofday: expose type of second argument
73083         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
73084         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
73085         * tests/test-gettimeofday.c: Use it to silence warning.
73086         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
73087         the issue.
73089 2010-02-03  Jim Meyering  <meyering@redhat.com>
73091         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
73092         * lib/regcomp.c (TYPE_SIGNED): Define.
73093         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
73095         regcomp.c: avoid a new -Wshadow warning
73096         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
73098 2010-02-01  Jim Meyering  <meyering@redhat.com>
73100         removing useless parentheses in cpp #define directives
73101         For motivation, see commit c0221df4, "define STREQ(a,b)
73102         consistently, removing useless parentheses"
73103         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
73104         * lib/mountlist.c (MNT_IGNORE): Likewise.
73105         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
73107 2010-02-01  Eric Blake  <ebb9@byu.net>
73109         sys_time: use link-warning
73110         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
73111         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
73112         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
73113         * modules/sys_time (Depends-on): Add warn-on-use.
73114         (Makefile.am): Always build replacement.
73115         (configure.ac): Update substitutions.
73116         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
73117         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
73118         bother with SYS_TIME_H.
73119         * modules/gettimeofday (configure.ac): Declare indicator.
73120         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
73121         in use.
73123         closein-tests: silence compiler warning
73124         * tests/test-closein.c (main): Ignore fread result.
73125         * modules/closein-tests (Depends-on): Add ignore-value.
73127         tests: silence warning about system return
73128         * tests/test-areadlink-with-size.c (main): Ignore system result.
73129         * tests/test-areadlink.c (main): Likewise.
73130         * tests/test-areadlinkat-with-size.c (main): Likewise.
73131         * tests/test-areadlinkat.c (main): Likewise.
73132         * tests/test-canonicalize-lgpl.c (main): Likewise.
73133         * tests/test-canonicalize.c (main): Likewise.
73134         * tests/test-chown.c (main): Likewise.
73135         * tests/test-fchownat.c (main): Likewise.
73136         * tests/test-fdutimensat.c (main): Likewise.
73137         * tests/test-fstatat.c (main): Likewise.
73138         * tests/test-futimens.c (main): Likewise.
73139         * tests/test-lchown.c (main): Likewise.
73140         * tests/test-link.c (main): Likewise.
73141         * tests/test-linkat.c (main): Likewise.
73142         * tests/test-lstat.c (main): Likewise.
73143         * tests/test-mkdir.c (main): Likewise.
73144         * tests/test-mkdirat.c (main): Likewise.
73145         * tests/test-mkfifo.c (main): Likewise.
73146         * tests/test-mkfifoat.c (main): Likewise.
73147         * tests/test-mknod.c (main): Likewise.
73148         * tests/test-readlink.c (main): Likewise.
73149         * tests/test-remove.c (main): Likewise.
73150         * tests/test-rename.c (main): Likewise.
73151         * tests/test-renameat.c (main): Likewise.
73152         * tests/test-rmdir.c (main): Likewise.
73153         * tests/test-symlink.c (main): Likewise.
73154         * tests/test-symlinkat.c (main): Likewise.
73155         * tests/test-unlink.c (main): Likewise.
73156         * tests/test-unlinkat.c (main): Likewise.
73157         * tests/test-utimens.c (main): Likewise.
73158         * tests/test-utimensat.c (main): Likewise.
73159         * modules/areadlink-tests (Depends-on): Add ignore-value.
73160         * modules/areadlink-with-size-tests (Depends-on): Likewise.
73161         * modules/areadlinkat-tests (Depends-on): Likewise.
73162         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
73163         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
73164         * modules/canonicalize-tests (Depends-on): Likewise.
73165         * modules/chown-tests (Depends-on): Likewise.
73166         * modules/fdutimensat-tests (Depends-on): Likewise.
73167         * modules/futimens-tests (Depends-on): Likewise.
73168         * modules/lchown-tests (Depends-on): Likewise.
73169         * modules/link-tests (Depends-on): Likewise.
73170         * modules/linkat-tests (Depends-on): Likewise.
73171         * modules/lstat-tests (Depends-on): Likewise.
73172         * modules/mkdir-tests (Depends-on): Likewise.
73173         * modules/mkfifo-tests (Depends-on): Likewise.
73174         * modules/mkfifoat-tests (Depends-on): Likewise.
73175         * modules/mknod-tests (Depends-on): Likewise.
73176         * modules/openat-tests (Depends-on): Likewise.
73177         * modules/readlink-tests (Depends-on): Likewise.
73178         * modules/remove-tests (Depends-on): Likewise.
73179         * modules/rename-tests (Depends-on): Likewise.
73180         * modules/renameat-tests (Depends-on): Likewise.
73181         * modules/rmdir-tests (Depends-on): Likewise.
73182         * modules/symlink-tests (Depends-on): Likewise.
73183         * modules/symlinkat-tests (Depends-on): Likewise.
73184         * modules/unlink-tests (Depends-on): Likewise.
73185         * modules/utimens-tests (Depends-on): Likewise.
73186         * modules/utimensat-tests (Depends-on): Likewise.
73188 2010-01-31  Bruno Haible  <bruno@clisp.org>
73190         Perform the same test for many <math.h> functions.
73191         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
73192         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
73193         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
73194         of gl_MATHFUNC.
73195         * modules/acos (configure.ac): Likewise.
73196         * modules/asin (configure.ac): Likewise.
73197         * modules/atan (configure.ac): Likewise.
73198         * modules/atan2 (configure.ac): Likewise.
73199         * modules/cbrt (configure.ac): Likewise.
73200         * modules/copysign (configure.ac): Likewise.
73201         * modules/cos (configure.ac): Likewise.
73202         * modules/cosh (configure.ac): Likewise.
73203         * modules/erf (configure.ac): Likewise.
73204         * modules/erfc (configure.ac): Likewise.
73205         * modules/exp (configure.ac): Likewise.
73206         * modules/fmod (configure.ac): Likewise.
73207         * modules/hypot (configure.ac): Likewise.
73208         * modules/j0 (configure.ac): Likewise.
73209         * modules/j1 (configure.ac): Likewise.
73210         * modules/jn (configure.ac): Likewise.
73211         * modules/lgamma (configure.ac): Likewise.
73212         * modules/log (configure.ac): Likewise.
73213         * modules/log10 (configure.ac): Likewise.
73214         * modules/log1p (configure.ac): Likewise.
73215         * modules/pow (configure.ac): Likewise.
73216         * modules/remainder (configure.ac): Likewise.
73217         * modules/sin (configure.ac): Likewise.
73218         * modules/sinh (configure.ac): Likewise.
73219         * modules/tan (configure.ac): Likewise.
73220         * modules/tanh (configure.ac): Likewise.
73221         * modules/y0 (configure.ac): Likewise.
73222         * modules/y1 (configure.ac): Likewise.
73223         * modules/yn (configure.ac): Likewise.
73224         Suggested by Paolo Bonzini.
73226 2010-01-31  Bruno Haible  <bruno@clisp.org>
73228         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
73230 2010-01-31  Bruno Haible  <bruno@clisp.org>
73232         Work around getdelim() bug on FreeBSD 8.0.
73233         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
73234         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
73235         not work.
73236         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
73237         is 1.
73238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
73239         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
73240         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
73241         a non-zero size.
73242         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
73244 2010-01-31  Bruno Haible  <bruno@clisp.org>
73246         Work around getline() bug on FreeBSD 8.0.
73247         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
73248         and a non-zero size.
73249         * tests/test-getline.c (main): Likewise.
73250         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
73251         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
73253 2010-01-28  Eric Blake  <ebb9@byu.net>
73255         regex: fix build failure
73256         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
73257         platforms.
73259 2010-01-28  Jim Meyering  <meyering@redhat.com>
73261         regex: do not ignore memory allocation failure
73262         * lib/regex_internal.c (create_cd_newstate): Detect
73263         re_node_set_init_copy failure.   Extracted from glibc commit
73264         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
73266         regex: sync more white-space changes from libc
73267         * lib/regex_internal.c: White-space only changes.
73268         * lib/regexec.c: Likewise.
73270         regex: add many uses of __attribute_warn_unused_result__
73271         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
73272         * lib/regexec.c: Likewise.
73273         Extracted from a messy glibc commit.
73275         regcomp.c: spelling and merge-artifact from glibc
73276         * lib/regcomp.c: Merge remainder of glibc's
73277         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
73279         regcomp.c: sync white-space changes from glibc
73280         * lib/regcomp.c: Merge to accommodate white space
73281         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
73283         regcomp.c: do not ignore internal return values
73284         * lib/regcomp.c: Do not ignore internal return values.
73285         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
73286         but without its white-space changes and spelling fixes.
73288         regex_internal.h: define __attribute_warn_unused_result__
73289         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
73291         maint: add a syntax-check rule to check for vulnerable Makefile.in
73292         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
73294 2010-01-27  Jim Meyering  <meyering@redhat.com>
73296         ncftpput-ftp: clean up spaces
73297         * build-aux/ncftpput-ftp: Make Copyright line consistent.
73298         Remove trailing blanks.
73300 2010-01-27  Simon Josefsson  <simon@josefsson.org>
73302         * build-aux/git-version-gen: Fix copyright statement.
73303         * build-aux/gnupload: Likewise.
73304         * tests/test-arcfour.c: Likewise.
73305         * tests/test-arctwo.c: Likewise.
73306         * tests/test-count-one-bits.c: Likewise.
73307         * tests/test-crc.c: Likewise.
73308         * tests/test-des.c: Likewise.
73309         * tests/test-gc-arcfour.c: Likewise.
73310         * tests/test-gc-arctwo.c: Likewise.
73311         * tests/test-gc-des.c: Likewise.
73312         * tests/test-gc-hmac-md5.c: Likewise.
73313         * tests/test-gc-hmac-sha1.c: Likewise.
73314         * tests/test-gc-md2.c: Likewise.
73315         * tests/test-gc-md4.c: Likewise.
73316         * tests/test-gc-md5.c: Likewise.
73317         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73318         * tests/test-gc-rijndael.c: Likewise.
73319         * tests/test-gc-sha1.c: Likewise.
73320         * tests/test-gc.c: Likewise.
73321         * tests/test-gethostname.c: Likewise.
73322         * tests/test-gettimeofday.c: Likewise.
73323         * tests/test-hash.c: Likewise.
73324         * tests/test-hmac-md5.c: Likewise.
73325         * tests/test-hmac-sha1.c: Likewise.
73326         * tests/test-md2.c: Likewise.
73327         * tests/test-md4.c: Likewise.
73328         * tests/test-md5.c: Likewise.
73329         * tests/test-memchr.c: Likewise.
73330         * tests/test-memchr2.c: Likewise.
73331         * tests/test-memcmp.c: Likewise.
73332         * tests/test-memmem.c: Likewise.
73333         * tests/test-memrchr.c: Likewise.
73334         * tests/test-rawmemchr.c: Likewise.
73335         * tests/test-read-file.c: Likewise.
73336         * tests/test-rijndael.c: Likewise.
73337         * tests/test-sockets.c: Likewise.
73338         * tests/test-strchrnul.c: Likewise.
73339         * tests/test-strstr.c: Likewise.
73340         * tests/test-strtod.c: Likewise.
73341         * build-aux/ncftpput-ftp: Likewise.
73343 2010-01-26  Eric Blake  <ebb9@byu.net>
73345         ignore-value: update recommended header name
73346         * modules/ignore-value (Include): Only use <> for headers that
73347         exist in glibc.
73349 2010-01-26  Jim Meyering  <meyering@redhat.com>
73351         test-userspec.c: avoid compiler warnings
73352         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
73353         and "initialization discards qualifiers..." warnings.
73354         Put the first "uid" in its own scope, and make char* members "const".
73356 2010-01-25  Bruno Haible  <bruno@clisp.org>
73358         gnulib-tool: Make warning diagnostics consistent.
73359         * gnulib-tool (func_warning): New function.
73360         Use it everywhere where gnulib-tool produces output to stderr and it is
73361         not a fatal error.
73363 2010-01-25  Bruno Haible  <bruno@clisp.org>
73365         Fix test dependencies.
73366         * modules/xstrtol-tests (Depends-on): Add inttypes.
73367         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
73369 2010-01-25  Pádraig Brady  <P@draigBrady.com>
73371         syntax-check: detect incorrect boolean macro values in config.h
73372         * modules/maintainer-makefile (configure.ac): Parameterize the location
73373         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
73374         The logic is from Eric Blake and the location indicated by Jim Meyering.
73375         Note the more natural CONFIG_HEADER name is prohibited by automake
73376         for backwards compatibility reasons.
73377         * top/maint.mk (sc_Wundef_boolean): New rule.
73379 2010-01-25  Jim Meyering  <meyering@redhat.com>
73381         bootstrap: detect MacOS 10.6's shasum, too
73382         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
73383         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
73385 2010-01-23  Jim Meyering  <meyering@redhat.com>
73387         xstrtoll: new module
73388         * modules/xstrtoll: New file.
73389         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
73390         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
73391         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
73392         ./configure fails if you use this module and lack "long long".
73393         * modules/xstrtoll-tests: New module.
73394         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
73395         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
73396         new init.sh-based test framework.
73398 2010-01-24  Bruno Haible  <bruno@clisp.org>
73400         Tests for module 'yn'.
73401         * modules/yn-tests: New file.
73402         * tests/test-yn.c: New file.
73404         Tests for module 'y1'.
73405         * modules/y1-tests: New file.
73406         * tests/test-y1.c: New file.
73408         Tests for module 'y0'.
73409         * modules/y0-tests: New file.
73410         * tests/test-y0.c: New file.
73412         Tests for module 'tanh'.
73413         * modules/tanh-tests: New file.
73414         * tests/test-tanh.c: New file.
73416         Tests for module 'tan'.
73417         * modules/tan-tests: New file.
73418         * tests/test-tan.c: New file.
73420         Tests for module 'sqrt'.
73421         * modules/sqrt-tests: New file.
73422         * tests/test-sqrt.c: New file.
73424         Tests for module 'sinh'.
73425         * modules/sinh-tests: New file.
73426         * tests/test-sinh.c: New file.
73428         Tests for module 'sin'.
73429         * modules/sin-tests: New file.
73430         * tests/test-sin.c: New file.
73432         Tests for module 'rint'.
73433         * modules/rint-tests: New file.
73434         * tests/test-rint.c: New file.
73436         Tests for module 'remainder'.
73437         * modules/remainder-tests: New file.
73438         * tests/test-remainder.c: New file.
73440         Tests for module 'pow'.
73441         * modules/pow-tests: New file.
73442         * tests/test-pow.c: New file.
73444         Tests for module 'nextafter'.
73445         * modules/nextafter-tests: New file.
73446         * tests/test-nextafter.c: New file.
73448         Tests for module 'modf'.
73449         * modules/modf-tests: New file.
73450         * tests/test-modf.c: New file.
73452         Tests for module 'logb'.
73453         * modules/logb-tests: New file.
73454         * tests/test-logb.c: New file.
73456         Tests for module 'log1p'.
73457         * modules/log1p-tests: New file.
73458         * tests/test-log1p.c: New file.
73460         Tests for module 'log10'.
73461         * modules/log10-tests: New file.
73462         * tests/test-log10.c: New file.
73464         Tests for module 'log'.
73465         * modules/log-tests: New file.
73466         * tests/test-log.c: New file.
73468         Tests for module 'lgamma'.
73469         * modules/lgamma-tests: New file.
73470         * tests/test-lgamma.c: New file.
73472         Tests for module 'ldexp'.
73473         * modules/ldexp-tests: New file.
73474         * tests/test-ldexp.c: New file.
73476         Tests for module 'jn'.
73477         * modules/jn-tests: New file.
73478         * tests/test-jn.c: New file.
73480         Tests for module 'j1'.
73481         * modules/j1-tests: New file.
73482         * tests/test-j1.c: New file.
73484         Tests for module 'j0'.
73485         * modules/j0-tests: New file.
73486         * tests/test-j0.c: New file.
73488         Tests for module 'hypot'.
73489         * modules/hypot-tests: New file.
73490         * tests/test-hypot.c: New file.
73492         Tests for module 'fmod'.
73493         * modules/fmod-tests: New file.
73494         * tests/test-fmod.c: New file.
73496         Tests for module 'fabs'.
73497         * modules/fabs-tests: New file.
73498         * tests/test-fabs.c: New file.
73500         Tests for module 'exp'.
73501         * modules/exp-tests: New file.
73502         * tests/test-exp.c: New file.
73504         Tests for module 'erfc'.
73505         * modules/erfc-tests: New file.
73506         * tests/test-erfc.c: New file.
73508         Tests for module 'erf'.
73509         * modules/erf-tests: New file.
73510         * tests/test-erf.c: New file.
73512         Tests for module 'cosh'.
73513         * modules/cosh-tests: New file.
73514         * tests/test-cosh.c: New file.
73516         Tests for module 'cos'.
73517         * modules/cos-tests: New file.
73518         * tests/test-cos.c: New file.
73520         Tests for module 'copysign'.
73521         * modules/copysign-tests: New file.
73522         * tests/test-copysign.c: New file.
73524         Tests for module 'cbrt'.
73525         * modules/cbrt-tests: New file.
73526         * tests/test-cbrt.c: New file.
73528         Tests for module 'atan2'.
73529         * modules/atan2-tests: New file.
73530         * tests/test-atan2.c: New file.
73532         Tests for module 'atan'.
73533         * modules/atan-tests: New file.
73534         * tests/test-atan.c: New file.
73536         Tests for module 'asin'.
73537         * modules/asin-tests: New file.
73538         * tests/test-asin.c: New file.
73540         Tests for module 'acos'.
73541         * modules/acos-tests: New file.
73542         * tests/test-acos.c: New file.
73544 2010-01-24  Bruno Haible  <bruno@clisp.org>
73546         Fix tests for common <math.h> functions.
73547         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
73548         code snippet that references the function pointer, rather than merely
73549         calling the function. Substitute the FUNC_LIBM variable.
73550         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
73551         * modules/acos (configure.ac): Likewise.
73552         * modules/asin (configure.ac): Likewise.
73553         * modules/atan (configure.ac): Likewise.
73554         * modules/atan2 (configure.ac): Likewise.
73555         * modules/cbrt (configure.ac): Likewise.
73556         * modules/copysign (configure.ac): Likewise.
73557         * modules/cos (configure.ac): Likewise.
73558         * modules/cosh (configure.ac): Likewise.
73559         * modules/erf (configure.ac): Likewise.
73560         * modules/erfc (configure.ac): Likewise.
73561         * modules/exp (configure.ac): Likewise.
73562         * modules/fabs (configure.ac): Likewise.
73563         * modules/fmod (configure.ac): Likewise.
73564         * modules/hypot (configure.ac): Likewise.
73565         * modules/j0 (configure.ac): Likewise.
73566         * modules/j1 (configure.ac): Likewise.
73567         * modules/jn (configure.ac): Likewise.
73568         * modules/ldexp (configure.ac): Likewise.
73569         * modules/lgamma (configure.ac): Likewise.
73570         * modules/log (configure.ac): Likewise.
73571         * modules/log10 (configure.ac): Likewise.
73572         * modules/log1p (configure.ac): Likewise.
73573         * modules/logb (configure.ac): Likewise.
73574         * modules/modf (configure.ac): Likewise.
73575         * modules/nextafter (configure.ac): Likewise.
73576         * modules/pow (configure.ac): Likewise.
73577         * modules/remainder (configure.ac): Likewise.
73578         * modules/rint (configure.ac): Likewise.
73579         * modules/sin (configure.ac): Likewise.
73580         * modules/sinh (configure.ac): Likewise.
73581         * modules/tan (configure.ac): Likewise.
73582         * modules/tanh (configure.ac): Likewise.
73583         * modules/y0 (configure.ac): Likewise.
73584         * modules/y1 (configure.ac): Likewise.
73585         * modules/yn (configure.ac): Likewise.
73587 2010-01-24  Bruno Haible  <bruno@clisp.org>
73589         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
73590         * tests/test-acosl.c (x): New variable.
73591         (main): Store argument in x and fetch it from x.
73592         * tests/test-asinl.c (x): New variable.
73593         (main): Store argument in x and fetch it from x.
73594         * tests/test-atanl.c (x): New variable.
73595         (main): Store argument in x and fetch it from x.
73596         * tests/test-cosl.c (x): New variable.
73597         (main): Store argument in x and fetch it from x.
73598         * tests/test-expl.c (x): New variable.
73599         (main): Store argument in x and fetch it from x.
73600         * tests/test-logl.c (x): New variable.
73601         (main): Store argument in x and fetch it from x.
73602         * tests/test-sinl.c (x): New variable.
73603         (main): Store argument in x and fetch it from x.
73604         * tests/test-sqrtl.c (x): New variable.
73605         (main): Store argument in x and fetch it from x.
73606         * tests/test-tanl.c (x): New variable.
73607         (main): Store argument in x and fetch it from x.
73609 2010-01-24  Bruno Haible  <bruno@clisp.org>
73611         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
73612         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
73613         assignments to the initial TESTS_ENVIRONMENT.
73614         * doc/gnulib.texi (Unit test modules): Document it.
73615         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
73616         TESTS_ENVIRONMENT.
73617         * modules/btowc-tests (Makefile.am): Likewise.
73618         * modules/c-stack-tests (Makefile.am): Likewise.
73619         * modules/c-strcase-tests (Makefile.am): Likewise.
73620         * modules/copy-file-tests (Makefile.am): Likewise.
73621         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
73622         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
73623         * modules/mbrtowc-tests (Makefile.am): Likewise.
73624         * modules/mbscasecmp-tests (Makefile.am): Likewise.
73625         * modules/mbscasestr-tests (Makefile.am): Likewise.
73626         * modules/mbschr-tests (Makefile.am): Likewise.
73627         * modules/mbscspn-tests (Makefile.am): Likewise.
73628         * modules/mbsinit-tests (Makefile.am): Likewise.
73629         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
73630         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
73631         * modules/mbspbrk-tests (Makefile.am): Likewise.
73632         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
73633         * modules/mbsrchr-tests (Makefile.am): Likewise.
73634         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
73635         * modules/mbsspn-tests (Makefile.am): Likewise.
73636         * modules/mbsstr-tests (Makefile.am): Likewise.
73637         * modules/nl_langinfo-tests (Makefile.am): Likewise.
73638         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
73639         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
73640         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
73641         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
73642         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
73643         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
73644         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
73645         * modules/wcrtomb-tests (Makefile.am): Likewise.
73646         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
73647         * modules/wcsrtombs-tests (Makefile.am): Likewise.
73648         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
73649         assignments from TESTS_ENVIRONMENT.
73650         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
73651         augmentation.
73652         * modules/argp-version-etc-tests (Makefile.am): Likewise.
73653         * modules/atexit-tests (Makefile.am): Likewise.
73654         * modules/binary-io-tests (Makefile.am): Likewise.
73655         * modules/closein-tests (Makefile.am): Likewise.
73656         * modules/dprintf-posix-tests (Makefile.am): Likewise.
73657         * modules/exclude-tests (Makefile.am): Likewise.
73658         * modules/fflush-tests (Makefile.am): Likewise.
73659         * modules/fpending-tests (Makefile.am): Likewise.
73660         * modules/fprintf-posix-tests (Makefile.am): Likewise.
73661         * modules/freadahead-tests (Makefile.am): Likewise.
73662         * modules/freadptr-tests (Makefile.am): Likewise.
73663         * modules/freadseek-tests (Makefile.am): Likewise.
73664         * modules/fseek-tests (Makefile.am): Likewise.
73665         * modules/fseeko-tests (Makefile.am): Likewise.
73666         * modules/ftell-tests (Makefile.am): Likewise.
73667         * modules/ftello-tests (Makefile.am): Likewise.
73668         * modules/idpriv-drop-tests (Makefile.am): Likewise.
73669         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
73670         * modules/lseek-tests (Makefile.am): Likewise.
73671         * modules/parse-duration-tests (Makefile.am): Likewise.
73672         * modules/perror-tests (Makefile.am): Likewise.
73673         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
73674         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
73675         * modules/pipe-tests (Makefile.am): Likewise.
73676         * modules/pread-tests (Makefile.am): Likewise.
73677         * modules/printf-posix-tests (Makefile.am): Likewise.
73678         * modules/select-tests (Makefile.am): Likewise.
73679         * modules/sigpipe-tests (Makefile.am): Likewise.
73680         * modules/tsearch-tests (Makefile.am): Likewise.
73681         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
73682         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
73683         * modules/uniname/uniname-tests (Makefile.am): Likewise.
73684         * modules/uniwidth/width-tests (Makefile.am): Likewise.
73685         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
73686         * modules/version-etc-tests (Makefile.am): Likewise.
73687         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
73688         * modules/vprintf-posix-tests (Makefile.am): Likewise.
73689         * modules/xalloc-die-tests (Makefile.am): Likewise.
73690         * modules/xprintf-posix-tests (Makefile.am): Likewise.
73691         * modules/xstrtoimax-tests (Makefile.am): Likewise.
73692         * modules/xstrtol-tests (Makefile.am): Likewise.
73693         * modules/xstrtoumax-tests (Makefile.am): Likewise.
73694         * modules/yesno-tests (Makefile.am): Likewise.
73695         Suggested by Jim Meyering.
73697 2010-01-24  Bruno Haible  <bruno@clisp.org>
73699         More documentation.
73700         * doc/gnulib.texi (Writing modules): New chapter.
73701         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
73702         the new chapter.
73704 2010-01-24  Jim Meyering  <meyering@redhat.com>
73706         maint.mk: do not prepend "./" after filtering
73707         * top/maint.mk (_prepend_srcdir_prefix): New variable
73708         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
73709         "./" when $(srcdir) is ".".
73711         define STREQ(a,b) consistently, removing useless parentheses
73712         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
73713         since the only risk is that "a" or "b" contains an unparenthesized
73714         comma, but if either did that, STREQ would have 3 or more arguments.
73715         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
73716         * lib/fts.c (STREQ): Remove unnecessary parentheses.
73717         * lib/hash-triple.c (STREQ): Likewise.
73718         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
73719         * lib/getugroups.c (STREQ): Likewise.
73721 2010-01-23  Jim Meyering  <meyering@redhat.com>
73723         maint.mk: fix syntax-check in a non-srcdir build directory
73724         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
73725         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
73727 2010-01-22  Jim Meyering  <meyering@redhat.com>
73729         userspec: add unit tests
73730         * tests/test-userspec.c: New file.
73731         * modules/userspec-tests: Likewise.
73733 2010-01-21  Jim Meyering  <meyering@redhat.com>
73735         maint.mk: handle source file names containing "." robustly
73736         * top/maint.mk (_dot_escaped_srcdir): Define.
73737         (VC_LIST): Use it in LHS of sed substitution.
73739 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
73741         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
73742         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
73743         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
73744         from a non-srcdir build.
73746 2010-01-20  Eric Blake  <ebb9@byu.net>
73748         warn-on-use: use instead of link-warning
73749         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
73750         * modules/unistd (Depends-on, Makefile.am): Likewise.
73751         * modules/arpa_inet (Depends-on): Replace link-warning with
73752         warn-on-use.
73753         (Makefile.am): Update rules accordingly.
73754         * modules/ctype (Depends-on, Makefile.am): Likewise.
73755         * modules/dirent (Depends-on, Makefile.am): Likewise.
73756         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
73757         * modules/inttypes (Depends-on, Makefile.am): Likewise.
73758         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73759         * modules/locale (Depends-on, Makefile.am): Likewise.
73760         * modules/math (Depends-on, Makefile.am): Likewise.
73761         * modules/search (Depends-on, Makefile.am): Likewise.
73762         * modules/signal (Depends-on, Makefile.am): Likewise.
73763         * modules/spawn (Depends-on, Makefile.am): Likewise.
73764         * modules/stdlib (Depends-on, Makefile.am): Likewise.
73765         * modules/string (Depends-on, Makefile.am): Likewise.
73766         * modules/strings (Depends-on, Makefile.am): Likewise.
73767         * modules/sys_file (Depends-on, Makefile.am): Likewise.
73768         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
73769         * modules/sys_select (Depends-on, Makefile.am): Likewise.
73770         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
73771         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
73772         * modules/sys_times (Depends-on, Makefile.am): Likewise.
73773         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73774         * modules/wchar (Depends-on, Makefile.am): Likewise.
73775         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
73776         should be poisoned.
73777         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
73778         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
73779         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
73780         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73781         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73782         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
73783         * m4/math_h.m4 (gl_MATH_H): Likewise.
73784         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73785         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
73786         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73787         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
73788         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
73789         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
73790         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
73791         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
73792         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
73793         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73794         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
73796         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73797         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
73798         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
73799         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73800         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
73801         GL_LINK_WARNING.
73802         * lib/ctype.in.h: Likewise.
73803         * lib/dirent.in.h: Likewise.
73804         * lib/fcntl.in.h: Likewise.
73805         * lib/inttypes.in.h: Likewise.
73806         * lib/langinfo.in.h: Likewise.
73807         * lib/locale.in.h: Likewise.
73808         * lib/math.in.h: Likewise.
73809         * lib/search.in.h: Likewise.
73810         * lib/signal.in.h: Likewise.
73811         * lib/spawn.in.h: Likewise.
73812         * lib/stdio.in.h: Likewise.
73813         * lib/stdlib.in.h: Likewise.
73814         * lib/string.in.h: Likewise.
73815         * lib/strings.in.h: Likewise.
73816         * lib/sys_file.in.h: Likewise.
73817         * lib/sys_ioctl.in.h: Likewise.
73818         * lib/sys_select.in.h: Likewise.
73819         * lib/sys_socket.in.h: Likewise.
73820         * lib/sys_stat.in.h: Likewise.
73821         * lib/sys_times.in.h: Likewise.
73822         * lib/sys_utsname.in.h: Likewise.
73823         * lib/unistd.in.h: Likewise.
73824         * lib/wchar.in.h: Likewise.
73826 2010-01-20  Bruno Haible  <bruno@clisp.org>
73828         Avoid duplicate -lm.
73829         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
73830         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
73831         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
73832         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
73833         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
73834         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
73835         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
73836         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
73837         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
73838         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
73839         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
73840         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
73841         Reported by Paolo Bonzini.
73843 2010-01-19  Bruno Haible  <bruno@clisp.org>
73845         langinfo, nl_langinfo: Relicense under LGPLv2+.
73846         * modules/langinfo (License): Change to LGPLv2+.
73847         * modules/nl_langinfo (License): Likewise.
73848         Patch by David Lutterkort <lutter@redhat.com>.
73850 2010-01-19  Bruno Haible  <bruno@clisp.org>
73852         Avoid compilation error with cc on OSF/1 5.1.
73853         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
73854         statement, not before.
73855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73857 2010-01-18  Bruno Haible  <bruno@clisp.org>
73859         Avoid a link error due to the __printf__ symbol.
73860         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
73861         and 2.6.x.
73862         (__format__, __printf__): Remove definitions.
73863         * lib/argp-fmtstream.h: Likewise.
73864         * lib/argp.h: Likewise.
73865         * lib/error.h: Likewise.
73866         * lib/vasnprintf.h: Likewise.
73867         * lib/xprintf.h: Likewise.
73868         * lib/xvasprintf.h: Likewise.
73869         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73871 2010-01-18  Bruno Haible  <bruno@clisp.org>
73873         Tests for module 'tanl'.
73874         * modules/tanl-tests: New file.
73875         * tests/test-tanl.c: New file.
73877         Tests for module 'sqrtl'.
73878         * modules/sqrtl-tests: New file.
73879         * tests/test-sqrtl.c: New file.
73881         Tests for module 'sinl'.
73882         * modules/sinl-tests: New file.
73883         * tests/test-sinl.c: New file.
73885         Tests for module 'logl'.
73886         * modules/logl-tests: New file.
73887         * tests/test-logl.c: New file.
73889         Tests for module 'expl'.
73890         * modules/expl-tests: New file.
73891         * tests/test-expl.c: New file.
73893         Tests for module 'cosl'.
73894         * modules/cosl-tests: New file.
73895         * tests/test-cosl.c: New file.
73897         Tests for module 'atanl'.
73898         * modules/atanl-tests: New file.
73899         * tests/test-atanl.c: New file.
73901         Tests for module 'asinl'.
73902         * modules/asinl-tests: New file.
73903         * tests/test-asinl.c: New file.
73905         Tests for module 'acosl'.
73906         * modules/acosl-tests: New file.
73907         * tests/test-acosl.c: New file.
73909         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73910         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
73911         tanl): Use the standard gnulib idiom.
73912         * lib/cosl.c: Don't include trigl.c and sincosl.c.
73913         * lib/sinl.c: Likewise.
73914         * lib/tanl.c: Don't include trigl.c.
73915         (kernel_tanl): Make static.
73916         * lib/sincosl.c: Include trigl.h first.
73917         * lib/trigl.c: Likewise.
73918         * m4/acosl.m4: New file.
73919         * m4/asinl.m4: New file.
73920         * m4/atanl.m4: New file.
73921         * m4/cosl.m4: New file.
73922         * m4/expl.m4: New file.
73923         * m4/logl.m4: New file.
73924         * m4/sinl.m4: New file.
73925         * m4/sqrtl.m4: New file.
73926         * m4/tanl.m4: New file.
73927         * m4/mathl.m4: Remove file.
73928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
73929         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73930         Don't initialize GNULIB_MATHL.
73931         * modules/acosl: New file.
73932         * modules/asinl: New file.
73933         * modules/atanl: New file.
73934         * modules/cosl: New file.
73935         * modules/expl: New file.
73936         * modules/logl: New file.
73937         * modules/sinl: New file.
73938         * modules/sqrtl: New file.
73939         * modules/tanl: New file.
73940         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
73941         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
73942         substitute GNULIB_MATHL.
73943         * modules/mathl: Rewritten.
73944         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
73945         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
73946         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
73947         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
73948         * doc/posix-functions/expl.texi: Mention the 'expl' module.
73949         * doc/posix-functions/logl.texi: Mention the 'logl' module.
73950         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
73951         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
73952         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
73954 2010-01-18  Bruno Haible  <bruno@clisp.org>
73956         sqrt: Make gl_FUNC_SQRT requirable.
73957         * m4/sqrt.m4: New file.
73958         * modules/sqrt (Files): Add it.
73959         (configure.ac): Invoke gl_FUNC_SQRT.
73961 2010-01-18  Bruno Haible  <bruno@clisp.org>
73963         New modules for common <math.h> functions.
73964         * m4/mathfunc.m4: New file.
73965         * modules/acos: New file.
73966         * modules/asin: New file.
73967         * modules/atan: New file.
73968         * modules/atan2: New file.
73969         * modules/cbrt: New file.
73970         * modules/copysign: New file.
73971         * modules/cos: New file.
73972         * modules/cosh: New file.
73973         * modules/erf: New file.
73974         * modules/erfc: New file.
73975         * modules/exp: New file.
73976         * modules/fabs: New file.
73977         * modules/fmod: New file.
73978         * modules/hypot: New file.
73979         * modules/j0: New file.
73980         * modules/j1: New file.
73981         * modules/jn: New file.
73982         * modules/ldexp: New file.
73983         * modules/lgamma: New file.
73984         * modules/log: New file.
73985         * modules/log10: New file.
73986         * modules/log1p: New file.
73987         * modules/logb: New file.
73988         * modules/modf: New file.
73989         * modules/nextafter: New file.
73990         * modules/pow: New file.
73991         * modules/remainder: New file.
73992         * modules/rint: New file.
73993         * modules/sin: New file.
73994         * modules/sinh: New file.
73995         * modules/sqrt: New file.
73996         * modules/tan: New file.
73997         * modules/tanh: New file.
73998         * modules/y0: New file.
73999         * modules/y1: New file.
74000         * modules/yn: New file.
74001         * doc/posix-functions/acos.texi: Mention the 'acos' module.
74002         * doc/posix-functions/asin.texi: Mention the 'asin' module.
74003         * doc/posix-functions/atan.texi: Mention the 'atan' module.
74004         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
74005         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
74006         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
74007         * doc/posix-functions/cos.texi: Mention the 'cos' module.
74008         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
74009         * doc/posix-functions/erf.texi: Mention the 'erf' module.
74010         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
74011         * doc/posix-functions/exp.texi: Mention the 'exp' module.
74012         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
74013         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
74014         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
74015         * doc/posix-functions/j0.texi: Mention the 'j0' module.
74016         * doc/posix-functions/j1.texi: Mention the 'j1' module.
74017         * doc/posix-functions/jn.texi: Mention the 'jn' module.
74018         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
74019         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
74020         * doc/posix-functions/log.texi: Mention the 'log' module.
74021         * doc/posix-functions/log10.texi: Mention the 'log10' module.
74022         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
74023         * doc/posix-functions/logb.texi: Mention the 'logb' module.
74024         * doc/posix-functions/modf.texi: Mention the 'modf' module.
74025         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
74026         * doc/posix-functions/pow.texi: Mention the 'pow' module.
74027         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
74028         * doc/posix-functions/rint.texi: Mention the 'rint' module.
74029         * doc/posix-functions/sin.texi: Mention the 'sin' module.
74030         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
74031         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
74032         * doc/posix-functions/tan.texi: Mention the 'tan' module.
74033         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
74034         * doc/posix-functions/y0.texi: Mention the 'y0' module.
74035         * doc/posix-functions/y1.texi: Mention the 'y1' module.
74036         * doc/posix-functions/yn.texi: Mention the 'yn' module.
74038 2010-01-18  Jim Meyering  <meyering@redhat.com>
74040         ignore-value: relax license to LGPLv2+
74041         * modules/ignore-value (License): Relax to LGPLv2+.
74043         getdate: don't leak when TZ contains two or more '"'s
74044         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
74045         double quote in TZ after the first one.
74047         readtokens: do not leak internal token_lengths buffer
74048         * lib/readtokens.c (readtokens): Free the local, lengths,
74049         when the supplied "token_lengths" parameter is NULL.
74051 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74053         Fix a couple of missing LIBTHREAD link failures on AIX.
74054         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
74055         $(LIBTHREAD).
74056         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
74058         Link test-poll against INET_PTON_LIB.
74059         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
74060         for inet_pton on Solaris 10.
74062 2010-01-17  Bruno Haible  <bruno@clisp.org>
74064         unistdio/*-sprintf: Fix typo in module description.
74065         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
74066         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
74067         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
74068         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
74069         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
74070         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
74071         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
74072         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74074 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74076         gnulib-tool: fix filelist for AIX, HP-UX ksh.
74077         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
74078         variables in shell case patterns, for AIX and HP-UX ksh.
74080         Split large sed scripts, for HP-UX sed.
74081         * modules/stdio: Split sed scripts around 50 sed commands,
74082         to avoid HP-UX limit of 99 commands, in the near future.
74083         * modules/string: Likewise.
74084         * modules/unistd: Likewise.
74086         gnulib-tool: avoid writing in the current directory.
74087         * gnulib-tool (func_emit_lib_Makefile_am)
74088         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
74089         not in the current directory, so concurrent gnulib-tool
74090         instances do not interfere.
74092 2010-01-16  Jim Meyering  <meyering@redhat.com>
74094         doc: update users.txt
74095         * users.txt: Add grep.
74096         (diffutils, gzip): Update URLs.
74098 2010-01-12  Bruno Haible  <bruno@clisp.org>
74100         posix_spawn: Avoid test failure on Cygwin.
74101         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
74102         characters.
74103         Reported by Simon Josefsson.
74105 2010-01-12  Bruno Haible  <bruno@clisp.org>
74107         * tests/test-cond.c (main): When skipping the test, show the reason.
74109 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74111         * lib/striconv.c (str_cd_iconv): Avoid if before free.
74113 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74115         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
74116         VC_LIST_ALWAYS_EXCLUDE_REGEX.
74118 2010-01-12  Eric Blake  <ebb9@byu.net>
74120         build: guarantee AS_VAR_IF
74121         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
74122         (gl_AS_VAR_IF): Move...
74123         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
74124         Reported by Simon Josefsson.
74126 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74128         * lib/stdio.in.h: Fix typo.
74130 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74132         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
74133         libgpg-error.
74135 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74137         * tests/test-xalloc-die.sh: Use $EXEEXT.
74139 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74140             Bruno Haible  <bruno@clisp.org>
74142         getlogin, getlogin_r: Avoid test failure.
74143         * tests/test-getlogin.c: Include <stdio.h>.
74144         (main): Skip the test when the function fails because stdin is not a
74145         tty.
74146         * tests/test-getlogin_r.c: Include <stdio.h>.
74147         (main): Skip the test when the function fails because stdin is not a
74148         tty.
74150 2010-01-11  Eric Blake  <ebb9@byu.net>
74152         tests: avoid more large file warnings
74153         * tests/test-fflush.c: Avoid warning about ftell use.
74154         * tests/test-fseek.c: Avoid warning about fseek use.
74156 2010-01-10  Bruno Haible  <bruno@clisp.org>
74158         nproc: Work better on Linux when /proc and /sys are not mounted.
74159         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
74160         as lower bound when, on glibc/Linux systems,
74161         sysconf (_SC_NPROCESSORS_CONF) returns 1.
74162         Suggested by Pádraig Brady <P@draigbrady.com>.
74163         Reported by Dmitry V. Levin <ldv@altlinux.org>.
74165         nproc: Refactor.
74166         * lib/nproc.c (num_processors_via_affinity_mask): New function,
74167         extracted from num_processors.
74168         (num_processors): Call it.
74170 2010-01-11  Jim Meyering  <meyering@redhat.com>
74172         utimecmp: avoid new warning from upcoming gcc-4.5.0
74173         * lib/utimecmp.c (BILLION): Define using #define rather than an
74174         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
74176 2010-01-11  Eric Blake  <ebb9@byu.net>
74178         math: add portability warnings for classification macros
74179         * modules/math (Depends-on): Add warn-on-use.
74180         (Makefile.am): Provide new substitutions.
74181         * m4/math_h.m4 (gl_MATH_H): Require inline.
74182         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
74183         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
74184         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
74185         implement warnings.
74187         unistd: warn on use of environ without module
74188         * modules/unistd (Depends-on): Add warn-on-use.
74189         (Makefile.am): Provide new substitutions.
74190         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
74191         * lib/unistd.in.h (environ): Wrap with a warning helper function.
74193         stdio: warn on suspicious uses
74194         * modules/stdio (Depends-on): Add warn-on-use.
74195         (Makefile.am): Provide new substitutions.
74196         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
74197         fseeko.
74198         * lib/stdio.in.h (gets): Always warn on use.
74199         (fseek, ftell): Adjust when warnings are issued, and honor
74200         _GL_NO_LARGE_FILES as a way to silence the warning.
74201         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
74202         any warning about large file offsets.
74203         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
74204         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
74205         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
74206         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
74207         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
74208         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
74209         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
74210         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
74212         warn-on-use: new module
74213         * modules/warn-on-use: New file.
74214         * build-aux/warn-on-use.h: Likewise.
74215         * m4/warn-on-use.m4: Likewise.
74216         * MODULES.html.sh (Support for building): Mention it.
74218 2010-01-10  Bruno Haible  <bruno@clisp.org>
74220         Tests for module 'unistr/u32-strdup'.
74221         * modules/unistr/u32-strdup-tests: New file.
74222         * tests/unistr/test-u32-strdup.c: New file.
74224         Tests for module 'unistr/u16-strdup'.
74225         * modules/unistr/u16-strdup-tests: New file.
74226         * tests/unistr/test-u16-strdup.c: New file.
74228         Tests for module 'unistr/u8-strdup'.
74229         * modules/unistr/u8-strdup-tests: New file.
74230         * tests/unistr/test-u8-strdup.c: New file.
74231         * tests/unistr/test-strdup.h: New file.
74233         Tests for module 'unistr/u32-strncmp'.
74234         * modules/unistr/u32-strncmp-tests: New file.
74235         * tests/unistr/test-u32-strncmp.c: New file.
74237         Tests for module 'unistr/u16-strncmp'.
74238         * modules/unistr/u16-strncmp-tests: New file.
74239         * tests/unistr/test-u16-strncmp.c: New file.
74241         Tests for module 'unistr/u8-strncmp'.
74242         * modules/unistr/u8-strncmp-tests: New file.
74243         * tests/unistr/test-u8-strncmp.c: New file.
74244         * tests/unistr/test-strncmp.h: New file.
74246         Tests for module 'unistr/u32-strcoll'.
74247         * modules/unistr/u32-strcoll-tests: New file.
74248         * tests/unistr/test-u32-strcoll.c: New file.
74250         Tests for module 'unistr/u16-strcoll'.
74251         * modules/unistr/u16-strcoll-tests: New file.
74252         * tests/unistr/test-u16-strcoll.c: New file.
74254         Tests for module 'unistr/u8-strcoll'.
74255         * modules/unistr/u8-strcoll-tests: New file.
74256         * tests/unistr/test-u8-strcoll.c: New file.
74258         Tests for module 'unistr/u32-strcmp'.
74259         * modules/unistr/u32-strcmp-tests: New file.
74260         * tests/unistr/test-u32-strcmp.c: New file.
74261         * tests/unistr/test-u32-strcmp.h: New file.
74263         Tests for module 'unistr/u16-strcmp'.
74264         * modules/unistr/u16-strcmp-tests: New file.
74265         * tests/unistr/test-u16-strcmp.c: New file.
74266         * tests/unistr/test-u16-strcmp.h: New file.
74268         Tests for module 'unistr/u8-strcmp'.
74269         * modules/unistr/u8-strcmp-tests: New file.
74270         * tests/unistr/test-u8-strcmp.c: New file.
74271         * tests/unistr/test-u8-strcmp.h: New file.
74272         * tests/unistr/test-strcmp.h: New file.
74274         Tests for module 'unistr/u32-strncat'.
74275         * modules/unistr/u32-strncat-tests: New file.
74276         * tests/unistr/test-u32-strncat.c: New file.
74278         Tests for module 'unistr/u16-strncat'.
74279         * modules/unistr/u16-strncat-tests: New file.
74280         * tests/unistr/test-u16-strncat.c: New file.
74282         Tests for module 'unistr/u8-strncat'.
74283         * modules/unistr/u8-strncat-tests: New file.
74284         * tests/unistr/test-u8-strncat.c: New file.
74285         * tests/unistr/test-strncat.h: New file.
74287         Tests for module 'unistr/u32-strcat'.
74288         * modules/unistr/u32-strcat-tests: New file.
74289         * tests/unistr/test-u32-strcat.c: New file.
74291         Tests for module 'unistr/u16-strcat'.
74292         * modules/unistr/u16-strcat-tests: New file.
74293         * tests/unistr/test-u16-strcat.c: New file.
74295         Tests for module 'unistr/u8-strcat'.
74296         * modules/unistr/u8-strcat-tests: New file.
74297         * tests/unistr/test-u8-strcat.c: New file.
74298         * tests/unistr/test-strcat.h: New file.
74300         Tests for module 'unistr/u32-stpncpy'.
74301         * modules/unistr/u32-stpncpy-tests: New file.
74302         * tests/unistr/test-u32-stpncpy.c: New file.
74304         Tests for module 'unistr/u16-stpncpy'.
74305         * modules/unistr/u16-stpncpy-tests: New file.
74306         * tests/unistr/test-u16-stpncpy.c: New file.
74308         Tests for module 'unistr/u8-stpncpy'.
74309         * modules/unistr/u8-stpncpy-tests: New file.
74310         * tests/unistr/test-u8-stpncpy.c: New file.
74311         * tests/unistr/test-stpncpy.h: New file.
74313         Tests for module 'unistr/u32-strncpy'.
74314         * modules/unistr/u32-strncpy-tests: New file.
74315         * tests/unistr/test-u32-strncpy.c: New file.
74317         Tests for module 'unistr/u16-strncpy'.
74318         * modules/unistr/u16-strncpy-tests: New file.
74319         * tests/unistr/test-u16-strncpy.c: New file.
74321         Tests for module 'unistr/u8-strncpy'.
74322         * modules/unistr/u8-strncpy-tests: New file.
74323         * tests/unistr/test-u8-strncpy.c: New file.
74324         * tests/unistr/test-strncpy.h: New file.
74326         Tests for module 'unistr/u32-stpcpy'.
74327         * modules/unistr/u32-stpcpy-tests: New file.
74328         * tests/unistr/test-u32-stpcpy.c: New file.
74330         Tests for module 'unistr/u16-stpcpy'.
74331         * modules/unistr/u16-stpcpy-tests: New file.
74332         * tests/unistr/test-u16-stpcpy.c: New file.
74334         Tests for module 'unistr/u8-stpcpy'.
74335         * modules/unistr/u8-stpcpy-tests: New file.
74336         * tests/unistr/test-u8-stpcpy.c: New file.
74337         * tests/unistr/test-stpcpy.h: New file.
74339         Tests for module 'unistr/u32-strcpy'.
74340         * modules/unistr/u32-strcpy-tests: New file.
74341         * tests/unistr/test-u32-strcpy.c: New file.
74343         Tests for module 'unistr/u16-strcpy'.
74344         * modules/unistr/u16-strcpy-tests: New file.
74345         * tests/unistr/test-u16-strcpy.c: New file.
74347         Tests for module 'unistr/u8-strcpy'.
74348         * modules/unistr/u8-strcpy-tests: New file.
74349         * tests/unistr/test-u8-strcpy.c: New file.
74350         * tests/unistr/test-strcpy.h: New file.
74352         Tests for module 'unistr/u32-strnlen'.
74353         * modules/unistr/u32-strnlen-tests: New file.
74354         * tests/unistr/test-u32-strnlen.c: New file.
74356         Tests for module 'unistr/u16-strnlen'.
74357         * modules/unistr/u16-strnlen-tests: New file.
74358         * tests/unistr/test-u16-strnlen.c: New file.
74360         Tests for module 'unistr/u8-strnlen'.
74361         * modules/unistr/u8-strnlen-tests: New file.
74362         * tests/unistr/test-u8-strnlen.c: New file.
74363         * tests/unistr/test-strnlen.h: New file.
74365         Tests for module 'unistr/u32-strlen'.
74366         * modules/unistr/u32-strlen-tests: New file.
74367         * tests/unistr/test-u32-strlen.c: New file.
74369         Tests for module 'unistr/u16-strlen'.
74370         * modules/unistr/u16-strlen-tests: New file.
74371         * tests/unistr/test-u16-strlen.c: New file.
74373         Tests for module 'unistr/u8-strlen'.
74374         * modules/unistr/u8-strlen-tests: New file.
74375         * tests/unistr/test-u8-strlen.c: New file.
74377         Tests for module 'unistr/u32-prev'.
74378         * modules/unistr/u32-prev-tests: New file.
74379         * tests/unistr/test-u32-prev.c: New file.
74381         Tests for module 'unistr/u16-prev'.
74382         * modules/unistr/u16-prev-tests: New file.
74383         * tests/unistr/test-u16-prev.c: New file.
74385         Tests for module 'unistr/u8-prev'.
74386         * modules/unistr/u8-prev-tests: New file.
74387         * tests/unistr/test-u8-prev.c: New file.
74389         Tests for module 'unistr/u32-next'.
74390         * modules/unistr/u32-next-tests: New file.
74391         * tests/unistr/test-u32-next.c: New file.
74393         Tests for module 'unistr/u16-next'.
74394         * modules/unistr/u16-next-tests: New file.
74395         * tests/unistr/test-u16-next.c: New file.
74397         Tests for module 'unistr/u8-next'.
74398         * modules/unistr/u8-next-tests: New file.
74399         * tests/unistr/test-u8-next.c: New file.
74401         Tests for module 'unistr/u32-strmbtouc'.
74402         * modules/unistr/u32-strmbtouc-tests: New file.
74403         * tests/unistr/test-u32-strmbtouc.c: New file.
74405         Tests for module 'unistr/u16-strmbtouc'.
74406         * modules/unistr/u16-strmbtouc-tests: New file.
74407         * tests/unistr/test-u16-strmbtouc.c: New file.
74409         Tests for module 'unistr/u8-strmbtouc'.
74410         * modules/unistr/u8-strmbtouc-tests: New file.
74411         * tests/unistr/test-u8-strmbtouc.c: New file.
74413         Tests for module 'unistr/u32-strmblen'.
74414         * modules/unistr/u32-strmblen-tests: New file.
74415         * tests/unistr/test-u32-strmblen.c: New file.
74417         Tests for module 'unistr/u16-strmblen'.
74418         * modules/unistr/u16-strmblen-tests: New file.
74419         * tests/unistr/test-u16-strmblen.c: New file.
74421         Tests for module 'unistr/u8-strmblen'.
74422         * modules/unistr/u8-strmblen-tests: New file.
74423         * tests/unistr/test-u8-strmblen.c: New file.
74425         Tests for module 'unistr/u32-cpy-alloc'.
74426         * modules/unistr/u32-cpy-alloc-tests: New file.
74427         * tests/unistr/test-u32-cpy-alloc.c: New file.
74429         Tests for module 'unistr/u16-cpy-alloc'.
74430         * modules/unistr/u16-cpy-alloc-tests: New file.
74431         * tests/unistr/test-u16-cpy-alloc.c: New file.
74433         Tests for module 'unistr/u8-cpy-alloc'.
74434         * modules/unistr/u8-cpy-alloc-tests: New file.
74435         * tests/unistr/test-u8-cpy-alloc.c: New file.
74436         * tests/unistr/test-cpy-alloc.h: New file.
74438         Tests for module 'unistr/u32-mbsnlen'.
74439         * modules/unistr/u32-mbsnlen-tests: New file.
74440         * tests/unistr/test-u32-mbsnlen.c: New file.
74442         Tests for module 'unistr/u16-mbsnlen'.
74443         * modules/unistr/u16-mbsnlen-tests: New file.
74444         * tests/unistr/test-u16-mbsnlen.c: New file.
74446         Tests for module 'unistr/u8-mbsnlen'.
74447         * modules/unistr/u8-mbsnlen-tests: New file.
74448         * tests/unistr/test-u8-mbsnlen.c: New file.
74450         Tests for module 'unistr/u32-chr'.
74451         * modules/unistr/u32-chr-tests: New file.
74452         * tests/unistr/test-u32-chr.c: New file.
74454         Tests for module 'unistr/u16-chr'.
74455         * modules/unistr/u16-chr-tests: New file.
74456         * tests/unistr/test-u16-chr.c: New file.
74458         Tests for module 'unistr/u8-chr'.
74459         * modules/unistr/u8-chr-tests: New file.
74460         * tests/unistr/test-u8-chr.c: New file.
74461         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
74463         Tests for module 'unistr/u32-cmp2'.
74464         * modules/unistr/u32-cmp2-tests: New file.
74465         * tests/unistr/test-u32-cmp2.c: New file.
74467         Tests for module 'unistr/u16-cmp2'.
74468         * modules/unistr/u16-cmp2-tests: New file.
74469         * tests/unistr/test-u16-cmp2.c: New file.
74471         Tests for module 'unistr/u8-cmp2'.
74472         * modules/unistr/u8-cmp2-tests: New file.
74473         * tests/unistr/test-u8-cmp2.c: New file.
74474         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
74476         Tests for module 'unistr/u32-cmp'.
74477         * modules/unistr/u32-cmp-tests: New file.
74478         * tests/unistr/test-u32-cmp.c: New file.
74480         Tests for module 'unistr/u16-cmp'.
74481         * modules/unistr/u16-cmp-tests: New file.
74482         * tests/unistr/test-u16-cmp.c: New file.
74484         Tests for module 'unistr/u8-cmp'.
74485         * modules/unistr/u8-cmp-tests: New file.
74486         * tests/unistr/test-u8-cmp.c: New file.
74487         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
74489         Tests for module 'unistr/u32-set'.
74490         * modules/unistr/u32-set-tests: New file.
74491         * tests/unistr/test-u32-set.c: New file.
74493         Tests for module 'unistr/u16-set'.
74494         * modules/unistr/u16-set-tests: New file.
74495         * tests/unistr/test-u16-set.c: New file.
74497         Tests for module 'unistr/u8-set'.
74498         * modules/unistr/u8-set-tests: New file.
74499         * tests/unistr/test-u8-set.c: New file.
74500         * tests/unistr/test-set.h: New file.
74502         Tests for module 'unistr/u32-move'.
74503         * modules/unistr/u32-move-tests: New file.
74504         * tests/unistr/test-u32-move.c: New file.
74506         Tests for module 'unistr/u16-move'.
74507         * modules/unistr/u16-move-tests: New file.
74508         * tests/unistr/test-u16-move.c: New file.
74510         Tests for module 'unistr/u8-move'.
74511         * modules/unistr/u8-move-tests: New file.
74512         * tests/unistr/test-u8-move.c: New file.
74513         * tests/unistr/test-move.h: New file.
74515         Tests for module 'unistr/u32-cpy'.
74516         * modules/unistr/u32-cpy-tests: New file.
74517         * tests/unistr/test-u32-cpy.c: New file.
74519         Tests for module 'unistr/u16-cpy'.
74520         * modules/unistr/u16-cpy-tests: New file.
74521         * tests/unistr/test-u16-cpy.c: New file.
74523         Tests for module 'unistr/u8-cpy'.
74524         * modules/unistr/u8-cpy-tests: New file.
74525         * tests/unistr/test-u8-cpy.c: New file.
74526         * tests/unistr/test-cpy.h: New file.
74528 2010-01-09  Bruno Haible  <bruno@clisp.org>
74530         Tests for module 'unistr/u32-uctomb'.
74531         * modules/unistr/u32-uctomb-tests: New file.
74532         * tests/unistr/test-u32-uctomb.c: New file.
74534         Tests for module 'unistr/u16-uctomb'.
74535         * modules/unistr/u16-uctomb-tests: New file.
74536         * tests/unistr/test-u16-uctomb.c: New file.
74538         Tests for module 'unistr/u8-uctomb'.
74539         * modules/unistr/u8-uctomb-tests: New file.
74540         * tests/unistr/test-u8-uctomb.c: New file.
74542         Tests for module 'unistr/u32-mbtoucr'.
74543         * modules/unistr/u32-mbtoucr-tests: New file.
74544         * tests/unistr/test-u32-mbtoucr.c: New file.
74546         Tests for module 'unistr/u16-mbtoucr'.
74547         * modules/unistr/u16-mbtoucr-tests: New file.
74548         * tests/unistr/test-u16-mbtoucr.c: New file.
74550         Tests for module 'unistr/u8-mbtoucr'.
74551         * modules/unistr/u8-mbtoucr-tests: New file.
74552         * tests/unistr/test-u8-mbtoucr.c: New file.
74554         Tests for module 'unistr/u32-mbtouc'.
74555         * modules/unistr/u32-mbtouc-tests: New file.
74556         * tests/unistr/test-u32-mbtouc.c: New file.
74558         Tests for module 'unistr/u16-mbtouc'.
74559         * modules/unistr/u16-mbtouc-tests: New file.
74560         * tests/unistr/test-u16-mbtouc.c: New file.
74562         Tests for module 'unistr/u8-mbtouc'.
74563         * modules/unistr/u8-mbtouc-tests: New file.
74564         * tests/unistr/test-u8-mbtouc.c: New file.
74566         Tests for module 'unistr/u32-mbtouc-unsafe'.
74567         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
74568         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
74569         * tests/unistr/test-u32-mbtouc.h: New file.
74571         Tests for module 'unistr/u16-mbtouc-unsafe'.
74572         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
74573         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
74574         * tests/unistr/test-u16-mbtouc.h: New file.
74576         Tests for module 'unistr/u8-mbtouc-unsafe'.
74577         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
74578         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
74579         * tests/unistr/test-u8-mbtouc.h: New file.
74581         Tests for module 'unistr/u32-mblen'.
74582         * modules/unistr/u32-mblen-tests: New file.
74583         * tests/unistr/test-u32-mblen.c: New file.
74585         Tests for module 'unistr/u16-mblen'.
74586         * modules/unistr/u16-mblen-tests: New file.
74587         * tests/unistr/test-u16-mblen.c: New file.
74589         Tests for module 'unistr/u8-mblen'.
74590         * modules/unistr/u8-mblen-tests: New file.
74591         * tests/unistr/test-u8-mblen.c: New file.
74593         Tests for module 'unistr/u32-to-u16'.
74594         * modules/unistr/u32-to-u16-tests: New file.
74595         * tests/unistr/test-u32-to-u16.c: New file.
74597         Tests for module 'unistr/u32-to-u8'.
74598         * modules/unistr/u32-to-u8-tests: New file.
74599         * tests/unistr/test-u32-to-u8.c: New file.
74601         Tests for module 'unistr/u16-to-u32'.
74602         * modules/unistr/u16-to-u32-tests: New file.
74603         * tests/unistr/test-u16-to-u32.c: New file.
74605         Tests for module 'unistr/u16-to-u8'.
74606         * modules/unistr/u16-to-u8-tests: New file.
74607         * tests/unistr/test-u16-to-u8.c: New file.
74609         Tests for module 'unistr/u8-to-u32'.
74610         * modules/unistr/u8-to-u32-tests: New file.
74611         * tests/unistr/test-u8-to-u32.c: New file.
74613         Tests for module 'unistr/u8-to-u16'.
74614         * modules/unistr/u8-to-u16-tests: New file.
74615         * tests/unistr/test-u8-to-u16.c: New file.
74617         Tests for module 'unistr/u32-check'.
74618         * modules/unistr/u32-check-tests: New file.
74619         * tests/unistr/test-u32-check.c: New file.
74621         Tests for module 'unistr/u16-check'.
74622         * modules/unistr/u16-check-tests: New file.
74623         * tests/unistr/test-u16-check.c: New file.
74625         Tests for module 'unistr/u8-check'.
74626         * modules/unistr/u8-check-tests: New file.
74627         * tests/unistr/test-u8-check.c: New file.
74629         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
74630         (category_equals): New function.
74631         (main): Add more tests.
74632         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
74634         * tests/unictype/test-bidi_byname.c (main): Add more tests.
74636 2010-01-10  Bruno Haible  <bruno@clisp.org>
74638         unistr/u*-strcoll: Try harder to distinguish different strings.
74639         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
74640         compare s1 and s2 to see if they are different.
74642 2010-01-10  Bruno Haible  <bruno@clisp.org>
74644         unistr/u*-stpncpy: Fix the return value.
74645         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
74646         description of the return value consistent with stpncpy in glibc.
74647         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
74648         written non-NUL unit.
74650 2010-01-10  Bruno Haible  <bruno@clisp.org>
74652         unistr/u*-next: Add missing dependencies.
74653         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
74654         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
74655         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
74657 2010-01-10  Bruno Haible  <bruno@clisp.org>
74659         unistr/u8-mbsnlen: Fix return value for incomplete character.
74660         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
74661         u8_mblen.
74662         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
74663         Remove unistr/u8-mblen.
74664         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
74665         u16_mblen.
74666         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
74667         Remove unistr/u16-mblen.
74669 2010-01-10  Bruno Haible  <bruno@clisp.org>
74671         wchar: Fix compilation error when <wchar.h> is used from coreutils.
74672         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
74673         Reported by Brian Gough <bjg@gnu.org> and
74674         Chris Clayton <chris2553@googlemail.com> via
74675         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
74677 2010-01-09  Bruno Haible  <bruno@clisp.org>
74679         unistr/u16-to-u32: Reject invalid input.
74680         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
74681         u16_mbtouc.
74682         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
74683         Remove unistr/u16-mbtouc.
74685         unistr/u16-to-u8: Reject invalid input.
74686         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
74687         u16_mbtouc.
74688         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
74689         Remove unistr/u16-mbtouc.
74691         unistr/u8-to-u32: Reject invalid input.
74692         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
74693         u8_mbtouc.
74694         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
74695         Remove unistr/u8-mbtouc.
74697         unistr/u8-to-u16: Reject invalid input.
74698         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
74699         u8_mbtouc.
74700         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
74701         Remove unistr/u8-mbtouc.
74703 2010-01-09  Bruno Haible  <bruno@clisp.org>
74705         Tests for module 'getlogin'.
74706         * modules/getlogin-tests: New file.
74707         * tests/test-getlogin.c: New file.
74709         New module 'getlogin'.
74710         * lib/unistd.in.h (getlogin): New declaration.
74711         * lib/getlogin.c: New file.
74712         * m4/getlogin.m4: New file.
74713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
74714         HAVE_GETLOGIN.
74715         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
74716         HAVE_GETLOGIN.
74717         * modules/getlogin: New file.
74718         * doc/posix-functions/getlogin.texi: Mention the new module.
74719         Reported by John W. Eaton <jwe@gnu.org>.
74721 2010-01-09  Bruno Haible  <bruno@clisp.org>
74723         getlogin_r: Support for native Windows.
74724         * lib/getlogin_r.c: Include <windows.h>
74725         (getlogin_r): Implement for native Windows.
74726         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
74727         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
74728         via John W. Eaton <jwe@gnu.org>.
74730 2010-01-09  Bruno Haible  <bruno@clisp.org>
74732         getlogin_r: Small fixes.
74733         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
74734         succeeds.
74735         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
74736         before testing whether getlogin_r is declared. No need to set
74737         HAVE_DECL_GETLOGIN_R to 1.
74738         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
74740 2010-01-09  Bruno Haible  <bruno@clisp.org>
74742         * lib/unistd.in.h (getlogin_r): Add comment.
74744 2010-01-09  Bruno Haible  <bruno@clisp.org>
74746         Tests for module 'getlogin_r'.
74747         * modules/getlogin_r-tests: New file.
74748         * tests/test-getlogin_r.c: New file.
74750 2010-01-09  Jim Meyering  <meyering@redhat.com>
74752         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
74753         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
74754         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
74756 2010-01-08  Simon Josefsson  <simon@josefsson.org>
74758         * lib/dup2.c (rpl_dup2): Improve comment.
74760 2010-01-08  Eric Blake  <ebb9@byu.net>
74762         maint.mk: allow packages to add makefile @@ exceptions
74763         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
74764         (sc_makefile_check): Rename...
74765         (sc_makefile_at_at_check): ...to this, and use hook.
74767         dup2: work around mingw bug
74768         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
74769         Reported by Simon Josefsson.
74771 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
74773         glob: Fix C++ compilation.
74774         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
74775         C++.
74777 2010-01-07  Bruno Haible  <bruno@clisp.org>
74779         Fix indentation of wctype.in.h, broken since 2007-01-06.
74780         * lib/wctype.in.h: Fix indentation of preprocessor directives.
74782 2010-01-07  Bruno Haible  <bruno@clisp.org>
74784         mbslen: Avoid collision with system function.
74785         * lib/string.in.h [MirBSD]: Include <wchar.h>.
74786         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
74787         * m4/mbslen.m4: New file.
74788         * modules/mbslen (Files): Add it.
74789         (configure.ac): Invoke gl_MBSLEN.
74790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
74791         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
74792         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
74793         via Ian Beckwith <ianb@erislabs.net>.
74795 2010-01-07  Bruno Haible  <bruno@clisp.org>
74797         dirent: Document the last fix.
74798         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
74800 2010-01-07  Bruno Haible  <bruno@clisp.org>
74802         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
74803         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
74804         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
74805         va_list are defined.
74806         * doc/posix-headers/stdio.texi: Document the bug of missing types.
74807         Reported by Eric Blake.
74809 2010-01-07  Bruno Haible  <bruno@clisp.org>
74811         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
74812         * modules/xlist (Depends-on): Add 'list',
74813         * modules/xoset (Depends-on): Add 'oset'.
74814         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74816 2010-01-07  Bruno Haible  <bruno@clisp.org>
74818         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
74819         * doc/posix-functions/strncasecmp.texi: Likewise.
74821 2010-01-07  Bruno Haible  <bruno@clisp.org>
74823         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
74825 2010-01-07  John W. Eaton  <jwe@octave.org>
74827         wctype: allow C++ use
74828         * lib/wctype.in.h: Add extern "C" block for C++.
74830 2010-01-06  Eric Blake  <ebb9@byu.net>
74832         maint.mk: detect incorrect GFDL usage
74833         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
74835 2010-01-06  Jim Meyering  <meyering@redhat.com>
74836         and Eric Blake  <ebb9@byu.net>
74838         maint.mk: ignore multi-line copyright in NEWS
74839         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
74841 2010-01-06  Eric Blake  <ebb9@byu.net>
74843         select: add missing dependency
74844         * modules/select-tests (Depends-on): Move sockets dependency...
74845         * modules/select (Depends-on): ...here.
74846         Reported by Ian Beckwith.
74848         doc: regenerate INSTALL
74849         * doc/INSTALL: Reflect recent autoconf update.
74850         * doc/INSTALL.ISO: Likewise.
74851         * doc/INSTALL.UTF-8: Likewise.
74853         pread: fix compilation on glibc
74854         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
74855         Reported by Ralf Wildenhues.
74857         dirent: fix test failure
74858         * lib/dirent.in.h (includes): Guarantee ino_t.
74859         Reported by Ralf Wildenhues.
74861 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
74863         linkat, renameat: avoid bad free
74864         * lib/at-func2.c (at_func2): Fix typo.
74865         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
74867 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74869         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
74870         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
74871         to avoid failure of symlink test later.
74873 2010-01-06  Eric Blake  <ebb9@byu.net>
74875         stdio, unistd: guarantee ssize_t
74876         * lib/unistd.in.h (includes): Ensure that types required by POSIX
74877         2008 are exposed when needed.
74878         * lib/stdio.in.h (includes): Likewise.
74879         Reported by Ralf Wildenhues.
74881 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
74883         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
74884         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
74885         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
74887 2010-01-06  Jim Meyering  <meyering@redhat.com>
74889         readtokens: this module *does* require xalloc.h
74890         It uses only functions that were omitted by the old syntax-check rule.
74891         * lib/readtokens.c: Include "xalloc.h" once again.
74892         * modules/readtokens (Depends-on): Add xalloc.
74893         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
74895 2010-01-05  Eric Blake  <ebb9@byu.net>
74897         maint: support 'make announcement' from a VPATH build
74898         * top/maint.mk (announcement): Look for correct NEWS file.
74900 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
74902         utimens (fdutimens): ignore a negative FD, per contract
74903         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
74904         when we have a valid file descriptor.  Otherwise, using a brand
74905         new glibc (with just-patched futimens that now fails with EBADF)
74906         would cause this function to fail with ENOSYS.
74907         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
74908         See also http://bugzilla.redhat.com/552320.
74910 2010-01-05  Eric Blake  <ebb9@byu.net>
74912         strcase: document what it provides
74913         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
74914         gnulib module.
74915         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
74916         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
74918 2010-01-05  Jim Meyering  <meyering@redhat.com>
74920         maint: remove useless inclusions of "xalloc.h"
74921         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
74922         * lib/readtokens.c: Likewise.
74923         * lib/same.c: Likewise.
74924         * modules/getloadavg (Depends-on): Remove xalloc.
74925         * modules/readtokens: Likewise.
74926         * modules/same: Likewise.
74928         maint.mk: include 4 more function names in alloca.h-checking regexp
74929         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
74930         regexp.  Before, we would give a false-positive (saying alloca.h
74931         is included unnecessarily) when the only uses involved omitted symbols.
74933         xalloc.h: use consistent formatting
74934         * lib/xalloc.h: Move declarations to start in the first column.
74936 2010-01-05  Eric Blake  <ebb9@byu.net>
74938         mkdir: avoid xalloc
74939         * lib/mkdir.c (includes): Drop unused header.
74940         Reported by John W. Eaton.
74942 2010-01-04  Jim Meyering  <meyering@redhat.com>
74944         nl_langinfo: avoid configure-time syntax error
74945         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
74946         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
74947         the empty string.  Don't let that provoke a shell syntax error.
74949         regcomp, regexec, fnmatch: avoid array bounds read error
74950         * lib/regcomp.c (build_equiv_class): From glibc:
74951         Use only the low 24 bits of a findidx return value as an index
74952         into the weights array.  Patch by Ulrich Drepper:
74953         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
74954         * lib/regexec.c (check_node_accept_bytes): Likewise.
74955         * lib/fnmatch_loop.c (FCT): Likewise.
74957         regcomp: skip collseq lookup when there are no rules
74958         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
74959         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
74961         regcomp: recognize ill-formed { } expressions
74962         * lib/regcomp.c (parse_dup_op): From glibc:
74963         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
74965         regcomp: fix typo in comment
74966         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
74967         s/satisfy/satisfies/.
74969         regcomp: sync from glibc: remove dead store
74970         * lib/regcomp.c (duplicate_node_closure): Remove useless
74971         search_duplicated_node call and dead store.
74973         regcomp: sync from glibc; always use nl_langinfo
74974         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
74975         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
74976         * modules/regex (Depends-on): Add nl_langinfo.
74978 2010-01-04  Eric Blake  <ebb9@byu.net>
74980         fdopendir: fix configure test
74981         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
74983 2010-01-01  Bruno Haible  <bruno@clisp.org>
74985         wchar: Remove unused configure check.
74986         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
74988 2010-01-01  Eric Blake  <ebb9@byu.net>
74990         headers: make check of system header explicit
74991         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
74992         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
74993         ourselves.
74994         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
74995         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74996         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
74997         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
74998         internals.
74999         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
75000         missing.
75001         Suggested by Bruno Haible.
75003 2010-01-01  Jim Meyering  <meyering@redhat.com>
75005         ChangeLog: tweak to eliminate unnecessary copyright line
75006         * ChangeLog: Remove a copyright line that was mistakenly updated
75007         by today's update-copyright run.  Reported by Eric Blake.
75009         test-update-copyright: don't let envvar setting cause test failure
75010         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
75012 2010-01-01  Bruno Haible  <bruno@clisp.org>
75014         localename: Avoid gcc warning.
75015         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
75016         function if it is not used.
75018 2010-01-01  Jim Meyering  <meyering@redhat.com>
75020         update nearly all FSF copyright year lists to include 2010
75021         Use the same procedure as for 2009, outlined in
75022         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
75024         version-etc: set COPYRIGHT_YEAR to 2010
75025         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
75027 2009-12-31  Eric Blake  <ebb9@byu.net>
75029         doc: correct availability of cygwin 1.5.x getopt
75030         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
75031         variables.
75032         * doc/posix-functions/opterr.texi (opterr): Likewise.
75033         * doc/posix-functions/optind.texi (optind): Likewise.
75034         * doc/posix-functions/optopt.texi (optopt): Likewise.
75035         * doc/posix-functions/tzname.texi (tzname): Likewise.
75037         openat: update maintainer
75038         * modules/openat (Maintainer): Add myself.
75040         utimens: avoid shadowing warning
75041         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
75042         buffers into one, to avoid shadowing, as well as avoiding a
75043         redundant stat.
75044         Reported by Jim Meyering.
75046         test-dup2: avoid compiler warning
75047         * tests/test-dup2.c (is_inheritable): Only define if used.
75049 2010-01-01  Bruno Haible  <bruno@clisp.org>
75051         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
75052         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
75053         defined, use wctomb instead of wcrtomb.
75055 2010-01-01  Bruno Haible  <bruno@clisp.org>
75057         iconv: Reject native Solaris iconv.
75058         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
75059         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
75061 2009-12-31  Bruno Haible  <bruno@clisp.org>
75063         * tests/test-signal.c (main): Remove test of 'SIG'.
75065 2009-12-31  Bruno Haible  <bruno@clisp.org>
75067         spawn: Fix incomplete fix.
75068         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
75069         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
75070         warnings for GNULIB_POSIXCHECK again.
75071         Reported by Eric Blake.
75073 2009-12-31  Bruno Haible  <bruno@clisp.org>
75075         Avoid namespace pollution on glibc systems.
75076         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
75077         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
75078         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
75079         glibc systems.
75081 2009-12-31  Bruno Haible  <bruno@clisp.org>
75083         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
75084         (gl_REPLACE_WCHAR_H): Turn into a no-op.
75085         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
75086         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
75087         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
75088         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
75089         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
75091 2009-12-31  Bruno Haible  <bruno@clisp.org>
75093         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
75094         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
75095         afterwards.
75097 2009-12-31  Bruno Haible  <bruno@clisp.org>
75099         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
75100         SYS_UTSNAME_H.
75102 2009-12-31  Bruno Haible  <bruno@clisp.org>
75104         spawn: Fix misapplied patch.
75105         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
75106         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
75107         warnings for GNULIB_POSIXCHECK.
75109 2009-12-31  Bruno Haible  <bruno@clisp.org>
75111         times: Update after sys_times changed.
75112         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
75113         * modules/times (Files): Add it.
75114         (configure.ac): Invoke gl_FUNC_TIMES.
75116 2009-12-31  Bruno Haible  <bruno@clisp.org>
75118         Use AC_C_INLINE where necessary.
75119         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
75120         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75121         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75122         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
75123         * m4/mbfile.m4 (gl_MBFILE): Likewise.
75124         * m4/mbiter.m4 (gl_MBITER): Likewise.
75125         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75126         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
75127         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
75128         * modules/u64 (configure.ac): Likewise.
75130 2009-12-31  Bruno Haible  <bruno@clisp.org>
75132         Use AC_C_INLINE instead of module 'inline' where possible.
75133         * modules/inline (Description): Clarify purpose.
75134         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
75135         * modules/count-one-bits (Depends-on): Remove inline.
75136         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
75137         * modules/openat (Depends-on): Remove inline.
75138         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
75139         instead of depending on module 'inline'.
75140         * modules/filevercmp (Depends-on, configure.ac): Likewise.
75141         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
75142         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
75143         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
75144         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
75145         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
75146         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
75147         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
75148         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
75149         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
75150         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
75151         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
75152         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
75153         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
75154         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
75155         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
75156         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
75157         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
75158         Likewise.
75159         * modules/unictype/property-ascii-hex-digit (Depends-on,
75160         configure.ac): Likewise.
75161         * modules/unictype/property-bidi-arabic-digit (Depends-on,
75162         configure.ac): Likewise.
75163         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
75164         configure.ac): Likewise.
75165         * modules/unictype/property-bidi-block-separator (Depends-on,
75166         configure.ac): Likewise.
75167         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
75168         configure.ac): Likewise.
75169         * modules/unictype/property-bidi-common-separator (Depends-on,
75170         configure.ac): Likewise.
75171         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
75172         Likewise.
75173         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
75174         configure.ac): Likewise.
75175         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
75176         configure.ac): Likewise.
75177         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
75178         configure.ac): Likewise.
75179         * modules/unictype/property-bidi-european-digit (Depends-on,
75180         configure.ac): Likewise.
75181         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
75182         configure.ac): Likewise.
75183         * modules/unictype/property-bidi-left-to-right (Depends-on,
75184         configure.ac): Likewise.
75185         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
75186         configure.ac): Likewise.
75187         * modules/unictype/property-bidi-other-neutral (Depends-on,
75188         configure.ac): Likewise.
75189         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
75190         Likewise.
75191         * modules/unictype/property-bidi-segment-separator (Depends-on,
75192         configure.ac): Likewise.
75193         * modules/unictype/property-bidi-whitespace (Depends-on,
75194         configure.ac): Likewise.
75195         * modules/unictype/property-combining (Depends-on, configure.ac):
75196         Likewise.
75197         * modules/unictype/property-composite (Depends-on, configure.ac):
75198         Likewise.
75199         * modules/unictype/property-currency-symbol (Depends-on,
75200         configure.ac): Likewise.
75201         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
75202         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
75203         Likewise.
75204         * modules/unictype/property-default-ignorable-code-point (Depends-on,
75205         configure.ac): Likewise.
75206         * modules/unictype/property-deprecated (Depends-on, configure.ac):
75207         Likewise.
75208         * modules/unictype/property-diacritic (Depends-on, configure.ac):
75209         Likewise.
75210         * modules/unictype/property-extender (Depends-on, configure.ac):
75211         Likewise.
75212         * modules/unictype/property-format-control (Depends-on, configure.ac):
75213         Likewise.
75214         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
75215         Likewise.
75216         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
75217         Likewise.
75218         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
75219         Likewise.
75220         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
75221         Likewise.
75222         * modules/unictype/property-hyphen (Depends-on, configure.ac):
75223         Likewise.
75224         * modules/unictype/property-id-continue (Depends-on, configure.ac):
75225         Likewise.
75226         * modules/unictype/property-id-start (Depends-on, configure.ac):
75227         Likewise.
75228         * modules/unictype/property-ideographic (Depends-on, configure.ac):
75229         Likewise.
75230         * modules/unictype/property-ids-binary-operator (Depends-on,
75231         configure.ac): Likewise.
75232         * modules/unictype/property-ids-trinary-operator (Depends-on,
75233         configure.ac): Likewise.
75234         * modules/unictype/property-ignorable-control (Depends-on,
75235         configure.ac): Likewise.
75236         * modules/unictype/property-iso-control (Depends-on, configure.ac):
75237         Likewise.
75238         * modules/unictype/property-join-control (Depends-on, configure.ac):
75239         Likewise.
75240         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
75241         Likewise.
75242         * modules/unictype/property-line-separator (Depends-on, configure.ac):
75243         Likewise.
75244         * modules/unictype/property-logical-order-exception (Depends-on,
75245         configure.ac): Likewise.
75246         * modules/unictype/property-lowercase (Depends-on, configure.ac):
75247         Likewise.
75248         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
75249         * modules/unictype/property-non-break (Depends-on, configure.ac):
75250         Likewise.
75251         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
75252         Likewise.
75253         * modules/unictype/property-numeric (Depends-on, configure.ac):
75254         Likewise.
75255         * modules/unictype/property-other-alphabetic (Depends-on,
75256         configure.ac): Likewise.
75257         * modules/unictype/property-other-default-ignorable-code-point
75258         (Depends-on, configure.ac): Likewise.
75259         * modules/unictype/property-other-grapheme-extend (Depends-on,
75260         configure.ac): Likewise.
75261         * modules/unictype/property-other-id-continue (Depends-on,
75262         configure.ac): Likewise.
75263         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
75264         Likewise.
75265         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
75266         Likewise.
75267         * modules/unictype/property-other-math (Depends-on, configure.ac):
75268         Likewise.
75269         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
75270         Likewise.
75271         * modules/unictype/property-paired-punctuation (Depends-on,
75272         configure.ac): Likewise.
75273         * modules/unictype/property-paragraph-separator (Depends-on,
75274         configure.ac): Likewise.
75275         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
75276         Likewise.
75277         * modules/unictype/property-pattern-white-space (Depends-on,
75278         configure.ac): Likewise.
75279         * modules/unictype/property-private-use (Depends-on, configure.ac):
75280         Likewise.
75281         * modules/unictype/property-punctuation (Depends-on, configure.ac):
75282         Likewise.
75283         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
75284         Likewise.
75285         * modules/unictype/property-radical (Depends-on, configure.ac):
75286         Likewise.
75287         * modules/unictype/property-sentence-terminal (Depends-on,
75288         configure.ac): Likewise.
75289         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
75290         Likewise.
75291         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
75292         * modules/unictype/property-terminal-punctuation (Depends-on,
75293         configure.ac): Likewise.
75294         * modules/unictype/property-titlecase (Depends-on, configure.ac):
75295         Likewise.
75296         * modules/unictype/property-unassigned-code-value (Depends-on,
75297         configure.ac): Likewise.
75298         * modules/unictype/property-unified-ideograph (Depends-on,
75299         configure.ac): Likewise.
75300         * modules/unictype/property-uppercase (Depends-on, configure.ac):
75301         Likewise.
75302         * modules/unictype/property-variation-selector (Depends-on,
75303         configure.ac): Likewise.
75304         * modules/unictype/property-white-space (Depends-on, configure.ac):
75305         Likewise.
75306         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
75307         Likewise.
75308         * modules/unictype/property-xid-start (Depends-on, configure.ac):
75309         Likewise.
75310         * modules/unictype/property-zero-width (Depends-on, configure.ac):
75311         Likewise.
75312         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
75313         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
75314         Likewise.
75316 2009-12-31  Bruno Haible  <bruno@clisp.org>
75318         Remove unnecessary AC_C_INLINE invocation.
75319         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
75320         since 2009-08-21.
75322 2009-12-31  Jim Meyering  <meyering@redhat.com>
75324         maint.mk: don't require explicit gpg_key_ID in cfg.mk
75325         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
75326         With this change, we can all remove the gpg_key_ID = ... definition
75327         from our respective cfg.mk files.
75329         maint.mk: create announcement template in ~/, not in /tmp
75330         * top/maint.mk (emit_upload_commands): Adjust.
75331         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
75332         Remove temporary file, .ci-msg.
75334 2009-12-31  Eric Blake  <ebb9@byu.net>
75336         link-warning: always build headers with link warnings
75337         * modules/arpa_inet (Makefile.am): Always build replacement
75338         header.
75339         * modules/ctype (Makefile.am): Likewise.
75340         * modules/dirent (Makefile.am): Likewise.
75341         * modules/inttypes (Makefile.am): Likewise.
75342         * modules/langinfo (Makefile.am): Likewise.
75343         * modules/locale (Makefile.am): Likewise.
75344         * modules/spawn (Makefile.am): Likewise.
75345         * modules/sys_file (Makefile.am): Likewise.
75346         * modules/sys_ioctl (Makefile.am): Likewise.
75347         * modules/sys_select (Makefile.am): Likewise.
75348         * modules/sys_socket (Makefile.am): Likewise.
75349         * modules/sys_times (Makefile.am): Likewise.
75350         * modules/sys_utsname (Makefile.am): Likewise.
75351         * modules/sys_wait (Makefile.am): Likewise.
75352         * modules/wchar (Makefile.am): Likewise.
75353         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
75354         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
75355         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
75356         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
75357         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
75358         Likewise.
75359         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
75360         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
75361         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
75362         Likewise.
75363         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
75364         Likewise.
75365         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
75366         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
75367         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
75368         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75369         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
75370         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
75371         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
75372         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
75373         (gl_WCHAR_H_DEFAULTS): Likewise.
75375 2009-12-31  Eric Blake  <ebb9@byu.net>
75377         signal, spawn: use link warnings
75378         * lib/signal.in.h (sigset_t): Make unconditional.
75379         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
75380         (sigpending, sigprocmask, sigaction): Add link warnings.
75381         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
75382         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
75383         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
75384         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
75385         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
75386         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
75387         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
75388         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
75389         (posix_spawn_file_actions_destroy)
75390         (posix_spawn_file_actions_addopen)
75391         (posix_spawn_file_actions_addclose)
75392         (posix_spawn_file_actions_adddup2): Likewise.
75393         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
75394         * tests/test-signal.c (main): Enhance test.
75396         spawn: improve wrapper support
75397         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
75398         (gl_SPAWN_H_DEFAULTS): New defaults.
75399         * modules/spawn (Makefile.am): Substitute them.
75400         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
75401         Only declare if missing or broken.
75403         sys_times, sys_utsname: use include_next
75404         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
75405         header.
75406         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
75407         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
75408         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
75409         * modules/sys_times (Depends-on): Add include_next.
75410         (Makefile.am): Substitute additional values.
75411         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
75412         * lib/sys_times.in.h (includes): Include native header, if
75413         available.
75414         * lib/sys_utsname.in.h (includes): Likewise.
75415         * tests/test-sys_times.c (main): Enhance test.
75417         fdutimensat: revert prior patch
75418         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
75419         utimens.h.
75420         Reported by Bruno Haible.
75422 2009-12-30  Eric Blake  <ebb9@byu.net>
75424         sys_wait: drop link-warning dependency
75425         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
75426         link-warning efforts.
75427         * lib/sys_wait.in.h: Likewise.
75429         fdutimensat: remove bogus dependency
75430         * modules/fdutimensat (Depends-on): Drop inline.
75432         unistd: fix typo
75433         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
75435 2009-12-30  Bruno Haible  <bruno@clisp.org>
75437         Fix compilation error with Solaris cc.
75438         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
75439         * lib/unicase/u16-is-invariant.c: Likewise.
75440         * lib/unicase/u32-is-invariant.c: Likewise.
75441         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75443 2009-12-30  Bruno Haible  <bruno@clisp.org>
75445         Fix test crash.
75446         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
75447         locales.
75448         Reported by Simon Josefsson <simon@josefsson.org>.
75450 2009-12-30  Bruno Haible  <bruno@clisp.org>
75452         Fix compilation error on most platforms.
75453         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
75454         Reported by Simon Josefsson <simon@josefsson.org>
75455         and Nelson H. F. Beebe <beebe@math.utah.edu>.
75457 2009-12-30  Eric Blake  <ebb9@byu.net>
75459         futimens, utimensat: work around ntfs-3g bug
75460         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
75461         a ctime bug is present, and expand workaround to cover ntfs-3g.
75462         * lib/utimens.c (fdutimens, lutimens): Likewise.
75463         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
75464         (validate_timespec): Adjust return value.
75465         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
75466         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75467         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
75469 2009-12-29  Eric Blake  <ebb9@byu.net>
75471         link-warning: make usage consistent
75472         * modules/ctype (Depends-on): Add link-warning.
75473         (Makefile.am): Update rules accordingly.
75474         * modules/langinfo (Depends-on, Makefile.am): Likewise.
75475         * modules/locale (Depends-on, Makefile.am): Likewise.
75476         * modules/sys_file (Makefile.am): Likewise.
75477         * modules/getopt-posix (Makefile.am): Delete unused link warning
75478         efforts.
75479         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
75480         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
75481         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
75482         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
75484         stdio: remove unused variables
75485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
75486         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
75487         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
75489         tests: test more substitute headers
75490         * modules/ctype-tests: New file.
75491         * modules/dirent-tests: Likewise.
75492         * modules/spawn-tests: Likewise.
75493         * modules/sys_file-tests: Likewise.
75494         * modules/sys_ioctl-tests: Likewise.
75495         * modules/sys_wait-tests: Likewise.
75496         * tests/test-ctype.c: Likewise.
75497         * tests/test-dirent.c: Likewise.
75498         * tests/test-spawn.c: Likewise.
75499         * tests/test-sys_file.c: Likewise.
75500         * tests/test-sys_ioctl.c: Likewise.
75501         * tests/test-sys_wait.c: Likewise.
75502         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
75503         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
75504         whether or not flock is in use.
75506         tests: remove License section from module
75507         * modules/arpa_inet-tests: Remove unneeded section.
75508         * modules/byteswap-tests: Likewise.
75509         * modules/ceilf-tests: Likewise.
75510         * modules/ceill-tests: Likewise.
75511         * modules/crypto/des-tests: Likewise.
75512         * modules/crypto/gc-arcfour-tests: Likewise.
75513         * modules/crypto/gc-arctwo-tests: Likewise.
75514         * modules/crypto/gc-des-tests: Likewise.
75515         * modules/crypto/gc-hmac-md5-tests: Likewise.
75516         * modules/crypto/gc-hmac-sha1-tests: Likewise.
75517         * modules/crypto/gc-md2-tests: Likewise.
75518         * modules/crypto/gc-md4-tests: Likewise.
75519         * modules/crypto/gc-md5-tests: Likewise.
75520         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
75521         * modules/crypto/gc-rijndael-tests: Likewise.
75522         * modules/crypto/gc-sha1-tests: Likewise.
75523         * modules/crypto/gc-tests: Likewise.
75524         * modules/crypto/md2-tests: Likewise.
75525         * modules/crypto/md4-tests: Likewise.
75526         * modules/fcntl-h-tests: Likewise.
75527         * modules/floorf-tests: Likewise.
75528         * modules/floorl-tests: Likewise.
75529         * modules/frexp-nolibm-tests: Likewise.
75530         * modules/frexp-tests: Likewise.
75531         * modules/frexpl-nolibm-tests: Likewise.
75532         * modules/frexpl-tests: Likewise.
75533         * modules/getaddrinfo-tests: Likewise.
75534         * modules/inttypes-tests: Likewise.
75535         * modules/isfinite-tests: Likewise.
75536         * modules/isinf-tests: Likewise.
75537         * modules/ldexpl-tests: Likewise.
75538         * modules/locale-tests: Likewise.
75539         * modules/math-tests: Likewise.
75540         * modules/netdb-tests: Likewise.
75541         * modules/netinet_in-tests: Likewise.
75542         * modules/printf-frexp-tests: Likewise.
75543         * modules/printf-frexpl-tests: Likewise.
75544         * modules/priv-set-tests: Likewise.
75545         * modules/random_r-tests: Likewise.
75546         * modules/round-tests: Likewise.
75547         * modules/roundf-tests: Likewise.
75548         * modules/roundl-tests: Likewise.
75549         * modules/search-tests: Likewise.
75550         * modules/select-tests: Likewise.
75551         * modules/signal-tests: Likewise.
75552         * modules/stdbool-tests: Likewise.
75553         * modules/stddef-tests: Likewise.
75554         * modules/stdint-tests: Likewise.
75555         * modules/stdio-tests: Likewise.
75556         * modules/stdlib-tests: Likewise.
75557         * modules/string-tests: Likewise.
75558         * modules/strings-tests: Likewise.
75559         * modules/sys_select-tests: Likewise.
75560         * modules/sys_socket-tests: Likewise.
75561         * modules/sys_stat-tests: Likewise.
75562         * modules/sys_time-tests: Likewise.
75563         * modules/sys_utsname-tests: Likewise.
75564         * modules/sysexits-tests: Likewise.
75565         * modules/time-tests: Likewise.
75566         * modules/trunc-tests: Likewise.
75567         * modules/truncf-tests: Likewise.
75568         * modules/truncl-tests: Likewise.
75569         * modules/tsearch-tests: Likewise.
75570         * modules/unistd-tests: Likewise.
75571         * modules/wchar-tests: Likewise.
75572         * modules/wctype-tests: Likewise.
75574         tests: fix license on several tests
75575         * tests/test-des.c: Update to GPLv3+.
75576         * tests/test-flock.c: Likewise.
75577         * tests/test-fsync.c: Likewise.
75578         * tests/test-futimens.h: Likewise.
75579         * tests/test-gc-arcfour.c: Likewise.
75580         * tests/test-gc-arctwo.c: Likewise.
75581         * tests/test-gc-des.c: Likewise.
75582         * tests/test-gc-hmac-md5.c: Likewise.
75583         * tests/test-gc-hmac-sha1.c: Likewise.
75584         * tests/test-gc-md2.c: Likewise.
75585         * tests/test-gc-md4.c: Likewise.
75586         * tests/test-gc-md5.c: Likewise.
75587         * tests/test-gc-pbkdf2-sha1.c: Likewise.
75588         * tests/test-gc-rijndael.c: Likewise.
75589         * tests/test-gc-sha1.c: Likewise.
75590         * tests/test-gc.c: Likewise.
75591         * tests/test-getcwd.c: Likewise.
75592         * tests/test-link.c: Likewise.
75593         * tests/test-link.h: Likewise.
75594         * tests/test-lutimens.h: Likewise.
75595         * tests/test-md2.c: Likewise.
75596         * tests/test-md4.c: Likewise.
75597         * tests/test-mkdir.h: Likewise.
75598         * tests/test-rename.c: Likewise.
75599         * tests/test-rename.h: Likewise.
75600         * tests/test-safe-alloc.c: Likewise.
75601         * tests/test-utimens-common.h: Likewise.
75602         * tests/test-utimens.h: Likewise.
75604         maint: sync license texts
75605         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
75606         * doc/gpl-3.0.texi: Revert copyright year update.
75607         * doc/lgpl-3.0.texi: Likewise.
75609 2009-12-29  Jim Meyering  <meyering@redhat.com>
75611         update nearly all FSF copyright year lists to include 2009
75612         The files named by the following are exempted:
75613             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
75614               test -f "$dst" && { echo "$dst"; continue; }
75615               test -d "$dst" || continue
75616               echo "$dst"/$(basename "$src")
75617             done > exempt
75618             git ls-files tests/unictype >> exempt
75619         In the remaining files, convert to all-interval notation if
75620         - there is already at least one year interval like 2000-2003
75621         - the file is maintained by me
75622         - the file is in lib/uni*/, where that style already prevails
75623         Otherwise, use update-copyright's default.
75625 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75626         and Eric Blake  <ebb9@byu.net>
75628         tests: don't require debug system() to pass
75629         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
75630         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75631         * tests/test-unlink.h (test_unlink_func): Likewise.
75632         * tests/test-fstatat.c (main): ...into callers.
75633         * tests/test-lstat.c (main): Likewise.
75634         * tests/test-rmdir.c (main): Likewise.
75635         * tests/test-unlink.c (main): Likewise.
75636         * tests/test-unlinkat.c (main): Likewise.
75637         * tests/test-areadlink-with-size.c (main): Don't require a
75638         debug-only system call to pass, aiding cross-testing to mingw.
75639         * tests/test-areadlink.c (main): Likewise.
75640         * tests/test-areadlinkat-with-size.c (main): Likewise.
75641         * tests/test-areadlinkat.c (main): Likewise.
75642         * tests/test-canonicalize-lgpl.c (main): Likewise.
75643         * tests/test-canonicalize.c (main): Likewise.
75644         * tests/test-chown.c (main): Likewise.
75645         * tests/test-fchownat.c (main): Likewise.
75646         * tests/test-lchown.c (main): Likewise.
75647         * tests/test-fdutimensat.c (main): Likewise.
75648         * tests/test-futimens.c (main): Likewise.
75649         * tests/test-link.c (main): Likewise.
75650         * tests/test-linkat.c (main): Likewise.
75651         * tests/test-mkdir.c (main): Likewise.
75652         * tests/test-mkdirat.c (main): Likewise.
75653         * tests/test-mkfifo.c (main): Likewise.
75654         * tests/test-mkfifoat.c (main): Likewise.
75655         * tests/test-mknod.c (main): Likewise.
75656         * tests/test-readlink.c (main): Likewise.
75657         * tests/test-remove.c (main): Likewise.
75658         * tests/test-rename.c (main): Likewise.
75659         * tests/test-renameat.c (main): Likewise.
75660         * tests/test-symlink.c (main): Likewise.
75661         * tests/test-symlinkat.c (main): Likewise.
75662         * tests/test-utimens.c (main): Likewise.
75663         * tests/test-utimensat.c (main): Likewise.
75665 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75667         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
75668         on $(UNUSED_PARAMETER_H) to avoid build failure.
75670 2009-12-28  Jim Meyering  <meyering@redhat.com>
75672         update-copyright: you may specify a max. line length other than 72
75673         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
75675         maint: use consistent FSF copyright line syntax
75676         * lib/posixtm.c: Add missing comma in FSF copyright line.
75677         * lib/posixtm.h: Likewise.
75678         * lib/getugroups.c: Add missing ", Inc.".
75680         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
75681         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
75682         FSF copyright line.  Remove trailing blanks.
75684 2009-12-28  Eric Blake  <ebb9@byu.net>
75686         test-dup2: reduce dependencies
75687         * modules/cloexec (Configure.ac): Set witness.
75688         * modules/dup2-tests (Depends-on): Drop cloexec.
75689         * tests/test-dup2.c (main): Skip portion of test if cloexec module
75690         not present.
75691         Suggested by Bruno Haible.
75693 2009-12-26  Bruno Haible  <bruno@clisp.org>
75695         Remove an unneeded dependency.
75696         * modules/fseterr (Depends-on): Remove dup2.
75698 2009-12-26  Eric Blake  <ebb9@byu.net>
75700         tests: use macros.h in more places
75701         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
75702         (ASSERT_STREAM): Provide default of stderr.
75703         * tests/test-dirent-safer.c: Include macros.h, using alternate
75704         stream for assertions.
75705         * tests/test-dup-safer.c: Likewise.
75706         * tests/test-freopen-safer.c: Likewise.
75707         * tests/test-getopt.c: Likewise.
75708         * tests/test-openat-safer.c: Likewise.
75709         * tests/test-pipe.c: Likewise.
75710         * tests/test-popen-safer.c: Likewise.
75711         * modules/dirent-safer-tests (Files): Include macros.h.
75712         * modules/unistd-safer-tests (Files): Likewise.
75713         * modules/freopen-safer-tests (Files): Likewise.
75714         * modules/getopt-posix-tests (Files): Likewise.
75715         * modules/openat-safer-tests (Files): Likewise.
75716         * modules/pipe-tests (Files): Likewise.
75718 2009-12-26  Bruno Haible  <bruno@clisp.org>
75720         javacomp-script: Portability fix.
75721         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
75722         that it also works on Solaris.
75724 2009-12-26  Bruno Haible  <bruno@clisp.org>
75726         localename: Fix storage allocation of gl_locale_name_thread's result.
75727         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
75728         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
75729         all platforms that have 'uselocale'.
75730         (gl_locale_name_thread_unsafe): New function, extracted from
75731         gl_locale_name_thread.
75732         (gl_locale_name_thread): Call struniq on all platforms that have
75733         'uselocale'.
75734         * tests/test-localename.c (test_locale_name_thread): Check that the
75735         resulting strings are permanently allocated.
75736         * modules/localename-tests (Depends-on): Add strdup.
75738 2009-12-26  Bruno Haible  <bruno@clisp.org>
75740         * tests/test-localename.c (categories): Fill in the strings.
75742 2009-12-26  Jim Meyering  <meyering@redhat.com>
75744         isdir: complete the removal of m4/isdir.m4
75745         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
75747         isdir: clean up, since at least grep still uses it
75748         * lib/isdir.c: Include "isdir.h".
75749         (S_ISDIR): Remove now-unneeded definition.
75750         * modules/isdir (Files): Add lib/isdir.h.
75751         * lib/isdir.h: New file, with declaration.
75752         * m4/isdir.m4: Remove file -- unneeded.
75754 2009-12-25  Bruno Haible  <bruno@clisp.org>
75756         selinux-h: Make generated .h files standalone.
75757         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
75758         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
75759         * lib/se-selinux.in.h: Likewise.
75760         * modules/selinux-h (Depends-on): Add unused-parameter.
75761         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
75762         selinux/selinux.h and selinux/context.h.
75763         Suggested by Eric Blake.
75765 2009-12-25  Bruno Haible  <bruno@clisp.org>
75767         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
75768         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
75769         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
75770         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
75771         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
75773 2009-12-24  Bruno Haible  <bruno@clisp.org>
75775         openat: Fix warning.
75776         * lib/openat-proc.c: Include <unistd.h>.
75778 2009-12-24  Bruno Haible  <bruno@clisp.org>
75780         New module 'unused-parameter'.
75781         * build-aux/unused-parameter.h: New file, extracted from earlier
75782         gnulib-common.m4.
75783         * modules/unused-parameter: New file.
75784         * lib/unistr.h: Include unused-parameter.h.
75785         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
75786         _GL_UNUSED.
75787         * modules/unistr/base (Depends-on): Add unused-parameter.
75789 2009-12-24  Bruno Haible  <bruno@clisp.org>
75791         Add missing dependencies to 'extensions' module.
75792         * m4/extensions.m4: Add comment.
75793         * modules/accept4 (Depends-on): Add extensions.
75794         * modules/dup3 (Depends-on): Likewise.
75795         * modules/fcntl (Depends-on): Likewise.
75796         * modules/futimens (Depends-on): Likewise.
75797         * modules/mknod (Depends-on): Likewise.
75798         * modules/pipe2 (Depends-on): Likewise.
75799         * modules/stat-time (Depends-on): Likewise.
75800         * modules/strcasestr-simple (Depends-on): Likewise.
75801         * modules/strsignal (Depends-on): Likewise.
75802         * modules/utimensat (Depends-on): Likewise.
75803         * modules/localcharset (Depends-on): Likewise. Needed because of
75804         gl_FCNTL_O_FLAGS.
75805         * modules/wcrtomb (Depends-on): Likewise. Needed because of
75806         AC_TYPE_MBSTATE_T.
75807         * modules/wcsnrtombs (Depends-on): Likewise.
75808         * modules/wcsrtombs (Depends-on): Likewise.
75810 2009-12-24  Bruno Haible  <bruno@clisp.org>
75812         binary-io: Avoid gcc warning due to SET_BINARY.
75813         * lib/binary-io.h (SET_BINARY): Cast the result to void.
75814         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
75816 2009-12-24  Bruno Haible  <bruno@clisp.org>
75818         Avoid future namespace pollution on glibc systems.
75819         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
75820         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
75821         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
75822         glibc systems.
75824 2009-12-24  Bruno Haible  <bruno@clisp.org>
75826         Refactor common macros used in tests.
75827         * tests/macros.h: New file.
75828         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
75829         and/or <stdlib.h>, if appropriate.
75830         (ASSERT, SIZEOF): Remove macros.
75831         * tests/test-areadlink-with-size.c: Likewise.
75832         * tests/test-areadlinkat.c: Likewise.
75833         * tests/test-areadlinkat-with-size.c: Likewise.
75834         * tests/test-argmatch.c: Likewise.
75835         * tests/test-argv-iter.c: Likewise.
75836         * tests/test-array-mergesort.c: Likewise.
75837         * tests/test-array_list.c: Likewise.
75838         * tests/test-array_oset.c: Likewise.
75839         * tests/test-avltree_list.c: Likewise.
75840         * tests/test-avltree_oset.c: Likewise.
75841         * tests/test-avltreehash_list.c: Likewise.
75842         * tests/test-base64.c: Likewise.
75843         * tests/test-binary-io.c: Likewise.
75844         * tests/test-bitrotate.c: Likewise.
75845         * tests/test-btowc.c: Likewise.
75846         * tests/test-byteswap.c: Likewise.
75847         * tests/test-c-ctype.c: Likewise.
75848         * tests/test-c-stack.c: Likewise.
75849         * tests/test-c-strcasecmp.c: Likewise.
75850         * tests/test-c-strcasestr.c: Likewise.
75851         * tests/test-c-strncasecmp.c: Likewise.
75852         * tests/test-c-strstr.c: Likewise.
75853         * tests/test-canonicalize-lgpl.c: Likewise.
75854         * tests/test-canonicalize.c: Likewise.
75855         * tests/test-carray_list.c: Likewise.
75856         * tests/test-ceilf1.c: Likewise.
75857         * tests/test-ceilf2.c: Likewise.
75858         * tests/test-ceill.c: Likewise.
75859         * tests/test-chown.c: Likewise.
75860         * tests/test-cloexec.c: Likewise.
75861         * tests/test-copy-acl.c: Likewise.
75862         * tests/test-copy-file.c: Likewise.
75863         * tests/test-count-one-bits.c: Likewise.
75864         * tests/test-dprintf-posix.c: Likewise.
75865         * tests/test-dup2.c: Likewise.
75866         * tests/test-dup3.c: Likewise.
75867         * tests/test-duplocale.c: Likewise.
75868         * tests/test-fbufmode.c: Likewise.
75869         * tests/test-fchdir.c: Likewise.
75870         * tests/test-fchownat.c: Likewise.
75871         * tests/test-fcntl-safer.c: Likewise.
75872         * tests/test-fcntl.c: Likewise.
75873         * tests/test-fdopendir.c: Likewise.
75874         * tests/test-fdutimensat.c: Likewise.
75875         * tests/test-fflush2.c: Likewise.
75876         * tests/test-file-has-acl.c: Likewise.
75877         * tests/test-filevercmp.c: Likewise.
75878         * tests/test-flock.c: Likewise.
75879         * tests/test-floorf1.c: Likewise.
75880         * tests/test-floorf2.c: Likewise.
75881         * tests/test-floorl.c: Likewise.
75882         * tests/test-fnmatch.c: Likewise.
75883         * tests/test-fopen.h: Likewise.
75884         * tests/test-fpending.c: Likewise.
75885         * tests/test-fprintf-posix.c: Likewise.
75886         * tests/test-fpurge.c: Likewise.
75887         * tests/test-freadable.c: Likewise.
75888         * tests/test-freadahead.c: Likewise.
75889         * tests/test-freading.c: Likewise.
75890         * tests/test-freadptr.c: Likewise.
75891         * tests/test-freadptr2.c: Likewise.
75892         * tests/test-freadseek.c: Likewise.
75893         * tests/test-freopen.c: Likewise.
75894         * tests/test-frexp.c: Likewise.
75895         * tests/test-frexpl.c: Likewise.
75896         * tests/test-fseek.c: Likewise.
75897         * tests/test-fseeko.c: Likewise.
75898         * tests/test-fstatat.c: Likewise.
75899         * tests/test-fstrcmp.c: Likewise.
75900         * tests/test-fsync.c: Likewise.
75901         * tests/test-ftell.c: Likewise.
75902         * tests/test-ftello.c: Likewise.
75903         * tests/test-func.c: Likewise.
75904         * tests/test-futimens.c: Likewise.
75905         * tests/test-fwritable.c: Likewise.
75906         * tests/test-fwriting.c: Likewise.
75907         * tests/test-getcwd.c: Likewise.
75908         * tests/test-getdate.c: Likewise.
75909         * tests/test-getdelim.c: Likewise.
75910         * tests/test-getdtablesize.c: Likewise.
75911         * tests/test-getgroups.c: Likewise.
75912         * tests/test-getline.c: Likewise.
75913         * tests/test-getndelim2.c: Likewise.
75914         * tests/test-glob.c: Likewise.
75915         * tests/test-hash.c: Likewise.
75916         * tests/test-i-ring.c: Likewise.
75917         * tests/test-iconv-utf.c: Likewise.
75918         * tests/test-iconv.c: Likewise.
75919         * tests/test-idpriv-drop.c: Likewise.
75920         * tests/test-idpriv-droptemp.c: Likewise.
75921         * tests/test-inet_ntop.c: Likewise.
75922         * tests/test-inet_pton.c: Likewise.
75923         * tests/test-isblank.c: Likewise.
75924         * tests/test-isfinite.c: Likewise.
75925         * tests/test-isinf.c: Likewise.
75926         * tests/test-isnan.c: Likewise.
75927         * tests/test-isnand.h: Likewise.
75928         * tests/test-isnanf.h: Likewise.
75929         * tests/test-isnanl.h: Likewise.
75930         * tests/test-lchown.c: Likewise.
75931         * tests/test-ldexpl.c: Likewise.
75932         * tests/test-link.c: Likewise.
75933         * tests/test-linkat.c: Likewise.
75934         * tests/test-linked_list.c: Likewise.
75935         * tests/test-linkedhash_list.c: Likewise.
75936         * tests/test-localename.c: Likewise.
75937         * tests/test-lseek.c: Likewise.
75938         * tests/test-lstat.c: Likewise.
75939         * tests/test-mbmemcasecmp.c: Likewise.
75940         * tests/test-mbmemcasecoll.c: Likewise.
75941         * tests/test-mbrtowc.c: Likewise.
75942         * tests/test-mbscasecmp.c: Likewise.
75943         * tests/test-mbscasestr1.c: Likewise.
75944         * tests/test-mbscasestr2.c: Likewise.
75945         * tests/test-mbscasestr3.c: Likewise.
75946         * tests/test-mbscasestr4.c: Likewise.
75947         * tests/test-mbschr.c: Likewise.
75948         * tests/test-mbscspn.c: Likewise.
75949         * tests/test-mbsinit.c: Likewise.
75950         * tests/test-mbsncasecmp.c: Likewise.
75951         * tests/test-mbsnrtowcs.c: Likewise.
75952         * tests/test-mbspbrk.c: Likewise.
75953         * tests/test-mbspcasecmp.c: Likewise.
75954         * tests/test-mbsrchr.c: Likewise.
75955         * tests/test-mbsrtowcs.c: Likewise.
75956         * tests/test-mbsspn.c: Likewise.
75957         * tests/test-mbsstr1.c: Likewise.
75958         * tests/test-mbsstr2.c: Likewise.
75959         * tests/test-mbsstr3.c: Likewise.
75960         * tests/test-memchr.c: Likewise.
75961         * tests/test-memchr2.c: Likewise.
75962         * tests/test-memcmp.c: Likewise.
75963         * tests/test-memmem.c: Likewise.
75964         * tests/test-memrchr.c: Likewise.
75965         * tests/test-mkdir.c: Likewise.
75966         * tests/test-mkdirat.c: Likewise.
75967         * tests/test-mkfifo.c: Likewise.
75968         * tests/test-mkfifoat.c: Likewise.
75969         * tests/test-mknod.c: Likewise.
75970         * tests/test-nanosleep.c: Likewise.
75971         * tests/test-nl_langinfo.c: Likewise.
75972         * tests/test-obstack-printf.c: Likewise.
75973         * tests/test-open.c: Likewise.
75974         * tests/test-openat.c: Likewise.
75975         * tests/test-pipe-filter-gi1.c: Likewise.
75976         * tests/test-pipe-filter-gi2-main.c: Likewise.
75977         * tests/test-pipe-filter-ii1.c: Likewise.
75978         * tests/test-pipe-filter-ii2-main.c: Likewise.
75979         * tests/test-pipe2.c: Likewise.
75980         * tests/test-popen.h: Likewise.
75981         * tests/test-posixtm.c: Likewise.
75982         * tests/test-pread.c: Likewise.
75983         * tests/test-printf-frexp.c: Likewise.
75984         * tests/test-printf-frexpl.c: Likewise.
75985         * tests/test-printf-posix.c: Likewise.
75986         * tests/test-priv-set.c: Likewise.
75987         * tests/test-quotearg.c: Likewise.
75988         * tests/test-random_r.c: Likewise.
75989         * tests/test-rawmemchr.c: Likewise.
75990         * tests/test-rbtree_list.c: Likewise.
75991         * tests/test-rbtree_oset.c: Likewise.
75992         * tests/test-rbtreehash_list.c: Likewise.
75993         * tests/test-readlink.c: Likewise.
75994         * tests/test-remove.c: Likewise.
75995         * tests/test-rename.c: Likewise.
75996         * tests/test-renameat.c: Likewise.
75997         * tests/test-rmdir.c: Likewise.
75998         * tests/test-round1.c: Likewise.
75999         * tests/test-roundf1.c: Likewise.
76000         * tests/test-roundl.c: Likewise.
76001         * tests/test-safe-alloc.c: Likewise.
76002         * tests/test-sameacls.c: Likewise.
76003         * tests/test-set-mode-acl.c: Likewise.
76004         * tests/test-setenv.c: Likewise.
76005         * tests/test-sigaction.c: Likewise.
76006         * tests/test-signbit.c: Likewise.
76007         * tests/test-sleep.c: Likewise.
76008         * tests/test-snprintf-posix.c: Likewise.
76009         * tests/test-snprintf.c: Likewise.
76010         * tests/test-sprintf-posix.c: Likewise.
76011         * tests/test-stat-time.c: Likewise.
76012         * tests/test-stat.c: Likewise.
76013         * tests/test-strcasestr.c: Likewise.
76014         * tests/test-strchrnul.c: Likewise.
76015         * tests/test-strerror.c: Likewise.
76016         * tests/test-striconv.c: Likewise.
76017         * tests/test-striconveh.c: Likewise.
76018         * tests/test-striconveha.c: Likewise.
76019         * tests/test-strsignal.c: Likewise.
76020         * tests/test-strstr.c: Likewise.
76021         * tests/test-strtod.c: Likewise.
76022         * tests/test-strverscmp.c: Likewise.
76023         * tests/test-symlink.c: Likewise.
76024         * tests/test-symlinkat.c: Likewise.
76025         * tests/test-trunc1.c: Likewise.
76026         * tests/test-trunc2.c: Likewise.
76027         * tests/test-truncf1.c: Likewise.
76028         * tests/test-truncf2.c: Likewise.
76029         * tests/test-truncl.c: Likewise.
76030         * tests/test-uname.c: Likewise.
76031         * tests/test-unlink.c: Likewise.
76032         * tests/test-unlinkat.c: Likewise.
76033         * tests/test-unsetenv.c: Likewise.
76034         * tests/test-usleep.c: Likewise.
76035         * tests/test-utimens.c: Likewise.
76036         * tests/test-utimensat.c: Likewise.
76037         * tests/test-vasnprintf-posix.c: Likewise.
76038         * tests/test-vasnprintf-posix2.c: Likewise.
76039         * tests/test-vasnprintf.c: Likewise.
76040         * tests/test-vasprintf-posix.c: Likewise.
76041         * tests/test-vasprintf.c: Likewise.
76042         * tests/test-vdprintf-posix.c: Likewise.
76043         * tests/test-vfprintf-posix.c: Likewise.
76044         * tests/test-vprintf-posix.c: Likewise.
76045         * tests/test-vsnprintf-posix.c: Likewise.
76046         * tests/test-vsnprintf.c: Likewise.
76047         * tests/test-vsprintf-posix.c: Likewise.
76048         * tests/test-wcrtomb.c: Likewise.
76049         * tests/test-wcsnrtombs.c: Likewise.
76050         * tests/test-wcsrtombs.c: Likewise.
76051         * tests/test-wctype.c: Likewise.
76052         * tests/test-wcwidth.c: Likewise.
76053         * tests/test-xfprintf-posix.c: Likewise.
76054         * tests/test-xmemdup0.c: Likewise.
76055         * tests/test-xprintf-posix.c: Likewise.
76056         * tests/test-xvasprintf.c: Likewise.
76057         * tests/unicase/test-locale-language.c: Likewise.
76058         * tests/unicase/test-mapping-part1.h: Likewise.
76059         * tests/unicase/test-predicate-part1.h: Likewise.
76060         * tests/unicase/test-u8-casecmp.c: Likewise.
76061         * tests/unicase/test-u8-casecoll.c: Likewise.
76062         * tests/unicase/test-u8-casefold.c: Likewise.
76063         * tests/unicase/test-u8-is-cased.c: Likewise.
76064         * tests/unicase/test-u8-is-casefolded.c: Likewise.
76065         * tests/unicase/test-u8-is-lowercase.c: Likewise.
76066         * tests/unicase/test-u8-is-titlecase.c: Likewise.
76067         * tests/unicase/test-u8-is-uppercase.c: Likewise.
76068         * tests/unicase/test-u8-tolower.c: Likewise.
76069         * tests/unicase/test-u8-totitle.c: Likewise.
76070         * tests/unicase/test-u8-toupper.c: Likewise.
76071         * tests/unicase/test-u16-casecmp.c: Likewise.
76072         * tests/unicase/test-u16-casecoll.c: Likewise.
76073         * tests/unicase/test-u16-casefold.c: Likewise.
76074         * tests/unicase/test-u16-is-cased.c: Likewise.
76075         * tests/unicase/test-u16-is-casefolded.c: Likewise.
76076         * tests/unicase/test-u16-is-lowercase.c: Likewise.
76077         * tests/unicase/test-u16-is-titlecase.c: Likewise.
76078         * tests/unicase/test-u16-is-uppercase.c: Likewise.
76079         * tests/unicase/test-u16-tolower.c: Likewise.
76080         * tests/unicase/test-u16-totitle.c: Likewise.
76081         * tests/unicase/test-u16-toupper.c: Likewise.
76082         * tests/unicase/test-u32-casecmp.c: Likewise.
76083         * tests/unicase/test-u32-casecoll.c: Likewise.
76084         * tests/unicase/test-u32-casefold.c: Likewise.
76085         * tests/unicase/test-u32-is-cased.c: Likewise.
76086         * tests/unicase/test-u32-is-casefolded.c: Likewise.
76087         * tests/unicase/test-u32-is-lowercase.c: Likewise.
76088         * tests/unicase/test-u32-is-titlecase.c: Likewise.
76089         * tests/unicase/test-u32-is-uppercase.c: Likewise.
76090         * tests/unicase/test-u32-tolower.c: Likewise.
76091         * tests/unicase/test-u32-totitle.c: Likewise.
76092         * tests/unicase/test-u32-toupper.c: Likewise.
76093         * tests/unicase/test-ulc-casecmp.c: Likewise.
76094         * tests/unicase/test-ulc-casecoll.c: Likewise.
76095         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
76096         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
76097         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
76098         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
76099         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
76100         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
76101         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
76102         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
76103         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
76104         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
76105         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
76106         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
76107         * tests/unictype/test-bidi_byname.c: Likewise.
76108         * tests/unictype/test-bidi_name.c: Likewise.
76109         * tests/unictype/test-bidi_of.c: Likewise.
76110         * tests/unictype/test-bidi_test.c: Likewise.
76111         * tests/unictype/test-block_list.c: Likewise.
76112         * tests/unictype/test-block_of.c: Likewise.
76113         * tests/unictype/test-block_test.c: Likewise.
76114         * tests/unictype/test-categ_and.c: Likewise.
76115         * tests/unictype/test-categ_and_not.c: Likewise.
76116         * tests/unictype/test-categ_byname.c: Likewise.
76117         * tests/unictype/test-categ_name.c: Likewise.
76118         * tests/unictype/test-categ_none.c: Likewise.
76119         * tests/unictype/test-categ_of.c: Likewise.
76120         * tests/unictype/test-categ_or.c: Likewise.
76121         * tests/unictype/test-categ_test_withtable.c: Likewise.
76122         * tests/unictype/test-combining.c: Likewise.
76123         * tests/unictype/test-decdigit.c: Likewise.
76124         * tests/unictype/test-digit.c: Likewise.
76125         * tests/unictype/test-mirror.c: Likewise.
76126         * tests/unictype/test-numeric.c: Likewise.
76127         * tests/unictype/test-pr_byname.c: Likewise.
76128         * tests/unictype/test-pr_test.c: Likewise.
76129         * tests/unictype/test-predicate-part1.h: Likewise.
76130         * tests/unictype/test-scripts.c: Likewise.
76131         * tests/unictype/test-sy_c_ident.c: Likewise.
76132         * tests/unictype/test-sy_java_ident.c: Likewise.
76133         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
76134         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
76135         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
76136         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
76137         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
76138         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
76139         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
76140         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
76141         * tests/uninorm/test-canonical-decomposition.c: Likewise.
76142         * tests/uninorm/test-compat-decomposition.c: Likewise.
76143         * tests/uninorm/test-composition.c: Likewise.
76144         * tests/uninorm/test-decomposing-form.c: Likewise.
76145         * tests/uninorm/test-decomposition.c: Likewise.
76146         * tests/uninorm/test-u8-nfc.c: Likewise.
76147         * tests/uninorm/test-u8-nfd.c: Likewise.
76148         * tests/uninorm/test-u8-nfkc.c: Likewise.
76149         * tests/uninorm/test-u8-nfkd.c: Likewise.
76150         * tests/uninorm/test-u8-normcmp.c: Likewise.
76151         * tests/uninorm/test-u8-normcoll.c: Likewise.
76152         * tests/uninorm/test-u16-nfc.c: Likewise.
76153         * tests/uninorm/test-u16-nfd.c: Likewise.
76154         * tests/uninorm/test-u16-nfkc.c: Likewise.
76155         * tests/uninorm/test-u16-nfkd.c: Likewise.
76156         * tests/uninorm/test-u16-normcmp.c: Likewise.
76157         * tests/uninorm/test-u16-normcoll.c: Likewise.
76158         * tests/uninorm/test-u32-nfc.c: Likewise.
76159         * tests/uninorm/test-u32-nfd.c: Likewise.
76160         * tests/uninorm/test-u32-nfkc.c: Likewise.
76161         * tests/uninorm/test-u32-nfkd.c: Likewise.
76162         * tests/uninorm/test-u32-normalize-big.c: Likewise.
76163         * tests/uninorm/test-u32-normcmp.c: Likewise.
76164         * tests/uninorm/test-u32-normcoll.c: Likewise.
76165         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
76166         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
76167         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
76168         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
76169         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
76170         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
76171         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
76172         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
76173         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
76174         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
76175         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
76176         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
76177         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
76178         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
76179         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
76180         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
76181         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
76182         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
76183         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
76184         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
76185         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
76186         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
76187         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
76188         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
76189         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
76190         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
76191         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
76192         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
76193         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
76194         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
76195         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
76196         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
76197         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
76198         * tests/uniwidth/test-u8-strwidth.c: Likewise.
76199         * tests/uniwidth/test-u8-width.c: Likewise.
76200         * tests/uniwidth/test-u16-strwidth.c: Likewise.
76201         * tests/uniwidth/test-u16-width.c: Likewise.
76202         * tests/uniwidth/test-u32-strwidth.c: Likewise.
76203         * tests/uniwidth/test-u32-width.c: Likewise.
76204         * tests/uniwidth/test-uc_width.c: Likewise.
76205         * tests/uniwidth/test-uc_width2.c: Likewise.
76206         * modules/acl-tests (Files): Add tests/macros.h.
76207         * modules/areadlink-tests (Files): Likewise.
76208         * modules/areadlink-with-size-tests (Files): Likewise.
76209         * modules/areadlinkat-tests (Files): Likewise.
76210         * modules/areadlinkat-with-size-tests (Files): Likewise.
76211         * modules/argmatch-tests (Files): Likewise.
76212         * modules/argv-iter-tests (Files): Likewise.
76213         * modules/array-list-tests (Files): Likewise.
76214         * modules/array-mergesort-tests (Files): Likewise.
76215         * modules/array-oset-tests (Files): Likewise.
76216         * modules/avltree-list-tests (Files): Likewise.
76217         * modules/avltree-oset-tests (Files): Likewise.
76218         * modules/avltreehash-list-tests (Files): Likewise.
76219         * modules/base64-tests (Files): Likewise.
76220         * modules/binary-io-tests (Files): Likewise.
76221         * modules/bitrotate-tests (Files): Likewise.
76222         * modules/btowc-tests (Files): Likewise.
76223         * modules/byteswap-tests (Files): Likewise.
76224         * modules/c-ctype-tests (Files): Likewise.
76225         * modules/c-stack-tests (Files): Likewise.
76226         * modules/c-strcase-tests (Files): Likewise.
76227         * modules/c-strcasestr-tests (Files): Likewise.
76228         * modules/c-strstr-tests (Files): Likewise.
76229         * modules/canonicalize-lgpl-tests (Files): Likewise.
76230         * modules/canonicalize-tests (Files): Likewise.
76231         * modules/carray-list-tests (Files): Likewise.
76232         * modules/ceilf-tests (Files): Likewise.
76233         * modules/ceill-tests (Files): Likewise.
76234         * modules/chown-tests (Files): Likewise.
76235         * modules/cloexec-tests (Files): Likewise.
76236         * modules/copy-file-tests (Files): Likewise.
76237         * modules/count-one-bits-tests (Files): Likewise.
76238         * modules/dprintf-posix-tests (Files): Likewise.
76239         * modules/dup2-tests (Files): Likewise.
76240         * modules/dup3-tests (Files): Likewise.
76241         * modules/duplocale-tests (Files): Likewise.
76242         * modules/fbufmode-tests (Files): Likewise.
76243         * modules/fchdir-tests (Files): Likewise.
76244         * modules/fcntl-safer-tests (Files): Likewise.
76245         * modules/fcntl-tests (Files): Likewise.
76246         * modules/fdopendir-tests (Files): Likewise.
76247         * modules/fdutimensat-tests (Files): Likewise.
76248         * modules/fflush-tests (Files): Likewise.
76249         * modules/filevercmp-tests (Files): Likewise.
76250         * modules/flock-tests (Files): Likewise.
76251         * modules/floorf-tests (Files): Likewise.
76252         * modules/floorl-tests (Files): Likewise.
76253         * modules/fnmatch-tests (Files): Likewise.
76254         * modules/fopen-safer-tests (Files): Likewise.
76255         * modules/fopen-tests (Files): Likewise.
76256         * modules/fpending-tests (Files): Likewise.
76257         * modules/fprintf-posix-tests (Files): Likewise.
76258         * modules/fpurge-tests (Files): Likewise.
76259         * modules/freadable-tests (Files): Likewise.
76260         * modules/freadahead-tests (Files): Likewise.
76261         * modules/freading-tests (Files): Likewise.
76262         * modules/freadptr-tests (Files): Likewise.
76263         * modules/freadseek-tests (Files): Likewise.
76264         * modules/freopen-tests (Files): Likewise.
76265         * modules/frexp-nolibm-tests (Files): Likewise.
76266         * modules/frexp-tests (Files): Likewise.
76267         * modules/frexpl-nolibm-tests (Files): Likewise.
76268         * modules/frexpl-tests (Files): Likewise.
76269         * modules/fseek-tests (Files): Likewise.
76270         * modules/fseeko-tests (Files): Likewise.
76271         * modules/fstrcmp-tests (Files): Likewise.
76272         * modules/fsync-tests (Files): Likewise.
76273         * modules/ftell-tests (Files): Likewise.
76274         * modules/ftello-tests (Files): Likewise.
76275         * modules/func-tests (Files): Likewise.
76276         * modules/futimens-tests (Files): Likewise.
76277         * modules/fwritable-tests (Files): Likewise.
76278         * modules/fwriting-tests (Files): Likewise.
76279         * modules/getcwd-tests (Files): Likewise.
76280         * modules/getdate-tests (Files): Likewise.
76281         * modules/getdelim-tests (Files): Likewise.
76282         * modules/getdtablesize-tests (Files): Likewise.
76283         * modules/getgroups-tests (Files): Likewise.
76284         * modules/getline-tests (Files): Likewise.
76285         * modules/getndelim2-tests (Files): Likewise.
76286         * modules/glob-tests (Files): Likewise.
76287         * modules/hash-tests (Files): Likewise.
76288         * modules/i-ring-tests (Files): Likewise.
76289         * modules/iconv-tests (Files): Likewise.
76290         * modules/iconv_open-utf-tests (Files): Likewise.
76291         * modules/idpriv-drop-tests (Files): Likewise.
76292         * modules/idpriv-droptemp-tests (Files): Likewise.
76293         * modules/inet_ntop-tests (Files): Likewise.
76294         * modules/inet_pton-tests (Files): Likewise.
76295         * modules/isblank-tests (Files): Likewise.
76296         * modules/isfinite-tests (Files): Likewise.
76297         * modules/isinf-tests (Files): Likewise.
76298         * modules/isnan-tests (Files): Likewise.
76299         * modules/isnand-nolibm-tests (Files): Likewise.
76300         * modules/isnand-tests (Files): Likewise.
76301         * modules/isnanf-nolibm-tests (Files): Likewise.
76302         * modules/isnanf-tests (Files): Likewise.
76303         * modules/isnanl-nolibm-tests (Files): Likewise.
76304         * modules/isnanl-tests (Files): Likewise.
76305         * modules/lchown-tests (Files): Likewise.
76306         * modules/ldexpl-tests (Files): Likewise.
76307         * modules/link-tests (Files): Likewise.
76308         * modules/linkat-tests (Files): Likewise.
76309         * modules/linked-list-tests (Files): Likewise.
76310         * modules/linkedhash-list-tests (Files): Likewise.
76311         * modules/localename-tests (Files): Likewise.
76312         * modules/lseek-tests (Files): Likewise.
76313         * modules/lstat-tests (Files): Likewise.
76314         * modules/mbmemcasecmp-tests (Files): Likewise.
76315         * modules/mbmemcasecoll-tests (Files): Likewise.
76316         * modules/mbrtowc-tests (Files): Likewise.
76317         * modules/mbscasecmp-tests (Files): Likewise.
76318         * modules/mbscasestr-tests (Files): Likewise.
76319         * modules/mbschr-tests (Files): Likewise.
76320         * modules/mbscspn-tests (Files): Likewise.
76321         * modules/mbsinit-tests (Files): Likewise.
76322         * modules/mbsncasecmp-tests (Files): Likewise.
76323         * modules/mbsnrtowcs-tests (Files): Likewise.
76324         * modules/mbspbrk-tests (Files): Likewise.
76325         * modules/mbspcasecmp-tests (Files): Likewise.
76326         * modules/mbsrchr-tests (Files): Likewise.
76327         * modules/mbsrtowcs-tests (Files): Likewise.
76328         * modules/mbsspn-tests (Files): Likewise.
76329         * modules/mbsstr-tests (Files): Likewise.
76330         * modules/memchr-tests (Files): Likewise.
76331         * modules/memchr2-tests (Files): Likewise.
76332         * modules/memcmp-tests (Files): Likewise.
76333         * modules/memmem-tests (Files): Likewise.
76334         * modules/memrchr-tests (Files): Likewise.
76335         * modules/mkdir-tests (Files): Likewise.
76336         * modules/mkfifo-tests (Files): Likewise.
76337         * modules/mkfifoat-tests (Files): Likewise.
76338         * modules/mknod-tests (Files): Likewise.
76339         * modules/nanosleep-tests (Files): Likewise.
76340         * modules/nl_langinfo-tests (Files): Likewise.
76341         * modules/obstack-printf-tests (Files): Likewise.
76342         * modules/open-tests (Files): Likewise.
76343         * modules/openat-tests (Files): Likewise.
76344         * modules/pipe-filter-gi-tests (Files): Likewise.
76345         * modules/pipe-filter-ii-tests (Files): Likewise.
76346         * modules/pipe2-tests (Files): Likewise.
76347         * modules/popen-safer-tests (Files): Likewise.
76348         * modules/popen-tests (Files): Likewise.
76349         * modules/posixtm-tests (Files): Likewise.
76350         * modules/pread-tests (Files): Likewise.
76351         * modules/printf-frexp-tests (Files): Likewise.
76352         * modules/printf-frexpl-tests (Files): Likewise.
76353         * modules/printf-posix-tests (Files): Likewise.
76354         * modules/priv-set-tests (Files): Likewise.
76355         * modules/quotearg-tests (Files): Likewise.
76356         * modules/random_r-tests (Files): Likewise.
76357         * modules/rawmemchr-tests (Files): Likewise.
76358         * modules/rbtree-list-tests (Files): Likewise.
76359         * modules/rbtree-oset-tests (Files): Likewise.
76360         * modules/rbtreehash-list-tests (Files): Likewise.
76361         * modules/readlink-tests (Files): Likewise.
76362         * modules/remove-tests (Files): Likewise.
76363         * modules/rename-tests (Files): Likewise.
76364         * modules/renameat-tests (Files): Likewise.
76365         * modules/rmdir-tests (Files): Likewise.
76366         * modules/round-tests (Files): Likewise.
76367         * modules/roundf-tests (Files): Likewise.
76368         * modules/roundl-tests (Files): Likewise.
76369         * modules/safe-alloc-tests (Files): Likewise.
76370         * modules/setenv-tests (Files): Likewise.
76371         * modules/sigaction-tests (Files): Likewise.
76372         * modules/signbit-tests (Files): Likewise.
76373         * modules/sleep-tests (Files): Likewise.
76374         * modules/snprintf-posix-tests (Files): Likewise.
76375         * modules/snprintf-tests (Files): Likewise.
76376         * modules/sprintf-posix-tests (Files): Likewise.
76377         * modules/stat-tests (Files): Likewise.
76378         * modules/stat-time-tests (Files): Likewise.
76379         * modules/strcasestr-tests (Files): Likewise.
76380         * modules/strchrnul-tests (Files): Likewise.
76381         * modules/strerror-tests (Files): Likewise.
76382         * modules/striconv-tests (Files): Likewise.
76383         * modules/striconveh-tests (Files): Likewise.
76384         * modules/striconveha-tests (Files): Likewise.
76385         * modules/strsignal-tests (Files): Likewise.
76386         * modules/strstr-tests (Files): Likewise.
76387         * modules/strtod-tests (Files): Likewise.
76388         * modules/strverscmp-tests (Files): Likewise.
76389         * modules/symlink-tests (Files): Likewise.
76390         * modules/symlinkat-tests (Files): Likewise.
76391         * modules/trunc-tests (Files): Likewise.
76392         * modules/truncf-tests (Files): Likewise.
76393         * modules/truncl-tests (Files): Likewise.
76394         * modules/uname-tests (Files): Likewise.
76395         * modules/unicase/cased-tests (Files): Likewise.
76396         * modules/unicase/ignorable-tests (Files): Likewise.
76397         * modules/unicase/locale-language-tests (Files): Likewise.
76398         * modules/unicase/tolower-tests (Files): Likewise.
76399         * modules/unicase/totitle-tests (Files): Likewise.
76400         * modules/unicase/toupper-tests (Files): Likewise.
76401         * modules/unicase/u8-casecmp-tests (Files): Likewise.
76402         * modules/unicase/u8-casecoll-tests (Files): Likewise.
76403         * modules/unicase/u8-casefold-tests (Files): Likewise.
76404         * modules/unicase/u8-is-cased-tests (Files): Likewise.
76405         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
76406         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
76407         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
76408         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
76409         * modules/unicase/u8-tolower-tests (Files): Likewise.
76410         * modules/unicase/u8-totitle-tests (Files): Likewise.
76411         * modules/unicase/u8-toupper-tests (Files): Likewise.
76412         * modules/unicase/u16-casecmp-tests (Files): Likewise.
76413         * modules/unicase/u16-casecoll-tests (Files): Likewise.
76414         * modules/unicase/u16-casefold-tests (Files): Likewise.
76415         * modules/unicase/u16-is-cased-tests (Files): Likewise.
76416         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
76417         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
76418         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
76419         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
76420         * modules/unicase/u16-tolower-tests (Files): Likewise.
76421         * modules/unicase/u16-totitle-tests (Files): Likewise.
76422         * modules/unicase/u16-toupper-tests (Files): Likewise.
76423         * modules/unicase/u32-casecmp-tests (Files): Likewise.
76424         * modules/unicase/u32-casecoll-tests (Files): Likewise.
76425         * modules/unicase/u32-casefold-tests (Files): Likewise.
76426         * modules/unicase/u32-is-cased-tests (Files): Likewise.
76427         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
76428         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
76429         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
76430         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
76431         * modules/unicase/u32-tolower-tests (Files): Likewise.
76432         * modules/unicase/u32-totitle-tests (Files): Likewise.
76433         * modules/unicase/u32-toupper-tests (Files): Likewise.
76434         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
76435         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
76436         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
76437         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
76438         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
76439         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
76440         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
76441         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
76442         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
76443         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
76444         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
76445         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
76446         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
76447         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
76448         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
76449         * modules/unictype/bidicategory-name-tests (Files): Likewise.
76450         * modules/unictype/bidicategory-of-tests (Files): Likewise.
76451         * modules/unictype/bidicategory-test-tests (Files): Likewise.
76452         * modules/unictype/block-list-tests (Files): Likewise.
76453         * modules/unictype/block-of-tests (Files): Likewise.
76454         * modules/unictype/block-test-tests (Files): Likewise.
76455         * modules/unictype/category-C-tests (Files): Likewise.
76456         * modules/unictype/category-Cc-tests (Files): Likewise.
76457         * modules/unictype/category-Cf-tests (Files): Likewise.
76458         * modules/unictype/category-Cn-tests (Files): Likewise.
76459         * modules/unictype/category-Co-tests (Files): Likewise.
76460         * modules/unictype/category-Cs-tests (Files): Likewise.
76461         * modules/unictype/category-L-tests (Files): Likewise.
76462         * modules/unictype/category-Ll-tests (Files): Likewise.
76463         * modules/unictype/category-Lm-tests (Files): Likewise.
76464         * modules/unictype/category-Lo-tests (Files): Likewise.
76465         * modules/unictype/category-Lt-tests (Files): Likewise.
76466         * modules/unictype/category-Lu-tests (Files): Likewise.
76467         * modules/unictype/category-M-tests (Files): Likewise.
76468         * modules/unictype/category-Mc-tests (Files): Likewise.
76469         * modules/unictype/category-Me-tests (Files): Likewise.
76470         * modules/unictype/category-Mn-tests (Files): Likewise.
76471         * modules/unictype/category-N-tests (Files): Likewise.
76472         * modules/unictype/category-Nd-tests (Files): Likewise.
76473         * modules/unictype/category-Nl-tests (Files): Likewise.
76474         * modules/unictype/category-No-tests (Files): Likewise.
76475         * modules/unictype/category-P-tests (Files): Likewise.
76476         * modules/unictype/category-Pc-tests (Files): Likewise.
76477         * modules/unictype/category-Pd-tests (Files): Likewise.
76478         * modules/unictype/category-Pe-tests (Files): Likewise.
76479         * modules/unictype/category-Pf-tests (Files): Likewise.
76480         * modules/unictype/category-Pi-tests (Files): Likewise.
76481         * modules/unictype/category-Po-tests (Files): Likewise.
76482         * modules/unictype/category-Ps-tests (Files): Likewise.
76483         * modules/unictype/category-S-tests (Files): Likewise.
76484         * modules/unictype/category-Sc-tests (Files): Likewise.
76485         * modules/unictype/category-Sk-tests (Files): Likewise.
76486         * modules/unictype/category-Sm-tests (Files): Likewise.
76487         * modules/unictype/category-So-tests (Files): Likewise.
76488         * modules/unictype/category-Z-tests (Files): Likewise.
76489         * modules/unictype/category-Zl-tests (Files): Likewise.
76490         * modules/unictype/category-Zp-tests (Files): Likewise.
76491         * modules/unictype/category-Zs-tests (Files): Likewise.
76492         * modules/unictype/category-and-not-tests (Files): Likewise.
76493         * modules/unictype/category-and-tests (Files): Likewise.
76494         * modules/unictype/category-byname-tests (Files): Likewise.
76495         * modules/unictype/category-name-tests (Files): Likewise.
76496         * modules/unictype/category-none-tests (Files): Likewise.
76497         * modules/unictype/category-of-tests (Files): Likewise.
76498         * modules/unictype/category-or-tests (Files): Likewise.
76499         * modules/unictype/category-test-withtable-tests (Files): Likewise.
76500         * modules/unictype/combining-class-tests (Files): Likewise.
76501         * modules/unictype/ctype-alnum-tests (Files): Likewise.
76502         * modules/unictype/ctype-alpha-tests (Files): Likewise.
76503         * modules/unictype/ctype-blank-tests (Files): Likewise.
76504         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
76505         * modules/unictype/ctype-digit-tests (Files): Likewise.
76506         * modules/unictype/ctype-graph-tests (Files): Likewise.
76507         * modules/unictype/ctype-lower-tests (Files): Likewise.
76508         * modules/unictype/ctype-print-tests (Files): Likewise.
76509         * modules/unictype/ctype-punct-tests (Files): Likewise.
76510         * modules/unictype/ctype-space-tests (Files): Likewise.
76511         * modules/unictype/ctype-upper-tests (Files): Likewise.
76512         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
76513         * modules/unictype/decimal-digit-tests (Files): Likewise.
76514         * modules/unictype/digit-tests (Files): Likewise.
76515         * modules/unictype/mirror-tests (Files): Likewise.
76516         * modules/unictype/numeric-tests (Files): Likewise.
76517         * modules/unictype/property-alphabetic-tests (Files): Likewise.
76518         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
76519         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
76520         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
76521         Likewise.
76522         * modules/unictype/property-bidi-block-separator-tests (Files):
76523         Likewise.
76524         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
76525         Likewise.
76526         * modules/unictype/property-bidi-common-separator-tests (Files):
76527         Likewise.
76528         * modules/unictype/property-bidi-control-tests (Files): Likewise.
76529         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
76530         Likewise.
76531         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
76532         Likewise.
76533         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
76534         Likewise.
76535         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
76536         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
76537         Likewise.
76538         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
76539         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
76540         Likewise.
76541         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
76542         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
76543         * modules/unictype/property-bidi-segment-separator-tests (Files):
76544         Likewise.
76545         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
76546         * modules/unictype/property-byname-tests (Files): Likewise.
76547         * modules/unictype/property-combining-tests (Files): Likewise.
76548         * modules/unictype/property-composite-tests (Files): Likewise.
76549         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
76550         * modules/unictype/property-dash-tests (Files): Likewise.
76551         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
76552         * modules/unictype/property-default-ignorable-code-point-tests (Files):
76553         Likewise.
76554         * modules/unictype/property-deprecated-tests (Files): Likewise.
76555         * modules/unictype/property-diacritic-tests (Files): Likewise.
76556         * modules/unictype/property-extender-tests (Files): Likewise.
76557         * modules/unictype/property-format-control-tests (Files): Likewise.
76558         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
76559         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
76560         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
76561         * modules/unictype/property-hex-digit-tests (Files): Likewise.
76562         * modules/unictype/property-hyphen-tests (Files): Likewise.
76563         * modules/unictype/property-id-continue-tests (Files): Likewise.
76564         * modules/unictype/property-id-start-tests (Files): Likewise.
76565         * modules/unictype/property-ideographic-tests (Files): Likewise.
76566         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
76567         * modules/unictype/property-ids-trinary-operator-tests (Files):
76568         Likewise.
76569         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
76570         * modules/unictype/property-iso-control-tests (Files): Likewise.
76571         * modules/unictype/property-join-control-tests (Files): Likewise.
76572         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
76573         * modules/unictype/property-line-separator-tests (Files): Likewise.
76574         * modules/unictype/property-logical-order-exception-tests (Files):
76575         Likewise.
76576         * modules/unictype/property-lowercase-tests (Files): Likewise.
76577         * modules/unictype/property-math-tests (Files): Likewise.
76578         * modules/unictype/property-non-break-tests (Files): Likewise.
76579         * modules/unictype/property-not-a-character-tests (Files): Likewise.
76580         * modules/unictype/property-numeric-tests (Files): Likewise.
76581         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
76582         * modules/unictype/property-other-default-ignorable-code-point-tests
76583         (Files): Likewise.
76584         * modules/unictype/property-other-grapheme-extend-tests (Files):
76585         Likewise.
76586         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
76587         * modules/unictype/property-other-id-start-tests (Files): Likewise.
76588         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
76589         * modules/unictype/property-other-math-tests (Files): Likewise.
76590         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
76591         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
76592         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
76593         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
76594         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
76595         * modules/unictype/property-private-use-tests (Files): Likewise.
76596         * modules/unictype/property-punctuation-tests (Files): Likewise.
76597         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
76598         * modules/unictype/property-radical-tests (Files): Likewise.
76599         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
76600         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
76601         * modules/unictype/property-space-tests (Files): Likewise.
76602         * modules/unictype/property-terminal-punctuation-tests (Files):
76603         Likewise.
76604         * modules/unictype/property-test-tests (Files): Likewise.
76605         * modules/unictype/property-titlecase-tests (Files): Likewise.
76606         * modules/unictype/property-unassigned-code-value-tests (Files):
76607         Likewise.
76608         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
76609         * modules/unictype/property-uppercase-tests (Files): Likewise.
76610         * modules/unictype/property-variation-selector-tests (Files): Likewise.
76611         * modules/unictype/property-white-space-tests (Files): Likewise.
76612         * modules/unictype/property-xid-continue-tests (Files): Likewise.
76613         * modules/unictype/property-xid-start-tests (Files): Likewise.
76614         * modules/unictype/property-zero-width-tests (Files): Likewise.
76615         * modules/unictype/scripts-tests (Files): Likewise.
76616         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
76617         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
76618         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
76619         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
76620         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
76621         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
76622         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
76623         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
76624         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
76625         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
76626         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
76627         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
76628         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
76629         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
76630         * modules/uninorm/composition-tests (Files): Likewise.
76631         * modules/uninorm/decomposing-form-tests (Files): Likewise.
76632         * modules/uninorm/decomposition-tests (Files): Likewise.
76633         * modules/uninorm/filter-tests (Files): Likewise.
76634         * modules/uninorm/nfc-tests (Files): Likewise.
76635         * modules/uninorm/nfd-tests (Files): Likewise.
76636         * modules/uninorm/nfkc-tests (Files): Likewise.
76637         * modules/uninorm/nfkd-tests (Files): Likewise.
76638         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
76639         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
76640         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
76641         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
76642         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
76643         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
76644         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
76645         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
76646         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
76647         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
76648         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
76649         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
76650         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
76651         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
76652         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
76653         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
76654         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
76655         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
76656         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
76657         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
76658         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
76659         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
76660         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
76661         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
76662         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
76663         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
76664         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
76665         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
76666         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
76667         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
76668         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
76669         * modules/uniwidth/u8-width-tests (Files): Likewise.
76670         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
76671         * modules/uniwidth/u16-width-tests (Files): Likewise.
76672         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
76673         * modules/uniwidth/u32-width-tests (Files): Likewise.
76674         * modules/uniwidth/width-tests (Files): Likewise.
76675         * modules/unlink-tests (Files): Likewise.
76676         * modules/unsetenv-tests (Files): Likewise.
76677         * modules/usleep-tests (Files): Likewise.
76678         * modules/utimens-tests (Files): Likewise.
76679         * modules/utimensat-tests (Files): Likewise.
76680         * modules/vasnprintf-posix-tests (Files): Likewise.
76681         * modules/vasnprintf-tests (Files): Likewise.
76682         * modules/vasprintf-posix-tests (Files): Likewise.
76683         * modules/vasprintf-tests (Files): Likewise.
76684         * modules/vdprintf-posix-tests (Files): Likewise.
76685         * modules/vfprintf-posix-tests (Files): Likewise.
76686         * modules/vprintf-posix-tests (Files): Likewise.
76687         * modules/vsnprintf-posix-tests (Files): Likewise.
76688         * modules/vsnprintf-tests (Files): Likewise.
76689         * modules/vsprintf-posix-tests (Files): Likewise.
76690         * modules/wcrtomb-tests (Files): Likewise.
76691         * modules/wcsnrtombs-tests (Files): Likewise.
76692         * modules/wcsrtombs-tests (Files): Likewise.
76693         * modules/wctype-tests (Files): Likewise.
76694         * modules/wcwidth-tests (Files): Likewise.
76695         * modules/xmemdup0-tests (Files): Likewise.
76696         * modules/xprintf-posix-tests (Files): Likewise.
76697         * modules/xvasprintf-tests (Files): Likewise.
76699 2009-12-24  Eric Blake  <ebb9@byu.net>
76701         test-nanosleep: fix typo
76702         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
76703         patch.
76704         Reported by Bruno Haible.
76706 2009-12-24  Bruno Haible  <bruno@clisp.org>
76708         Reduce namespace pollution on glibc systems.
76709         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
76710         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
76711         systems.
76712         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
76713         <getopt.h> on glibc systems.
76714         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
76715         systems.
76716         * lib/fcntl.c: Include <unistd.h> here instead.
76718 2009-12-24  Bruno Haible  <bruno@clisp.org>
76720         * lib/stdlib.in.h (includes): Fix typo in today's commit.
76722 2009-12-24  Eric Blake  <ebb9@byu.net>
76724         tests: add signature checks
76725         * tests/signature.h (SIGNATURE_CHECK): New file.
76726         * modules/atexit-tests (Files): Use it.
76727         * modules/btowc-tests (Files): Likewise.
76728         * modules/canonicalize-lgpl-tests (Files): Likewise.
76729         * modules/ceilf-tests (Files): Likewise.
76730         * modules/ceill-tests (Files): Likewise.
76731         * modules/chown-tests (Files): Likewise.
76732         * modules/dprintf-posix-tests (Files): Likewise.
76733         * modules/dup2-tests (Files): Likewise.
76734         * modules/dup3-tests (Files): Likewise.
76735         * modules/duplocale-tests (Files): Likewise.
76736         * modules/fchdir-tests (Files): Likewise.
76737         * modules/fcntl-tests (Files): Likewise.
76738         * modules/fdopendir-tests (Files): Likewise.
76739         * modules/fflush-tests (Files): Likewise.
76740         * modules/flock-tests (Files): Likewise.
76741         * modules/floorf-tests (Files): Likewise.
76742         * modules/floorl-tests (Files): Likewise.
76743         * modules/fnmatch-tests (Files): Likewise.
76744         * modules/fopen-tests (Files): Likewise.
76745         * modules/fprintf-posix-tests (Files): Likewise.
76746         * modules/freopen-tests (Files): Likewise.
76747         * modules/frexp-nolibm-tests (Files): Likewise.
76748         * modules/frexp-tests (Files): Likewise.
76749         * modules/frexpl-nolibm-tests (Files): Likewise.
76750         * modules/frexpl-tests (Files): Likewise.
76751         * modules/fseek-tests (Files): Likewise.
76752         * modules/fseeko-tests (Files): Likewise.
76753         * modules/fsync-tests (Files): Likewise.
76754         * modules/ftell-tests (Files): Likewise.
76755         * modules/ftello-tests (Files): Likewise.
76756         * modules/futimens-tests (Files): Likewise.
76757         * modules/getaddrinfo-tests (Files): Likewise.
76758         * modules/getcwd-tests (Files): Likewise.
76759         * modules/getdelim-tests (Files): Likewise.
76760         * modules/getdtablesize-tests (Files): Likewise.
76761         * modules/getgroups-tests (Files): Likewise.
76762         * modules/gethostname-tests (Files): Likewise.
76763         * modules/getline-tests (Files): Likewise.
76764         * modules/getopt-posix-tests (Files): Likewise.
76765         * modules/gettimeofday-tests (Files): Likewise.
76766         * modules/glob-tests (Files): Likewise.
76767         * modules/iconv-tests (Files): Likewise.
76768         * modules/inet_ntop-tests (Files): Likewise.
76769         * modules/inet_pton-tests (Files): Likewise.
76770         * modules/isblank-tests (Files): Likewise.
76771         * modules/lchown-tests (Files): Likewise.
76772         * modules/ldexpl-tests (Files): Likewise.
76773         * modules/link-tests (Files): Likewise.
76774         * modules/linkat-tests (Files): Likewise.
76775         * modules/lseek-tests (Files): Likewise.
76776         * modules/lstat-tests (Files): Likewise.
76777         * modules/mbrtowc-tests (Files): Likewise.
76778         * modules/mbsinit-tests (Files): Likewise.
76779         * modules/mbsnrtowcs-tests (Files): Likewise.
76780         * modules/mbsrtowcs-tests (Files): Likewise.
76781         * modules/memchr-tests (Files): Likewise.
76782         * modules/memcmp-tests (Files): Likewise.
76783         * modules/memmem-tests (Files): Likewise.
76784         * modules/memrchr-tests (Files): Likewise.
76785         * modules/mkdir-tests (Files): Likewise.
76786         * modules/mkfifo-tests (Files): Likewise.
76787         * modules/mkfifoat-tests (Files): Likewise.
76788         * modules/mknod-tests (Files): Likewise.
76789         * modules/nanosleep-tests (Files): Likewise.
76790         * modules/nl_langinfo-tests (Files): Likewise.
76791         * modules/obstack-printf-tests (Files): Likewise.
76792         * modules/open-tests (Files): Likewise.
76793         * modules/openat-tests (Files): Likewise.
76794         * modules/perror-tests (Files): Likewise.
76795         * modules/pipe2-tests (Files): Likewise.
76796         * modules/poll-tests (Files): Likewise.
76797         * modules/popen-tests (Files): Likewise.
76798         * modules/posix_spawn-tests (Files): Likewise.
76799         * modules/posix_spawnp-tests (Files): Likewise.
76800         * modules/pread-tests (Files): Likewise.
76801         * modules/printf-posix-tests (Files): Likewise.
76802         * modules/pty-tests (Files): Likewise.
76803         * modules/random_r-tests (Files): Likewise.
76804         * modules/rawmemchr-tests (Files): Likewise.
76805         * modules/readlink-tests (Files): Likewise.
76806         * modules/remove-tests (Files): Likewise.
76807         * modules/rename-tests (Files): Likewise.
76808         * modules/renameat-tests (Files): Likewise.
76809         * modules/rmdir-tests (Files): Likewise.
76810         * modules/round-tests (Files): Likewise.
76811         * modules/roundf-tests (Files): Likewise.
76812         * modules/roundl-tests (Files): Likewise.
76813         * modules/select-tests (Files): Likewise.
76814         * modules/setenv-tests (Files): Likewise.
76815         * modules/sigaction-tests (Files): Likewise.
76816         * modules/sleep-tests (Files): Likewise.
76817         * modules/snprintf-posix-tests (Files): Likewise.
76818         * modules/snprintf-tests (Files): Likewise.
76819         * modules/sprintf-posix-tests (Files): Likewise.
76820         * modules/stat-tests (Files): Likewise.
76821         * modules/strcasestr-tests (Files): Likewise.
76822         * modules/strchrnul-tests (Files): Likewise.
76823         * modules/strerror-tests (Files): Likewise.
76824         * modules/strsignal-tests (Files): Likewise.
76825         * modules/strstr-tests (Files): Likewise.
76826         * modules/strtod-tests (Files): Likewise.
76827         * modules/strverscmp-tests (Files): Likewise.
76828         * modules/symlink-tests (Files): Likewise.
76829         * modules/symlinkat-tests (Files): Likewise.
76830         * modules/times-tests (Files): Likewise.
76831         * modules/trunc-tests (Files): Likewise.
76832         * modules/truncf-tests (Files): Likewise.
76833         * modules/truncl-tests (Files): Likewise.
76834         * modules/tsearch-tests (Files): Likewise.
76835         * modules/uname-tests (Files): Likewise.
76836         * modules/unlink-tests (Files): Likewise.
76837         * modules/unsetenv-tests (Files): Likewise.
76838         * modules/usleep-tests (Files): Likewise.
76839         * modules/utimensat-tests (Files): Likewise.
76840         * modules/vasprintf-tests (Files): Likewise.
76841         * modules/vdprintf-posix-tests (Files): Likewise.
76842         * modules/vfprintf-posix-tests (Files): Likewise.
76843         * modules/vprintf-posix-tests (Files): Likewise.
76844         * modules/vsnprintf-posix-tests (Files): Likewise.
76845         * modules/vsnprintf-tests (Files): Likewise.
76846         * modules/vsprintf-posix-tests (Files): Likewise.
76847         * modules/wcrtomb-tests (Files): Likewise.
76848         * modules/wcsnrtombs-tests (Files): Likewise.
76849         * modules/wcsrtombs-tests (Files): Likewise.
76850         * modules/wcwidth-tests (Files): Likewise.
76851         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
76852         * tests/test-isinf.c (isinf): Likewise.
76853         * tests/test-isnan.c (isnan): Likewise.
76854         * tests/test-signbit.c (signbit): Likewise.
76855         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
76856         declaration, either as macro or with correct signature.
76857         (select): Ensure function under test is declared with correct
76858         signature in correct header.
76859         * tests/test-atexit.c (atexit): Likewise.
76860         * tests/test-btowc.c (btowc): Likewise.
76861         * tests/test-canonicalize-lgpl.c (realpath)
76862         (canonicalize_file_name): Likewise.
76863         * tests/test-ceilf1.c (ceilf): Likewise.
76864         * tests/test-ceill.c (ceill): Likewise.
76865         * tests/test-chown.c (chown): Likewise.
76866         * tests/test-dprintf-posix.c (dprintf): Likewise.
76867         * tests/test-dup2.c (dup2): Likewise.
76868         * tests/test-dup3.c (dup3): Likewise.
76869         * tests/test-duplocale.c (duplocale): Likewise.
76870         * tests/test-fchdir.c (fchdir): Likewise.
76871         * tests/test-fchownat.c (fchownat): Likewise.
76872         * tests/test-fcntl.c (fcntl): Likewise.
76873         * tests/test-fdopendir.c (fdopendir): Likewise.
76874         * tests/test-fflush.c (fflush): Likewise.
76875         * tests/test-flock.c (flock): Likewise.
76876         * tests/test-floorf1.c (floorf): Likewise.
76877         * tests/test-floorl.c (floorl): Likewise.
76878         * tests/test-fnmatch.c (fnmatch): Likewise.
76879         * tests/test-fopen.c (fopen): Likewise.
76880         * tests/test-fprintf-posix.c (fprintf): Likewise.
76881         * tests/test-freopen.c (freopen): Likewise.
76882         * tests/test-frexp.c (frexp): Likewise.
76883         * tests/test-frexpl.c (frexpl): Likewise.
76884         * tests/test-fseek.c (fseek): Likewise.
76885         * tests/test-fseeko.c (fseeko): Likewise.
76886         * tests/test-fstatat.c (fstatat): Likewise.
76887         * tests/test-fsync.c (fsync): Likewise.
76888         * tests/test-ftell.c (ftell): Likewise.
76889         * tests/test-ftello.c (ftello): Likewise.
76890         * tests/test-futimens.c (futimens): Likewise.
76891         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
76892         (gai_strerror): Likewise.
76893         * tests/test-getcwd.c (getcwd): Likewise.
76894         * tests/test-getdelim.c (getdelim): Likewise.
76895         * tests/test-getdtablesize.c (getdtablesize): Likewise.
76896         * tests/test-getgroups.c (getgroups): Likewise.
76897         * tests/test-gethostname.c (gethostname): Likewise.
76898         * tests/test-getline.c (getline): Likewise.
76899         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
76900         Likewise.
76901         * tests/test-gettimeofday.c (gettimeofday): Likewise.
76902         * tests/test-glob.c (glob, globfree): Likewise.
76903         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
76904         * tests/test-inet_ntop.c (inet_ntop): Likewise.
76905         * tests/test-inet_pton.c (inet_pton): Likewise.
76906         * tests/test-isblank.c (isblank): Likewise.
76907         * tests/test-lchown.c (lchown): Likewise.
76908         * tests/test-ldexpl.c (ldexpl): Likewise.
76909         * tests/test-link.c (link): Likewise.
76910         * tests/test-linkat.c (linkat): Likewise.
76911         * tests/test-lseek.c (lseek): Likewise.
76912         * tests/test-lstat.c (lstat): Likewise.
76913         * tests/test-mbrtowc.c (mbrtowc): Likewise.
76914         * tests/test-mbsinit.c (mbsinit): Likewise.
76915         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
76916         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
76917         * tests/test-memchr.c (memchr): Likewise.
76918         * tests/test-memcmp.c (memcmp): Likewise.
76919         * tests/test-memmem.c (memmem): Likewise.
76920         * tests/test-memrchr.c (memrchr): Likewise.
76921         * tests/test-mkdir.c (mkdir): Likewise.
76922         * tests/test-mkdirat.c (mkdirat): Likewise.
76923         * tests/test-mkfifo.c (mkfifo): Likewise.
76924         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
76925         * tests/test-mknod.c (mknod): Likewise.
76926         * tests/test-nanosleep.c (nanosleep): Likewise.
76927         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
76928         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
76929         Likewise.
76930         * tests/test-open.c (open): Likewise.
76931         * tests/test-openat.c (openat): Likewise.
76932         * tests/test-perror.c (perror): Likewise.
76933         * tests/test-pipe2.c (pipe2): Likewise.
76934         * tests/test-poll.c (poll): Likewise.
76935         * tests/test-popen.c (popen, pclose): Likewise.
76936         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
76937         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
76938         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
76939         (posix_spawn_file_actions_destroy)
76940         (posix_spawn_file_actions_addclose)
76941         (posix_spawn_file_actions_addopen)
76942         (posix_spawn_file_actions_adddup2): Likewise.
76943         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
76944         * tests/test-pread.c (pread): Likewise.
76945         * tests/test-printf-posix.c (printf): Likewise.
76946         * tests/test-pty.c (openpty, forkpty): Likewise.
76947         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
76948         (random_r): Likewise.
76949         * tests/test-rawmemchr.c (rawmemchr): Likewise.
76950         * tests/test-readlink.c (readlink): Likewise.
76951         * tests/test-remove.c (remove): Likewise.
76952         * tests/test-rename.c (rename): Likewise.
76953         * tests/test-renameat.c (renameat): Likewise.
76954         * tests/test-rmdir.c (rmdir): Likewise.
76955         * tests/test-round1.c (round): Likewise.
76956         * tests/test-roundf1.c (roundf): Likewise.
76957         * tests/test-roundl.c (roundl): Likewise.
76958         * tests/test-setenv.c (setenv): Likewise.
76959         * tests/test-sigaction.c (sigaction): Likewise.
76960         * tests/test-sleep.c (sleep): Likewise.
76961         * tests/test-snprintf.c (snprintf): Likewise.
76962         * tests/test-sprintf-posix.c (sprintf): Likewise.
76963         * tests/test-stat.c (stat): Likewise.
76964         * tests/test-stpncpy.c (stpncpy): Likewise.
76965         * tests/test-strcasestr.c (strcasestr): Likewise.
76966         * tests/test-strchrnul.c (strchrnul): Likewise.
76967         * tests/test-strerror.c (strerror): Likewise.
76968         * tests/test-strsignal.c (strsignal): Likewise.
76969         * tests/test-strstr.c (strstr): Likewise.
76970         * tests/test-strtod.c (strtod): Likewise.
76971         * tests/test-strverscmp.c (strverscmp): Likewise.
76972         * tests/test-symlink.c (symlink): Likewise.
76973         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
76974         * tests/test-times.c (times): Likewise.
76975         * tests/test-trunc1.c (trunc): Likewise.
76976         * tests/test-truncf1.c (truncf): Likewise.
76977         * tests/test-truncl.c (truncl): Likewise.
76978         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
76979         Likewise.
76980         * tests/test-uname.c (uname): Likewise.
76981         * tests/test-unlink.c (unlink): Likewise.
76982         * tests/test-unlinkat.c (unlinkat): Likewise.
76983         * tests/test-unsetenv.c (unsetenv): Likewise.
76984         * tests/test-usleep.c (usleep): Likewise.
76985         * tests/test-utimensat.c (utimensat): Likewise.
76986         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
76987         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
76988         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
76989         * tests/test-vprintf-posix.c (vprintf): Likewise.
76990         * tests/test-vsnprintf.c (vsnprintf): Likewise.
76991         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
76992         * tests/test-wcrtomb.c (wcrtomb): Likewise.
76993         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
76994         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
76995         * tests/test-wcwidth.c (wcwidth): Likewise.
76997         build: pull in conditional headers during GNULIB_POSIXCHECK
76998         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
76999         definitions from any conditionally-included headers.
77000         * lib/stdlib.in.h (includes): Likewise.
77001         * lib/unistd.in.h (includes): Likewise.
77003 2009-12-24  Bruno Haible  <bruno@clisp.org>
77005         * tests/test-argv-iter.c: Include header file being tested immediately
77006         after config.h.
77007         * tests/test-base64.c: Likewise.
77008         * tests/test-flock.c: Likewise.
77009         * tests/test-fsync.c: Likewise.
77010         * tests/test-getdate.c: Likewise.
77011         * tests/test-getndelim2.c: Likewise.
77012         * tests/test-isfinite.c: Likewise.
77013         * tests/test-isinf.c: Likewise.
77014         * tests/test-strerror.c: Likewise.
77015         * tests/test-strsignal.c: Likewise.
77017 2009-12-23  Eric Blake  <ebb9@byu.net>
77019         unistd: work around cygwin bug
77020         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
77021         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
77022         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
77024 2009-12-23  Bruno Haible  <bruno@clisp.org>
77026         localename: More tests.
77027         * tests/test-localename.c (SIZEOF): New macro.
77028         (categories): New variable.
77029         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
77030         test_locale_name_default): Add test w.r.t. thread locale.
77031         (test_locale_name_thread): New function.
77032         (main): Invoke it.
77034         localename: Make aware of thread locale.
77035         * lib/localename.h (gl_locale_name_thread): New declaration.
77036         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
77037         behaviour with respect to thread locale.
77038         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
77039         <langinfo.h>, glthread/lock.h.
77040         (SIZE_BITS): New macro.
77041         (string_hash): New function.
77042         (struct hash_node): New type.
77043         (HASH_TABLE_SIZE): New macro.
77044         (struniq_hash_table, struniq_lock): New variables.
77045         (struniq): New function.
77046         (gl_locale_name_thread): New function.
77047         (gl_locale_name): Invoke it.
77048         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
77049         * modules/localename (Depends-on): Add lock.
77050         Reported by Mike Gran <spk121@yahoo.com>.
77052 2009-12-23  Eric Blake  <ebb9@byu.net>
77054         va-args: new module
77055         * modules/va-args: New file.
77056         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
77057         * MODULES.html.sh (Core language properties): Mention it.
77059         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
77060         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
77061         named alias for __attribute__((__unused__)).
77062         * lib/chown.c: Update client.
77063         * lib/fchmodat.c: Likewise.
77064         * lib/fts.c: Likewise.
77065         * lib/getdate.y: Likewise.
77066         * lib/getgroups.c: Likewise.
77067         * lib/getopt.c: Likewise.
77068         * lib/getugroups.c: Likewise.
77069         * lib/mkdir.c: Likewise.
77070         * lib/mkfifo.c: Likewise.
77071         * lib/mkfifoat.c: Likewise.
77072         * lib/mknod.c: Likewise.
77073         * lib/mknodat.c: Likewise.
77074         * lib/readlink.c: Likewise.
77075         * lib/se-context.in.h: Likewise.
77076         * lib/se-selinux.in.h: Likewise.
77077         * lib/sockets.c: Likewise.
77078         * lib/symlink.c: Likewise.
77079         * lib/symlinkat.c: Likewise.
77080         * lib/unicodeio.c: Likewise.
77081         * lib/unistr.h: Likewise.
77082         * tests/test-areadlink.c: Likewise.
77083         * tests/test-areadlinkat.c: Likewise.
77084         * tests/test-filenamecat.c: Likewise.
77085         * tests/test-fseeko.c: Likewise.
77086         * tests/test-ftello.c: Likewise.
77087         * tests/test-getdate.c: Likewise.
77088         * tests/test-getgroups.c: Likewise.
77089         * tests/test-gethostname.c: Likewise.
77090         * tests/test-quotearg.c: Likewise.
77091         * tests/test-version-etc.c: Likewise.
77092         * tests/test-xalloc-die.c: Likewise.
77093         * tests/test-xfprintf-posix.c: Likewise.
77094         * tests/test-xprintf-posix.c: Likewise.
77095         * tests/test-xvasprintf.c: Likewise.
77097         tests: avoid compiler warnings
77098         * tests/test-fcntl.c (main): Delete unused parameters.
77099         * tests/test-freopen-safer.c (main): Likewise.
77100         * tests/test-xalloc-die.c (main): Mark unused parameters.
77101         * tests/test-fseeko.c (main): Likewise.
77102         * tests/test-ftello.c (main): Likewise.
77103         * tests/test-nanosleep.c (main): Avoid declaration warning.
77104         * tests/test-sleep.c (main): Likewise.
77105         * tests/test-unsetenv.c (main): Silence warning about string
77106         literal.
77107         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
77109 2009-12-23  Bruno Haible  <bruno@clisp.org>
77111         * tests/test-localename.c (test_locale_name): New function, extracted
77112         from main. Also test mixed situations.
77113         (test_locale_name_posix, test_locale_name_environ,
77114         test_locale_name_default): New functions.
77115         (main): Invoke them all.
77116         * modules/localename-tests (configure.ac): Test for newlocale.
77118 2009-12-23  Bruno Haible  <bruno@clisp.org>
77120         unistd: Ensure getcwd gets declared before being overridden.
77121         * lib/unistd.in.h: Conditionally include <io.h>.
77123 2009-12-22  Bruno Haible  <bruno@clisp.org>
77125         wchar: Diagnose broken combination of glibc and gcc versions and flags.
77126         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
77127         (gl_WCHAR_H): Invoke it.
77128         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
77129         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
77130         Reported by Karl Berry <karl@freefriends.org>.
77132 2009-12-22  Eric Blake  <ebb9@byu.net>
77134         math, unistd: avoid redundant includes
77135         * lib/math.in.h (isnan): No need to re-include <math.h>.
77136         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
77138         getsubopt: work around cygwin bug
77139         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
77140         avoid conflicting with system getsubopt.
77141         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
77142         bug.
77144         getopt: synchronize from glibc
77145         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
77146         parameter order.  Adjust all callers.
77147         (_getopt_internal_r, main): Adjust quoting in error messages.
77148         Drop considerations for outdated POSIX 1003.2 error message.
77149         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
77150         callers.
77151         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
77153         test-getopt: test stderr behavior
77154         * modules/getopt-posix-tests (Depends-on): Add dup2.
77155         * tests/test-getopt.c (ASSERT): Avoid stderr.
77156         (main): Move stderr to a temporary file.
77157         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
77158         Instead, add parameter to inform caller if output occurred.
77159         (test_getopt): Adjust all existing tests to expect silence, and
77160         add new tests of leading ":".
77161         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
77162         glibc shortcomings with leading "-:" or "+:" in optstring.
77163         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77164         Likewise.
77165         * doc/posix-functions/getopt.texi (getopt): Likewise.
77167         test-getopt: enhance test
77168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
77169         supports optind=0.
77170         * tests/test-getopt.c (OPTIND_MIN): Move...
77171         * tests/test-getopt.h (OPTIND_MIN): ...here.
77172         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
77173         Require that optind=0 works, since modern BSD supports it in
77174         addition to optreset, and since coreutils expects it.
77175         (test_getopt_long_only): New test.
77176         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
77177         glibc shortcomings with 'W;', and enforcement of optind=0.
77178         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77179         Likewise.
77181 2009-12-21  Bruno Haible  <bruno@clisp.org>
77183         localename: Improvements for MacOS X and Cygwin.
77184         * lib/localename.h (gl_locale_name_environ): New declaration.
77185         * lib/localename.c (gl_locale_name_environ): New function, extracted from
77186         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
77187         (gl_locale_name_posix): Invoke it.
77188         (gl_locale_name_default): Add comments. Use Windows native API also on
77189         Cygwin.
77191 2009-12-21  Bruno Haible  <bruno@clisp.org>
77193         Update list of Win32 locale ids.
77194         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
77195         (LANG_SAMI): Renamed from LANG_SAAMI.
77196         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
77197         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
77198         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
77199         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
77200         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
77201         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
77202         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
77203         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
77204         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
77205         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
77206         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
77207         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
77208         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
77209         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
77210         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
77211         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
77212         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
77213         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
77214         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
77215         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
77216         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
77217         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
77218         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
77219         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
77220         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
77221         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
77222         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
77223         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
77224         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
77225         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
77226         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
77227         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
77228         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
77229         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
77230         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
77231         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
77232         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
77233         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
77234         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
77235         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
77236         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
77237         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
77238         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
77239         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
77240         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
77241         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
77242         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
77243         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
77244         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
77245         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
77246         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
77247         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
77248         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
77249         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
77250         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
77251         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
77252         Add more languages and countries for Sami, Sorbian. Add more countries
77253         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
77254         for Pashto. Change country for Syriac, Tswana.
77256 2009-12-21  Eric Blake  <ebb9@byu.net>
77258         test-utimens: avoid spurious failure
77259         * tests/test-chown.h (nap): Factor...
77260         * tests/nap.h: ...into new file.
77261         * tests/test-lchown.h (nap): Avoid duplication.
77262         * tests/test-utimens-common.h (nap): Use shared implementation,
77263         necessary on file systems with 1-second resolution.
77264         * modules/chown-tests (Files): Include new file.
77265         * modules/fdutimensat-tests (Files): Likewise.
77266         * modules/futimens-tests (Files): Likewise.
77267         * modules/lchown-tests (Files): Likewise.
77268         * modules/openat-tests (Files): Likewise.
77269         * modules/utimens-tests (Files): Likewise.
77270         * modules/utimensat-tests (Files): Likewise.
77272 2009-12-19  Eric Blake  <ebb9@byu.net>
77274         futimens, utimensat: work around Linux bug
77275         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
77276         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
77277         * lib/utimensat.c (rpl_utimensat): Work around it.
77278         * lib/futimens.c (rpl_futimens): Adjust comment.
77280         utimens: work around Linux ctime bug
77281         * lib/utimens.c (detect_ctime_bug): New helper function.
77282         (update_timespec): Differentiate between workaround needed for
77283         this bug vs. what is needed for systems that lack utimensat.
77284         (fdutimens, lutimens): Work around bug.
77286         utimens: check for ctime update
77287         * tests/test-utimens-common.h (check_ctime): Define.
77288         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
77289         * tests/test-futimens.h (test_futimens): Likewise.
77290         * tests/test-lutimens.h (test_lutimens): Likewise.
77291         * doc/posix-functions/futimens.texi (futimens): Document the bug.
77292         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77294 2009-12-19  Bruno Haible  <bruno@clisp.org>
77296         dprintf-posix: Check against memory leak fixed on 2009-12-15.
77297         * tests/test-dprintf-posix2.sh: New file.
77298         * tests/test-dprintf-posix2.c: New file.
77299         * modules/dprintf-posix-tests (Files): Add them.
77300         (configure.ac): Check for getrlimit and setrlimit.
77301         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
77303 2009-12-19  Bruno Haible  <bruno@clisp.org>
77305         fprintf-posix: Check against memory leak fixed on 2009-12-15.
77306         * tests/test-fprintf-posix3.sh: New file.
77307         * tests/test-fprintf-posix3.c: New file.
77308         * modules/fprintf-posix-tests (Files): Add them.
77309         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
77311 2009-12-19  Eric Blake  <ebb9@byu.net>
77313         dirfd: fix prototype
77314         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
77315         * lib/dirfd.c (dirfd): Likewise.
77317         canonicalize: reduce memory usage
77318         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
77319         allocation to size.
77320         Reported by Solar Designer <solar@openwall.com>.
77322 2009-12-19  Bruno Haible  <bruno@clisp.org>
77324         New module attribute 'Applicability'.
77325         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
77326         * gnulib-tool: New option --extract-applicability.
77327         (func_usage): Document it.
77328         (sed_extract_prog): Recognize it.
77329         (func_get_applicability): New function.
77330         (func_import): Generalize handling of 'link-warning' module.
77331         * modules/link-warning (Applicability): New section.
77332         * modules/arg-nonnull (Applicability): New section.
77333         Repoted by Simon Josefsson <simon@josefsson.org>.
77335 2009-12-19  Bruno Haible  <bruno@clisp.org>
77337         fflush: tweak
77338         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
77339         * lib/fseeko.c (rpl_fseeko): Likewise.
77341 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
77343         * lib/gl_list.h: Fix typo in comment.
77345 2009-12-16  Eric Blake  <ebb9@byu.net>
77347         fcntl: use to simplify other modules
77348         * modules/cloexec (Depends-on): Add fcntl.
77349         * modules/fchdir (Depends-on): Likewise.
77350         * modules/fd-safer-flag (Depends-on): Likewise.
77351         * modules/unistd-safer (Depends-on): Likewise.
77352         * modules/dup3 (configure.ac): Set module indicator.
77353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
77354         missing.
77355         * lib/fchdir.c (_gl_register_dup): Fix comment.
77356         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
77357         * lib/dup-safer.c (dup_safer): Likewise.
77358         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
77359         * lib/dup3.c (dup3): Likewise.
77360         * tests/test-fchdir.c (main): Enhance test.
77361         Fixes a dup_cloexec bug reported by Ondřej Vašík.
77363         fcntl: port portions of fcntl to mingw
77364         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
77365         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
77366         replacement for mingw.
77367         * modules/fcntl (Description): Update.
77368         (Depends-on): Add dup2.
77369         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
77370         * modules/fcntl-h (Makefile.am): Substitute it.
77371         * lib/fcntl.in.h (fcntl): Update declaration.
77372         (F_DUPFD, F_GETFD): New macros, when needed.
77373         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77374         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
77375         * tests/test-fcntl.c (check_flags, main): Enhance test for items
77376         we now guarantee.
77378         fcntl: work around cygwin bug in F_DUPFD
77379         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
77380         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
77381         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
77382         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
77383         * doc/posix-functions/fcntl.texi (fcntl): Document it.
77385         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
77386         * modules/fcntl (Files): List new files.
77387         (configure.ac): Run a test.
77388         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
77389         * lib/fcntl.c (rpl_fcntl): Likewise.
77390         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
77391         (gl_FCNTL_H): Always replace fcntl.h.
77392         * modules/fcntl-h (Makefile.am): Substitute witnesses.
77393         * lib/fcntl.in.h (fcntl): Declare replacement.
77394         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
77395         needed, plus a witness.
77396         * doc/posix-functions/fcntl.texi (fcntl): Document this.
77397         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77398         * tests/test-fcntl.c: New file.
77399         * modules/fcntl-tests: Likewise.
77401         binary-io: avoid potential compilation warning
77402         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
77403         directives.
77405         fflush: avoid compilation error on NetBSD
77406         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
77407         between off_t and fpos_t, since the latter is sometimes a struct.
77408         * lib/fseeko.c (rpl_fseeko): Likewise.
77409         Reported by Alexander Nasonov <alnsn@yandex.ru>.
77411 2009-12-15  Eric Blake  <ebb9@byu.net>
77413         fcntl-h, stdio, sys_ioctl: fix declarations
77414         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
77415         function must not take arguments.
77416         * lib/sys_ioctl.in.h (ioctl): Likewise.
77417         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
77418         (open): Add a link warning.
77420 2009-12-15  Jim Meyering  <meyering@redhat.com>
77422         areadlink, areadlink-with-size: relax license to LGPLv2+
77423         * modules/areadlink (License): Relax to LGPLv2+.
77424         * modules/areadlink-with-size (License): Likewise.
77426 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
77427             Bruno Haible  <bruno@clisp.org>
77429         *printf: Fix memory leak.
77430         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
77431         * lib/vfprintf.c (vfprintf): Likewise.
77432         * lib/dprintf.c (dprintf): Likewise.
77433         * lib/vdprintf.c (vdprintf): Likewise.
77435 2009-12-14  Eric Blake  <ebb9@byu.net>
77437         accept4: adjust module dependencies
77438         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
77440         utimens: one more try at avoiding compiler warning
77441         * lib/utimens.c (lutimens): Lower scope of result.
77443 2009-12-13  Bruno Haible  <bruno@clisp.org>
77445         Move the malloc checking from module 'list' to new module 'xlist'.
77446         * modules/xlist: New file.
77447         * lib/gl_xlist.h: New file.
77448         * lib/gl_xlist.c: New file.
77449         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
77450         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
77451         gl_list_add_last, gl_list_add_before, gl_list_add_after,
77452         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
77453         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
77454         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
77455         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
77456         gl_sortedlist_nx_add): New declarations.
77457         (struct gl_list_implementation): Rename and change methods accordingly.
77458         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
77459         (gl_list_nx_create): Renamed from gl_list_create.
77460         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
77461         (gl_list_nx_set_at): Renamed from gl_list_set_at.
77462         (gl_list_nx_add_first): Renamed from gl_list_add_first.
77463         (gl_list_nx_add_last): Renamed from gl_list_add_last.
77464         (gl_list_nx_add_before): Renamed from gl_list_add_before.
77465         (gl_list_nx_add_after): Renamed from gl_list_add_after.
77466         (gl_list_nx_add_at): Renamed from gl_list_add_at.
77467         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
77468         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
77469         gl_list_create_empty.
77470         (gl_list_nx_create): Renamed from gl_list_create.
77471         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
77472         (gl_list_nx_set_at): Renamed from gl_list_set_at.
77473         (gl_list_nx_add_first): Renamed from gl_list_add_first.
77474         (gl_list_nx_add_last): Renamed from gl_list_add_last.
77475         (gl_list_nx_add_before): Renamed from gl_list_add_before.
77476         (gl_list_nx_add_after): Renamed from gl_list_add_after.
77477         (gl_list_nx_add_at): Renamed from gl_list_add_at.
77478         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
77479         * lib/gl_array_list.c: Don't include xalloc.h.
77480         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
77481         NULL upon out-of-memory.
77482         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
77483         out-of-memory.
77484         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
77485         Change return type to 'int'.
77486         (gl_array_nx_set_at): Renamed from gl_array_set_at.
77487         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
77488         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
77489         upon out-of-memory.
77490         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
77491         upon out-of-memory.
77492         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
77493         upon out-of-memory.
77494         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
77495         upon out-of-memory.
77496         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
77497         out-of-memory.
77498         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
77499         Update.
77500         (gl_array_list_implementation): Update.
77501         * lib/gl_carray_list.c: Don't include xalloc.h.
77502         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
77503         Return NULL upon out-of-memory.
77504         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
77505         out-of-memory.
77506         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
77507         Change return type to 'int'.
77508         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
77509         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
77510         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
77511         upon out-of-memory.
77512         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
77513         upon out-of-memory.
77514         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
77515         out-of-memory.
77516         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
77517         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
77518         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
77519         Update.
77520         (gl_carray_list_implementation): Update.
77521         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
77522         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
77523         gl_linked_create_empty. Return NULL upon out-of-memory.
77524         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
77525         out-of-memory.
77526         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
77527         Change return type to 'int'. Return -1 upon out-of-memory.
77528         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
77529         out-of-memory.
77530         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
77531         upon out-of-memory.
77532         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
77533         upon out-of-memory.
77534         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
77535         NULL upon out-of-memory.
77536         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
77537         upon out-of-memory.
77538         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
77539         out-of-memory.
77540         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
77541         Update.
77542         * lib/gl_linked_list.c: Don't include xalloc.h.
77543         (gl_linked_list_implementation): Update.
77544         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
77545         (add_to_bucket): Change return type to 'int'.
77546         (gl_linkedhash_list_implementation): Update.
77547         * lib/gl_anytree_list1.h (free_subtree): New function.
77548         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
77549         gl_tree_create_empty. Return NULL upon out-of-memory.
77550         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
77551         Change return type to 'int'. Return -1 upon out-of-memory.
77552         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
77553         out-of-memory.
77554         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
77555         (gl_tree_remove_node): New function, moved here from
77556         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
77557         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
77558         Update.
77559         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
77560         malloc, not xmalloc. Return NULL upon out-of-memory.
77561         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77562         out-of-memory.
77563         (gl_tree_remove_node_from_tree): New function, extracted from
77564         gl_tree_remove_node.
77565         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77566         upon out-of-memory.
77567         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77568         out-of-memory.
77569         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77570         upon out-of-memory.
77571         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77572         upon out-of-memory.
77573         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77574         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
77575         not xmalloc. Return NULL upon out-of-memory.
77576         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77577         out-of-memory.
77578         (gl_tree_remove_node_from_tree): New function, extracted from
77579         gl_tree_remove_node.
77580         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77581         upon out-of-memory.
77582         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77583         out-of-memory.
77584         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77585         upon out-of-memory.
77586         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77587         upon out-of-memory.
77588         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77589         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
77590         gl_anytree_list1.h before gl_anyavltree_list2.h.
77591         (gl_avltree_list_implementation): Update.
77592         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
77593         gl_anytree_list1.h before gl_anyavltree_list2.h.
77594         (gl_rbtree_list_implementation): Update.
77595         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
77596         Change return type to 'int'. Return -1 upon out-of-memory. Use
77597         __builtin_expect.
77598         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
77599         (gl_avltreehash_list_implementation): Update.
77600         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
77601         (gl_rbtreehash_list_implementation): Update.
77602         * modules/array-list (Depends-on): Remove xalloc.
77603         * modules/carray-list (Depends-on): Likewise.
77604         * modules/linked-list (Depends-on): Likewise.
77605         * modules/linkedhash-list (Depends-on): Likewise.
77606         * modules/avltree-list (Depends-on): Likewise.
77607         * modules/rbtree-list (Depends-on): Likewise.
77608         * modules/avltreehash-list (Depends-on): Likewise.
77609         * modules/rbtreehash-list (Depends-on): Likewise.
77611         * modules/xsublist: New file.
77612         * lib/gl_xsublist.h: New file.
77613         * lib/gl_xsublist.c: New file.
77614         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
77615         (gl_sublist_nx_create): New declaration.
77616         * lib/gl_sublist.c: Don't include xalloc.h.
77617         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
77618         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
77619         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
77620         Change return type to 'int'. Return -1 upon out-of-memory.
77621         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
77622         upon out-of-memory.
77623         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
77624         NULL upon out-of-memory.
77625         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
77626         upon out-of-memory.
77627         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
77628         NULL upon out-of-memory.
77629         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
77630         NULL upon out-of-memory.
77631         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
77632         upon out-of-memory.
77633         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
77634         (gl_sublist_list_implementation): Update.
77635         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
77636         upon out-of-memory.
77637         * modules/sublist (Depends-on): Remove xalloc.
77639         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
77640         * tests/test-carray_list.c: Likewise.
77641         * tests/test-linked_list.c: Likewise.
77642         * tests/test-linkedhash_list.c: Likewise.
77643         * tests/test-avltree_list.c: Likewise.
77644         * tests/test-rbtree_list.c: Likewise.
77645         * tests/test-avltreehash_list.c: Likewise.
77646         * tests/test-rbtreehash_list.c: Likewise.
77647         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
77648         * modules/carray-list-tests (Makefile.am): Likewise.
77649         * modules/linked-list-tests (Makefile.am): Likewise.
77650         * modules/linkedhash-list-tests (Makefile.am): Likewise.
77651         * modules/avltree-list-tests (Makefile.am): Likewise.
77652         * modules/rbtree-list-tests (Makefile.am): Likewise.
77653         * modules/avltreehash-list-tests (Makefile.am): Likewise.
77654         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
77656         * NEWS: Mention the changes.
77658         * lib/clean-temp.c: Include gl_xlist.h.
77659         * modules/clean-temp (Depends-on): Add xlist.
77661         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
77662         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
77664         * tests/test-array_oset.c: Include gl_xlist.h.
77665         * modules/array-oset-tests (Depends-on): Add xlist.
77667         Reported by José E. Marchesi <jemarch@gnu.org>.
77669 2009-12-13  Bruno Haible  <bruno@clisp.org>
77671         Move the malloc checking from module 'oset' to new module 'xoset'.
77672         * modules/xoset: New file.
77673         * lib/gl_xoset.h: New file.
77674         * lib/gl_xoset.c: New file.
77675         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
77676         declarations.
77677         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
77678         (struct gl_oset_implementation): Rename and change methods accordingly.
77679         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
77680         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77681         'int'. Mark as __warn_unused_result__.
77682         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
77683         gl_oset_create_empty.
77684         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77685         'int'.
77686         * lib/gl_array_oset.c: Don't include xalloc.h.
77687         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
77688         malloc, not xmalloc.
77689         (grow): Change return type to 'int'. Don't call xalloc_die.
77690         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
77691         to 'int'.
77692         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
77693         'int'.
77694         (gl_array_oset_implementation): Update.
77695         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
77696         gl_tree_create_empty.
77697         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
77698         'int'.
77699         * lib/gl_avltree_oset.c: Don't include xalloc.h.
77700         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77701         xmalloc.
77702         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77703         not xmalloc.
77704         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77705         xmalloc.
77706         (gl_avltree_oset_implementation): Update.
77707         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
77708         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77709         xmalloc.
77710         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77711         not xmalloc.
77712         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77713         xmalloc.
77714         (gl_rbtree_oset_implementation): Update.
77715         * modules/array-oset (Depends-on): Remove xalloc.
77716         * modules/avltree-oset (Depends-on): Likewise.
77717         * modules/rbtree-oset (Depends-on): Likewise.
77718         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
77719         * tests/test-avltree_oset.c: Likewise.
77720         * tests/test-rbtree_oset.c: Likewise.
77721         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77722         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
77723         * modules/rbtree-oset-tests (Makefile.am): Likewise.
77724         * NEWS: Mention the change.
77726 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
77728         maint.mk: allow a project to override release-prep commands
77729         * top/maint.mk (alpha, beta, stable): Move release-preparatory
77730         commands into a new rule.
77731         (release-prep): New rule.
77732         (release-prep-hook): New overridable variable.
77734 2009-12-13  Bruno Haible  <bruno@clisp.org>
77736         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
77738 2009-12-13  Jim Meyering  <meyering@redhat.com>
77740         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
77741         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
77743 2009-12-12  Bruno Haible  <bruno@clisp.org>
77745         duplocale: Tweak.
77746         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
77748 2009-12-12  Karl Berry  <karl@gnu.org>
77750         * config/srclist.txt (strtoll.c): tab changes, no more sync.
77752 2009-12-12  Bruno Haible  <bruno@clisp.org>
77754         * m4/po.m4: Undo incorrect untabification.
77756 2009-12-12  Bruno Haible  <bruno@clisp.org>
77758         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
77759         * modules/c-strtod (Depends-on): Add locale.
77760         * modules/c-strtold (Depends-on): Likewise.
77762 2009-12-12  Bruno Haible  <bruno@clisp.org>
77764         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
77766 2009-12-11  Eric Blake  <ebb9@byu.net>
77768         setenv: relax requirement in light of POSIX ruling
77769         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
77770         not NULL.
77771         * tests/test-setenv.c (main): Relax test.
77772         * tests/test-unsetenv.c (main): Likewise.
77773         * doc/posix-functions/setenv.texi (setenv): Document this.
77774         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77776 2009-12-11  Bruno Haible  <bruno@clisp.org>
77778         New module 'fd-safer-flag'.
77779         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
77780         * lib/dup-safer.c (dup_safer_flag): Remove function.
77781         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
77782         * lib/fd-safer.c (fd_safer_flag): Remove function.
77783         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
77784         * modules/cloexec (configure.ac): Drop indicator macro.
77785         * modules/fd-safer-flag: New file.
77786         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
77787         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
77788         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
77790 2009-12-11  Bruno Haible  <bruno@clisp.org>
77792         Tests for module 'nl_langinfo'.
77793         * modules/nl_langinfo-tests: New file.
77794         * tests/test-nl_langinfo.sh: New file.
77795         * tests/test-nl_langinfo.c: New file.
77797         New module 'nl_langinfo'.
77798         * lib/nl_langinfo.c: New file.
77799         * m4/nl_langinfo.m4: New file.
77800         * modules/nl_langinfo: New file.
77801         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
77803 2009-12-11  Bruno Haible  <bruno@clisp.org>
77805         Tests for module 'langinfo'.
77806         * modules/langinfo-tests: New file.
77807         * tests/test-langinfo.c: New file.
77809         New module 'langinfo'.
77810         * lib/langinfo.in.h: New file.
77811         * m4/langinfo_h.m4: New file.
77812         * modules/langinfo: New file.
77813         * doc/posix-headers/langinfo.texi: Mention the new module.
77815 2009-12-11  Bruno Haible  <bruno@clisp.org>
77817         * lib/config.charset: Untabify.
77819 2009-12-11  Bruno Haible  <bruno@clisp.org>
77821         * modules/unistd-safer (configure.ac): Drop indicator macro.
77823 2009-12-11  Bruno Haible  <bruno@clisp.org>
77825         Move pipe2-safer code to its own file.
77826         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
77827         * lib/pipe-safer.c (pipe2_safer): Remove function.
77828         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
77829         (Makefile.am): Add it to lib_SOURCES.
77831 2009-12-10  Bruno Haible  <bruno@clisp.org>
77833         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
77835 2009-12-10  Bruno Haible  <bruno@clisp.org>
77837         Declare which arguments expect non-NULL values, for GCC and clang.
77838         * build-aux/arg-nonnull.h: New file.
77839         * modules/arg-nonnull: New file.
77840         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
77841         (inet_ntop, inet_pton): Use it.
77842         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
77843         (closedir, dirfd, opendir, scandir, alphasort): Use it.
77844         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
77845         (open, openat): Use it.
77846         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
77847         (fnmatch): Use it.
77848         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
77849         (getopt, getopt_long, getopt_long_only): Use it.
77850         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
77851         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
77852         Use it.
77853         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
77854         (iconv_open): Use it.
77855         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
77856         (strtoimax, strtoumax): Use it.
77857         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
77858         (duplocale): Use it.
77859         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
77860         (frexp, frexpl): Use it.
77861         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
77862         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
77863         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
77864         (tsearch, tfind, tdelete, twalk): Use it.
77865         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
77866         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
77867         sigpending): Use it.
77868         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
77869         (posix_spawn, posix_spawnp, posix_spawnattr_init,
77870         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
77871         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
77872         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
77873         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
77874         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
77875         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
77876         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
77877         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
77878         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
77879         Use it.
77880         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
77881         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
77882         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
77883         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
77884         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
77885         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
77886         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
77887         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
77888         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
77889         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
77890         strtoull, unsetenv): Use it.
77891         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
77892         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
77893         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
77894         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
77895         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
77896         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
77897         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
77898         (strcasecmp, strncasecmp): Use it.
77899         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
77900         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
77901         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
77902         rpl_setsockopt): Use it.
77903         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
77904         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
77905         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
77906         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
77907         (gettimeofday): Use it.
77908         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
77909         (times): Use it.
77910         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
77911         (uname): Use it.
77912         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
77913         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
77914         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
77915         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
77916         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
77917         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
77918         unlinkat, write): Use it.
77919         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
77920         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
77921         * lib/argv-iter.h: Include arg-nonnull.h.
77922         (_ATTRIBUTE_NONNULL_): Remove macro.
77923         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
77924         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
77925         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
77926         optimization.
77927         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
77928         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
77929         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
77930         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
77931         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
77932         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
77933         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
77934         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
77935         * modules/arpa_inet (Depends-on): Add arg-nonnull.
77936         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
77937         * modules/dirent (Depends-on): Add arg-nonnull.
77938         (Makefile.am): Insert arg-nonnull.h into dirent.h.
77939         * modules/fcntl-h (Depends-on): Add arg-nonnull.
77940         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
77941         * modules/fnmatch (Depends-on): Add arg-nonnull.
77942         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
77943         * modules/getopt-posix (Depends-on): Add arg-nonnull.
77944         (Makefile.am): Insert arg-nonnull.h into getopt.h.
77945         * modules/glob (Depends-on): Add arg-nonnull.
77946         (Makefile.am): Insert arg-nonnull.h into glob.h.
77947         * modules/iconv_open (Depends-on): Add arg-nonnull.
77948         (Makefile.am): Insert arg-nonnull.h into iconv.h.
77949         * modules/inttypes (Depends-on): Add arg-nonnull.
77950         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
77951         * modules/locale (Depends-on): Add arg-nonnull.
77952         (Makefile.am): Insert arg-nonnull.h into locale.h.
77953         * modules/math (Depends-on): Add arg-nonnull.
77954         (Makefile.am): Insert arg-nonnull.h into math.h.
77955         * modules/netdb (Depends-on): Add arg-nonnull.
77956         (Makefile.am): Insert arg-nonnull.h into netdb.h.
77957         * modules/search (Depends-on): Add arg-nonnull.
77958         (Makefile.am): Insert arg-nonnull.h into search.h.
77959         * modules/signal (Depends-on): Add arg-nonnull.
77960         (Makefile.am): Insert arg-nonnull.h into signal.h.
77961         * modules/spawn (Depends-on): Add arg-nonnull.
77962         (Makefile.am): Insert arg-nonnull.h into spawn.h.
77963         * modules/stdio (Depends-on): Add arg-nonnull.
77964         (Makefile.am): Insert arg-nonnull.h into stdio.h.
77965         * modules/stdlib (Depends-on): Add arg-nonnull.
77966         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
77967         * modules/string (Depends-on): Add arg-nonnull.
77968         (Makefile.am): Insert arg-nonnull.h into string.h.
77969         * modules/strings (Depends-on): Add arg-nonnull.
77970         (Makefile.am): Insert arg-nonnull.h into strings.h.
77971         * modules/sys_socket (Depends-on): Add arg-nonnull.
77972         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
77973         * modules/sys_stat (Depends-on): Add arg-nonnull.
77974         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
77975         * modules/sys_time (Depends-on): Add arg-nonnull.
77976         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
77977         * modules/sys_times (Depends-on): Add arg-nonnull.
77978         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
77979         * modules/sys_utsname (Depends-on): Add arg-nonnull.
77980         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
77981         * modules/time (Depends-on): Add arg-nonnull.
77982         (Makefile.am): Insert arg-nonnull.h into time.h.
77983         * modules/unistd (Depends-on): Add arg-nonnull.
77984         (Makefile.am): Insert arg-nonnull.h into unistd.h.
77985         * modules/wchar (Depends-on): Add arg-nonnull.
77986         (Makefile.am): Insert arg-nonnull.h into wchar.h.
77987         * modules/argv-iter (Depends-on): Add arg-nonnull.
77988         * tests/test-canonicalize.c (null_ptr): New function.
77989         (main): Use it.
77990         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
77991         (main): Use it.
77992         * tests/test-memmem.c (null_ptr): New function.
77993         (main): Use it.
77994         Reported by Jim Meyering.
77996 2009-12-10  Bruno Haible  <bruno@clisp.org>
77998         Use spaces for indentation, not tabs.
77999         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
78000         * m4/*.m4: Untabify.
78001         * build-aux/*.h: Untabify.
78002         * tests/**/*.[hc]: Untabify.
78003         * README: New section "Indent with spaces, not TABs", based on
78004         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
78005         * NEWS: Mention the change.
78007 2009-12-10  Bruno Haible  <bruno@clisp.org>
78009         pty test: Fix link error.
78010         * modules/pty-tests (Makefile.am): Add the default LDADD value to
78011         test_pty_LDADD.
78013 2009-12-07  Simon Josefsson  <simon@josefsson.org>
78015         * modules/pty: New file.
78016         * modules/pty-tests: New file.
78017         * m4/pty.m4: New file.
78018         * tests/test-pty.c: New file.
78019         * doc/glibc-headers/pty.texi: Modified.
78020         * doc/glibc-functions/forkpty.texi: Modified.
78021         * doc/glibc-functions/openpty.texi: Modified.
78023 2009-12-10  Bruno Haible  <bruno@clisp.org>
78025         Avoid syntax error in C++ mode.
78026         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
78028 2009-12-10  Bruno Haible  <bruno@clisp.org>
78030         Use sed with option -e.
78031         * gnulib-tool (func_version, func_emit_copyright_notice,
78032         func_emit_initmacro_end, func_import, func_create_testdir): Pass
78033         option -e to sed.
78034         * modules/link-warning (Makefile.am): Likewise.
78036 2009-12-10  Jim Meyering  <meyering@redhat.com>
78038         mgetgroups: do not write bytes beyond end of malloc'd buffer
78039         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
78040         username, we call getgroups with a one-element-shorter buffer,
78041         but still told it the length was original, max_n_groups.
78043 2009-12-09  Eric Blake  <ebb9@byu.net>
78045         cloexec: relax license
78046         * modules/cloexec (Maintainer): Add myself.
78047         (License): Use LGPL, not GPL.
78049         link-warning: optimize generation
78050         * modules/link-warning (Makefile.am): Reduce process usage.
78052 2009-12-09  Bruno Haible  <bruno@clisp.org>
78054         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
78055         workaround was added on 2009-11-17.
78057 2009-12-09  Jim Meyering  <meyering@redhat.com>
78058             Bruno Haible  <bruno@clisp.org>
78060         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
78061         * modules/link-warning (Makefile.am): Make the comment-removing sed
78062         command more robust in the face of bootstrap-prepended comment lines.
78064 2009-12-09  Bruno Haible  <bruno@clisp.org>
78066         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
78067         most one group.
78069 2009-12-09  Simon Josefsson  <simon@josefsson.org>
78070             Bruno Haible  <bruno@clisp.org>
78072         * build-aux/link-warning.h: Add copyright notice.
78073         * modules/link-warning (Makefile.am): Generate link-warning.h from
78074         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
78075         * NEWS: Mention change in link-warning module.
78076         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
78077         * modules/dirent (Makefile.am): Add dependency to dirent.h.
78078         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
78079         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
78080         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
78081         * modules/math (Makefile.am): Add dependency to math.h.
78082         * modules/search (Makefile.am): Add dependency to search.h.
78083         * modules/signal (Makefile.am): Add dependency to signal.h.
78084         * modules/spawn (Makefile.am): Add dependency to spawn.h.
78085         * modules/stdio (Makefile.am): Add dependency to stdio.h.
78086         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
78087         * modules/string (Makefile.am): Add dependency to string.h.
78088         * modules/strings (Makefile.am): Add dependency to strings.h.
78089         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
78090         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
78091         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
78092         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
78093         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
78094         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
78095         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
78096         * modules/unistd (Makefile.am): Add dependency to unistd.h.
78097         * modules/wchar (Makefile.am): Add dependency to wchar.h.
78099 2009-12-09  Bruno Haible  <bruno@clisp.org>
78101         fchdir: Optimize away rpl_fstat when possible.
78102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
78103         REPLACE_OPEN_DIRECTORY.
78104         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
78106 2009-12-09  Bruno Haible  <bruno@clisp.org>
78108         * lib/fchdir.c: Update comment.
78110 2009-12-09  Bruno Haible  <bruno@clisp.org>
78112         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
78114 2009-12-08  Eric Blake  <ebb9@byu.net>
78116         fchdir: avoid memory leak on re-registration.
78117         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
78119 2009-12-08  Jim Meyering  <meyering@redhat.com>
78121         init.sh: avoid Solaris 10 /bin/sh portability problem
78122         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
78123         sourced script:
78124           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
78125           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
78126           bar
78127         tests/init.sh relied on that, accepting a --set-path=DIR argument,
78128         and two tests used that idiom.
78129         * tests/init.sh: Update suggested usage comments.
78130         (path_prepend_): New function, to be used in place
78131         of the --src-path=DIR option.
78132         (setup_): Move PATH-prepending code into path_prepend_.
78133         * tests/test-pread.sh: Adapt to new usage.
78134         * tests/test-xalloc-die.sh: Likewise.
78136 2009-12-08  Simon Josefsson  <simon@josefsson.org>
78138         * doc/gnulib.texi (Glibc pty.h): Add.
78139         * doc/glibc-functions/forkpty.texi: Add.
78140         * doc/glibc-functions/openpty.texi: Add.
78141         Suggested by Bruno Haible.
78143 2009-12-08  Eric Blake  <ebb9@byu.net>
78145         fchdir: fix logic bugs
78146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
78147         * tests/test-fchdir.c (main): Enhance test.
78148         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
78149         is in use.
78151         dup2: fix logic bugs
78152         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
78153         REPLACE_DUP2 to decide when rpl_dup2 is needed.
78154         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
78155         exists.
78156         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
78158 2009-12-07  Eric Blake  <ebb9@byu.net>
78160         unlink: fix m4 detection
78161         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
78163         unistd-safer: add unit test
78164         * modules/unistd-safer-tests: New file.
78165         * tests/test-dup-safer.c: Likewise.
78166         * tests/test-cloexec.c (setmode): Avoid compiler warning.
78167         * tests/test-dup2.c (setmode): Likewise.
78168         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
78170         cloexec: preserve text vs. binary across dup_cloexec
78171         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
78172         mode.
78173         * modules/dup2-tests (Depends-on): Add binary-io.
78174         * modules/cloexec-tests (Depends-on): Likewise.
78175         * tests/test-dup2.c (setmode, is_mode): New helpers.
78176         (main): Add tests that translation mode is preserved.
78177         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
78178         Reported by Bruno Haible.
78180         mgetgroups: reduce duplicate listings
78181         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
78182         resulting array.
78183         * tests/test-chown.h (test_chown): Simplify client.
78184         * tests/test-lchown.h (test_lchown): Likewise.
78186 2009-12-06  Bruno Haible  <bruno@clisp.org>
78188         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
78189         value.
78191 2009-12-06  Bruno Haible  <bruno@clisp.org>
78193         * lib/progname.c: Include stdio.h, stdlib.h.
78194         (set_program_name): Reject a NULL argument.
78196 2009-12-05  Eric Blake  <ebb9@byu.net>
78198         pipe2-safer: new module
78199         * modules/pipe2-safer: New file.
78200         * lib/unistd-safer.h (pipe2_safer): New prototype.
78201         * lib/unistd--.h (pipe2): New wrapper.
78202         * lib/pipe-safer.c (pipe2_safer): New function.
78203         * modules/pipe (Depends-on): Add pipe2-safer.
78204         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
78206         stdlib-safer: preserve cloexec flag for mkostemp[s]
78207         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
78208         fd_safer_flag.
78210         unistd-safer: allow preservation of cloexec status via flag
78211         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
78212         prototypes.
78213         * lib/dup-safer.c (dup_safer_flag): New function.
78214         * lib/fd-safer.c (fd_safer_flag): Likewise.
78215         * modules/cloexec (configure.ac): Set witness.
78217         test-dup2: enhance test
78218         * modules/dup2-tests (Depends-on): Add cloexec.
78219         * tests/test-dup2.c (main): Enhance test.
78221         cloexec: add dup_cloexec
78222         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
78223         header and comments.
78224         * lib/cloexec.c (set_cloexec_flag): Add comments.
78225         (dup_cloexec): New function, with mingw implementation borrowed
78226         from...
78227         * lib/w32spawn.h (dup_noinherit): ...here.
78228         * modules/execute (Depends-on): Add cloexec.
78229         * modules/pipe (Depends-on): Likewise.
78230         * modules/cloexec (Depends-on): Add dup2.
78231         * modules/cloexec-tests (Files): New file.
78232         * tests/test-cloexec.c: Likewise.
78234         test-xalloc-die: fix test for mingw
78235         * modules/xalloc-die-tests (Files): Add tests/init.sh.
78236         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
78237         directory and .exe suffix off argv[0] output.
78239         test-fseeko: fix test for mingw
78240         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
78241         than undefining fseek, so test will pass on mingw.
78243 2009-12-05  Bruno Haible  <bruno@clisp.org>
78245         * lib/progname.h (set_program_name): Clarify specification.
78246         * lib/progname.c (set_program_name): Likewise.
78247         Reported by Jim Meyering.
78249 2009-12-05  Jim Meyering  <meyering@redhat.com>
78251         maint.mk: backslash-escape parens in default regexp
78252         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
78253         backslash-escape the literal parentheses.
78255         maint.mk: news-date-check: use grep -E
78256         * top/maint.mk (today): Define a Make variable, not a...
78257         (news-date-check): ...shell variable.
78258         (news-date-regexp): Use the Make variable.
78259         Use grep's -E option.  Change the failing diagnostic to mention
78260         the variable, $(news-date-regexp).
78262 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
78264         maintainer-makefile: allow customization of NEWS entry format
78265         * top/maint.mk (news-date-regexp): New overridable variable.
78266         (news-date-check): Use it.
78268 2009-12-04  Eric Blake  <ebb9@byu.net>
78270         mgetgroups: add xgetgroups, and avoid ENOSYS failures
78271         * lib/mgetgroups.h (xgetgroups): New prototype.
78272         * lib/mgetgroups.c (xgetgroups): New wrapper.
78273         (mgetgroups): Handle ENOSYS.
78274         * modules/mgetgroups (Depends-on): Add realloc.
78275         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
78277         mgetgroups: avoid argument promotion issues with -1
78278         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
78279         for invalid gid_t.
78280         * tests/test-chown.h (getegid, test_chown): Likewise.
78281         * tests/test-lchown.h (getegid, test_lchown): Likewise.
78283 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
78285         exclude: Fix header file problems.
78286         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
78288 2009-12-01  Jim Meyering  <meyering@redhat.com>
78290         fts: fts_open: do not let an empty string cause immediate failure
78291         This is required in support of GNU rm, for which the command
78292         "rm A '' B" must process and remove both A and B, in spite of
78293         the empty string argument.
78294         * lib/fts.c (fts_open): Do not let the presence of an empty string
78295         cause fts_open to fail immediately.  Most fts-using tools must be
78296         able to process all arguments, in order, and can be expected to
78297         diagnose such arguments themselves.
78299 2009-11-30  Eric Blake  <ebb9@byu.net>
78301         utimens: fix compilation error
78302         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
78303         Declare variable at right scope.
78305 2009-11-29  Jim Meyering  <meyering@redhat.com>
78307         bootstrap: handle perl-5.11's changed --version output
78308         * build-aux/bootstrap (get_version): Handle perl separately,
78309         since perl-5.11's --version output is different.
78311 2009-11-28  Jim Meyering  <meyering@redhat.com>
78313         userspec: depend on the inttostr module, too
78314         * modules/userspec (Depends-on): Add inttostr.
78316         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
78317         * lib/userspec.c (parse_with_separator): Do not accept a user ID
78318         number of MAXUID when it evaluates to (uid_t) -1.
78319         Likewise for group ID.  Reported by Matt McCutchen in
78320         <http://savannah.gnu.org/bugs/?28113>
78322         userspec: reformat to use spaces, not TABs
78323         * lib/userspec.c: Expand TABs to spaces.
78324         Add Emacs' "indent-tabs-mode: nil" hint.
78326 2009-11-27  Eric Blake  <ebb9@byu.net>
78328         getopt-gnu: flush out another BSD bug
78329         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
78330         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
78331         flush out BSD bug.
78332         * tests/test-getopt.h (test_getopt): End lists with NULL.
78333         * tests/test-getopt_long.h (test_getopt_long): Likewise.
78334         (test_getopt_long_posix): Enhance test.
78335         * modules/getopt-posix-tests (Depends-on): Add stdbool.
78336         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
78337         getopt-gnu.
78338         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
78339         Likewise.
78341 2009-11-27  Simon Josefsson  <simon@josefsson.org>
78343         * modules/idpriv-droptemp-tests (Notice): Fix text.
78345 2009-11-27  Jim Meyering  <meyering@redhat.com>
78347         test-xalloc-die: avoid spurious failure due to libtool argv difference
78348         In a libtool-enabled project, this test would fail due to a difference
78349         in the emitted program name, e.g.,
78350         -test-xalloc-die: memory exhausted
78351         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
78352         Use program to avoid that.
78353         * modules/xalloc-die-tests (Depends-on): Add progname.
78354         * tests/test-xalloc-die.c: Include progname.h".
78355         (program_name): Remove decl.
78356         (main): Call set_program_name.
78357         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
78359 2009-11-26  Richard Jones  <rjones@redhat.com>
78361         w32sock: leave win32 error in place.
78362         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
78364 2009-11-26  Eric Blake  <ebb9@byu.net>
78366         init.sh: suggest to use skip_ and fail_ functions in comments
78367         * tests/init.sh: Add a sentence.
78369 2009-11-25  Bruno Haible  <bruno@clisp.org>
78371         init.sh: add documentation in comments
78372         * tests/init.sh: Add some developer and user documentation.
78374 2009-11-26  Jim Meyering  <meyering@redhat.com>
78376         init.sh: accommodate even those who specify bogus srcdir manually
78377         * tests/init.sh: Normally, srcdir is guaranteed by automake and
78378         configure-time tests to be sanitized, so that there is no need to
78379         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
78380         (with no double quotes) suffices.  However, since tests may be
78381         invoked manually, and since you may explicitly set srcdir to the
78382         name of a directory containing spaces, do quote its uses here.
78383         * tests/test-pread.sh: Likewise.
78384         Suggested by Bruno Haible.
78386         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
78387         * tests/test-pread.sh: Write no data into the pipe, because
78388         test-pread actually reads none.  This avoids a diagnostic,
78389         "bash: echo: write error: Broken pipe", that arises in the unusual
78390         event something is ignoring SIGPIPE, and might be interpreted
78391         as some sort of failure.  Reported by Bruno Haible.
78393 2009-11-25  Jim Meyering  <meyering@redhat.com>
78395         test-pread: cover failure with ESPIPE and EINVAL
78396         * tests/test-pread.c (main): Test for failure, too.
78397         * tests/test-pread.sh: Invoke with stdin on a pipe.
78398         Suggested by Eric Blake.
78400         pread: improvement and fix
78401         * modules/pread (Depends-on): Depend on lseek, for portability to
78402         e.g., mingw.  Suggested by Eric Blake.
78403         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
78405         unistd.in.h: correct declaration of pread
78406         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
78407         Reported by Richard W.M. Jones.
78409         test-pread.sh: distribute the test script
78410         * modules/pread-tests (Files): Include test-pread.sh.
78412         test-pread.sh: clean up
78413         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
78414         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
78415         That is unnecessary, since it's always ".".
78416         Suggestion from Eric Blake.
78418         test-pread.sh: make executable
78419         * tests/test-pread.sh: Set executable bit.
78420         Reported by Eric Blake.
78422         correct typo in test-pread.sh
78423         * tests/test-pread.sh: Add #! line.
78425         test pread
78426         * tests/test-pread.c: New file.
78427         * tests/test-pread.sh: Likewise.
78428         * modules/pread-tests: Likewise.
78430         pread: new module
78431         * modules/pread: New file.
78432         * lib/unistd.in.h (pread): Define/declare.
78433         * lib/pread.c (pread): New file.
78434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
78435         * modules/unistd (Makefile.am): Substitute witnesses.
78436         * doc/posix-functions/pread.texi (pread): Update.
78437         * MODULES.html.sh: Add pread.
78439 2009-11-25  Jim Meyering  <meyering@redhat.com>
78441         tests/init.sh: new file to be used via most *.sh tests
78442         * tests/init.sh: New file.
78444 2009-11-25  Eric Blake  <ebb9@byu.net>
78446         utimens: work around older Linux failure with symlinks
78447         * lib/utimens.c (lutimensat_works_really): New variable.
78448         (fdutimens, lutimens): Use it to manage kernels that support
78449         nanosecond times on files, but not on symlinks.
78450         Reported by Ondřej Vašík.
78452         utimes: fix configure grammar
78453         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
78455 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
78457         regex: Fix fastmap for multibyte character ranges.
78458         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
78459         characters when a multibyte character range is included.
78461 2009-11-22  Andy Wingo  <wingo@pobox.com>
78463         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
78464         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
78466 2009-11-24  Bruno Haible  <bruno@clisp.org>
78468         doc: Most *_l functions exist in MacOS X 10.5.
78469         * doc/posix-functions/duplocale.texi: Update platforms list.
78470         * doc/posix-functions/freelocale.texi: Likewise.
78471         * doc/posix-functions/newlocale.texi: Likewise.
78472         * doc/posix-functions/uselocale.texi: Likewise.
78473         * doc/posix-functions/isalnum_l.texi: Likewise.
78474         * doc/posix-functions/isalpha_l.texi: Likewise.
78475         * doc/posix-functions/isblank_l.texi: Likewise.
78476         * doc/posix-functions/iscntrl_l.texi: Likewise.
78477         * doc/posix-functions/isdigit_l.texi: Likewise.
78478         * doc/posix-functions/isgraph_l.texi: Likewise.
78479         * doc/posix-functions/islower_l.texi: Likewise.
78480         * doc/posix-functions/isprint_l.texi: Likewise.
78481         * doc/posix-functions/ispunct_l.texi: Likewise.
78482         * doc/posix-functions/isspace_l.texi: Likewise.
78483         * doc/posix-functions/isupper_l.texi: Likewise.
78484         * doc/posix-functions/iswalnum_l.texi: Likewise.
78485         * doc/posix-functions/iswalpha_l.texi: Likewise.
78486         * doc/posix-functions/iswblank_l.texi: Likewise.
78487         * doc/posix-functions/iswcntrl_l.texi: Likewise.
78488         * doc/posix-functions/iswctype_l.texi: Likewise.
78489         * doc/posix-functions/iswdigit_l.texi: Likewise.
78490         * doc/posix-functions/iswgraph_l.texi: Likewise.
78491         * doc/posix-functions/iswlower_l.texi: Likewise.
78492         * doc/posix-functions/iswprint_l.texi: Likewise.
78493         * doc/posix-functions/iswpunct_l.texi: Likewise.
78494         * doc/posix-functions/iswspace_l.texi: Likewise.
78495         * doc/posix-functions/iswupper_l.texi: Likewise.
78496         * doc/posix-functions/iswxdigit_l.texi: Likewise.
78497         * doc/posix-functions/isxdigit_l.texi: Likewise.
78498         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
78499         * doc/posix-functions/strcasecmp_l.texi: Likewise.
78500         * doc/posix-functions/strcoll_l.texi: Likewise.
78501         * doc/posix-functions/strfmon_l.texi: Likewise.
78502         * doc/posix-functions/strftime_l.texi: Likewise.
78503         * doc/posix-functions/strncasecmp_l.texi: Likewise.
78504         * doc/posix-functions/strxfrm_l.texi: Likewise.
78505         * doc/posix-functions/tolower_l.texi: Likewise.
78506         * doc/posix-functions/toupper_l.texi: Likewise.
78507         * doc/posix-functions/towctrans_l.texi: Likewise.
78508         * doc/posix-functions/towlower_l.texi: Likewise.
78509         * doc/posix-functions/towupper_l.texi: Likewise.
78510         * doc/posix-functions/wcscoll_l.texi: Likewise.
78511         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
78512         * doc/posix-functions/wctrans_l.texi: Likewise.
78513         * doc/posix-functions/wctype_l.texi: Likewise.
78514         * doc/glibc-functions/strptime_l.texi: Likewise.
78515         * doc/glibc-functions/strtod_l.texi: Likewise.
78516         * doc/glibc-functions/strtof_l.texi: Likewise.
78517         * doc/glibc-functions/strtol_l.texi: Likewise.
78518         * doc/glibc-functions/strtold_l.texi: Likewise.
78519         * doc/glibc-functions/strtoll_l.texi: Likewise.
78520         * doc/glibc-functions/strtoul_l.texi: Likewise.
78521         * doc/glibc-functions/strtoull_l.texi: Likewise.
78522         * doc/glibc-functions/wcsftime_l.texi: Likewise.
78523         * doc/glibc-functions/wcstod_l.texi: Likewise.
78524         * doc/glibc-functions/wcstof_l.texi: Likewise.
78525         * doc/glibc-functions/wcstol_l.texi: Likewise.
78526         * doc/glibc-functions/wcstold_l.texi: Likewise.
78527         * doc/glibc-functions/wcstoll_l.texi: Likewise.
78528         * doc/glibc-functions/wcstoul_l.texi: Likewise.
78529         * doc/glibc-functions/wcstoull_l.texi: Likewise.
78531 2009-11-24  Bruno Haible  <bruno@clisp.org>
78533         duplocale: Fix logic bug.
78534         * lib/duplocale.c: Don't include <langinfo.h>.
78535         (_NL_LOCALE_NAME): Remove macro.
78536         (rpl_duplocale): Use setlocale instead of nl_langinfo.
78537         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
78539 2009-11-23  Jim Meyering  <meyering@redhat.com>
78541         test-update-copyright: don't hard-code /usr/bin/perl
78542         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
78543         perl to print the current year.  Gilles Espinasse reported that
78544         the replaced use of perl was hard-coded as /usr/bin/perl.
78546 2009-11-23  Bruno Haible  <bruno@clisp.org>
78548         duplocale: Add support for glibc 2.3.x.
78549         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
78551 2009-11-22  Bruno Haible  <bruno@clisp.org>
78553         vasnprintf: Tiny optimization.
78554         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
78555         MacOS X.
78557 2009-11-22  Bruno Haible  <bruno@clisp.org>
78559         Tests for module 'duplocale'.
78560         * modules/duplocale-tests: New file.
78561         * tests/test-duplocale.c: New file.
78563         New module 'duplocale'.
78564         * m4/duplocale.m4: New file.
78565         * lib/locale.in.h (duplocale): New declaration.
78566         * lib/duplocale.c: New file.
78567         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
78568         gl_LOCALE_H_DEFAULTS): New macros.
78569         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
78570         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
78571         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
78572         REPLACE_DUPLOCALE.
78573         * modules/duplocale: New file.
78574         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
78576 2009-11-22  Bruno Haible  <bruno@clisp.org>
78578         * modules/locale-tests (configure.ac): Test for newlocale function.
78579         * tests/test-locale.c: When the system has extended locale functions,
78580         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
78582         locale: Make locale_t available when possible.
78583         * lib/locale.in.h: Include <xlocale.h> when it exists.
78584         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
78585         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
78586         * modules/locale (Depends-on): Add extensions.
78587         (Makefile.am): Also substitute HAVE_XLOCALE_H.
78588         * doc/posix-headers/locale.texi: Document the problem with locale_t.
78590 2009-11-22  Bruno Haible  <bruno@clisp.org>
78592         Add comments.
78593         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
78594         invocation.
78595         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
78596         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
78597         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78599 2009-11-22  Bruno Haible  <bruno@clisp.org>
78601         error: account for the possibility of freopen (stdout).
78602         * lib/error.c: Include <unistd.h>.
78603         (flush_stdout): New function, extracted from error and error_at_line.
78604         Determine stdout's fd dynamically.
78605         (error, error_at_line): Invoke flush_stdout.
78606         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
78607         * modules/error (Depends-on): Add unistd.
78609 2009-11-22  Bruno Haible  <bruno@clisp.org>
78611         diffseq: Add comment.
78612         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
78614 2009-11-22  Jim Meyering  <meyering@redhat.com>
78616         c-stack: avoid defining an unused static function
78617         * lib/c-stack.c (find_stack_direction): Do not define this function
78618         when it will not be used.
78620         diffseq: avoid spurious gcc warnings
78621         * lib/diffseq.h (IF_LINT2): Define.
78622         (compareseq): Use it to initialize two members of "part".
78623         This avoids two used-uninitialized warnings.
78625 2009-11-21  Jim Meyering  <meyering@redhat.com>
78627         c-stack: avoid "ignoring return value of `write'" warning
78628         * lib/c-stack.c: Include "ignore-value.h".
78629         (die): Explicitly ignore each write return value.
78630         * modules/c-stack (Depends-on): Add ignore-value.
78632 2009-11-21  Bruno Haible  <bruno@clisp.org>
78634         diffseq: reduce scope of variable 'best'.
78635         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
78636         variable, earlier used for two different purposes.
78638 2009-11-21  Jim Meyering  <meyering@redhat.com>
78640         diffseq: remove useless assignment to "best"
78641         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
78642         assignment.  At that point "best" is already guaranteed to be zero.
78644 2009-11-20  Eric Blake  <ebb9@byu.net>
78646         build: mention ftp redirector in release announcements
78647         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
78648         values that used to come from cfg.mk; mention FTP redirect URL.
78649         * build-aux/announce-gen: Mention the mirror list.
78650         Suggested by Karl Berry.
78652         nanosleep: improve port to mingw
78653         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
78654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
78655         LIB_NANOSLEEP, but only when needed.
78656         * modules/select (Link): Document LIBSOCKET.
78657         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
78658         enough.
78660         nanosleep: work around cygwin bug
78661         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
78662         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
78663         bug.
78664         (getnow): Delete, not needed.
78665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
78666         LIB_CLOCK_GETTIME.
78667         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
78668         clock-time, gettime.
78669         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
78670         bug.
78671         * modules/nanosleep-tests: New test.
78672         * tests/test-nanosleep.c: New file.
78674         sleep: work around cygwin bug
78675         * lib/sleep.c (rpl_sleep): Work around the bug.
78676         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
78677         (gl_PREREQ_SLEEP): Delete unused macro.
78678         * modules/sleep (Depends-on): Add verify.
78679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78680         * modules/unistd (Makefile.am): Substitute witness.
78681         * lib/unistd.in.h (sleep): Update prototype.
78682         * doc/posix-functions/sleep.texi (sleep): Document the bug.
78683         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
78684         * modules/sleep-tests (Depends-on): Check for alarm.
78686 2009-11-20  Jim Meyering  <meyering@redhat.com>
78688         maint.mk: improve sc_prohibit_magic_number_exit
78689         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
78690         so it does not match uses like System.exit(1).
78691         Add comments showing how to correct all offenders.
78693 2009-11-19  Eric Blake  <ebb9@byu.net>
78695         xalloc-die-tests: add missing library
78696         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
78698         test-xvasprintf: silence compiler warnings
78699         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
78700         empty string from gcc.
78702 2009-11-19  Jim Meyering  <meyering@redhat.com>
78704         xfreopen: new module, from coreutils
78705         * modules/xfreopen: New module.
78706         * lib/xfreopen.c: New file.
78707         * lib/xfreopen.h: New file.
78708         * MODULES.html.sh (File stream based Input/Output"): Add it.
78710 2009-11-19  Eric Blake  <ebb9@byu.net>
78712         manywarnings: depend on warnings
78713         * modules/manywarnings (Depends-on): Add warnings.
78715         build: avoid compiler warnings
78716         * lib/select.c (rpl_select): Delete unused variable.
78717         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
78719 2009-11-18  Eric Blake  <ebb9@byu.net>
78721         tests: avoid false negative with --with-packager
78722         * tests/test-version-etc.sh: Discard packager information.
78723         * tests/test-argp-version-etc-1.sh: Likewise.
78724         Reported by Mike Frysinger.
78726         utimens: fix regression on Solaris
78727         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
78728         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
78729         can only change fd timestamps via futimesat.  Instead, use an
78730         additional witness macro to avoid BSD bug.
78731         Reported by Jim Meyering.
78733 2009-11-17  Eric Blake  <ebb9@byu.net>
78735         usleep: use it to simplify tests
78736         * modules/stat-time-tests (Depends-on): Add usleep.
78737         (configure.ac): Drop usleep check.
78738         * modules/chown-tests (Depends-on, configure.ac): Likewise.
78739         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
78740         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
78741         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
78742         * modules/openat-tests (Depends-on, configure.ac): Likewise.
78743         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
78744         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
78745         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
78746         Likewise.
78747         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
78748         * tests/test-lchown.h (nap): Likewise.
78749         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
78750         * tests/test-stat-time.c (nap): Likewise.
78751         * tests/test-utimens-common.h (nap): Update comments.
78753         usleep: new module
78754         * modules/usleep: New file.
78755         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
78756         * lib/usleep.c (usleep): Likewise.
78757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78758         * modules/unistd (Makefile.am): Substitute witnesses.
78759         * lib/unistd.in.h (usleep): Add declaration.
78760         * doc/pastposix-functions/usleep.texi (usleep): Document this.
78761         * MODULES.html.sh (Date and time): Likewise.
78762         * modules/usleep-tests (Depends-on): New test.
78763         * tests/test-usleep.c: New file.
78765         chown: work around OpenBSD bug
78766         * lib/chown.c (rpl_chown): Work around the bug.
78767         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
78768         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
78769         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
78770         * modules/chown (Depends-on): Add stdbool.
78771         * modules/lchown (Depends-on): Likewise.
78772         * doc/posix-functions/chown.texi (chown): Document the bug.
78773         * doc/posix-functions/lchown.texi (lchown): Likewise.
78774         * tests/test-lchown.h (test_chown): Relax test.
78776         mkstemp: avoid conflict with C++ keyword template
78777         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
78778         * lib/mkostemp.c (mkostemp): Likewise.
78779         * lib/mkostemps.c (mkostemps): Likewise.
78780         * lib/mkstemp.c (mkstemp): Likewise.
78781         * lib/mkstemps.c (mkstemps): Likewise.
78783         xalloc-die-tests: optimize
78784         * tests/test-xalloc-die.sh: Reduce number of processes.
78786 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78788         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
78789         patch from ludo@gnu.org (Ludovic Courtès).
78791 2009-11-17  Jim Meyering  <meyering@redhat.com>
78793         version-etc: use proper license string
78794         * modules/version-etc (License): Use LGPL, not LGPLv3+.
78795         * modules/version-etc-fsf: Likewise.
78797 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78799         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
78800         printed to stdout.  Deal with EOL differences.
78802 2009-11-17  Eric Blake  <ebb9@byu.net>
78804         unsetenv: work around Solaris bug
78805         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
78806         * lib/unsetenv.c (rpl_unsetenv): Work around it.
78807         Reported by Jim Meyering.
78809         vasnprintf: avoid compiler warnings
78810         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
78811         variables.
78812         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
78814 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78816         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
78817         settings since xalloc-die is no longer the self test,
78818         xalloc-die.sh is.
78820 2009-11-17  Jim Meyering  <meyering@redhat.com>
78822         test-xalloc-die.sh: make the code agree with the commit log
78823         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
78824         at the end, just in case you happen to have a test-xalloc-die
78825         program in some other PATH directory.
78827         test-xalloc-die.sh: fix a portability bug
78828         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
78829         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
78830         Otherwise, argv[0] (as often seen in diagnostics) would be too
78831         system-dependent, sometimes with, and sometimes without the leading "./".
78833         version-etc-fsf: relax license to LGPLv3+
78834         * modules/version-etc-fsf (License): Relax license.
78836 2009-11-16  Eric Blake  <ebb9@byu.net>
78838         xalloc-die-tests: avoid printing null pointer
78839         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
78840         shell script.
78841         * tests/test-xalloc-die.c (program_name): Declare.
78842         * tests/test-xalloc-die.sh (tmpfiles): New file.
78844         setenv, unsetenv: work around various bugs
78845         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
78846         (setenv) [HAVE_SETENV]: Work around bugs.
78847         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
78848         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
78849         for bugs.
78850         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
78851         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
78852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
78853         * modules/stdlib (Makefile.am): Update substitutions.
78854         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
78855         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
78856         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
78857         * modules/setenv-tests: New test.
78858         * modules/unsetenv-tests: Likewise.
78859         * tests/test-setenv.c: New file.
78860         * tests/test-unsetenv.c: Likewise.
78862 2009-11-16  Jim Meyering  <meyering@redhat.com>
78864         version-etc: relax license to LGPLv3+
78865         * modules/version-etc (License): Relax license.
78867         better AC_REQUIRE expanded-before-required-warning avoidance
78868         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
78869         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
78870         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
78871         which is no longer needed.
78873 2009-11-16  Eric Blake  <ebb9@byu.net>
78875         test-freading: clean up temporary file
78876         * tests/test-freading.c (main): Remove file on success, and use
78877         ASSERT more liberally.
78878         Reported by Jim Meyering.
78880 2009-11-16  Jim Meyering  <meyering@redhat.com>
78882         avoid new AC_REQUIRE expanded-before-required warnings
78883         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
78884         merely using it.
78885         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
78886         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
78888 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78890         * tests/test-xalloc-die.c: New file.
78891         * modules/xalloc-die-tests: New file.
78892         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
78893         XFAIL_TESTS so it can be appended by modules.
78895 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78897         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
78898         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
78900 2009-11-14  Eric Blake  <ebb9@byu.net>
78902         fnmatch: avoid compiler warning
78903         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
78904         to silence compiler warning about mismatch signedness in ?:.
78905         Reported by Robert Millan.
78907         intprops: add double-inclusion guard
78908         * lib/intprops.h: Allow idempotent includes.
78909         Suggested by Bruce Korb.
78911         openat: detect Solaris fchownat bug
78912         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
78913         penalizing glibc chownat when only lchownat is broken.
78914         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
78915         trailing slash bugs.
78916         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
78917         * modules/openat-tests (Files): Include more files.
78918         (Depends-on): Add mgetgroups, sleep, stat-time.
78919         (configure.ac): Add additional checks.
78920         (Makefile.am): Build new test.
78921         * tests/test-fchownat.c: New file.
78923         lchown: detect Solaris and FreeBSD bug
78924         * lib/lchown.c (rpl_lchown): Work around bug.
78925         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
78926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78927         * modules/unistd (Makefile.am): Populate it.
78928         * lib/unistd.in.h (lchown): Update declaration.
78929         * doc/posix-functions/lchown.texi (lchown): Document the bug.
78930         * modules/lchown-tests: New file.
78931         * tests/test-lchown.h (test_lchown): Likewise.
78932         * tests/test-lchown.c (main): Likewise.
78934         chown: detect Solaris and FreeBSD bug
78935         * lib/chown.c (rpl_chown): Work around bug.
78936         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
78937         (gl_PREREQ_CHOWN): Delete.
78938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78939         * modules/unistd (Makefile.am): Populate it.
78940         * lib/unistd.in.h (chown): Update declaration.
78941         * lib/lchown.c (chown): Update client.
78942         * modules/lchown (Depends-on): Add lstat.
78943         * doc/posix-functions/chown.texi (chown): Document the bug.
78944         * doc/posix-functions/getgroups.texi (getgroups): Document
78945         getgroups pitfall.
78946         * modules/chown-tests: New file.
78947         * tests/test-chown.h (test_chown): Likewise.
78948         * tests/test-chown.c (main): Likewise.
78950 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
78952         gnulib-tool: correctly detect absence of m4 directories
78953         * gnulib-tool: Avoid extra newline on data passed to wc -l.
78955 2009-11-14  Jim Meyering  <meyering@redhat.com>
78957         maint.mk: Prohibit inclusion of "xalloc.h" without use.
78958         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78960 2009-11-14  John W. Eaton  <jwe@gnu.org>
78962         strftime.h: wrap function declaration in extern "C" block
78963         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
78965 2009-11-13  Eric Blake  <ebb9@byu.net>
78967         getgroups: avoid compiler warning
78968         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
78970         getgroups: work around FreeBSD bug
78971         * lib/getgroups.c (rpl_getgroups): Work around the bug.
78972         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
78973         * doc/posix-functions/getgroups.texi (getgroups): Document it.
78974         * tests/test-getgroups.c (main): Fix buffer overrun.
78976         getgroups: avoid compilation failure
78977         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
78978         * modules/getgroups (Depends-on): Add stdint.
78980 2009-11-13  Jim Meyering  <meyering@redhat.com>
78982         test-getgroups: avoid compilation failure
78983         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
78985 2009-11-13  Eric Blake  <ebb9@byu.net>
78987         mgetgroups: new module, taken from coreutils
78988         * modules/mgetgroups: New file.
78989         * lib/mgetgroups.h: Likewise.
78990         * lib/mgetgroups.c (mgetgroups): Likewise.
78991         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
78992         * MODULES.html.sh (Users and groups): Mention it.
78994         getgroups: don't expose GETGROUPS_T to user
78995         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
78996         an element at a time if GETGROUPS_T is wrong size.
78997         * lib/getugroups.h (getugroups): Change signature.
78998         * lib/unistd.in.h (getgroups): Likewise.
78999         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
79000         signature needs fixing.
79001         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
79002         AC_TYPE_GETGROUPS.
79003         * modules/group-member (Depends-on): Add getgroups.
79004         * lib/group-member.c (group_info, get_group_info): Use gid_t.
79005         (group_member): Rely on getgroups replacement.
79006         * lib/getugroups.c (getugroups): Use gid_t.
79007         * tests/test-getgroups.c (main): Likewise.
79008         * NEWS: Mention the signature change.
79009         * doc/posix-functions/getgroups.texi (getgroups): Mention the
79010         problem with signature.
79011         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
79012         GETGROUPS_T is still useful for setgroups.
79014         getgroups, getugroups: provide stubs for mingw
79015         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
79016         * lib/getugroups.c (getugroups): Likewise.
79017         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
79018         function.  Modernize replacement scheme.
79019         (gl_PREREQ_GETGROUPS): Delete.
79020         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
79021         * modules/getgroups (configure.ac): Declare witness.
79022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
79023         * modules/unistd (Depends-on): Substitute witness.
79024         * lib/unistd.in.h (getgroups): Declare replacement.
79026         getgroups: avoid calling exit
79027         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
79028         drop xalloc.
79029         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
79030         dependencies.
79031         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
79032         exiting, in the rare case of malloc failure.
79034         getgroups: fix logic error
79035         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
79036         has more than 20 groups.
79037         * modules/getgroups-tests: New test.
79038         * tests/test-getgroups.c: New file.
79040 2009-11-13  Simon Josefsson  <simon@josefsson.org>
79042         * tests/test-base64.c: Improve.
79044 2009-11-13  Simon Josefsson  <simon@josefsson.org>
79046         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
79047         Blake <ebb9@byu.net>.
79049 2009-11-13  Simon Josefsson  <simon@josefsson.org>
79051         * tests/test-xvasprintf.c: Add %s%s related checks.
79053 2009-11-12  Eric Blake  <ebb9@byu.net>
79055         version-etc: match standards.texi style
79056         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
79057         and use <> only for URLs.
79059 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
79061         fts: do not fail on a submount during traversal
79062         * lib/fts.c (fts_build): Read the stat info again after opening
79063         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
79064         Original report at http://bugzilla.redhat.com/501848.
79066 2009-11-12  Jim Meyering  <meyering@redhat.com>
79068         bootstrap: sync from coreutils
79069         * build-aux/bootstrap (bootstrap_epilogue): New function.
79070         Use git_modules_config in one more place.  This make bootstrap's
79071         --gnulib-srcdir option more useful for testing.
79073         bootstrap: generalize autoheader check
79074         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
79075         AC_CONFIG_HEADERS.
79077 2009-11-11  Eric Blake  <ebb9@byu.net>
79079         mkfifoat: use new modules for Solaris and BSD bugs
79080         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
79081         * lib/mkfifoat.c (mknodat): Split...
79082         * lib/mknodat.c (mknodat): ...into new file.
79083         * modules/mkfifoat (Files): Ship new file.
79084         (Depends-on): Add mkfifo, mknod.
79085         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
79086         (Depends-on): Add symlink.
79087         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
79088         redundant with test_mkfifo.h.
79089         (do_mkfifoat, do_mknodat): New helpers.
79091         mknod: new module
79092         * modules/mknod: New file.
79093         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
79094         * lib/mknod.c (mknod): Likewise.
79095         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
79096         defaults.
79097         * modules/sys_stat (Makefile.am): Substitute them.
79098         * lib/sys_stat.in.h (mknod): Declare replacement.
79099         * MODULES.html.sh (Support for systems lacking POSIX:2008):
79100         Document it.
79101         * doc/posix-functions/mknod.texi (mknod): Likewise.
79102         * modules/mknod-tests: New test.
79103         * tests/test-mknod.c: Likewise.
79105         mkfifo: new module
79106         * modules/mkfifo: New file.
79107         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
79108         * lib/mkfifo.c (mkfifo): Likewise.
79109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
79110         defaults.
79111         * modules/sys_stat (Makefile.am): Substitute them.
79112         * lib/sys_stat.in.h (mkfifo): Declare replacement.
79113         * MODULES.html.sh (Support for systems lacking POSIX:2008):
79114         Document it.
79115         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
79116         * modules/mkfifo-tests: New test.
79117         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
79118         from test-mkfifoat.c.
79119         * tests/test-mkfifo.c: New file.
79121         readlink: detect FreeBSD bug
79122         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
79123         slash on symlink.
79124         * doc/posix-functions/readlink.texi (readlink): Document the bug.
79125         * tests/test-readlink.h (test_readlink): Enhance test.
79127         symlink: detect FreeBSD bug
79128         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
79129         slash on symlink.
79130         * doc/posix-functions/symlink.texi (symlink): Document the bug.
79131         * tests/test-symlink.h (test_symlink): Enhance test.
79133 2009-11-10  Eric Blake  <ebb9@byu.net>
79135         link: detect FreeBSD bug
79136         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
79137         symlink.
79138         * doc/posix-functions/link.texi (link): Document the bug.
79139         * tests/test-link.h (test_link): Enhance test.
79140         * tests/test-linkat.c (main): Update caller.
79142         unlink, remove: detect FreeBSD bug
79143         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
79144         slash on symlink.
79145         * doc/posix-functions/unlink.texi (unlink): Document the bug.
79146         * doc/posix-functions/remove.texi (remove): Likewise.
79147         * tests/test-unlink.h (test_unlink): Enhance test.
79148         * tests/test-remove.c (main): Likewise.
79150 2009-11-09  Eric Blake  <ebb9@byu.net>
79152         rename: detect FreeBSD bug
79153         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
79154         slash on symlink.
79155         * modules/renameat-tests (Depends-on): Add filenamecat.
79156         * tests/test-rename.h (test_rename): Allow one more errno.
79157         * tests/test-renameat.c (main): Likewise.
79158         * doc/posix-functions/rename.texi (rename): Document the bug.
79160         open: detect FreeBSD bug
79161         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
79162         symlink.
79163         * doc/posix-functions/open.texi (open): Document the bug.
79164         * doc/posix-functions/utimes.texi (utimes): Likewise.
79165         * tests/test-open.h (test_open): Add parameters, and test symlink
79166         handling.
79167         * tests/test-open.c (main): Adjust caller.
79168         * tests/test-fcntl-safer.c (main): Likewise.
79169         * modules/open-tests (Depends-on): Add stdbool, symlink.
79170         * modules/fcntl-safer-tests (Depends-on): Likewise.
79171         * tests/test-openat.c (main): Add test-open tests.
79173         stat: detect FreeBSD bug
79174         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
79175         symlink.
79176         * doc/posix-functions/stat.texi (stat): Document the bug.
79177         * tests/test-stat.h (test_stat_func): Add argument.
79178         * tests/test-stat.c (main): Adjust caller.
79179         * tests/test-fstatat.c (main): Likewise.
79180         * modules/stat-tests (Depends-on): Add stdbool, symlink.
79181         Reported by Jim Meyering.
79183 2009-11-09  James Youngman  <jay@gnu.org>
79185         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
79186         * lib/strftime.c: Correct placement of #include "ignore-value.h".
79188 2009-11-08  Jim Meyering  <meyering@redhat.com>
79190         utimens: remove invalid futimesat call
79191         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
79192         It used the file descriptor of the target file as the DIR_FD
79193         parameter and NULL as the file name.  That caused failure with
79194         errno == EFAULT on FreeBSD-8.0-rc2
79196 2009-11-07  Eric Blake  <ebb9@byu.net>
79198         fflush, freadseek: use fseeko, not fseek
79199         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
79200         (clear_ungetc_buffer): Avoid potential problems on large files.
79201         * lib/freadseek.c (freadseek): Likewise.
79202         * modules/freadseek (Depends-on): Add fseeko.
79203         * modules/fseek (configure.ac): Set a witness.
79204         * tests/test-fflush.c (main): Use fseeko.
79205         * tests/test-fpurge.c (fseek): Disable link warning.
79206         * tests/test-freadable.c (fseek): Likewise.
79207         * tests/test-freading.c (fseek): Likewise.
79208         * tests/test-fseeko.c (fseek): Likewise.
79209         * tests/test-ftell.c (fseek): Likewise.
79210         * tests/test-ftello.c (fseek): Likewise.
79211         * tests/test-fwritable.c (fseek): Likewise.
79212         * tests/test-fwriting.c (fseek): Likewise.
79214 2009-11-06  Simon Josefsson  <simon@josefsson.org>
79216         * modules/memchr (Depends-on): Drop getpagesize dependency.
79218 2009-11-06  Simon Josefsson  <simon@josefsson.org>
79220         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
79221         Reported by Ludovic Courtès.
79222         * build-aux/pmccabe2html: Improve example usage.
79223         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
79225 2009-11-06  Jim Meyering  <meyering@redhat.com>
79227         do-release-commit-and-tag: New module.
79228         Automate the release-commit and tag process.
79229         * build-aux/do-release-commit-and-tag: New script, from coreutils.
79230         * modules/do-release-commit-and-tag: New file.
79231         * MODULES.html.sh (Support for maintaining and releasing): Add it.
79233 2009-11-06  Simon Josefsson  <simon@josefsson.org>
79235         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
79236         because test-select.c uses inet_pton.
79238 2009-11-06  Simon Josefsson  <simon@josefsson.org>
79240         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
79241         GETADDRINFO_LIB.  Bump serial number.
79242         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
79243         Suggested by Eric Blake <ebb9@byu.net>.
79245 2009-11-05  Eric Blake  <ebb9@byu.net>
79247         strtod: detect darwin bug
79248         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
79249         Reported by Leo Davis.
79251         freopen-safer: new module
79252         * modules/freopen-safer: New module.
79253         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
79254         * lib/freopen-safer.c (freopen_safer): New file.
79255         * lib/stdio-safer.h (freopen_safer): New declaration.
79256         * lib/stdio--.h (freopen): New override.
79257         * MODULES.html.sh (File stream based Input/Output): Mention it.
79258         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
79259         freopen-safer module.
79260         * doc/posix-functions/stderr.texi (stderr): Likewise.
79261         * doc/posix-functions/stdin.texi (stdin): Likewise.
79262         * doc/posix-functions/stdout.texi (stdout): Likewise.
79263         * modules/freopen-safer-tests: New test.
79264         * tests/test-reopen-safer.c: New file.
79266 2009-11-05  Jim Meyering  <meyering@redhat.com>
79268         maint.mk: Prohibit inclusion of "close-stream.h" without use.
79269         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
79271 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79273         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
79275 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79277         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
79279 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79281         Fix link error.
79282         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
79283         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79285 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79287         * tests/test-func.c: Also test value of __func__.
79289 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79291         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
79292         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
79294 2009-11-05  Bruno Haible  <bruno@clisp.org>
79296         Fix link error.
79297         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
79298         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79299         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
79301 2009-11-05  Bruno Haible  <bruno@clisp.org>
79303         Tests for module 'inet_pton'.
79304         * modules/inet_pton-tests: New file.
79305         * tests/test-inet_pton.c: New file.
79307 2009-11-05  Bruno Haible  <bruno@clisp.org>
79309         Tests for module 'inet_ntop'.
79310         * modules/inet_ntop-tests: New file.
79311         * tests/test-inet_ntop.c: New file.
79313 2009-11-04  Eric Blake  <ebb9@byu.net>
79315         stdlib-safer: wrap all mkstemp variants
79316         * modules/mkostemp (configure.ac): Set witness.
79317         * modules/mkostemps (configure.ac): Likewise.
79318         * modules/mkstemps (configure.ac): Likewise.
79319         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
79320         (mkstemps_safer): Wrap more functions.
79321         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
79322         wrapping.
79323         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
79324         (mkstemps_safer): Implement the wrappers.
79326         mkstemps, mkostemps: new modules
79327         * modules/mkostemps: New module.
79328         * modules/mkstemps: Likewise.
79329         * lib/mkostemps.c (mkostemps): New file.
79330         * lib/mkstemps.c (mkstemps): Likewise.
79331         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
79332         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
79333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
79334         * modules/stdlib (Makefile.am): Substitute them.
79335         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
79336         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
79337         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
79338         * doc/gnulib.texi (Glibc stdlib.h): Include them.
79339         * MODULES.html.sh (File system functions): Mention them.
79341         tempname: resync from glibc
79342         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
79343         same values for __GT_FILE as glibc.  Abort even when assertions
79344         are disabled.
79345         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
79346         match its value otherwise.  Allow idempotent inclusion.
79347         * lib/mkdtemp.c (mkdtemp): Adjust caller.
79348         * lib/mkostemp.c (mkostemp): Likewise.
79349         * lib/mkstemp.c (mkstemp): Likewise.
79350         * lib/tmpfile.c (tmpfile): Likewise.
79351         * NEWS: Document this.
79353         utimens: fix use of futimens on older Linux
79354         * lib/utimens.c (fdutimens): Use updated, rather than original,
79355         timespec to avoid bug in older Linux kernel.
79356         Reported by Simon Josefsson.
79358 2009-11-04  Bruno Haible  <bruno@clisp.org>
79360         Make num_processors more flexible and consistent.
79361         * lib/nproc.h (enum nproc_query): New type.
79362         (num_processors): Add a 'query' argument.
79363         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
79364         (num_processors): Add a 'query' argument. Test the value of the
79365         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
79366         mingw, count the number of CPUs available for the current process.
79367         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
79368         Check for sched_getaffinity and sched_getaffinity_np.
79369         * modules/nproc (Depends-on): Add c-ctype, extensions.
79370         * NEWS: Mention the change.
79372 2009-11-03  Bruno Haible  <bruno@clisp.org>
79374         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
79376 2009-11-03  Jim Meyering  <meyering@redhat.com>
79378         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
79379         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
79380         if it is defined.
79382 2009-11-02  Eric Blake  <ebb9@byu.net>
79384         mktime, timegm: share common declaration
79385         * lib/mktime-internal.h: New file.
79386         * lib/mktime.c: Use it rather than open-coding a declaration.
79387         * lib/timegm.c: Likewise.
79388         * modules/mktime (Files): Ship it.
79389         * modules/timegm (Files): Likewise.
79390         Suggested by Bruno Haible.
79392         test-update-copyright: update test to match script changes
79393         * tests/test-update-copyright.sh: Avoid hard-coding perl
79394         location.  Don't update *.bak created by earlier runs.
79396 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79397             Simon Josefsson  <simon@josefsson.org>
79398             Bruno Haible  <bruno@clisp.org>
79400         Fix link error on Solaris 8.
79401         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
79402         also in libnsl. Define also INET_PTON_LIB.
79403         * modules/inet_pton (Link): New section.
79405 2009-11-02  Simon Josefsson  <simon@josefsson.org>
79406             Bruno Haible  <bruno@clisp.org>
79408         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
79409         * modules/inet_ntop (Link): New section.
79410         Reported by Boyan Kasarov <bkasarov@gmail.com>.
79412 2009-11-02  Eric Blake  <ebb9@byu.net>
79414         maint: avoid compiler warnings in m4 macros
79415         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
79416         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
79418 2009-11-02  Simon Josefsson  <simon@josefsson.org>
79420         * m4/pmccabe2html.m4: Remove file.
79421         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
79422         function.  Change maintainer.
79423         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
79424         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
79425         Courtès).
79427 2009-10-31  Eric Blake  <ebb9@byu.net>
79429         fseeko: fix m4 regression
79430         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
79431         regression from 2009-10-27.
79432         Reported by Ralf Wildenhues.
79434 2009-10-31  Jim Meyering  <meyering@redhat.com>
79436         inttostr: aesthetics and improved (compile-time) safety
79437         Define inttype_is_signed rather than inttype_is_unsigned,
79438         since the sole use is via "#if inttype_is_signed".
79439         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
79440         inttype_is_unsigned.
79441         * lib/offtostr.c (inttype_is_signed): Likewise.
79442         * lib/uinttostr.c (inttype_is_signed): Likewise.
79443         * lib/umaxtostr.c (inttype_is_signed): Likewise.
79444         * lib/inttostr.c (inttostr): Use verify to cross-check the
79445         inttype_is_signed value and the signedness of the actual type.
79446         * modules/inttostr (Depends-on): Add verify.
79448 2009-10-30  Eric Blake  <ebb9@byu.net>
79450         build: avoid compiler warnings
79451         * lib/fchmodat.c (lchmod): Mark unused variables.
79452         * lib/getopt.c (_getopt_initialize): Likewise.
79453         * lib/mktime.c (__mktime_internal): Provide prototype.
79454         * lib/inttostr.c (inttostr): Avoid compiler warning even with
79455         older gcc that do not understand #pragma GCC diagnostic.
79456         * lib/uinttostr.c (inttype_is_unsigned): Define.
79457         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
79459 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
79461         stat: fix compilation on AIX
79462         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
79463         only see struct stat64.
79465 2009-10-30  Eric Blake  <ebb9@byu.net>
79467         exclude: make more robust
79468         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
79469         rather than masking a coding bug.
79470         Suggested by Bruno Haible.
79472 2009-10-30  Jim Meyering  <meyering@redhat.com>
79474         perl scripts: remove #!/usr/bin/perl in favor of more portable...
79475         Rather than putting #!/usr/bin/perl on the first line,
79476         start with a variant of what's recommended by "man perlrun" that
79477         invokes the first "perl" program from your shell's search path.
79478         * build-aux/gitlog-to-changelog: Replace #!... as above.
79479         Add a "Local Variables" perl mode setting.
79480         Prompted by a patch from Ludovic Courtès.
79481         Improved by Eric Blake.
79482         * build-aux/useless-if-before-free: Likewise.
79483         * build-aux/announce-gen: Likewise.
79484         * build-aux/update-copyright: Likewise.
79486 2009-10-29  Eric Blake  <ebb9@byu.net>
79488         filenamecat-lgpl: adjust clients
79489         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
79490         filenamecat.
79491         * modules/renameat (Depends-on): Likewise.
79493         filenamecat: split into filenamecat-lgpl
79494         * modules/filenamecat-lgpl: New module.
79495         * modules/filenamecat (Files): Move library-safe files into
79496         filenamecat-lgpl.
79497         (Depends-on): Add filenamecat-lgpl.
79498         (configure.ac): Declare witness.
79499         * lib/filenamecat.h (file_name_concat): Only declare when using
79500         GPL module.
79501         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
79502         Move...
79503         * lib/filenamecat-lgpl.c: ...into new file.
79504         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
79505         (gl_FILE_NAME_CONCAT): Use it.
79506         * MODULES.html.sh (File system functions): Mention new module.
79508         argp: avoid memory leak
79509         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
79510         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
79511         base_name, since the latter malloc()s and can call exit().
79512         Leak introduced 2006-07-03.
79514         dirname-lgpl: adjust clients that don't need full dirname
79515         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
79516         * modules/filenamecat (Depends-on): Likewise.
79517         * modules/linkat (Depends-on): Likewise.
79518         * modules/mkancesdirs (Depends-on): Likewise.
79519         * modules/mkdir (Depends-on): Likewise.
79520         * modules/openat (Depends-on): Likewise.
79521         * modules/savewd (Depends-on): Likewise.
79522         * modules/rename (Depends-on): Likewise.
79523         (License): Relax license.
79524         * modules/mkdir-tests (Depends-on): Drop progname.
79525         (Makefile.am): Delete unneeded LDADD.
79526         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
79528         dirname: split into dirname-lgpl
79529         * modules/dirname-lgpl: New module.
79530         * modules/dirname (Files): Move library-safe files into
79531         dirname-lgpl.
79532         (Depends-on): Add dirname-lgpl.
79533         (configure.ac): Declare witness.
79534         * modules/double-slash-root (License): Relax license.
79535         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
79536         module.
79537         * lib/dirname.c (dir_len, mdir_name): Move...
79538         * lib/dirname-lgpl.c: ...into new file.
79539         * lib/basename.c (last_component, base_len): Move...
79540         * lib/basename-lgpl.c: ...into new file.
79541         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
79542         (gl_DIRNAME): Use it.
79543         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
79544         Mention new module.
79545         * modules/dirname-tests (Depends-on): Add progname.
79546         * tests/test-dirname.c (program_name): Delete.
79548         mkdir: make safe for libraries
79549         * modules/mkdir (Depends-on): Drop xalloc.
79550         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
79551         exit.
79553         tests: avoid some compiler warnings
79554         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
79555         literals.
79556         * tests/test-memchr.c (main): Avoid type mismatch.
79557         * tests/test-arpa_inet.c (main): Avoid unused parameters.
79558         * tests/test-base64.c (main): Likewise.
79559         * tests/test-getdelim.c (main): Likewise.
79560         * tests/test-gethostname.c (main): Likewise.
79561         * tests/test-getline.c (main): Likewise.
79562         * tests/test-netinet_in.c (main): Likewise.
79563         * tests/test-select.c (open_server_socket, main): Likewise.
79564         * tests/test-select-stdin.c (main): Likewise.
79565         * tests/test-sockets.c (main): Likewise.
79566         * tests/test-strsignal.c (main): Likewise.
79567         * tests/test-sys_select.c (main): Likewise.
79568         * tests/test-sys_socket.c (main): Likewise.
79569         * tests/test-u64.c (main): Likewise.
79570         * tests/test-xfprintf-posix.c (main): Likewise.
79571         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
79573         sockets: avoid compiler warning
79574         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
79576         maint: detect usage(1) and other suspicious exits
79577         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
79579 2009-10-29  Jim Meyering  <meyering@redhat.com>
79581         timespec: long-to-int truncation could make timespec_cmp malfunction
79582         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
79583         a multiple of 2^32 nanoseconds as no difference.
79585 2009-10-28  Jim Meyering  <meyering@redhat.com>
79587         fprintftime: wrap macro code argument in "do {...} while(0)"
79588         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
79589         cpy macro must be a statement that can be followed by a semicolon.
79590         Now that the else clause contains a comment and is hence longer
79591         than one line, I require curly braces.  That in turn requires
79592         that we wrap this code block in the standard do...while(0).
79594         fprintftime: remove stray semicolon from previous change
79595         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
79597         fprintftime: avoid a warning about ignored fwrite return value
79598         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
79599         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
79600         that is unsafe.
79601         * modules/fprintftime (Depends-on): Add ignore-value.
79603         exclude: avoid an unwarranted warning
79604         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
79606 2009-10-27  Eric Blake  <ebb9@byu.net>
79608         fseek: avoid compilation failure when fflush is replaced
79609         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
79610         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
79611         module is in use.
79612         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
79613         module is not in use; since REPLACE_FSEEK worked otherwise.
79614         (GNULIB_FTELLO): Likewise for ftell.
79615         Reported by Ian Beckwith and others.
79617 2009-10-27  Bruno Haible  <bruno@clisp.org>
79619         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
79620         Reported by Jim Meyering.
79622 2009-10-27  Jim Meyering  <jim@meyering.net>
79623             Bruno Haible  <bruno@clisp.org>
79625         Avoid warning despite dropping the return value of fwrite.
79626         * lib/unicodeio.c: Include ignore-value.h.
79627         (fwrite_success_callback): Explicitly ignore fwrite's return value.
79628         * modules/unicodeio (Depends-on): Add ignore-value.
79630 2009-10-26  Eric Blake  <ebb9@byu.net>
79632         areadlinkat: fix fallback path
79633         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
79634         pointer and zero.
79636 2009-10-22  Pádraig Brady  <P@draigBrady.com>
79638         Use a better IO block size for modern systems
79639         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
79640         * lib/md2.c: Likewise.
79641         * lib/md4.c: Likewise.
79642         * lib/md5.c: Likewise.
79643         * lib/sha1.c: Likewise.
79644         * lib/sha256.c: Likewise.
79645         * lib/sha512.c: Likewise.
79647 2009-10-22  Eric Blake  <ebb9@byu.net>
79649         tests: avoid several compiler warnings
79650         * tests/test-getcwd.c (main): Avoid buffer underflow.
79651         * tests/test-getdate.c (main): String literals are not safe with
79652         putenv, so use setenv.  Declare unused argument.
79653         * modules/getdate-tests (Depends-on): Add setenv.
79654         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
79655         problems with string literals in char *.
79656         * tests/test-hash.c (main): Avoid shadowing declaration.
79657         (insert_new): Treat string literals as char const *.
79658         * tests/test-getopt.h (test_getopt): Likewise.
79659         (getopt_loop): Alter types to minimize casting elsewhere.
79660         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
79661         (test_getopt_long_posix): Likewise.
79662         (do_getopt_long): Add wrapper to minimize casting.
79663         * tests/test-atexit.c (clear_temp_file): Use void.
79664         * tests/test-areadlink-with-size.c (main): Declare unused
79665         arguments.
79666         * tests/test-areadlink.c (main): Likewise.
79667         * tests/test-areadlinkat-with-size.c (main): Likewise.
79668         * tests/test-areadlinkat.c (main): Likewise.
79669         * tests/test-canonicalize-lgpl.c (main): Likewise.
79670         * tests/test-canonicalize.c (main): Likewise.
79671         * tests/test-dirent-safer.c (main): Likewise.
79672         * tests/test-dirname.c (main): Likewise.
79673         * tests/test-dup2.c (main): Likewise.
79674         * tests/test-fchdir.c (main): Likewise.
79675         * tests/test-fcntl-h.c (main): Likewise.
79676         * tests/test-fcntl-safer.c (main): Likewise.
79677         * tests/test-fdopendir.c (main): Likewise.
79678         * tests/test-fdutimensat.c (main): Likewise.
79679         * tests/test-fflush.c (main): Likewise.
79680         * tests/test-filenamecat.c (main): Likewise.
79681         * tests/test-filevercmp.c (main): Likewise.
79682         * tests/test-fopen-safer.c (main): Likewise.
79683         * tests/test-fopen.c (main): Likewise.
79684         * tests/test-fpending.c (main): Likewise.
79685         * tests/test-fpurge.c (main): Likewise.
79686         * tests/test-freading.c (main): Likewise.
79687         * tests/test-fstatat.c (main): Likewise.
79688         * tests/test-fsync.c (main): Likewise.
79689         * tests/test-futimens.c (main): Likewise.
79690         * tests/test-getndelim2.c (main): Likewise.
79691         * tests/test-gettimeofday.c (main): Likewise.
79692         * tests/test-getopt.c (main): Likewise.
79693         * tests/test-i-ring.c (main): Likewise.
79694         * tests/test-inttypes.c (main): Likewise.
79695         * tests/test-link.c (main): Likewise.
79696         * tests/test-lstat.c (main): Likewise.
79697         * tests/test-math.c (main): Likewise.
79698         * tests/test-md5.c (main): Likewise.
79699         * tests/test-memchr2.c (main): Likewise.
79700         * tests/test-memrchr.c (main): Likewise.
79701         * tests/test-mkdir.c (main): Likewise.
79702         * tests/test-mkdirat.c (main): Likewise.
79703         * tests/test-mkfifoat.c (main): Likewise.
79704         * tests/test-open.c (main): Likewise.
79705         * tests/test-openat-safer.c (main): Likewise.
79706         * tests/test-openat.c (main): Likewise.
79707         * tests/test-quotearg.c (main): Likewise.
79708         * tests/test-rawmemchr.c (main): Likewise.
79709         * tests/test-readlink.c (main): Likewise.
79710         * tests/test-remove.c (main): Likewise.
79711         * tests/test-rename.c (main): Likewise.
79712         * tests/test-renameat.c (main): Likewise.
79713         * tests/test-rmdir.c (main): Likewise.
79714         * tests/test-sha1.c (main): Likewise.
79715         * tests/test-signal.c (main): Likewise.
79716         * tests/test-sigaction.c (main): Likewise.
79717         * tests/test-stat.c (main): Likewise.
79718         * tests/test-stat-time.c (main): Likewise.
79719         * tests/test-stddef.c (main): Likewise.
79720         * tests/test-stdint.c (main): Likewise.
79721         * tests/test-stdio.c (main): Likewise.
79722         * tests/test-stdlib.c (main): Likewise.
79723         * tests/test-strchrnul.c (main): Likewise.
79724         * tests/test-strerror.c (main): Likewise.
79725         * tests/test-string.c (main): Likewise.
79726         * tests/test-strtod.c (main): Likewise.
79727         * tests/test-strverscmp.c (main): Likewise.
79728         * tests/test-symlink.c (main): Likewise.
79729         * tests/test-symlinkat.c (main): Likewise.
79730         * tests/test-sys_stat.c (main): Likewise.
79731         * tests/test-sys_time.c (main): Likewise.
79732         * tests/test-time.c (main): Likewise.
79733         * tests/test-unistd.c (main): Likewise.
79734         * tests/test-unlink.c (main): Likewise.
79735         * tests/test-unlinkat.c (main): Likewise.
79736         * tests/test-utimens.c (main): Likewise.
79737         * tests/test-utimensat.c (main): Likewise.
79738         * tests/test-version-etc.c (main): Likewise.
79739         * tests/test-wchar.c (main): Likewise.
79740         * tests/test-wctype.c (main): Likewise.
79741         * tests/test-xprintf-posix.c (main): Likewise.
79742         * tests/test-posixtm.c (main): Likewise.
79743         (STREQ): Delete unused macro.
79744         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
79745         shadowed variables.
79746         * tests/test-memchr.c (main): Likewise.
79748 2009-10-21  Eric Blake  <ebb9@byu.net>
79750         areadlinkat: avoid failure on older glibc
79751         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
79752         rather than mis-comparing 0 against FUNC_RESULT of char*.
79754 2009-10-21  Bruno Haible  <bruno@clisp.org>
79756         * modules/stpncpy (License): Relicense under LGPLv2+.
79757         Reported by David Lutterkort <lutter@redhat.com>.
79759 2009-10-20  Eric Blake  <ebb9@byu.net>
79761         utimensat: work around Solaris 9 bug
79762         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
79763         has trailing slash bugs.
79764         * tests/test-lutimens.h (test_lutimens): Enhance test.
79765         * tests/test-utimens.h (test_utimens): Likewise.
79766         * doc/posix-functions/utime.texi (utime): Enhance documentation.
79767         * doc/posix-functions/utimes.texi (utimes): Likewise.
79768         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79769         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
79770         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
79771         * doc/posix-functions/futimens.texi (futimens): Likewise.
79773         fdutimensat: new module
79774         * modules/fdutimensat: New file.
79775         * lib/fdutimensat.c (fdutimensat): Likewise.
79776         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
79777         * MODULES.html.sh (File system functions): Mention module.
79778         * modules/fdutimensat-tests: New test.
79779         * tests/test-fdutimensat.c: Likewise.
79781         doc: regenerate INSTALL
79782         * doc/INSTALL: Reflect recent autoconf update.
79783         * doc/INSTALL.ISO: Likewise.
79784         * doc/INSTALL.UTF-8: Likewise.
79786 2009-10-20  Pádraig Brady  <P@draigBrady.com>
79788         acl: warn if ACL support is not detected
79789         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
79791 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
79793         * lib/nproc.h: Add extern "C" block for C++.
79795 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
79796             Bruno Haible  <bruno@clisp.org>
79798         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
79799         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
79800         * doc/posix-functions/isalpha.texi: Likewise.
79801         * doc/posix-functions/isblank.texi: Likewise.
79802         * doc/posix-functions/iscntrl.texi: Likewise.
79803         * doc/posix-functions/isdigit.texi: Likewise.
79804         * doc/posix-functions/isgraph.texi: Likewise.
79805         * doc/posix-functions/islower.texi: Likewise.
79806         * doc/posix-functions/isprint.texi: Likewise.
79807         * doc/posix-functions/ispunct.texi: Likewise.
79808         * doc/posix-functions/isspace.texi: Likewise.
79809         * doc/posix-functions/isupper.texi: Likewise.
79810         * doc/posix-functions/isxdigit.texi: Likewise.
79812 2009-10-18  Bruno Haible  <bruno@clisp.org>
79814         Tests for module 'isblank'.
79815         * modules/isblank-tests: New file.
79816         * tests/test-isblank.c: New file.
79818         New module 'isblank'.
79819         * lib/isblank.c: New file.
79820         * m4/isblank.m4: New file.
79821         * modules/isblank: New file.
79822         * doc/posix-functions/isblank.texi: Mention the new module.
79824 2009-10-18  Bruno Haible  <bruno@clisp.org>
79826         New module 'ctype'.
79827         * lib/ctype.in.h: New file.
79828         * m4/ctype.m4: New file.
79829         * modules/ctype: New file.
79830         * doc/posix-headers/ctype.texi: Mention the new module.
79832 2009-10-18  Jim Meyering  <meyering@redhat.com>
79834         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
79835         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
79836         right after its initialization, rather than farther down.
79837         Keeping these in close proximity makes it easier to ensure
79838         that each such variable is initialized.  E.g.,
79840             LIB_CLOCK_GETTIME=
79841             AC_SUBST([LIB_CLOCK_GETTIME])
79843         This change also increments these serial numbers.
79844         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
79845         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79848 2009-10-18  Bruno Haible  <bruno@clisp.org>
79850         Don't let environment variables perturb build.
79851         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
79852         (gl_PREREQ_GETHRXTIME): ... not here.
79854 2009-10-18  Bruno Haible  <bruno@clisp.org>
79856         Avoid symlink attack in localcharset module.
79857         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
79858         (O_NOFOLLOW): Define fallback.
79859         (get_charset_aliases): Don't open the file if it is a symbolic link.
79860         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
79861         gl_FCNTL_H.
79862         (gl_FCNTL_H): Require it.
79863         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
79864         * modules/localcharset (Files): Add m4/fcntl_h.m4.
79865         Reported by Fergal Glynn <fglynn@veracode.com>.
79867 2009-10-18  Bruno Haible  <bruno@clisp.org>
79869         Implement nproc for mingw.
79870         * lib/nproc.c: Include <windows.h>
79871         (num_processors): On native Windows platforms, try GetSystemInfo.
79873 2009-10-18  Bruno Haible  <bruno@clisp.org>
79875         Implement nproc for IRIX.
79876         * lib/nproc.c: Include <sys/sysmp.h>.
79877         (num_processors): On IRIX systems, try sysmp.
79878         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
79880 2009-10-18  Bruno Haible  <bruno@clisp.org>
79882         Implement nproc for HP-UX.
79883         * lib/nproc.c: Include <sys/pstat.h>
79884         (num_processors): On HP-UX systems, try pstat_getdynamic.
79885         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
79886         pstat_getdynamic.
79888 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
79889             Bruno Haible  <bruno@clisp.org>
79891         Implement nproc for NetBSD, OpenBSD.
79892         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
79893         (ARRAY_SIZE): New macro.
79894         (num_processors): On BSD systems, try sysctl of HW_NCPU.
79895         * m4/nproc.m4: New file.
79896         * modules/nproc (Files): Add m4/nproc.m4.
79897         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
79898         (Makefile.am): Instead, augment lib_SOURCES.
79900 2009-10-18  Bruno Haible  <bruno@clisp.org>
79902         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
79903         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
79904         sys/param.h.
79906 2009-10-16  Eric Blake  <ebb9@byu.net>
79908         utimensat: new module
79909         * modules/utimensat: New file.
79910         * lib/utimensat.c (utimensat): Likewise.
79911         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
79912         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
79913         so we can work around Linux bugs.
79914         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79915         * modules/sys_stat (Makefile.am): Substitute them.
79916         * lib/sys_stat.in.h (utimensat): Declare it.
79917         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79918         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79919         * modules/utimensat-tests: New test.
79920         * tests/test-utimensat.c: Likewise.
79922         utimens: let lutimens work on non-symlinks
79923         * lib/utimens.c (lutimens): Fall back to utimens rather than
79924         failing with ENOSYS, when file is not a symlink.
79925         (utimens): Reduce redirection.
79926         * tests/test-lutimens.h (test_lutimens): Update test to cover
79927         non-symlinks.
79928         * tests/test-utimens.h (test_utimens): Update test to cover
79929         symlinks.
79930         * tests/test-utimens.c (main): Update caller.
79932         utimens: cache whether utimensat syscall works
79933         * lib/utimens.c (utimensat_works_really): New cache variable.
79934         (fdutimens, lutimens): Use it to avoid failing syscall.
79936         test-stat-time, test-utimens: improve portability
79937         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
79938         ext4 on alpha, and for cygwin.
79939         * tests/test-utimens-common.h: New file.
79940         (nap): Factor delays into single function.
79941         * tests/test-lutimens.h (test_lutimens): Use new header.
79942         * tests/test-futimens.h (test_futimens): Likewise.
79943         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
79944         timestamps to occur from same machine, as was done previously for
79945         test_utimens.
79946         * modules/utimens-tests (Files): Ship new file.
79947         * modules/futimens-tests (Files): Likewise.
79948         Reported in part by Jim Meyering.
79950         sys_stat: sort replacement declarations
79951         * lib/sys_stat.in.h: Sort declarations.
79952         * lib/futimens.c (futimens): Fix typo.
79954 2009-10-15  Jim Meyering  <meyering@redhat.com>
79956         don't let environment settings perturb build
79957         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
79958         could cause a configure-time and/or build-time malfunction.
79959         Typically, a configure-time function-in-library test is performed
79960         via code like this:
79962           LIB_VAR=
79963           AC_SUBST([LIB_VAR])
79964           prefix_saved_LIBS=$LIBS
79965             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
79966                        [test "$ac_cv_search_FUNC" = "none required" ||
79967                         LIB_VAR=$ac_cv_search_FUNC])
79968           LIBS=$prefix_saved_LIBS
79970         However, in each of the files affected by this change, the LIB_VAR=
79971         initialization was omitted.  Thus, when set in the environment, its
79972         value would propagate into generated Makefiles when FUNC is not found
79973         in LIB_NAME.
79974         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
79975         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79978 2009-10-14  Eric Blake  <ebb9@byu.net>
79980         fchdir: avoid infinite recursion in mingw
79981         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
79982         recursing.
79984         test-stat-time: port to mingw
79985         * tests/test-stat-time.c (force_unlink): Return a value.
79986         (test_ctime) [W32]: Fix compilation error.
79987         (nap): Don't call usleep with too large an argument.  Use
79988         force_unlink.
79989         * doc/pastposix-functions/usleep.texi (usleep): Document the
79990         portability issue.
79992 2009-10-13  Jim Meyering  <meyering@redhat.com>
79994         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
79995         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
79996         * modules/pipe-filter-ii: Likewise.
79997         * modules/sys_socket-tests: Likewise.
79998         * modules/tsearch-tests: Likewise.
79999         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
80000         (check): Depend on it.
80002 2009-10-12  Eric Blake  <ebb9@byu.net>
80004         utimens-tests: port to NFS file systems
80005         * tests/test-utimens.h (test_utimens): Refactor utimecmp
80006         comparisons to avoid spurious failures from timestamp drift
80007         between NFS machines.
80009 2009-10-12  Eric Blake  <ebb9@byu.net>
80011         stat-time-tests: minor cleanups
80012         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
80013         * tests/test-stat-time.c (nap): Separate assignment from call.
80014         Suggested by Paolo Bonzini and Bruno Haible.
80016         sys_stat: guarantee struct timespec
80017         * lib/sys_stat.in.h (includes): Always include <time.h>
80018         * modules/sys_stat (Depends-on): Add time.
80019         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
80020         mode_t permission values.
80021         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
80022         get at subsecond timestamps.
80024 2009-10-10  Eric Blake  <ebb9@byu.net>
80026         futimens: new module
80027         * modules/futimens: New file.
80028         * lib/futimens.c (futimens): Likewise.
80029         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
80030         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
80031         we can work around Linux bugs.
80032         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80033         * modules/sys_stat (Makefile.am): Substitute them.
80034         * lib/sys_stat.in.h (futimens): Declare it.
80035         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80036         * doc/posix-functions/futimens.texi (futimens): Likewise.
80037         * modules/futimens-tests: New test.
80038         * tests/test-futimens.c: Likewise.
80040         utimens: introduce fdutimens
80041         * lib/utimens.h (fdutimens): New prototype.
80042         * lib/utimens.c (gl_futimens): Move guts...
80043         (fdutimens): ...to new interface.
80044         * tests/test-utimens.c (do_fdutimens): Use it.
80046         utimens: add UTIME_NOW and UTIME_OMIT support
80047         * lib/utimens.c (validate_timespec, update_timespec): New helper
80048         functions.
80049         (gl_futimens, lutimens): Use them.
80050         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
80051         stdbool, sys_stat.
80052         (Link): Mention resulting library dependency.
80053         * modules/utimecmp (Link): Likewise.
80054         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
80055         (Makefile.am): Pick up library dependency.
80056         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
80057         definition.
80058         * tests/test-sys_stat.c: Test the definitions.
80059         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
80060         * NEWS: Document library dependency.
80062         utimecmp: support symlink timestamps
80063         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
80064         hashing when possible.  Use pathconf when available.
80065         (SYSCALL_RESOLUTION): Recognize tighter resolution.
80066         * modules/utimecmp (Depends-on): Add lstat.
80068         utimens: add lutimens interface
80069         * lib/utimens.c (lutimens): New function.
80070         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
80071         * lib/utimens.h (lutimens): Declare new interface.
80072         * tests/test-utimens.c (main): Enhance test.
80073         * tests/test-lutimens.h (test_lutimens): New file.
80074         * modules/utimens-tests (Files): Distribute it.
80075         (Depends-on): Add symlink.
80076         (configure.ac): Check for usleep.
80078         utimens: validate futimens usage
80079         * lib/utimens.c (gl_futimens): Require valid fd up front, using
80080         fewer syscalls on failure later on.  Avoid compiler warning on
80081         mingw.
80082         * modules/utimens (Depends-on): Add dup2.
80084         utimens: add test
80085         * modules/utimens-tests: New test.
80086         * tests/test-utimens.h: New file.
80087         * tests/test-futimens.h: Likewise.
80088         * tests/test-utimens.c: Likewise.
80090         doc: mention timestamp portability issues
80091         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
80092         instead.
80093         * doc/posix-functions/utime.texi (utime): Likewise.
80094         * doc/posix-functions/utimes.texi (utimes): Likewise.
80095         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
80096         instead.
80097         * doc/posix-functions/futimens.texi (futimens): Mention utimens
80098         module.
80099         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
80100         Mention weakness with symlink timestamps.
80101         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
80102         to utimensat/futimens instead.
80103         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
80105         test-dup2: enhance test
80106         * tests/test-dup2.c (main): Also check AT_FDCWD.
80108         test-stat-time: avoid more spurious failures
80109         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
80110         xfs; and avoid race if the two timestamps cross quantization edge.
80112         relocatable: prefer 'file system' over 'filesystem'
80113         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
80114         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
80115         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
80116         * doc/relocatable.texi (Enabling Relocatability): Likewise.
80117         * lib/relocatable.c (compute_curr_prefix): Likewise.
80119 2009-10-10  Jim Meyering  <meyering@redhat.com>
80121         stat-time-tests: check for the usleep function
80122         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
80124 2009-10-10  Bruno Haible  <bruno@clisp.org>
80126         * modules/xnanosleep: Put the Link section after the Include section.
80128 2009-10-09  Eric Blake  <ebb9@byu.net>
80130         dup2: work around FreeBSD 6.1 bug
80131         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
80132         * doc/posix-functions/dup2.texi (dup2): Document it.
80133         Reported by Nelson H. F. Beebe and Jim Meyering.
80135         test-stat-time: port to buggy NFS clients
80136         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
80137         (test_ctime): Also skip test if mtime and ctime are skewed.
80139         maint: prefer 'file system' over 'filesystem'
80140         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
80141         * doc/posix-functions/lstat.texi (lstat): Likewise.
80142         * lib/file-has-acl.c (file_has_acl): Likewise.
80143         * lib/fwriteerror.c [TEST]: Likewise.
80144         * tests/test-areadlink.h (test_areadlink): Likewise.
80145         * tests/test-areadlinkat-with-size.c (main): Likewise.
80146         * tests/test-areadlinkat.c (main): Likewise.
80147         * tests/test-canonicalize-lgpl.c (main): Likewise.
80148         * tests/test-canonicalize.c (main): Likewise.
80149         * tests/test-fstatat.c (main): Likewise.
80150         * tests/test-linkat.c (main): Likewise.
80151         * tests/test-lstat.h (test_lstat_func): Likewise.
80152         * tests/test-mkdir.h (test_mkdir): Likewise.
80153         * tests/test-readlink.h (test_readlink): Likewise.
80154         * tests/test-remove.c (main): Likewise.
80155         * tests/test-rename.h (test_rename): Likewise.
80156         * tests/test-renameat.c (main): Likewise.
80157         * tests/test-rmdir.h (test_rmdir_func): Likewise.
80158         * tests/test-symlink.h (test_symlink): Likewise.
80159         * tests/test-symlinkat.c (main): Likewise.
80160         * tests/test-unlink.h (test_unlink_func): Likewise.
80161         * tests/test-unlinkat.c (main): Likewise.
80163         maint: make realtime library usage explicit
80164         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
80165         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
80166         * modules/settime (Link): Likewise.
80167         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
80169         test-stat-time: speed up execution
80170         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
80171         warning on mingw.
80172         (nap): New helper function.
80173         (prepare_test): Use it to reduce sleep time.
80174         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
80175         execution.
80176         * modules/stat-time-tests (configure.ac): Check for usleep.
80178 2009-10-09  Jim Meyering  <meyering@redhat.com>
80180         selinux-h: always use getfilecon wrappers
80181         * lib/getfilecon.c: New file.
80182         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
80183         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
80184         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
80185         (fgetfilecon): Provide a stub.
80186         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
80187         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
80188         file unconditionally.
80189         When <selinux/selinux.h> is found, arrange to use wrappers.
80190         * modules/selinux-h (Files): Add getfilecon.c.
80191         (Makefile.am): Substitute include-next-related bits
80192         into the now-always-generated selinux/selinux.h file.
80193         * doc/glibc-functions/lgetfilecon.texi: New file.
80194         * doc/glibc-functions/fgetfilecon.texi: New file.
80195         * doc/glibc-functions/getfilecon.texi: New file.
80196         * doc/glibc-functions/getfilecon-desc.texi: New file.
80197         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
80198         which to pull in the new files.
80199         * MODULES.html.sh (Misc): Add selinux-h.
80201 2009-10-08  Jim Meyering  <meyering@redhat.com>
80203         unistd: fix comment typo
80204         * lib/unistd.in.h (euidaccess): Fix a comment typo.
80206 2009-10-08  Eric Blake  <ebb9@byu.net>
80208         areadlink: use SIZE_MAX consistently
80209         * modules/areadlink (Depends-on): Add stdint.
80210         * modules/areadlink-with-size (Depends-on): Likewise.
80211         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
80212         gives NULL; drop sys/types, since unistd gives size_t; and add
80213         stdint for SIZE_MAX.
80214         (SIZE_MAX): Rely on headers.
80215         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
80216         and add stdint.
80217         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
80218         (SIZE_MAX): Likewise.
80219         (INITIAL_BUF_SIZE): Turn into enum.
80220         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
80222 2009-10-08  Jim Meyering  <meyering@redhat.com>
80224         areadlinkat: avoid compilation failure
80225         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
80226         Fix typo in comment.
80228 2009-10-07  Eric Blake  <ebb9@byu.net>
80230         areadlinkat-with-size: new module
80231         * modules/areadlinkat-with-size: New module.
80232         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
80233         * lib/areadlink.h (areadlinkat): Declare it.
80234         * MODULES.html.sh (File system functions): Mention it.
80235         * modules/areadlinkat-with-size-tests: New test.
80236         * tests/test-areadlinkat-with-size.c: New file.
80238         xreadlinkat: new module
80239         * modules/xreadlinkat: New module.
80240         * lib/xreadlinkat.c (xreadlinkat): New file.
80241         * lib/xreadlink.h (xreadlinkat): Declare it.
80242         * MODULES.html.sh (File system functions): Mention it.
80244         areadlinkat: new module
80245         * lib/at-func.c (FUNC_FAIL): New define.
80246         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
80247         * modules/areadlinkat: New module.
80248         * lib/linkat.c (areadlinkat): Move...
80249         * lib/areadlinkat.c (areadlinkat): ...to new file.
80250         * lib/areadlink.h (areadlinkat): Declare it.
80251         * modules/linkat (Depends-on): Add areadlinkat.
80252         * MODULES.html.sh (File system functions): Mention it.
80253         * modules/areadlinkat-tests: New test.
80254         * tests/test-areadlinkat.c: New file.
80256         areadlink, areadlink-with-size: add tests
80257         * modules/areadlink-tests: New test.
80258         * modules/areadlink-with-size-tests: Likewise.
80259         * tests/test-areadlink.h: New file.
80260         * tests/test-areadlink.c: Likewise.
80261         * tests/test-areadlink-with-size.c: Likewise.
80263         maint: minor cleanups
80264         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
80265         _UNUSED_PARAMETER_ instead.
80266         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
80267         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
80268         * modules/linkat-tests (Files): Distribute test-link.h.
80270         openat, utimens: whitespace cleanup
80271         * lib/openat.c: Prefer space throughout, rather than mix of 8
80272         spaces vs. tabs.
80273         * lib/at-func.c: Likewise.
80274         * lib/utimens.c: Likewise.
80276         openat: avoid using wrong fd
80277         * lib/openat.c (openat_permissive): Reject user's fd if saving the
80278         working directory chooses same fd.
80279         * lib/at-func.c (AT_FUNC_NAME): Likewise.
80281         mkdir, mkdirat: fix cygwin 1.5.x bug
80282         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
80283         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
80284         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
80285         bug.
80286         (gl_PREREQ_MKDIR): Delete unused macro.
80287         * modules/mkdir (Files): Track file rename.
80288         (configure.ac): Update macro name.
80289         * modules/openat (Depends-on): Add mkdir.
80290         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
80292         mkdir, mkdirat: add tests
80293         * modules/mkdir-tests: New test.
80294         * tests/test-mkdir.h: New file.
80295         * tests/test-mkdir.c: Likewise.
80296         * tests/test-mkdirat.c: Likewise.
80297         * modules/openat-tests (Files): Add new files.
80298         (Makefile.am): Run new test.
80300 2009-10-06  Eric Blake  <ebb9@byu.net>
80302         doc: tweak *at function documentation
80303         * doc/posix-functions/faccessat.texi (faccessat): Mention
80304         known issue with replacement.
80305         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
80306         * doc/posix-functions/linkat.texi (linkat): Likewise.
80307         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80308         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80309         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80310         * doc/posix-functions/renameat.texi (renameat): Likewise.
80311         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80313         openat: fix GNU/Hurd bug in unlinkat
80314         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
80315         broken.
80316         * doc/posix-functions/unlink.texi (unlink): Document this.
80317         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
80319         fdopendir: fix GNU/Hurd bug
80320         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
80321         allowing non-directory fds.
80322         * lib/fdopendir.c (rpl_fdopendir): Work around it.
80323         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
80324         * modules/dirent (Makefile.am): Substitute it.
80325         * lib/dirent.in.h (fdopendir): Declare replacement.
80326         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
80327         * tests/test-fdopendir.c (main): Test something other than
80328         /dev/null, since on Hurd that behaves like a directory.
80330         test-symlink: port to GNU/Hurd
80331         * tests/test-symlink.h (test_symlink): Relax expected errno.
80333         doc: tweak more cygwin information
80334         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
80335         now compatible with glibc.
80336         * doc/posix-functions/getopt.texi (getopt): Likewise.
80338         getopt-gnu: add another test
80339         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
80340         guarantee behavior relied on by m4.
80341         * tests/test-getopt.c (main): Use it.
80342         * modules/getopt-posix-tests (Depends-on): Add setenv.
80343         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
80345         getopt: fix compilation on darwin
80346         * lib/getopt.in.h (includes): Leave breadcrumbs during system
80347         include.
80348         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
80349         Reported by Ludovic Courtès.
80351 2009-10-06  Bruno Haible  <bruno@clisp.org>
80353         * modules/size_max (Description): Discourage its use.
80354         Reported by Simon Josefsson.
80356 2009-10-06  Jim Meyering  <meyering@redhat.com>
80358         linkat: avoid compilation failure
80359         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
80361 2009-10-05  Eric Blake  <ebb9@byu.net>
80363         linkat: support Linux 2.6.17
80364         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
80365         linkat on Linux, but allow cache variable override.
80366         * lib/linkat.c (rpl_linkat): Define override.
80367         * modules/linkat (Depends-on): Add symlinkat.
80368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
80369         * modules/unistd (Makefile.am): Substitute it.
80370         * lib/unistd.in.h (linkat): Declare replacement.
80371         Reported by Pádraig Brady.
80373         quotearg: port test to systems with C.UTF-8 locale
80374         * tests/test-quotearg.c (struct result_strings): Add another
80375         member, differentiating between C.ASCII and C.UTF-8 handling.
80376         (compare_strings): Add parameter.
80377         (main): Adjust all callers.
80379         getopt: avoid clash with FreeBSD _getopt_internal
80380         * lib/getopt.in.h (_getopt_internal): Override the name.
80381         * lib/getopt_int.h (includes): Pick up any overrides.
80382         Reported by Reuben Thomas.
80384         hash: allow C89 compilation
80385         * lib/hash.c (check_tuning): Move declaration before statement.
80386         Reported by Reuben Thomas.
80388 2009-10-05  Karl Berry  <karl@gnu.org>
80390         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
80392 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
80393             Bruno Haible  <bruno@clisp.org>
80395         * lib/uname.c (uname): Use a table-driven algorithm to compute
80396         Windows NT versions.
80398 2009-10-04  Bruno Haible  <bruno@clisp.org>
80400         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
80401         program_invocation_short_name.
80402         * modules/progname (configure.ac): Test for presence of
80403         program_invocation_short_name.
80404         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
80406 2009-10-04  Bruno Haible  <bruno@clisp.org>
80408         * lib/progname.c (set_program_name): Fix comment.
80409         Reported by Jim Meyering.
80411 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
80412             Bruno Haible  <bruno@clisp.org>
80414         * lib/uname.c: Include <string.h>.
80415         (uname): Do only one call to GetVersionEx in the common case.
80417 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
80418             Bruno Haible  <bruno@clisp.org>
80420         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
80421         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
80422         (uname): Add support for Windows CE and various non-x86 CPU types.
80424 2009-10-03  Bruno Haible  <bruno@clisp.org>
80426         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
80427         invocation to tests/configure.ac.
80428         Reported by Ian Beckwith <ianb@erislabs.net>.
80430 2009-10-02  Eric Blake  <ebb9@byu.net>
80432         fchdir: avoid compiler warning
80433         * lib/fchdir.c (canonicalize_file_name)
80434         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
80436         test-open: support mingw errno values
80437         * tests/test-open.h (test_open): Relax test.
80438         * tests/test-fopen.h (test_fopen): Likewise.
80439         * tests/test-openat-safer.c (main): Likewise.
80441         open: fix opening directory on mingw
80442         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
80444         test-open: on GNU/Hurd, /dev/null is a directory
80445         * tests/test-fopen.h (main): Rename...
80446         (test_fopen): ...to this.  Use a guaranteed non-directory when
80447         confirming open behavior on trailing slash.
80448         * tests/test-openat-safer.c (main): Likewise.
80449         * tests/test-open.h (main): Likewise....
80450         (test_open): ...to this.
80451         * tests/test-fopen.c (main): Adjust caller.
80452         * tests/test-fopen-safer.c (main): Likewise.
80453         * tests/test-open.c (main): Likewise.
80454         * tests/test-fcntl-safer.c (main): Likewise.
80455         Reported by Samuel Thibault.
80457         rename, fchdir: don't ignore chdir failure
80458         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
80459         * lib/rename.c (rpl_rename) [W32]: Likewise.
80460         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
80461         an empty destination directory if source cannot be renamed,
80462         although there is still possibility for failure.
80463         * doc/posix-functions/rename.texi (rename): Document the race.
80464         Reported by Jim Meyering.
80466         maint: cleanup whitespace in recent commits
80467         * lib/rename.c (rpl_rename): Remove tabs.
80468         * tests/test-link.h (test_link): Likewise.
80469         * lib/fchdir.c (get_name): Likewise.
80470         Reported by Jim Meyering.
80472 2009-10-02  Ben Pfaff  <blp@gnu.org>
80474         relocatable-prog-wrapper: Add missing dependency on
80475         double-slash-root.
80476         * modules/relocatable-prog-wrapper: Add dependency.
80477         Reported by Ian Beckwith <ianb@erislabs.net>.
80479 2009-10-02  Eric Blake  <ebb9@byu.net>
80481         renameat: fix Solaris bugs
80482         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
80483         needed fixing.
80484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
80485         * modules/stdio (Makefile.am): Substitute it.
80486         * lib/stdio.in.h (renameat): Declare replacement.
80487         * lib/renameat.c (rpl_renameat): Implement fix.
80489         renameat: new module
80490         * modules/renameat: New file.
80491         * lib/renameat.c (renameat): Likewise.
80492         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
80493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80494         * modules/stdio (Makefile.am): Substitute them.
80495         * lib/stdio.in.h (renameat): Declare it.
80496         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80497         * doc/posix-functions/renameat.texi (renameat): Likewise.
80498         * modules/renameat-tests: New test.
80499         * tests/test-renameat.c: Likewise.
80501         rename: fix mingw bugs
80502         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
80503         directory overwrite bugs.
80505         rename: fix another cygwin 1.5 bug
80506         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
80507         checks.
80508         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
80509         unnecessary cygwin workarounds.  Also work around bug with moving
80510         full directory onto an empty one.
80511         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
80513         rename-dest-slash: merge into rename module
80514         * modules/rename-dest-slash (Status): Mark obsolete.
80515         (Depends-on): Add rename.
80516         (Files): Let rename do it all.
80517         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
80518         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
80519         * m4/rename-dest-slash.m4: ...so this file can be deleted.
80520         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
80521         * lib/rename.c (rpl_rename): Update comments.
80523         rename: fix cygwin 1.5.x bugs
80524         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
80525         * lib/rename.c (rpl_rename): Work around them.
80526         * modules/rename (Depends-on): Add same-inode.
80528         rename: fix Solaris 10 bug
80529         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
80530         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
80531         was the only bug.
80533         rename: fix Solaris 9 bug
80534         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
80535         on non-directory.  Avoid calling exit.
80536         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
80537         strdup.
80538         * modules/rename-tests (Depends-on): Drop lstat.
80539         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
80540         (gl_PREREQ_RENAME): Delete unused macro.
80542         rename-dest-slash: fix NetBSD bug
80543         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
80544         links.
80545         * modules/rename-dest-slash (Depends-on): Add same-inode.
80547         rename-tests: new test, exposes several platform bugs
80548         * modules/rename-tests: New file.
80549         * tests/test-rename.h: Likewise.
80550         * tests/test-rename.c: Likewise.
80551         * doc/posix-functions/rename.texi (rename): Improve documentation,
80552         including bugs that will eventually be fixed in gnulib.
80554 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
80556         * lib/uname.c: Include <stdlib.h>
80557         (uname): Assume version info is available.
80559 2009-10-02  Jim Meyering  <meyering@redhat.com>
80561         gnu-web-doc-update: correct --help output
80562         * build-aux/gnu-web-doc-update: Make --help output relevant.
80564         gnu-web-doc-update: add standard options
80565         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
80567         gnu-web-doc-update: New module.
80568         Use this script to automatically update the on-line web documentation
80569         for your GNU project at http://www.gnu.org/software/$pkg/manual/
80570         * modules/gnu-web-doc-update: New file, from coreutils.
80571         * build-aux/gnu-web-doc-update: New script.
80573 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
80575         link: LoadLibrary is not needed.
80576         * lib/link.c: Use GetModuleHandle.
80578 2009-10-01  Eric Blake  <ebb9@byu.net>
80580         getopt: bump serial number
80581         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
80582         change.
80584         tests: tighten link, rmdir, and remove tests
80585         * tests/test-link.h (includes): No need to use <config.h> here.
80586         Clean up if directory hard link was created, otherwise test for
80587         trailing '.'.
80588         * tests/test-linkat.c (main): Simplify.
80589         * tests/test-remove.c (main): Enhance test for trailing '.'.
80590         * tests/test-rmdir.h (test_rmdir_func): Likewise.
80592 2009-10-01  Jim Meyering  <meyering@redhat.com>
80594         maint.mk: requiring "make major" was annoying, for a "minor" release.
80595         What is intended is "stable", to contrast with alpha and beta,
80596         so require "make stable", not "make major".
80597         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
80598         (get_tool_versions): Likewise.
80599         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
80601 2009-09-30  Ben Pfaff  <blp@gnu.org>
80603         Fix broken build of replacement for Windows tmpfile().
80604         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
80605         flags argument added along with the 'mkostemp' module.
80607 2009-09-28  Bruno Haible  <bruno@clisp.org>
80609         Avoid identifier clash with POSIX function 'remove' defined as a macro.
80610         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
80611         to 'remove_elt'.
80612         (gl_list_remove): Update.
80613         * lib/gl_list.c (gl_list_remove): Update.
80614         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
80615         to 'remove_elt'.
80616         (gl_oset_remove): Update.
80617         * lib/gl_list.c (gl_oset_remove): Update.
80618         Reported by Eric Blake.
80620 2009-09-28  Eric Blake  <ebb9@byu.net>
80622         doc: mention yet more cygwin 1.7 status
80623         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
80624         cygwin.
80625         * doc/glibc-functions/execvpe.texi (execvpe): New file.
80626         * doc/gnulib.texi (Glibc unistd.h): Mention it.
80628         argp: fix test failure
80629         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
80630         that are not upper-case.  Pass correct range to tolower.
80632 2009-09-27  Jim Meyering  <meyering@redhat.com>
80634         test-yesno: work around sparc-dash here-document infelicity
80635         Without this change, the literal \177 byte in a here document
80636         would make dash 0.5.5.1-3 access uninitialized memory.
80637         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
80638         Instead, use a marker, "@", and filter through tr to create the desired
80639         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
80641 2009-09-27  Bruno Haible  <bruno@clisp.org>
80643         Disable untested support for new flavours of ACLs on AIX.
80644         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
80645         progress.
80646         * lib/set-mode-acl.c (qset_acl): Likewise.
80648 2008-12-07  Bruno Haible  <bruno@clisp.org>
80650         Add support for new flavours of ACLs on AIX. (Untested.)
80651         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
80652         (file_has_acl): Add support for newer AIX.
80653         * lib/set-mode-acl.c (qset_acl): Likewise.
80654         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
80655         Rainer Tammer <tammer@tammer.net>.
80657 2009-09-26  Eric Blake  <ebb9@byu.net>
80659         argp: fix compilation of getopt
80660         * lib/getopt.in.h (includes): Use different guard than glibc.
80661         Reported by Sergey Poznyakoff.
80663         doc: mention more cygwin 1.7 status
80664         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
80665         bug.
80666         * doc/posix-functions/execl.texi (execl): Likewise.
80667         * doc/posix-functions/execle.texi (execle): Likewise.
80668         * doc/posix-functions/execlp.texi (execlp): Likewise.
80669         * doc/posix-functions/execv.texi (execv): Likewise.
80670         * doc/posix-functions/execve.texi (execve): Likewise.
80671         * doc/posix-functions/execvp.texi (execvp): Likewise.
80672         * doc/glibc-functions/canonicalize_file_name.texi
80673         (canonicalize_file_name): Cygwin 1.7 now provides this.
80674         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
80675         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
80676         on AT_SYMLINK_NOFOLLOW.
80678 2009-09-24  Eric Blake  <ebb9@byu.net>
80680         test-linkat: make test more robust
80681         * tests/test-linkat.c (main): Avoid collision with EEXIST.
80683         getopt: fix inclusion guards for cygwin
80684         * modules/getopt-posix (Depends-on): Add include-next.
80685         (Makefile.am): Substitute more items in replacement header.
80686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
80687         <getopt.h>.
80688         * lib/getopt.in.h (includes): Use split inclusion guard, and
80689         prefer <getopt.h> over include <unistd.h> when one is present.
80690         (option): Also override name of 'struct option'.
80692         same-inode: revert prior change; it is not yet ready
80693         * NEWS: Undo mention of this change.
80694         * lib/same-inode.h (same-inode.h): Undo tri-state change.
80695         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80696         * lib/cycle-check.c (cycle_check): Likewise.
80697         * lib/same.c (same_name): Likewise.
80698         * lib/at-func2.c (at_func2): Likewise.
80700 2009-09-23  Eric Blake  <ebb9@byu.net>
80702         linkat: new module
80703         * modules/linkat: New file.
80704         * lib/at-func2.c (at_func2): Likewise.
80705         * lib/linkat.c (linkat): Likewise.
80706         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
80707         * lib/openat-priv.h (at_func2): Add declaration.
80708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80709         * modules/unistd (Makefile.am): Substitute them.
80710         * lib/unistd.in.h (linkat): Declare it.
80711         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80712         * doc/posix-functions/linkat.texi (linkat): Likewise.
80713         * doc/posix-functions/link.texi (link): Tweak wording.
80714         * tests/test-link.c (main): Move guts...
80715         * tests/test-link.h (test_link): ...into new file.
80716         * modules/linkat-tests: New test.
80717         * tests/test-linkat.c: Likewise.
80718         * modules/link-tests (Files): Ship new file.
80719         (Depends-on): Add stdbool.
80721         dirname: add library-safe mdir_name
80722         * lib/dirname.h (mdir_name): New prototype.
80723         * lib/dirname.c (dir_name): Move guts...
80724         (mdir_name): ...to new function that avoids xalloc_die.
80726         fchdir: another mingw fix
80727         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
80728         * lib/fchdir.c (get_name): New helper method; skips canonicalize
80729         on mingw (where it has not yet been ported), and make it optional
80730         elsewhere.
80731         (_gl_register_fd): Use it.
80733         same-inode: make SAME_INODE tri-state, to port to mingw
80734         * NEWS: Mention this change.
80735         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
80736         st_ino always being 0.
80737         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80738         * lib/cycle-check.c (cycle_check): Likewise.
80739         * lib/same.c (same_name): Likewise.
80741         lstat: avoid mingw compilation error
80742         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
80743         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
80744         lstat ourselves.
80745         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
80746         was adequate.
80747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
80748         the checks for lstat.
80749         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
80751         link: fix test failure on Solaris 9
80752         * lib/link.c (rpl_link): Don't assume link will catch bogus
80753         trailing slash on source.
80755         test-symlinkat: enhance test
80756         * tests/test-readlink.c (main): Move guts...
80757         * tests/test-readlink.h (test_readlink): ...into new file.
80758         * tests/test-symlink.c (main): Move guts...
80759         * tests/test-symlink.h (test_symlink): ...into new file.
80760         * tests/test-symlinkat.c (main): Use new files for further
80761         coverage.
80762         (do_symlink, do_readlink): New helper functions.
80763         * modules/symlink-tests (Files): Ship new file.
80764         (Depends-on): Add stdbool.
80765         * modules/readlink-tests (Files): Ship new file.
80766         (Depends-on): Add stdbool.
80767         * modules/symlinkat-tests (Files): Use new files.
80769 2009-09-23  Eric Blake  <ebb9@byu.net>
80771         readlink: document portability issue with symlink length
80772         * doc/posix-functions/lstat.texi (lstat): Mention that some file
80773         systems have bogus st_size on symlinks, and mention the
80774         areadlink-with-size module.
80775         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
80776         * doc/posix-functions/readlink.texi (readlink): Mention the
80777         areadlink module, and ERANGE failure.
80778         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80779         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
80781         readlink: fix Solaris 9 bug with trailing slash
80782         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
80783         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
80784         * doc/posix-functions/readlink.texi (readlink): Document this.
80785         * modules/readlink-tests: New test.
80786         * tests/test-readlink.c: Likewise.
80788         readlink: fix cygwin 1.5.x bug with return type
80789         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
80790         * lib/unistd.in.h (readlink): Use ssize_t.
80791         * lib/readlink.c (readlink): Likewise.
80792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80793         * modules/unistd (Makefile.am): Substitute it.
80794         * lib/unistd.in.h (readlink): Declare replacement.
80795         * doc/posix-functions/readlink.texi (readlink): Document this.
80797         symlink: use throughout gnulib
80798         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
80799         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
80800         symlink is not used.
80801         * modules/symlinkat (Depends-on): Add symlink.
80802         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80803         * modules/canonicalize-tests (Depends-on): Likewise.
80804         * modules/lstat-tests (Depends-on): Likewise.
80805         * modules/openat-tests (Depends-on): Likewise.
80806         * modules/remove-tests (Depends-on): Likewise.
80807         * modules/rmdir-tests (Depends-on): Likewise.
80808         * modules/unlink-tests (Depends-on): Likewise.
80809         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
80810         * tests/test-canonicalize.c (symlink): Likewise.
80811         * tests/test-fstatat.c (symlink): Likewise.
80812         * tests/test-lstat.c (symlink): Likewise.
80813         * tests/test-remove.c (symlink): Likewise.
80814         * tests/test-rmdir.c (symlink): Likewise.
80815         * tests/test-unlink.c (symlink): Likewise.
80816         * tests/test-unlinkat.c (symlink): Likewise.
80818         symlink: new module, for Solaris 9 bug
80819         * modules/symlink: New file.
80820         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
80821         * lib/symlink.c: Likewise.
80822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
80823         * modules/unistd (Makefile.am): Substitute them.
80824         * lib/unistd.in.h (symlink): Declare replacement.
80825         * MODULES.html.sh (File system functions): Mention it.
80826         * doc/posix-functions/symlink.texi (symlink): Likewise.
80827         * modules/symlink-tests: New test.
80828         * tests/test-symlink.c: Likewise.
80830 2009-09-23  Bruno Haible  <bruno@clisp.org>
80832         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
80833         when needed.
80834         Test case: gnulib-tool --import --with-tests atexit inttypes.
80835         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
80837 2009-09-23  Bruno Haible  <bruno@clisp.org>
80839         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
80840         subcommand, not in a subshell.
80842 2009-09-22  Eric Blake  <ebb9@byu.net>
80844         unistd: sort replacement declarations
80845         * lib/unistd.in.h: Sort declarations.
80847         open, openat: minor optimization
80848         * lib/open.c (open): If open succeeded, len is non-zero.
80849         * lib/openat.c (rpl_openat): Likewise.
80851         link-follow: ensure correct result
80852         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
80853         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
80854         distinguish between possible failures.
80856 2009-09-21  Eric Blake  <ebb9@byu.net>
80858         fts: avoid compiler warning
80859         * lib/fts.c (dirent_inode_sort_may_be_useful)
80860         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
80862 2009-09-19  Bruno Haible  <bruno@clisp.org>
80864         * lib/progreloc.c (canonicalize_file_name): New declaration.
80866 2009-09-19  Eric Blake  <ebb9@byu.net>
80868         link: fix quoting
80869         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
80871         openat: fix openat bugs on Solaris 9
80872         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
80873         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
80874         * modules/openat (Depends-on): Add open.
80875         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
80876         * modules/fcntl-h (Makefile.am): Substitute it.
80877         * lib/fcntl.in.h (openat): Declare replacement.
80878         * doc/posix-functions/openat.texi (openat): Document this.
80880         openat: move fstatat and unlinkat into correct files
80881         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
80882         compiled.
80883         * lib/openat.c (fstatat, unlinkat): Move...
80884         * lib/fstatat.c (fstatat): ...into correct files.
80885         * lib/unlinkat.c (unlinkat): Likewise.
80887         openat: fix unlinkat bugs on Solaris 9
80888         * lib/unlinkat.c (unlinkat): New file.
80889         * modules/openat (Depends-on): Add unlink.
80890         (Files): Distribute it.
80891         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
80892         trailing slash behavior is broken.
80893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80894         * modules/unistd (Makefile.am): Substitute it.
80895         * lib/unistd.in.h (unlinkat): Declare replacement.
80896         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
80898         openat: fix fstatat bugs on Solaris 9
80899         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
80900         stat.
80901         * doc/posix-functions/fstatat.texi (fstatat): Document this.
80903         test-unlinkat: enhance test, to expose Solaris 9 bug
80904         * tests/test-unlink.c (main): Factor guts...
80905         * tests/test-unlink.h (test_rmdir_func): ...into new file.
80906         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
80907         * tests/test-rmdir.c (main): Adjust caller.
80908         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
80909         (unlinker): New helper function.
80910         (rmdirat): Enhance check.
80911         * modules/rmdir-tests (Depends-on): Add stdbool.
80912         * modules/unlink-tests (Depends-on): Likewise.
80913         (Files): Add test-unlink.h.
80914         * modules/openat-tests (Files): Likewise.
80915         (Depends-on): Add unlinkdir.
80917         test-fstatat: new test, to expose Solaris 9 bugs
80918         * tests/test-stat.c (main): Factor guts...
80919         * tests/test-stat.h (test_stat_func): ...into new file.
80920         * tests/test-lstat.c (main): Factor guts...
80921         * tests/test-lstat.h (test_lstat_func): ...into new file.
80922         * tests/test-fstatat.c: New file.
80923         * modules/stat-tests (Files): Add test-stat.h.
80924         * modules/lstat-tests (Files): Add test-lstat.h.
80925         (Depends-on): Add stdbool.
80926         * modules/openat-tests (Depends-on): Add pathmax.
80927         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
80928         (Makefile.am): Run new test.
80930         remove: new module, for mingw and Solaris 9 bugs
80931         * modules/remove: New file.
80932         * lib/remove.c: Likewise.
80933         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
80934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80935         * modules/stdio (Makefile.am): Use them.
80936         * lib/stdio.in.h (remove): Declare replacement.
80937         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80938         * doc/posix-functions/remove.texi (remove): Likewise.
80939         * modules/remove-tests: New test.
80940         * tests/test-remove.c: Likewise.
80942         unlink: new module, for Solaris 9 bug
80943         * modules/unlink: New file.
80944         * lib/unlink.c: Likewise.
80945         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
80946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80947         * modules/unistd (Makefile.am): Use them.
80948         * lib/unistd.in.h (stat): Declare replacement.
80949         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80950         * doc/posix-functions/unlink.texi (unlink): Likewise.
80951         * modules/unlink-tests: New test.
80952         * tests/test-unlink.c: Likewise.
80954         lstat: fix Solaris 9 bug
80955         * lib/lstat.c (lstat): Also check for trailing slash on
80956         non-symlink, non-directories.  Use stat module to simplify logic.
80957         * doc/posix-functions/lstat.texi (lstat): Document it.
80958         * modules/lstat-tests (Depends-on): Add errno, same-inode.
80959         (configure.ac): Check for symlink.
80960         * tests/test-lstat.c (main): Add more tests.
80962         stat: add as dependency to other modules
80963         * modules/chown (Depends-on): Add stat.
80964         * modules/euidaccess (Depends-on): Likewise.
80965         * modules/fchdir (Depends-on): Likewise.
80966         * modules/isdir (Depends-on): Likewise.
80967         * modules/link (Depends-on): Likewise.
80968         * modules/lstat (Depends-on): Likewise.
80969         * modules/mkdir-p (Depends-on): Likewise.
80970         * modules/modechange (Depends-on): Likewise.
80971         * modules/open (Depends-on): Likewise.
80972         * modules/readlink (Depends-on): Likewise.
80973         * modules/same (Depends-on): Likewise.
80975         stat: fix Solaris 9 bug
80976         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
80977         slash.
80978         * lib/stat.c (rpl_stat): Work around it.
80979         * doc/posix-functions/stat.texi (stat): Update documentation.
80981         stat: new module, for mingw bug
80982         * modules/stat: New file.
80983         * lib/stat.c: Likewise.
80984         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
80985         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80986         * modules/sys_stat (Makefile.am): Use them.
80987         * lib/sys_stat.in.h (stat): Declare replacement.
80988         * lib/openat.c (fstatat): Deal with lstat and stat being function
80989         macros.
80990         * modules/openat (Depends-on): Add inline.
80991         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80992         * doc/posix-functions/stat.texi (stat): Likewise.
80993         * modules/stat-tests: New test.
80994         * tests/test-stat.c: Likewise.
80996 2009-09-19  Jim Meyering  <meyering@redhat.com>
80998         syntax-check: detect unnecessary inclusion of canonicalize.h
80999         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
81001 2009-09-19  Eric Blake  <ebb9@byu.net>
81003         canonicalize-lgpl: adjust clients to use correct header
81004         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
81005         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
81006         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
81007         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
81008         * lib/progreloc.c (includes): Likewise.
81010 2009-09-19  Jim Meyering  <meyering@redhat.com>
81012         test-posixtm.c: correct a comment
81013         * tests/test-posixtm.c: Correct first-line comment.
81014         Spotted by Eric Blake.
81016 2009-09-16  Jim Meyering  <meyering@redhat.com>
81018         posixtm-tests: make T const-correct; add a test case
81019         * tests/test-posixtm.c (T): Declare const.
81020         Add a test for -(2^31+1).
81021         Remove useless can-succeed-only-in-2002 test.
81023         posixtm-tests: adjust the sole failing test
81024         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
81025         expected output matches what mktime now produces.  Cross-checked via
81026         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
81028         posixtm: move #ifdef'd tests into a new module
81029         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
81030         * tests/test-posixtm.c: ... this new file.
81031         * modules/posixtm-tests: New module.
81033 2009-09-19  Eric Blake  <ebb9@byu.net>
81035         openat: simplify use of at-func.c
81036         * lib/at-func.c (includes): Include prerequisites here, to
81037         simplify requirements on client files.
81038         * lib/openat-priv.h: Add double-inclusion guard.
81039         * lib/faccessat.c (includes): Simplify.
81040         * lib/fchmodat.c (includes): Likewise.
81041         * lib/fchownat.c (includes): Likewise.
81042         * lib/mkdirat.c (includes): Likewise.
81043         * lib/mkfifoat.c (includes): Likewise.
81044         * lib/symlinkat.c (includes): Likewise.
81046         openat: allow return of fd 0
81047         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
81048         * modules/save-cwd (Depends-on): Replace fcntl-safer with
81049         unistd-safer.
81050         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
81051         <fcntl.h>; this module does not leak fds.
81052         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
81053         must be allowed to return 0, leaving openat_safer to add the
81054         safety.
81055         (openat_permissive): Avoid writing to just-opened fd 2 if
81056         restoring the current directory fails.
81057         * lib/openat-die.c (openat_restore_fail): Add comment.
81058         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
81059         (save_cwd): Guarantee safe fd, but without use of open_safer.
81060         * tests/test-openat.c: New test.
81061         * modules/openat-tests (Files, Makefile.am): Distribute and build
81062         new file.
81064         relocatable-prog-wrapper: fix build
81065         * modules/relocatable-prog-wrapper (Files): Update name of
81066         canonicalize m4 file, broken on 2009-09-17.
81067         Reported by emad hajjar <aleppos@hotmail.com>.
81069 2009-09-19  Bruno Haible  <bruno@clisp.org>
81071         * lib/safe-alloc.h: Use the standard header with GPL copyright.
81072         * lib/safe-alloc.c: Likewise.
81073         Reported by Ian Beckwith <ianb@erislabs.net>.
81075 2009-09-18  Bruno Haible  <bruno@clisp.org>
81077         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
81078         Reported by <erobles@sensacd.com.mx>.
81080 2009-09-17  Eric Blake  <ebb9@byu.net>
81082         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
81083         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
81084         slashes when checking if last component is missing.
81085         * tests/test-canonicalize.c (main): Test this.
81087         canonicalize, canonicalize-lgpl: honor // if distinct from /
81088         * modules/canonicalize (Files): Add double-slash-root.m4.
81089         * modules/canonicalize-lgpl (Files): Likewise.
81090         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
81091         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
81092         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
81093         fallback definition.
81094         (canonicalize_filename_mode): Use it to protect //.
81095         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
81096         (__realpath): Likewise.
81097         * tests/test-canonicalize.c (main): Test this.
81098         * tests/test-canonicalize-lgpl.c (main): Likewise.
81099         * modules/canonicalize-tests (Depends-on): Add same-inode.
81100         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
81102         canonicalize-lgpl: fix glibc bug with trailing slash
81103         * m4/canonicalize-lgpl.m4: Move contents...
81104         * m4/canonicalize.m4: ...here.
81105         (gl_CANONICALIZE_LGPL): Factor realpath check...
81106         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
81107         glibc 2.3.5 bug, fixed 2005-04-27.
81108         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
81109         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
81110         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
81111         * modules/canonicalize-lgpl (Files): Manage file rename.
81112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
81113         * modules/stdlib (Makefile.am): Substitute witness.
81114         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
81115         is needed.
81116         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
81117         replacement is required.
81118         * lib/canonicalize.c (canonicalize_file_name): Likewise.
81119         * doc/glibc-functions/canonicalize_file_name.texi
81120         (canonicalize_file_name): Document this.
81121         * doc/posix-functions/realpath.texi (realpath): Likewise.
81123         canonicalize-lgpl: reject non-directory with trailing slash
81124         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
81125         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
81126         catches failures in glibc 2.3.5.
81127         * tests/test-canonicalize.c (main): Likewise.
81129         canonicalize-lgpl: use native realpath if it works
81130         * lib/canonicalize-lgpl.c (realpath): Guard with
81131         FUNC_REALPATH_WORKS.
81132         * lib/stdlib.in.h (realpath): Make declaration optional based on
81133         HAVE_REALPATH.
81134         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
81135         native realpath works.
81136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
81137         * modules/stdlib (Makefile.am): Substitute witness.
81139         canonicalize, canonicalize-lgpl: use <stdlib.h>
81140         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
81141         (Include): Mention <stdlib.h>.
81142         (configure.ac): Mention functions we provide.
81143         * modules/canonicalize (configure.ac): Likewise.
81144         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
81145         realpath if canonicalize_file_name is missing.
81146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
81147         * modules/stdlib (Makefile.am): Substitute witnesses.
81148         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
81149         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
81150         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
81151         * NEWS: Document this.
81152         * doc/glibc-functions/canonicalize_file_name.texi
81153         (canonicalize_file_name): Likewise.
81154         * doc/posix-functions/realpath.texi (realpath): Likewise.
81155         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
81157         test-canonicalize: consolidate into single C program
81158         * tests/test-canonicalize.sh: Delete; move setup into...
81159         * tests/test-canonicalize.c (main): ...the program, making it
81160         easier to run in debugger.  Add some tests.
81161         * modules/canonicalize-tests (Files): Remove unused file.
81162         (Depends-on): Add progname.
81163         (configure.ac, Makefile.am): Simplify.
81165         test-canonicalize-lgpl: consolidate into single C program
81166         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
81167         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
81168         easier to run in debugger.  Add some tests.
81169         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
81170         (configure.ac, Makefile.am): Simplify.
81172         canonicalize: avoid resolvepath
81173         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
81174         unnecessary checks.
81175         * lib/canonicalize.c (includes): Simplify.
81176         (canonicalize_file_name): Drop resolvepath implementation.
81177         * modules/canonicalize (Depends-on): Drop filenamecat.
81179         canonicalize: don't lose errno
81180         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
81181         over calls to free.
81183         canonicalize: simplify errno handling
81184         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
81185         assignment.
81187         canonicalize, canonicalize-lgpl: update module dependencies
81188         * modules/canonicalize (Depends-on): Add extensions, lstat,
81189         pathmax, stdlib.
81190         (Files): Drop pathmax.h.
81191         (configure.ac): Adjust macro name.
81192         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
81193         lstat, stdlib, sys_stat.
81194         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
81195         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
81196         extensions.
81197         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
81198         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
81199         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
81200         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
81201         declaration, if available.
81202         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
81203         we can rely on the readlink module.
81204         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
81205         (includes): Use <unistd.h> unconditionally.
81207 2009-09-17  Eric Blake  <ebb9@byu.net>
81209         maint: make Include sections of modules consistent
81210         * modules/alloca: Use only header name; no need to list #include.
81211         * modules/alloca-opt: Likewise.
81212         * modules/arpa_inet: Likewise.
81213         * modules/canon-host: Likewise.
81214         * modules/configmake: Likewise.
81215         * modules/dirent: Likewise.
81216         * modules/eealloc: Likewise.
81217         * modules/environ: Likewise.
81218         * modules/fchdir: Likewise.
81219         * modules/fcntl: Likewise.
81220         * modules/fcntl-h: Likewise.
81221         * modules/gethrxtime: Likewise.
81222         * modules/gettime: Likewise.
81223         * modules/ignore-value: Likewise.
81224         * modules/inet_ntop: Likewise.
81225         * modules/inet_pton: Likewise.
81226         * modules/inttypes: Likewise.
81227         * modules/isnand-nolibm: Likewise.
81228         * modules/isnanf-nolibm: Likewise.
81229         * modules/mbchar: Likewise.
81230         * modules/mbfile: Likewise.
81231         * modules/mbiter: Likewise.
81232         * modules/mbuiter: Likewise.
81233         * modules/netdb: Likewise.
81234         * modules/netinet_in: Likewise.
81235         * modules/nproc: Likewise.
81236         * modules/pagealign_alloc: Likewise.
81237         * modules/poll: Likewise.
81238         * modules/printf-frexp: Likewise.
81239         * modules/pthread: Likewise.
81240         * modules/putenv: Likewise.
81241         * modules/random_r: Likewise.
81242         * modules/relocatable-prog: Likewise.
81243         * modules/search: Likewise.
81244         * modules/select: Likewise.
81245         * modules/selinux-h: Likewise.
81246         * modules/settime: Likewise.
81247         * modules/signal: Likewise.
81248         * modules/size_max: Likewise.
81249         * modules/socklen: Likewise.
81250         * modules/ssize_t: Likewise.
81251         * modules/stdarg: Likewise.
81252         * modules/stdbool: Likewise.
81253         * modules/stddef: Likewise.
81254         * modules/stdint: Likewise.
81255         * modules/stdio: Likewise.
81256         * modules/stdlib: Likewise.
81257         * modules/string: Likewise.
81258         * modules/strings: Likewise.
81259         * modules/sys_file: Likewise.
81260         * modules/sys_ioctl: Likewise.
81261         * modules/sys_select: Likewise.
81262         * modules/sys_socket: Likewise.
81263         * modules/sys_stat: Likewise.
81264         * modules/sys_time: Likewise.
81265         * modules/sys_times: Likewise.
81266         * modules/sys_utsname: Likewise.
81267         * modules/sys_wait: Likewise.
81268         * modules/sysexits: Likewise.
81269         * modules/time: Likewise.
81270         * modules/times: Likewise.
81271         * modules/tmpfile: Likewise.
81272         * modules/trim: Likewise.
81273         * modules/unistd: Likewise.
81274         * modules/wchar: Likewise.
81275         * modules/wctype: Likewise.
81277 2009-09-17  Bruno Haible  <bruno@clisp.org>
81279         Make getdate.y compile on QNX and NetBSD 5 / i386.
81280         * m4/getdate.m4 (gl_GETDATE): Conditionally define
81281         TIME_T_FITS_IN_LONG_INT.
81282         * lib/getdate.y (long_time_t): New type.
81283         (relative_time): Change type of 'seconds' field to long_time_t.
81284         (get_date): Update types of local variables. Check against overflow
81285         during conversion from long_time_t to time_t.
81286         Reported by Matt Kraai <kraai@ftbfs.org>
81287         and Hasso Tepper <hasso@netbsd.org>.
81289 2009-09-17  Bruno Haible  <bruno@clisp.org>
81291         * modules/COPYING: Update copyright years.
81292         * modules/README: Likeiwse.
81293         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
81294         Reported by Ian Beckwith <ianb@erislabs.net>.
81296 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
81298         * users.txt: Update references for gnuit package.
81300 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
81302         * m4/getdelim.m4: Fix typo in copyright line.
81304 2009-09-17  Bruno Haible  <bruno@clisp.org>
81306         * lib/atoll.c: Use the standard header with GPL copyright.
81307         * lib/argz.in.h: Likewise.
81308         * lib/glob.c: Likewise.
81309         * lib/glob-libc.h: Likewise.
81310         * lib/random_r.c: Likewise.
81311         * lib/siglist.h: Likewise.
81312         * lib/strsignal.c: Likewise.
81313         Reported by Ian Beckwith <ianb@erislabs.net>.
81315 2009-09-17  Eric Blake  <ebb9@byu.net>
81317         rmdir: ensure correct dependency order
81318         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
81320 2009-09-17  Bruno Haible  <bruno@clisp.org>
81322         Disable assertion that fails on NetBSD 5 / i386.
81323         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
81324         Reported by Sam Steingold <sds@gnu.org>
81325         and Hasso Tepper <hasso@netbsd.org>.
81327 2009-09-16  Eric Blake  <ebb9@byu.net>
81329         unlinkdir: port to mingw
81330         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
81331         on which no one can unlink a directory.
81333         stdlib: sort witness names
81334         * modules/stdlib (Makefile.am): Sort replacements.
81335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
81336         * lib/stdlib.in.h: Likewise.
81338         parse-duration-tests: avoid link failure
81339         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
81340         LIBINTL.
81341         Reported by Tom G. Christensen.
81343         openat-tests: ensure unlinkat behaves like rmdir
81344         * tests/test-rmdir.c (main): Factor guts...
81345         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
81346         * modules/rmdir-tests (Files): Ship new file.
81347         * modules/openat-tests: New test.
81348         * tests/test-unlinkat.c: Likewise.
81350         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
81351         * modules/rmdir-errno (Status, Notice): Now obsolete.
81353         rmdir: work around cygwin 1.5.x and mingw bugs
81354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
81355         * lib/rmdir.c (rmdir): Work around it.
81356         * modules/rmdir (Status, Notice): No longer obsolete.
81357         (Files): Add dos.m4.
81358         (Depends-on): Add unistd.
81359         (configure.ac): Set witnesses.
81360         (License): Relax to LGPLv2+.
81361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
81362         * modules/unistd (Makefile.am): Substitute witnesses.
81363         * lib/unistd.in.h (rmdir): Declare replacement.
81364         * doc/posix-functions/rmdir.texi (rmdir): Document this.
81365         * modules/rmdir-tests: New tests.
81366         * tests/test-rmdir.c: Likewise.
81368 2009-09-15  Eric Blake  <ebb9@byu.net>
81370         fchdir: improve use of replacement functions
81371         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
81372         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
81373         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
81374         REPLACE_CLOSEDIR.
81375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
81376         * modules/sys_stat (Makefile.am): Substitute correct witness.
81377         * modules/dirent (Makefile.am): Likewise.
81378         * modules/unistd (Makefile.am): Likewise.
81379         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
81380         * lib/unistd.in.h (dup): Likewise.
81381         * lib/sys_stat.in.h (fstat): Likewise.
81383         maint: ignore gnulib-tool temp files
81384         * .gitignore: Ignore files created during gnulib-tool --test.
81386 2009-09-13  Jim Meyering  <meyering@redhat.com>
81388         posixtm: don't reject a time that specify "60" as the number of seconds
81389         * lib/posixtm.c (posixtime): The code to reject invalid dates
81390         would also reject a time specified with the .60 suffix.
81391         But POSIX allows that, in order to accommodate leap seconds.
81392         So don't reject it.
81393         (main): Adjust tests accordingly.
81394         * modules/posixtm (Depends-on): Add stpcpy.
81396 2009-09-11  Jim Meyering  <meyering@redhat.com>
81398         announce-gen: include [$release_type] in emitted Subject:
81399         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
81400         e.g., [stable] in the emitted Subject: line.
81402 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81404         Remove obsolete macros from several modules.
81405         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
81406         obsolete Autoconf macros with their modern counterparts.
81407         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
81408         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
81409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
81410         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
81411         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
81412         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
81413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
81414         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
81415         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
81416         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
81417         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
81418         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
81419         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
81420         * m4/sockets.m4 (gl_SOCKETS): Likewise.
81421         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
81422         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
81423         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
81424         * m4/time_r.m4 (gl_TIME_R): Likewise.
81425         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
81426         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
81427         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
81429         Fix copyright header in build-aux scripts.
81430         * build-aux/git-version-gen: Fix copyright header to match GPLv3
81431         recommendation.
81432         * build-aux/ncftpput-ftp: Likewise.
81433         * build-aux/update-copyright: Likewise.
81435 2009-09-09  Eric Blake  <ebb9@byu.net>
81437         test-link: allow Linux choice of errno
81438         * tests/test-link.c (main): Relax test for alternate error.
81440         strndup: fix improper m4 caching
81441         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
81442         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
81443         (gl_PREREQ_STRNDUP): Delete.
81444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
81445         * modules/string (Makefile.am): Substitute it.
81446         * lib/string.in.h (strndup): Modernize prototype.
81448         getcwd: port to mingw
81449         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
81450         different from the POSIX assumptions made throughout the getcwd
81451         module; fortunately, the mingw getcwd does not need replacement.
81452         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
81453         * modules/getcwd-tests: New test.
81454         * tests/test-getcwd.c: Likewise.
81456         link: fix platform bugs
81457         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
81458         * lib/link.c (link): Work around them.  Fix related mingw bug.
81459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
81460         * modules/unistd (Makefile.am): Substitute it.
81461         * lib/unistd.in.h (link): Declare replacement.
81462         * doc/posix-functions/link.texi (link): Document this.
81463         * modules/link (Depends-on): Add strdup-posix, sys_stat.
81465         test-link: consolidate into single C program, test more cases
81466         * tests/test-link.sh: Delete.
81467         * tests/test-link.c: Test more error conditions.  Exposes bugs on
81468         at least Cygwin and Solaris.
81469         * modules/link-tests (Files): Remove unused file.
81470         (Depends-on): Add errno, sys_stat.
81471         (Makefile.am): Simplify.
81473 2009-09-08  Bruno Haible  <bruno@clisp.org>
81475         Work around towlower, towupper bug on mingw.
81476         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
81477         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
81478         * doc/posix-functions/towlower.texi: Mention the mingw bug.
81479         * doc/posix-functions/towupper.texi: Likewise.
81480         Reported by Eric Blake.
81482 2009-09-08  Jim Meyering  <meyering@redhat.com>
81484         build: don't try to run autoheader if we don't use it
81485         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
81486         is not used in configure.ac.
81488 2009-09-08  Eric Blake  <ebb9@byu.net>
81490         euidaccess: fix compilation error
81491         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
81493         rawmemchr: relax license
81494         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
81495         okay.
81496         Reported by Jim Meyering.
81498         mkfifoat: new module
81499         * modules/mkfifoat: New file.
81500         * lib/mkfifoat.c: Likewise.
81501         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
81502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
81503         * modules/sys_stat (Makefile.am): Use them.
81504         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
81505         * MODULES.html.sh (File system functions): Mention module.
81506         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
81507         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
81508         * modules/mkfifoat-tests: New test.
81509         * tests/test-mkfifoat.c: Likewise.
81511         strchrnul: relax license
81512         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
81513         okay.
81514         Reported by Jim Meyering.
81516 2009-09-08  Eric Blake  <ebb9@byu.net>
81518         fstatat: fix compilation on Solaris
81519         * lib/fstatat.c (includes): Add fcntl.h.
81520         Reported by Pádraig Brady.
81522 2009-09-07  Eric Blake  <ebb9@byu.net>
81524         rename: modernize replacement
81525         * modules/rename (Depends-on): Add stdio.
81526         (configure.ac): Declare witness.
81527         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
81528         stdio take care of replacement.
81529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
81530         * modules/stdio (Makefile.am): Substitute them.
81531         * lib/stdio.in.h (rename): Declare replacement.
81532         * lib/rename.c (includes): Allow cross-compilation to non-windows
81533         machines.
81534         * doc/posix-functions/rename.texi (rename): Improve
81535         documentation.
81537         stdio: sort witness names
81538         * modules/stdio (Makefile.am): Sort replacements.
81539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81540         * lib/stdio.in.h: Likewise.
81542         getcwd: minor cleanups
81543         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
81544         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
81546         openat: provide more convenience names
81547         * modules/faccessat (configure.ac): Add C witness.
81548         * lib/unistd.in.h (readlinkat): Fix typo.
81549         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
81550         convenience wrappers.
81551         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
81552         wrappers in syntax checks.
81554 2009-09-06  Eric Blake  <ebb9@byu.net>
81556         doc: fix comments in recent patches
81557         * lib/faccessat.c: Mention correct function.
81558         * lib/fchmodat.c: Likewise.
81559         * lib/fchownat.c: Likewise.
81560         * lib/symlinkat.c: Likewise.
81561         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
81562         constants.
81564         faccessat, symlinkat: continue cleanup of previous patch
81565         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
81566         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81567         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
81568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
81569         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
81570         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
81571         set.
81573 2009-09-06  Bruno Haible  <bruno@clisp.org>
81575         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
81576         (fstatat): Declare if GNULIB_FSTATAT is set.
81577         (mkdirat): Declare if GNULIB_MKDIRAT is set.
81578         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
81579         (unlinkat): Declare if GNULIB_UNLINKAT is set.
81580         * modules/fcntl-h (Files): Remove m4/openat.m4.
81581         * modules/sys_stat (Files): Remove m4/openat.m4.
81582         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
81583         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
81584         * modules/unistd (Files): Remove m4/openat.m4.
81585         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
81586         GNULIB_OPENAT.
81587         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
81588         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
81589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
81590         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
81591         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
81592         gl_OPENAT_DEFAULTS.
81593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
81594         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
81595         Don't require gl_OPENAT_DEFAULTS.
81596         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
81597         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
81598         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
81599         (gl_OPENAT_DEFAULTS): Remove macro.
81601 2009-09-06  Bruno Haible  <bruno@clisp.org>
81603         * modules/openat (configure.ac): Remove unneeded witness.
81605 2009-09-06  Bruno Haible  <bruno@clisp.org>
81607         Set errno to ENOSYS when a function is entirely unsupported.
81608         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
81609         EOPNOTSUPP.
81610         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81611         * modules/chown (Depends-on): Remove errno.
81613 2009-09-06  Bruno Haible  <bruno@clisp.org>
81615         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
81617 2009-09-06  Bruno Haible  <bruno@clisp.org>
81619         * lib/sys_stat.in.h: Fix preprocessor command indentation.
81621 2009-09-06  Ben Pfaff  <blp@gnu.org>
81622             Bruno Haible  <bruno@clisp.org>
81624         Work around a glibc bug in strtok_r.
81625         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
81626         Undefine if UNDEFINE_STRTOK_R is set.
81627         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
81628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81629         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
81630         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
81631         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
81632         UNDEFINE_STRTOK_R.
81633         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
81635 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
81637         exclude: minor fix
81638         * lib/exclude.c: Include wctype.h
81640 2009-09-06  Akim Demaille  <demaille@gostai.com>
81642         bootstrap: improve error message
81643         * build-aux/bootstrap (find_tool): Upon failure, report the list
81644         of candidates.
81645         Honor the initial value of the envvar.
81647 2009-09-05  Eric Blake  <ebb9@byu.net>
81649         symlinkat: new module
81650         * modules/symlinkat: New file.
81651         * lib/symlinkat.c: Likewise.
81652         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
81653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
81654         * modules/unistd (Makefile.am): Use them.
81655         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
81656         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
81657         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
81658         * MODULES.html.sh (File system functions): Mention module.
81659         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
81660         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
81661         * modules/symlinkat-tests: New test.
81662         * tests/test-symlinkat.c: Likewise.
81664         test-openat-safer: add more checks
81665         * tests/test-openat-safer.c (main): Check more code paths.
81667 2009-09-05  Jim Meyering  <meyering@redhat.com>
81669         syntax-check: detect unnecessary inclusion of openat.h
81670         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
81672 2009-09-05  Bruno Haible  <bruno@clisp.org>
81674         Support towlower, towupper.
81675         * doc/posix-functions/towlower.texi: Mention module wctype.
81676         * doc/posix-functions/towupper.texi: Likewise.
81677         * lib/wctype.in.h (towlower, towupper): New functions.
81678         * tests/test-wctype.c: Include stdio.h, stdlib.h.
81679         (ASSERT): New macro.
81680         (e): New variable.
81681         (main): Test also towlower, towupper. Test WEOF argument.
81682         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81684 2009-09-05  Bruno Haible  <bruno@clisp.org>
81686         Fix conversion behaviour when the input is invalid.
81687         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
81688         mark occurring in first pass of indirect conversion.
81689         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
81690         input.
81691         Found by clang's static analyzer.
81693 2009-09-05  Bruno Haible  <bruno@clisp.org>
81695         * tests/test-striconveh.c (main): Test indirect conversion on platforms
81696         where direct conversion is possible.
81698 2009-09-04  Eric Blake  <ebb9@byu.net>
81700         openat: fail with ENOENT on empty name
81701         * lib/openat-proc.c (openat_proc_name): Special-case the empty
81702         buffer.
81704         link-follow: fix logic bug in prior patch
81705         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
81706         reversed sense of yes and no in prior patch.  Avoid confusing
81707         compilation failure with desired semantics.
81709         link-follow: accommodate mingw and cross-compilation
81710         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
81711         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
81712         cross-compilation results to -1, to make linkat easier to
81713         implement when cross-compiling.  Trivially support mingw.
81714         * modules/link-follow (configure.ac): Call new name.
81715         * NEWS: Mention this.
81717 2009-09-03  Eric Blake  <ebb9@byu.net>
81719         faccessat: compile replacement
81720         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
81721         needed.
81723         fts: fix compilation error
81724         * lib/fts.c (includes): Re-add "openat.h", for
81725         openat_needs_fchdir.
81727         faccessat: new module
81728         * modules/faccessat: New file.
81729         * lib/faccessat.c: Likewise.
81730         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81732         * modules/unistd (Makefile.am): Use it.
81733         * lib/unistd.in.h (faccessat): Declare it.
81734         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
81735         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
81736         * MODULES.html.sh (File system functions): Mention it.
81737         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
81738         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
81740         euidaccess: prefer POSIX over non-standard implementation
81741         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
81742         * lib/euidaccess.c (euidaccess): Use it if available.
81744         openat: make template easier to use
81745         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
81746         AT_FUNC_F2 to be undefined.
81747         (VALIDATE_FLAG): New macro; use it to reject bad flags.
81748         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
81749         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
81750         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
81751         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
81752         Likewise.
81753         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
81754         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
81755         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
81756         Likewise.
81758         openat: declare in POSIX headers
81759         * NEWS: Mention this.
81760         * modules/openat (configure.ac): Declare witnesses.
81761         (Depends-on): Add fcntl-h, sys_stat, unistd.
81762         (Include): Mention correct headers.
81763         * modules/fcntl-h (Depends-on): Add link-warning.
81764         (Files): Add openat.m4.
81765         (Makefile.am): Substitute witnesses.
81766         * modules/sys_stat (Files, Makefile.am): Likewise.
81767         * modules/unistd (Files, Makefile.am): Likewise.
81768         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
81769         (gl_OPENAT_DEFAULTS): New macro.
81770         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
81771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
81772         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
81773         (SYS_STAT_H): Remove unused variable.
81774         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
81775         * lib/fcntl--.h (includes): Remove unneeded header.
81776         * lib/openat-safer.c (includes): Likewise.
81777         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
81778         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
81779         appropriate headers.
81780         (__OPENAT_PREFIX): Delete.
81781         * lib/fcntl.in.h (openat): Provide declaration.
81782         (AT_FDCWD): Fix Solaris bug.
81783         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
81784         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
81785         * lib/fchmodat.c (includes):  Adjust to find declaration.
81786         * lib/fchownat.c (includes): Likewise.
81787         * lib/mkdirat.c (includes): Likewise.
81788         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
81789         still visible.
81791 2009-09-02  Eric Blake  <ebb9@byu.net>
81793         errno: use consistently
81794         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
81795         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
81796         * lib/canonicalize.c (ELOOP): Likewise.
81797         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
81798         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
81799         * lib/lchown.c (EOPNOTSUPP): Likewise.
81800         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
81801         * lib/savewd.c (ESTALE): Likewise.
81802         * lib/settime.c (ENOSYS): Likewise.
81803         * lib/utimens.c (ENOSYS): Likewise.
81804         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
81805         * lib/chdir-safer.c (ELOOP): Likewise.
81806         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
81807         * modules/c-stack (Depends-on): Add errno.
81808         * modules/canonicalize (Depends-on): Likewise.
81809         * modules/chdir-safer (Depends-on): Likewise.
81810         * modules/fdopendir (Depends-on): Likewise.
81811         * modules/inet_ntop (Depends-on): Likewise.
81812         * modules/inet_pton (Depends-on): Likewise.
81813         * modules/lchown (Depends-on): Likewise.
81814         * modules/openat (Depends-on): Likewise.
81815         * modules/savewd (Depends-on): Likewise.
81816         * modules/settime (Depends-on): Likewise.
81817         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
81819         fts: avoid leaking fds
81820         * modules/fts (Depends-on): Add cloexec.
81821         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
81822         flag.
81824         fts: make directory fds more robust
81825         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
81826         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
81828         backupfile, chdir-long, fts, savedir: make safer
81829         * lib/backupfile.c (includes): Use "dirent--.h", since
81830         numbered_backup can write to stderr during readdir.
81831         * lib/savedir.c (includes): Likewise.
81832         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
81833         emulation can write to stderr on failure.
81834         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
81835         * lib/getcwd.c: Document why opendir_safer is unused.
81836         * lib/glob.c: Likewise.
81837         * lib/scandir.c: Likewise.
81838         * lib/openat-proc.c: Likewise, for open_safer.
81839         * modules/backupfile (Depends-on): Add dirent-safer.
81840         * modules/savedir (Depends-on): Likewise.
81841         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
81842         * modules/chdir-long (Depends-on): Add openat-safer.
81844         openat-safer: new module
81845         * modules/openat-safer: New file.
81846         * lib/openat-safer.c: Likewise.
81847         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
81848         * lib/fcntl-safer.h (openat_safer): Declare.
81849         * lib/fcntl--.h (openat): Override.
81850         * MODULES.html.sh (File descriptor based I/O): Mention it.
81851         * lib/openat.h: Add double-inclusion guards.
81852         * lib/openat.c (includes): Only include "fcntl-safer.h", not
81853         "fcntl--.h", so we can implement openat.
81854         * modules/openat-safer-tests: New test.
81855         * tests/test-openat-safer.c: New file.
81857         dirent-safer: new module
81858         * modules/dirent-safer: New file.
81859         * lib/dirent--.h: Likewise.
81860         * lib/dirent-safer.h: Likewise.
81861         * lib/opendir-safer.c: Likewise.
81862         * m4/dirent-safer.m4: Likewise.
81863         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
81864         * modules/dirent-safer-tests: New test.
81865         * tests/test-dirent-safer.c: New file.
81866         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
81868         fdopendir: optimize on mingw
81869         * lib/unistd.in.h (_gl_directory_name): New prototype.
81870         * lib/fchdir.c (_gl_directory_name): Implement it.
81871         (fchdir): Use it to simplify implementation.
81872         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
81873         fchdir, when available, to avoid calling [f]chdir().
81875         fdopendir: split into its own module
81876         * lib/openat.c (fdopendir): Move...
81877         * lib/fdopendir.c: ...into new file.
81878         * modules/fdopendir: New module.
81879         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
81880         * modules/openat (Depends-on): Add fdopendir.
81881         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
81882         fdopendir here.
81883         * modules/savedir (Depends-on): Only need fdopendir, not full
81884         openat.
81885         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
81886         * lib/openat.h (fdopendir): Drop prototype.
81887         * lib/dirent.in.h (fdopendir): Provide prototype.
81888         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
81889         * modules/dirent (Makefile.am): Substitute them.
81890         * MODULES.html.sh (File system functions): Mention it.
81891         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
81892         * modules/fdopendir-tests: New file.
81893         * tests/test-fdopendir.c: Likewise.
81895         fchdir: use more consistent macro convention
81896         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
81897         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
81898         REPLACE_FCHDIR, rather than relying on config.h macros.
81899         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
81900         inside a single make-time REPLACE_FCHDIR block, rather than using
81901         the config.h FCHDIR_REPLACEMENT.
81902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
81903         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
81904         Manage fstat replacement.
81905         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
81906         REPLACE_FCHDIR.
81907         * modules/sys_stat (Files): Add m4/unistd_h.m4.
81908         (Makefile.am): Substitute REPLACE_FCHDIR.
81909         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
81910         FCHDIR_REPLACEMENT.
81911         * lib/dup-safer.c (dup_safer): Likewise.
81912         * lib/dup2.c (rpl_dup2): Likewise.
81913         * lib/dup3.c (rpl_dup3): Likewise.
81914         * lib/open.c (rpl_open): Likewise.
81916         fchdir: simplify error handling, and support dup3
81917         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
81918         stdbool, malloc-posix, realloc-posix.
81919         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
81920         (ensure_dirs_slot): Return false on allocation failure.
81921         (rpl_dup2): Delete.
81922         (_gl_register_dup): New function.
81923         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
81924         (_gl_register_fd): Close fd on allocation failure.
81925         * lib/fcntl.in.h (_gl_register_fd): Update signature.
81926         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
81927         prototype.
81928         (rpl_dup2_fchdir): Delete prototype.
81929         * lib/open.c (open): Update caller.
81930         * lib/dup2.c (dup2): Track fchdir metadata.
81931         * lib/dup3.c (dup3): Likewise.
81932         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
81933         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
81935 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81937         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
81938         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
81939         don't pass arguments to AC_OUTPUT.
81941 2009-09-02  Bruno Haible  <bruno@clisp.org>
81943         * modules/mkdtemp (License): Relicense under LGPLv2+.
81944         Reported by Paolo Bonzini.
81946 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81948         Replace uses of obsolete autoconf macros in Jim's modules.
81949         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
81950         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
81951         can evoke a warning from autoconf when run with -Wobsolete
81952         enabled.  They were declared obsolete for good reasons (see
81953         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
81954         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
81955         should not continue using the deprecated macros.
81956         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
81957         obsolete Autoconf macros with modern counterparts.
81958         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81959         * m4/dos.m4 (gl_AC_DOS): Likewise.
81960         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
81961         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
81962         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
81963         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
81964         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
81965         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
81966         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
81967         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
81968         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
81969         Likewise.
81970         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
81971         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81972         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
81973         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
81974         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
81975         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81977 2009-09-01  Eric Blake  <ebb9@byu.net>
81979         fchdir: fix off-by-one bug in previous patch
81980         * lib/fchdir.c (rpl_fstat): Use correct bounds.
81981         (_gl_unregister_fd): Delete useless if.
81983 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
81985         maint.mk: sort the list of syntax-check rules
81986         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
81987         easier to get a sense of progress when the rules are run sequentially
81988         and take a long time.
81990 2009-09-01  Simon Josefsson  <simon@josefsson.org>
81992         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
81993         * modules/netinet_in: Likewise.
81994         * modules/sys_file: Likewise.
81995         * modules/sys_ioctl: Likewise.
81996         * modules/sys_select: Likewise.
81997         * modules/sys_socket: Likewise.
81998         * modules/sys_stat: Likewise.
81999         * modules/sys_time: Likewise.
82000         * modules/sys_times: Likewise.
82001         * modules/sys_utsname: Likewise.
82002         * modules/sys_wait: Likewise.
82004 2009-09-01  Jim Meyering  <meyering@redhat.com>
82006         fts: help ensure that return values are not ignored
82007         * lib/fts_.h (__GNUC_PREREQ): Define.
82008         (__attribute_warn_unused_result__): Define.
82009         (fts_children, fts_close, fts_open, fts_read): Declare with
82010         __attribute_warn_unused_result__.
82012         fts: fts_close now fails also when closing a dir file descriptor fails
82013         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
82014         and propagate to caller, along with errno.
82016         announce-gen: correct formatting in --help output
82017         * build-aux/announce-gen (usage): Move the one-line description in
82018         --help output "up", to where it belongs, just after Usage:.
82020 2009-08-31  Eric Blake  <ebb9@byu.net>
82022         fchdir: port to mingw
82023         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
82024         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
82025         opened, then use a substitute.
82026         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
82027         replacement.
82028         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
82029         (_gl_register_fd): No need to check stat if open already filters
82030         all directories.
82031         (fchdir): Fix error condition to match POSIX.
82032         * modules/fchdir (Depends-on): Add sys_stat.
82033         * doc/posix-functions/open.texi (open): Document the limitation.
82034         * modules/fchdir-tests: New file.
82035         * tests/test-fchdir.c: Likewise.
82037         canonicalize: allow cross-testing from cygwin to mingw
82038         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
82039         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
82040         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
82041         Likewise.
82042         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
82043         target does not support symlinks.
82044         * tests/test-canonicalize-lgpl.sh: Likewise.
82046         chown: avoid compilation warning on mingw
82047         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
82048         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
82049         mingw.
82050         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
82051         * modules/chown (Depends-on): Add errno.
82053 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
82055         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
82056         command.
82058 2009-08-31  Jim Meyering  <meyering@redhat.com>
82060         canonicalize: remove useless initialization
82061         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
82062         initialization of local, "end".
82064 2009-08-30  Bruno Haible  <bruno@clisp.org>
82066         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
82067         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
82068         ENOSYS.
82070 2009-08-30  Bruno Haible  <bruno@clisp.org>
82072         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
82073         /usr/xpg4/bin/tr when it exists.
82074         * tests/test-pipe-filter-gi1.sh: Likewise.
82076 2009-08-30  Bruno Haible  <bruno@clisp.org>
82078         Work around deficient /usr/bin/id program on Solaris.
82079         * tests/test-file-has-acl.sh (ID): New variable.
82080         * tests/test-set-mode-acl.sh (ID): Likewise.
82081         * tests/test-copy-acl.sh (ID): Likewise.
82082         * tests/test-copy-file.sh (ID): Likewise.
82084 2009-08-30  Bruno Haible  <bruno@clisp.org>
82086         New module 'xstriconveh'.
82087         * lib/xstriconveh.h: New file.
82088         * lib/xstriconveh.c: New file.
82089         * modules/xstriconveh: New file.
82091 2009-08-30  Bruno Haible  <bruno@clisp.org>
82093         Make it easier to use mem_cd_iconveh.
82094         * lib/striconveh.h (iconveh_t): New type.
82095         (iconveh_open, iconveh_close): New declarations.
82096         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
82097         with a single 'const iconveh_t *' argument.
82098         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
82099         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
82100         with a single 'const iconveh_t *' argument.
82101         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
82102         * tests/test-striconveh.c (main): Update.
82103         * NEWS: Mention the change.
82105 2009-08-30  Bruno Haible  <bruno@clisp.org>
82107         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
82108         problem.
82110 2009-08-30  Bruno Haible  <bruno@clisp.org>
82112         Work around iconv_open problem on Solaris.
82113         * lib/iconv_open-solaris.gperf: New file.
82114         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
82115         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
82116         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
82117         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
82118         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
82119         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
82121 2009-08-29  Jim Meyering  <meyering@redhat.com>
82123         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
82124         * top/maint.mk (cvs-check): Remove target; it was just an alias
82125         to the better-named vc-diff-check.
82126         (maintainer-distcheck): Remove rule.  It was used only from
82127         the (alpha/beta/major) target, and all of its commands but one
82128         were coreutils-specific.
82129         (vc-dist): Remove rule.
82130         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
82131         Run vc-diff-check, not vc-dist.
82132         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
82134 2009-08-27  Bruno Haible  <bruno@clisp.org>
82136         * tests/test-bitrotate.c (main): Remove test that uses a shift count
82137         of 0.
82139 2009-08-27  Bruno Haible  <bruno@clisp.org>
82141         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
82142         compilers.
82143         * doc/func.texi: Document the SunPRO C bug.
82145 2009-08-27  Bruno Haible  <bruno@clisp.org>
82147         Fix link error on Solaris.
82148         * tests/test-parse-duration.c (xstrdup): Remove function.
82150 2009-08-26  Pádraig Brady  <P@draigbrady.com>
82152         ignore-value: handle pointer types, too
82153         * lib/ignore-value.h (__attribute__): Remove definition.
82154         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
82155         of a more concise and more-often effective "(void) i" statement.
82156         (ignore_ptr): New function to suppress warnings from functions that
82157         return pointers, and to make it explicit that one function doesn't
82158         handle all cases.
82160 2009-08-25  Bruno Haible  <bruno@clisp.org>
82162         dup2: work around a Linux bug.
82163         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
82164         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
82165         * doc/posix-functions/dup2.texi: Mention the Linux bug.
82166         Reported by Simon Josefsson.
82168 2009-08-25  Jim Meyering  <meyering@redhat.com>
82170         libguestfs uses gnulib
82171         * users.txt: Add libguestfs.
82173 2009-08-24  Eric Blake  <ebb9@byu.net>
82175         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
82176         * lib/pipe2.c (includes): Add binary-io.h.
82177         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
82179 2009-08-24  Bruno Haible  <bruno@clisp.org>
82181         Tolerate declared but missing accept4 syscall.
82182         * lib/accept4.c (accept4): Invoke original accept4 function first, if
82183         available.
82184         * lib/sys_socket.in.h (accept4): If the function is already present,
82185         override it.
82186         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
82187         * modules/accept4 (Makefile.am): Compile accept4.c always.
82188         Reported by Paolo Bonzini and Eric Blake.
82190 2009-08-23  Bruno Haible  <bruno@clisp.org>
82192         New module 'accept4'.
82193         * lib/sys_socket.in.h (accept4): New declaration.
82194         * lib/accept4.c: New file.
82195         * m4/accept4.m4: New file.
82196         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
82197         GNULIB_ACCEPT4, HAVE_ACCEPT4.
82198         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
82199         HAVE_ACCEPT4.
82200         * modules/accept4: New file.
82201         * doc/glibc-functions/accept4.texi: Mention the new module.
82203 2009-08-24  Jim Meyering  <meyering@redhat.com>
82205         progname: also set global program_invocation_name, when possible
82206         Before this change, a libtool-enabled program that calls glibc's
82207         error function would report the program name as
82208         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
82209         * modules/progname (configure.ac): Check for a declaration of
82210         program_invocation_name.
82211         * lib/progname.c:  Include <errno.h>.
82212         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
82213         Set program_invocation_name.
82215 2009-08-23  Bruno Haible  <bruno@clisp.org>
82217         * lib/dup3.c: Include <string.h>.
82219 2009-08-23  Bruno Haible  <bruno@clisp.org>
82221         * lib/dup3.c (dup3): Test only once whether the system actually exists.
82222         * lib/pipe2.c (pipe2): Likewise.
82223         Suggested by Eric Blake.
82225 2009-08-23  Bruno Haible  <bruno@clisp.org>
82227         Tolerate declared but missing dup3 syscall.
82228         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
82229         * lib/unistd.in.h (dup3): If the function is already present,
82230         override it.
82231         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
82232         * modules/dup3 (Makefile.am): Compile dup3.c always.
82233         Reported by Paolo Bonzini.
82235 2009-08-23  Bruno Haible  <bruno@clisp.org>
82237         Tolerate declared but missing pipe2 syscall.
82238         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
82239         available.
82240         * lib/unistd.in.h (pipe2): If the function is already present,
82241         override it.
82242         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
82243         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
82244         Reported by Paolo Bonzini.
82246 2009-08-23  Bruno Haible  <bruno@clisp.org>
82248         * lib/pipe2.c (pipe2): Move #ifs inside function.
82250 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
82252         quotearg: document limitations of quote_these_too
82253         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
82254         those limitations are created.
82255         * lib/quotearg.h (set_char_quoting): Document that digits and
82256         letters that are special after backslash are not permitted.
82257         (quotearg_char): Cross-reference set_char_quoting documentation.
82259 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
82261         quotearg: implement custom_quoting_style
82262         * lib/quotearg.c: (struct quoting_options): Add left_quote and
82263         right_quote fields.
82264         (set_custom_quoting): New public function.
82265         (quotearg_buffer_restyled): Add left_quote and right_quote
82266         arguments, handle them very much like locale quoting, and update
82267         all uses.
82268         (quotearg_n_custom): New public function.
82269         (quotearg_n_custom_mem): New public function.
82270         (quotearg_custom): New public function.
82271         (quotearg_custom_mem): New public function.
82272         * lib/quotearg.h: Prototype and document new public functions.
82273         (enum quoting_style): For escape_quoting_style and
82274         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
82275         ignored even though they're otherwise like c_quoting_style.
82276         Add custom_quoting_style member and document with comparison to
82277         clocale_quoting_style.
82278         * tests/test-quotearg.c (custom_quotes): New array.
82279         (custom_results): New array.
82280         (main): Extend to test custom quoting.
82282 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
82284         quotearg: fix right quote escaping when it's in quote_these_too
82285         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
82286         quote, be sure to prepend only one backslash.
82287         * tests/test-quotearg.c (use_quote_double_quotes): New function.
82288         (main): Test it.
82290 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
82292         quotearg-tests: test escaping of embedded locale quotes
82293         * tests/test-quotearg.c (struct result_strings): Add member for
82294         new input.
82295         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
82296         (inputs): Add new input.
82297         (results_g): Add expected results.
82298         (flag_results): Likewise.
82299         (locale_results): Likewise.
82300         (compare_strings): Check those.
82302 2009-08-23  Bruno Haible  <bruno@clisp.org>
82304         Tests for module 'dup3'.
82305         * modules/dup3-tests: New file.
82306         * tests/test-dup3.c: New file.
82308         New module 'dup3'.
82309         * lib/unistd.in.h (dup3): New declaration.
82310         * lib/dup3.c: New file.
82311         * m4/dup3.m4: New file.
82312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
82313         HAVE_DUP3.
82314         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
82315         * modules/dup3: New file.
82316         * doc/glibc-functions/dup3.texi: Mention the new module.
82318 2009-08-23  Bruno Haible  <bruno@clisp.org>
82320         Tweak the dup2 test.
82321         * tests/test-dup2.c (main): Create the test file empty. Verify that an
82322         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
82323         the test file is still empty. Fix argument order of lseek.
82325 2009-08-23  Bruno Haible  <bruno@clisp.org>
82327         Avoid test link errors when the modules getopt-gnu, gettext are used.
82328         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
82329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82331 2009-08-23  Bruno Haible  <bruno@clisp.org>
82333         Fix getdtablesize() on mingw.
82334         * lib/getdtablesize.c (getdtablesize): Implement differently.
82335         * lib/unistd.in.h (getdtablesize): Improve comment.
82337 2009-08-23  Bruno Haible  <bruno@clisp.org>
82339         New module 'mkostemp'.
82340         Based on Ulrich Drepper's 2007-08-10 change in glibc.
82341         * lib/stdlib.in.h (mksotemp): New declaration.
82342         * lib/mkostemp.c: New file, from glibc with modifications.
82343         * lib/tempname.h (GT_FILE): Remove outdated comment.
82344         (gen_tempname): Add flags argument.
82345         * lib/tempname.c (__GT_BIGFILE): Remove macro.
82346         (__GT_FILE): Map to 1.
82347         (small_open, large_open): Remove macros.
82348         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
82349         * lib/mkstemp.c (mkstemp): Update.
82350         * lib/mkdtemp.c (mkdtemp): Likewise.
82351         * m4/mkostemp.m4: New file.
82352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
82353         HAVE_MKOSTEMP.
82354         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
82355         HAVE_MKOSTEMP.
82356         * modules/mkostemp: New file, based on modules/mkstemp.
82357         * doc/glibc-functions/mkostemp.texi: Mention the new module.
82358         * NEWS: Mention the change.
82360 2009-08-23  Bruno Haible  <bruno@clisp.org>
82362         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
82363         Reported by Eric Blake.
82365 2009-08-23  Bruno Haible  <bruno@clisp.org>
82367         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
82368         Reported by Eric Blake.
82370 2009-08-23  Bruno Haible  <bruno@clisp.org>
82372         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
82373         * modules/pipe2 (Depends-on): Likewise.
82375 2009-08-23  Eric Blake  <ebb9@byu.net>
82377         fcntl-h: add O_TTY_INIT support
82378         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
82379         * tests/test-fcntl-h.c (o): Test it.
82380         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
82382         fcntl-h: rename from fcntl, in preparation for fcntl(2)
82383         * modules/fcntl: Move <fcntl.h> header replacement...
82384         * modules/fcntl-h: ...to new name, so as not to collide with
82385         like-named function.
82386         * tests/test-fcntl.c: Rename...
82387         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
82388         * modules/fcntl-tests: Rename...
82389         * modules/fcntl-h-tests: ...to this.  Update test file name.
82390         * modules/chdir-long (Depends-on): Update clients.
82391         * modules/chdir-safer (Depends-on): Likewise.
82392         * modules/fcntl-safer (Depends-on): Likewise.
82393         * modules/fts (Depends-on): Likewise.
82394         * modules/mkancesdirs (Depends-on): Likewise.
82395         * modules/mkdir-p (Depends-on): Likewise.
82396         * modules/open (Depends-on): Likewise.
82397         * modules/savewd (Depends-on): Likewise.
82398         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
82399         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
82401 2009-08-22  Bruno Haible  <bruno@clisp.org>
82403         * modules/binary-io (License): Relicense under LGPL.
82404         * modules/pipe2 (License): Likewise.
82406 2009-08-22  Bruno Haible  <bruno@clisp.org>
82408         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
82409         return value.
82410         * lib/pipe-filter-gi.c (filter_init): Likewise.
82411         Reported by Eric Blake.
82413 2009-08-22  Bruno Haible  <bruno@clisp.org>
82415         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
82416         * modules/pipe (Depends-on): Add pipe2.
82418 2009-08-22  Bruno Haible  <bruno@clisp.org>
82420         Tests for module 'pipe2'.
82421         * modules/pipe2-tests: New file.
82422         * tests/test-pipe2.c: New file.
82424         New module 'pipe2'.
82425         * lib/unistd.in.h (pipe2): New declaration.
82426         * lib/pipe2.c: New file.
82427         * m4/pipe2.m4: New file.
82428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
82429         HAVE_PIPE2.
82430         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
82431         * modules/pipe2: New file.
82432         * doc/glibc-functions/pipe2.texi: Mention the new module.
82434 2009-08-22  Bruno Haible  <bruno@clisp.org>
82436         Reference some new glibc functions.
82437         * doc/glibc-functions/accept4.texi: New file.
82438         * doc/glibc-functions/dup3.texi: New file.
82439         * doc/glibc-functions/mkostemp.texi: New file.
82440         * doc/glibc-functions/pipe2.texi: New file.
82441         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
82442         (Glibc sys/socket.h): Refer to accept4.
82443         (Glibc unistd.h): Refer to dup3, pipe2.
82444         Reported by Eric Blake.
82446 2009-08-22  Jim Meyering  <meyering@redhat.com>
82447             Bruno Haible  <bruno@clisp.org>
82449         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
82450         This makes it so packages using automake-1.11's silent-rules option
82451         can print e.g., a single "GEN    configmake.h" line, rather than
82452         the 30+ statements that perform the job.  If you want to see the
82453         actual commands, you can still run "make V=1".
82454         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
82455         so that make output is abbreviated when those variables are defined
82456         appropriately.
82457         * modules/argz: Likewise.
82458         * modules/arpa_inet: Likewise.
82459         * modules/byteswap: Likewise.
82460         * modules/configmake: Likewise.
82461         * modules/dirent: Likewise.
82462         * modules/errno: Likewise.
82463         * modules/fcntl: Likewise.
82464         * modules/float: Likewise.
82465         * modules/fnmatch: Likewise.
82466         * modules/getopt-posix: Likewise.
82467         * modules/glob: Likewise.
82468         * modules/iconv_open: Likewise.
82469         * modules/inttypes: Likewise.
82470         * modules/localcharset: Likewise.
82471         * modules/locale: Likewise.
82472         * modules/math: Likewise.
82473         * modules/netdb: Likewise.
82474         * modules/netinet_in: Likewise.
82475         * modules/poll: Likewise.
82476         * modules/posix_spawnp-tests: Likewise.
82477         * modules/sched: Likewise.
82478         * modules/search: Likewise.
82479         * modules/selinux-h: Likewise.
82480         * modules/signal: Likewise.
82481         * modules/spawn: Likewise.
82482         * modules/stdarg: Likewise.
82483         * modules/stdbool: Likewise.
82484         * modules/stddef: Likewise.
82485         * modules/stdint: Likewise.
82486         * modules/stdio: Likewise.
82487         * modules/stdlib: Likewise.
82488         * modules/string: Likewise.
82489         * modules/strings: Likewise.
82490         * modules/sys_file: Likewise.
82491         * modules/sys_ioctl: Likewise.
82492         * modules/sys_select: Likewise.
82493         * modules/sys_socket: Likewise.
82494         * modules/sys_stat: Likewise.
82495         * modules/sys_time: Likewise.
82496         * modules/sys_times: Likewise.
82497         * modules/sys_utsname: Likewise.
82498         * modules/sys_wait: Likewise.
82499         * modules/sysexits: Likewise.
82500         * modules/time: Likewise.
82501         * modules/unistd: Likewise.
82502         * modules/wchar: Likewise.
82503         * modules/wctype: Likewise.
82505 2009-08-22  Jim Meyering  <meyering@redhat.com>
82507         announce-gen: detect write failure
82508         * build-aux/announce-gen: Add Coda at end.
82509         Remove equivalent-but-more-verbose block at top.
82511 2009-08-19  Akim Demaille  <demaille@gostai.com>
82513         bootstrap: --help to stdout.
82514         * bootstrap (usage): Don't send --help to stderr.
82515         Use a here doc instead of a long string.
82517 2009-08-21  Eric Blake  <ebb9@byu.net>
82519         test-popen-safer: split from test-popen
82520         * tests/test-popen.c (main): Move...
82521         * tests/test-popen.h: ...into new file.
82522         * tests/test-popen-safer2.c: New file.
82523         * modules/popen-tests (Files): Add test-popen.h.
82524         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
82525         Suggested by Bruno Haible.
82527         test-fcntl-safer: split from test-open
82528         * tests/test-open.c (main): Move...
82529         * tests/test-open.h: ...into new file.
82530         * tests/test-fcntl-safer.c: New file.
82531         * modules/open-tests (Files): Add test-open.h.
82532         * modules/fcntl-safer-tests: New file.
82533         Suggested by Bruno Haible.
82535         test-fopen-safer: split from test-fopen
82536         * tests/test-fopen.c (main): Move...
82537         * tests/test-fopen.h: ...into new file.
82538         * tests/test-fopen-safer.c: New file.
82539         * modules/fopen-tests (Files): Add test-fopen.h.
82540         * modules/fopen-safer-tests: New file.
82541         Suggested by Bruno Haible.
82543 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82545         popen-safer: test O_CLOEXEC at run-time.
82546         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
82548 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82550         fcntl: move more flags to the header
82551         * lib/cloexec.c: Do not define FD_CLOEXEC here.
82552         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
82553         * lib/fcntl.in.h: Do both things here.
82555 2009-08-21  Jim Meyering  <meyering@redhat.com>
82557         consistently remove $@-t before redirecting to it
82558         * modules/argz: Remove $@-t and $@ before redirecting to the former.
82559         * modules/alloca-opt: Likewise.
82560         * modules/byteswap: Likewise.
82561         * modules/fnmatch: Likewise.
82562         * modules/getopt-posix: Likewise.
82563         * modules/glob: Likewise.
82564         * modules/poll: Likewise.
82565         * modules/posix_spawnp-tests: Likewise.
82566         * modules/sys_socket: Likewise.
82567         * modules/sysexits: Likewise.
82569 2009-08-21  Eric Blake  <ebb9@byu.net>
82571         popen: simplify access to original popen
82572         * lib/popen.c (rpl_popen): No need to worry about popen being a
82573         macro.
82574         Reported by Bruno Haible.
82576 2009-08-20  Eric Blake  <ebb9@byu.net>
82578         build: avoid some compiler warnings
82579         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
82580         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
82581         type.
82582         (new_exclude_segment, excluded_file_pattern_p)
82583         (excluded_file_name_p): Reduce scope.
82584         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
82585         old-style declaration.
82587 2009-08-20  Simon Josefsson  <simon@josefsson.org>
82589         * tests/test-exclude1.sh: Handle Windows EOL.
82590         * tests/test-exclude2.sh: Likewise.
82591         * tests/test-exclude3.sh: Likewise.
82592         * tests/test-exclude4.sh: Likewise.
82593         * tests/test-exclude5.sh: Likewise.
82594         * tests/test-exclude6.sh: Likewise.
82595         * tests/test-exclude7.sh: Likewise.
82597 2009-08-19  Akim Demaille  <demaille@gostai.com>
82599         bootstrap: find sha1sum when named gsha1sum.
82600         * bootstrap (find_tool): New.
82601         ($SHA1SUM): New.
82602         Use it.
82604 2009-08-20  Jim Meyering  <meyering@redhat.com>
82606         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
82607         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
82608         expression that converts "." in a file name to "\." in the resulting
82609         regexp.  Start with a dummy statement, so that prior shell variable
82610         definitions are expanded portably.  Reported by Simon Josefsson.
82612 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
82614         Fix polling for writeability of a screen buffer.
82615         * lib/poll.c: Distinguish input and screen buffers for the
82616         Win32 implementation.
82617         * lib/select.c: Likewise.
82619 2009-08-19  Eric Blake  <ebb9@byu.net>
82621         popen-safer: prevent popen from clobbering std descriptors
82622         * modules/popen-safer: New file.
82623         * lib/popen-safer.c: Likewise.
82624         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
82625         * lib/stdio--.h (popen): Provide override.
82626         * lib/stdio-safer.h (popen_safer): Provide declaration.
82627         * tests/test-popen.c (includes): Partially test this.
82628         * modules/popen-safer-tests: New file, for more tests.
82629         * tests/test-popen-safer.c: Likewise.
82630         * MODULES.html.sh (file stream based Input/Output): Mention it.
82632         tests: test some of the *-safer modules
82633         * modules/fopen-safer (Depends-on): Add fopen.
82634         * modules/fcntl-safer (Depends-on): Add fcntl.
82635         * modules/stdlib-safer (Depends-on): Add stdlib.
82636         (configure.ac): Set indicator.
82637         * modules/unistd-safer (configure.ac): Likewise.
82638         * modules/tmpfile-safer (configure.ac): Likewise.
82639         (Depends-on): Add tmpfile.
82640         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
82641         active.
82642         * tests/test-fopen.c (includes): Test safer versions when they are
82643         in use.
82644         * tests/test-open.c (includes): Likewise.
82646         popen: fix cygwin 1.5 bug when stdin closed
82647         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
82648         * modules/popen: New file.
82649         * modules/popen-tests: Likewise.
82650         * tests/test-popen.c: Likewise.
82651         * m4/popen.m4: Likewise.
82652         * lib/popen.c: Likewise.
82653         * lib/stdio.in.h (popen): New declaration.
82654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
82655         * modules/stdio (Makefile.am): Likewise.
82656         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
82658 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
82660         maint.mk: give full control over update-copyright exclusions
82661         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
82662         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
82663         (update-copyright): Don't force inclusion of top-level
82664         ChangeLog.  Don't force exclusion of all COPYING files, but make
82665         them the default exclusion instead.
82667 2009-08-16  Bruno Haible  <bruno@clisp.org>
82669         Fix test failures on Solaris 10.
82670         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
82671         tests when Solaris iconv() is used.
82672         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
82673         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
82674         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
82675         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
82676         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
82678 2009-08-16  Bruno Haible  <bruno@clisp.org>
82680         Fix test failures on Solaris 10.
82681         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
82682         'tr' program and pass it as first argument.
82683         * tests/test-pipe-filter-gi1.sh: Likewise.
82684         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
82685         program as first argument.
82686         * tests/test-pipe-filter-gi1.c (main): Likewise.
82688 2009-08-16  Eric Blake  <ebb9@byu.net>
82690         fpurge: fix previous commits
82691         * modules/fpurge (Makefile.am): Make replacement conditional,
82692         partially reverting 2007-04-29 change; missed in previous
82693         attempt.
82694         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
82695         is missing.
82697 2009-08-16  Bruno Haible  <bruno@clisp.org>
82699         Clarify fpurge's effect on the file position.
82700         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
82701         * tests/test-fpurge.c (main): Make a second pass for checking the file
82702         position.
82704 2009-08-16  Bruno Haible  <bruno@clisp.org>
82706         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
82707         declaration of fpurge is missing.
82708         * tests/test-fpurge.c (main): Check that the file has not more contents
82709         than expected. Close the file before removing it.
82711 2009-08-15  Eric Blake  <ebb9@byu.net>
82713         fpurge: don't wrap working cygwin implementation
82714         * lib/fpurge.c (fpurge): Fix comment typo.
82715         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
82716         1.7 to avoid replacement.
82717         * tests/test-fpurge.c (main): Enhance test.
82719 2009-08-15  Eric Blake  <ebb9@byu.net>
82720         and Jim Meyering  <meyering@redhat.com>
82722         test-update-copyright: skip if perl is insufficient
82723         * tests/test-update-copyright.sh: Failure to run maintainer tool
82724         should not cause testsuite failure on cygwin 1.5.
82726 2009-08-14  Eric Blake  <ebb9@byu.net>
82728         doc: mention more functions added in cygwin 1.7.0
82729         * doc/posix-headers/limits.texi (limits.h): Update for recent
82730         cygwin additions.
82731         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
82732         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
82733         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
82734         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
82735         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
82737 2009-08-14  Eric Blake  <ebb9@byu.net>
82739         maint.mk: simplify update-copyright rule
82740         * top/maint.mk (update-copyright-local): Delete, and document how
82741         to do it in cfg.mk instead.
82742         (update-copyright-exclude-regexp): Delete, and document how to do
82743         it in .x-update-copyright instead.
82744         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
82745         exclude ChangeLog.
82747 2009-08-14  Bruno Haible  <bruno@clisp.org>
82749         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
82751 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82753         maint.mk: support update-copyright-env
82754         * top/maint.mk (update-copyright-env): Define place-holder.
82755         (update-copyright): Expand $(update-copyright-env) before
82756         invoking update-copyright.
82758 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82760         update-copyright: implement forced reformatting
82761         * build-aux/update-copyright: Implement and document
82762         UPDATE_COPYRIGHT_FORCE.
82763         * tests/test-update-copyright.sh: Test it.
82765 2009-08-14  Eric Blake  <ebb9@byu.net>
82766         and Bruno Haible  <bruno@clisp.org>
82768         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
82769         * tests/test-locale.c: Revert previous patch related to NULL.
82770         * tests/test-stdio.c: Likewise.
82771         * tests/test-stdlib.c: Likewise.
82772         * tests/test-string.c: Likewise.
82773         * tests/test-unistd.c: Likewise.
82774         * modules/time-tests (Depends-on): Add verify.
82775         * modules/wchar-tests (Depends-on): Likewise.
82776         * tests/test-time.c: Test for NULL compliance.
82777         * tests/test-wchar.c: Likewise.
82778         * modules/locale (Depends-on): Add stddef.
82779         * modules/stdio (Depends-on): Likewise.
82780         * modules/stdlib (Depends-on): Likewise.
82781         * modules/string (Depends-on): Likewise.
82782         * modules/time (Depends-on): Likewise.
82783         * modules/unistd (Depends-on): Likewise.
82784         * modules/wchar (Depends-on): Likewise.
82785         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
82786         * lib/stdlib.in.h (includes): Likewise.
82787         * lib/string.in.h (includes): Likewise.
82788         * lib/time.in.h (includes): Likewise.
82789         * lib/unistd.in.h (includes): Likewise.
82790         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
82791         replaced.
82792         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
82793         * m4/stddef_h.m4: New file.
82794         * modules/stddef: Likewise.
82795         * lib/stddef.in.h: Likewise.
82796         * modules/stddef-tests: Likewise.
82797         * tests/test-stddef.c: Likewise.
82798         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
82799         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
82800         * doc/posix-headers/locale.texi (locale.h): Likewise.
82801         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
82802         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
82803         * doc/posix-headers/string.texi (string.h): Likewise.
82804         * doc/posix-headers/time.texi (time.h): Likewise.
82805         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
82806         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
82808 2009-08-14  Eric Blake  <ebb9@byu.net>
82810         doc: improve git diff of texinfo files
82811         * .gitattributes: Add rule for *.texi files, with hint on how to
82812         use it.
82813         Copied from m4, and based on a report by Bruno Haible.
82815 2009-08-14  Bruno Haible  <bruno@clisp.org>
82817         Disable multithread support by default on Cygwin 1.5.x for real.
82818         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
82820 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82822         update-copyright: much ado about intervals
82823         * build-aux/update-copyright: Implement and document
82824         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
82825         of copyright year intervals.
82826         Also, document UPDATE_COPYRIGHT_YEAR.
82827         * tests/test-update-copyright.sh: Test it.
82829         update-copyright: convert 2-digit to 4-digit years
82830         * build-aux/update-copyright: Implement and document.
82831         * tests/test-update-copyright.sh: Update.
82833 2009-08-14  Jim Meyering  <meyering@redhat.com>
82835         test-exclude: avoid coreutils "make check" failure
82836         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
82837         just as in test-argmatch.c.
82839 2009-08-13  Eric Blake  <ebb9@byu.net>
82841         test-dup2: fix bad assumption
82842         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
82843         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
82845         test-version-etc: fix CRLF portability issue
82846         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
82847         recognize \r.
82848         * tests/test-argp-version-etc-1.sh: Likewise.
82850         getopt: update client modules
82851         * modules/argp (Depends-on): Use getopt-gnu.
82852         * modules/git-merge-changelog (Depends-on): Likewise.
82853         * modules/long-options (Depends-on): Likewise.
82854         * modules/xstrtol (Depends-on): Likewise.
82856 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82858         * tests/test-version-etc.sh: Don't fail on different
82859         project/version.  Don't fail on CRLF differences.  Rewrite to use
82860         multiple -e instead of multiple sed forks, suggested by Eric Blake
82861         <ebb9@byu.net>.
82862         * tests/test-argp-version-etc-1.sh: Likewise.
82864 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82866         * tests/test-version-etc.sh: Don't fail on different
82867         project/version.
82869 2009-08-12  Bruno Haible  <bruno@clisp.org>
82871         Tests for modules 'getopt-posix', 'getopt-gnu'.
82872         * modules/getopt-posix-tests: New file.
82873         * tests/test-getopt.c: New file.
82874         * tests/test-getopt.h: New file.
82875         * tests/test-getopt_long.h: New file.
82877         New modules 'getopt-posix', 'getopt-gnu'.
82878         * modules/getopt-gnu: New file, renamed from modules/getopt.
82879         * modules/getopt-posix: New file.
82880         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
82881         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
82882         (gl_GETOPT): Remove macro.
82883         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
82884         Disable the test against BSD systems that declare optreset. Test
82885         against mingw bug. Test against lack of support of optional arguments
82886         on many platforms.
82887         * doc/glibc-headers/getopt.texi: Update module name and list of
82888         relevant platforms.
82889         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
82890         'getopt-gnu' and more portability problems.
82891         * NEWS: Mention the changes.
82893 2009-08-12  Bruno Haible  <bruno@clisp.org>
82895         Ensure that optarg etc. get declared by <unistd.h>.
82896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
82897         AC_USE_SYSTEM_EXTENSIONS.
82898         * modules/getopt (Depends-on): Add 'extensions'.
82900 2009-08-12  Bruno Haible  <bruno@clisp.org>
82902         Avoid test link errors.
82903         * modules/pipe-filter-ii-tests (Makefile.am): Define
82904         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
82905         * modules/pipe-filter-gi-tests (Makefile.am): Define
82906         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
82907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82909 2009-08-12  Bruno Haible  <bruno@clisp.org>
82911         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
82912         gl_GETOPT_SUBSTITUTE before.
82913         (gl_GETOPT): Use it.
82914         * m4/argp.m4 (gl_ARGP): Update.
82915         Reported by Sergey Poznyakoff.
82917         * m4/getopt.m4: Reorder macros.
82918         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
82919         (gl_GETOPT_SUBSTITUTE): Remove macro.
82921 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82923         Minor improvement in gitlog-to-changelog
82925         * build-aux/gitlog-to-changelog: New option `--format' makes
82926         output format string configurable.
82928 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82930         Optimize exclude: use hash tables for non-wildcard patterns.
82932         * lib/exclude.c: Include hash.h and mbuiter.h
82933         (struct exclude_pattern, exclude_segment): New data types.
82934         (struct exclude): Rewrite.
82935         (fnmatch_pattern_has_wildcards): New function.
82936         (new_exclude_segment, free_exclude_segment): New functions.
82937         (excluded_file_pattern_p, excluded_file_name_p): New functions.
82938         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
82939         * lib/exclude.h (is_fnmatch_pattern): New prototype.
82940         * modules/exclude: Depend on hash and mbuiter.
82942         * modules/exclude-tests: New file.
82943         * tests/test-exclude.c: New file.
82944         * tests/test-exclude1.sh: New file.
82945         * tests/test-exclude2.sh: New file.
82946         * tests/test-exclude3.sh: New file.
82947         * tests/test-exclude4.sh: New file.
82948         * tests/test-exclude5.sh: New file.
82949         * tests/test-exclude6.sh: New file.
82950         * tests/test-exclude7.sh: New file.
82952 2009-08-12  Bruno Haible  <bruno@clisp.org>
82954         Ensure that getopt() gets declared by <unistd.h>.
82955         * lib/unistd.in.h: Conditionally include getopt.h.
82956         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
82957         Set GNULIB_UNISTD_H_GETOPT.
82958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82959         GNULIB_UNISTD_H_GETOPT.
82960         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
82962 2009-08-12  Bruno Haible  <bruno@clisp.org>
82964         Clarify logic.
82965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
82966         gl_replace_getopt instead of GETOPT_H.
82968 2009-08-12  Bruno Haible  <bruno@clisp.org>
82970         * m4/getopt.m4: Add comments.
82972 2009-08-12  Bruno Haible  <bruno@clisp.org>
82974         Disable multithread support by default on Cygwin 1.5.x.
82975         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
82976         set gl_use_threads=no if not specified otherwise.
82978 2009-08-11  Bruno Haible  <bruno@clisp.org>
82980         Avoid compilation error on NetBSD 5.0.
82981         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
82982         * tests/test-stdio.c: Likewise.
82983         * tests/test-stdlib.c: Likewise.
82984         * tests/test-string.c: Likewise.
82985         * tests/test-unistd.c: Likewise.
82986         Reported by Greg Troxel <gdt@ir.bbn.com>
82987         at <https://savannah.gnu.org/support/?106973>.
82989 2009-08-11  Bruno Haible  <bruno@clisp.org>
82991         * modules/dup2-tests (Depends-on): Remove close.
82993         Undo 2009-07-19 commit.
82994         * modules/acl-tests (Depends-on): Remove close.
82995         * modules/binary-io-tests (Depends-on): Likewise.
82996         * modules/closein-tests (Depends-on): Likewise.
82997         * modules/flock-tests (Depends-on): Likewise.
82998         * modules/fsync-tests (Depends-on): Likewise.
82999         * modules/lseek-tests (Depends-on): Likewise.
83000         * modules/pipe-tests (Depends-on): Likewise.
83001         * modules/posix_spawn-tests (Depends-on): Likewise.
83002         * modules/posix_spawnp-tests (Depends-on): Likewise.
83003         * modules/stat-time-tests (Depends-on): Likewise.
83004         * modules/yesno-tests (Depends-on): Likewise.
83006 2009-08-10  Bruno Haible  <bruno@clisp.org>
83008         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
83010 2009-08-10  Bruno Haible  <bruno@clisp.org>
83012         Fix a gcc warning.
83013         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
83015 2009-08-10  Bruno Haible  <bruno@clisp.org>
83017         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
83018         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
83019         not only the first time.
83020         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
83021         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
83022         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
83023         is 1, not only the first time.
83025 2009-08-10  Bruno Haible  <bruno@clisp.org>
83027         Make it possible to use module 'gethostname' without module 'close'.
83028         * lib/unistd.in.h (close): Evoke a link error only if
83029         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
83030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
83031         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
83032         * modules/unistd (Makefile.am): Substitute
83033         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
83034         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
83035         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
83036         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
83037         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
83038         * modules/sys_ioctl (Makefile.am): Substitute
83039         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
83040         * modules/socket (configure.ac): On native Windows, set
83041         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
83042         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
83043         Reported by Sam Steingold <sds@gnu.org>.
83045 2009-08-10  Bruno Haible  <bruno@clisp.org>
83047         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
83048         * modules/ioctl (configure.ac): Likewise.
83050 2009-08-10  Bruno Haible  <bruno@clisp.org>
83052         Avoid collision between gnulib wrapper and libintl wrapper.
83053         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
83054         already defined in intl/printf.c.
83055         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
83056         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
83058 2009-08-09  Bruno Haible  <bruno@clisp.org>
83060         Make <sys/select.h> really self-contained, also on Solaris 10.
83061         * lib/sys_select.in.h: Include <string.h>.
83062         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
83063         Solaris 10 problem.
83064         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
83065         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
83066         Reported by Jim Meyering.
83068 2009-08-09  Bruno Haible  <bruno@clisp.org>
83070         Avoid warnings from 'aclocal' that are due to a use of macro name
83071         AM_XGETTEXT_OPTION that is not defined in automake.
83072         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
83073         automake.
83074         * modules/error (configure.ac): Likewise.
83075         * modules/propername (configure.ac): Likewise.
83076         * modules/vasprintf (configure.ac): Likewise.
83077         * modules/verror (configure.ac): Likewise.
83078         * modules/xprintf (configure.ac): Likewise.
83079         * modules/xvasprintf (configure.ac): Likewise.
83081 2009-08-08  Bruno Haible  <bruno@clisp.org>
83083         Avoid compilation error in C++ mode.
83084         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
83085         Reported by Sam Steingold <sds@gnu.org>.
83087 2009-08-08  Bruno Haible  <bruno@clisp.org>
83089         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
83090         for the various Unix platforms.
83091         * doc/posix-headers/limits.texi: Update platforms list regarding
83092         HOST_NAME_MAX.
83093         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83095 2009-08-07  Jim Meyering  <meyering@redhat.com>
83097         selinux-at: fix typo in a comment
83098         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
83099         Spotted by Paolo Bonzini.
83101         selinux-at: remove redundant m4 code, add documentation
83102         * modules/selinux-at (configure.ac): Remove redundant code.
83103         LIB_SELINUX is already set via the dependent module, selinux-h.
83104         (Include): Add quotes around selinux-at.h.
83105         * lib/selinux-at.h: Add documentation.
83106         Reported by Bruno Haible in
83107         http://marc.info/?l=gnulib-bug&m=124958988300749
83109 2009-08-07  Bruno Haible  <bruno@clisp.org>
83111         Avoid link error on MacOS X 10.3 and 10.4.
83112         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
83113         on non-ELF systems.
83114         * lib/argp-pv.c (argp_program_version): Likewise.
83115         Reported by Simon Josefsson.
83117 2009-08-07  Simon Josefsson  <simon@josefsson.org>
83119         * tests/test-version-etc.sh: Use $EXEEXT.
83121 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
83123         update-copyright: update documentation to point to maint.mk
83124         * build-aux/update-copyright: Here.
83126 2009-08-06  Jim Meyering  <meyering@redhat.com>
83128         maint.mk: support update-copyright-local
83129         * top/maint.mk (update-copyright-local): Define place-holder.
83130         (update-copyright): Depend on $(update-copyright-local).
83132 2009-08-06  Jim Meyering  <meyering@redhat.com>
83134         selinux-at: new module
83135         Initially written for coreutils, this module will soon be
83136         used by findutils, too.
83137         * MODULES.html.sh [Misc]: Add selinux-at.
83138         * lib/selinux-at.h: New file, from coreutils.
83139         * lib/selinux-at.c: Likewise.
83140         * modules/selinux-at: Likewise.
83141         (License): Change from LGPL to GPL, since it depends
83142         on the GPL'd openat module.
83144         doc: update README
83145         * README: Remove references to cogito.
83146         Remove cvs-repo-updating instructions from 2007.
83147         Don't imply that CVS is better if you have limited disk space.
83149 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83151         update-copyright: support C-style comments
83152         * build-aux/update-copyright: Implement and document.
83153         * tests/test-update-copyright.sh: Test.
83155 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83157         update-copyright: support omitted "(C)"
83158         * build-aux/update-copyright: Implement and document.  Also,
83159         allow variable whitespace before "(C)".
83160         * tests/test-update-copyright.sh: Test.
83162 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83164         update-copyright: don't trip on non-FSF copyright statements
83165         * build-aux/update-copyright: Fix so that the first correctly
83166         formatted FSF copyright statement is recognized no matter what
83167         appears before it.  Update documentation.
83168         * tests/test-update-copyright.sh: Test that.
83170 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83172         update-copyright: clean up code a little
83173         * build-aux/update-copyright: Append "_re" to the name of any
83174         variable holding a regular expression.
83175         Replace "old" and "new" with "stmt" in variable names.
83176         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
83177         handled correctly.
83178         Format code more consistently.
83180 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83182         update-copyright-tests: improve portability
83183         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
83184         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
83186 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
83188         update-copyright: support @copyright{} and &copy;
83189         * build-aux/update-copyright: Implement and document.
83190         * tests/test-update-copyright.sh: Test.
83192 2009-08-04  Jim Meyering  <meyering@redhat.com>
83194         update-copyright-tests: correctly test EOL=\r\n handling
83195         * tests/test-update-copyright.sh: Put \r at the end of some lines
83196         for the dos-eol tests.  Based on a patch by Joel E. Denny.
83198         maint.mk: make update-copyright exclusion list more configurable
83199         * top/maint.mk (update-copyright): Default to excluding COPYING,
83200         but allow an override, in case someone does want to update that file.
83202         maint.mk: don't update copyright date in COPYING
83203         * top/maint.mk (update-copyright): Exclude COPYING.
83205         maint.mk: add a copyright-updating rule
83206         * top/maint.mk (update-copyright): New rule.
83207         Derived from coreutils/Makefile.am.
83209         update-copyright: rename some variables
83210         * build-aux/update-copyright: Rename a few variables for clarity.
83211         Tweak syntax.  List Joel E. Denny as coauthor.
83213 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
83215         update-copyright: fix bug for 2-digit last year and add tests
83216         * build-aux/update-copyright: Fix bug.
83217         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
83218         specified.
83219         * modules/update-copyright-tests: New
83220         * tests/test-update-copyright.sh: New.
83222 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
83224         update-copyright: handle leading tabs in line prefix
83225         * build-aux/update-copyright: Count leading tabs as 8 spaces
83226         when computing margin.  This helps with the formatting of
83227         ChangeLogs, for example.
83228         Fix documentation a little.
83230 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
83232         update-copyright: support EOL=\r\n
83233         * build-aux/update-copyright: Implement that.
83235 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
83237         update-copyright: automatically format copyright statements
83238         * build-aux/update-copyright: Implement that.
83239         Also, be a little more predictable and safer by always failing
83240         when the full copyright format is not perfectly recognized as an
83241         unbroken whole.  Discussed at
83242         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
83243         Rewrite documentation.
83245 2009-08-03  Bruno Haible  <bruno@clisp.org>
83247         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
83249 2009-08-02  Bruno Haible  <bruno@clisp.org>
83251         Tests for module 'uname'.
83252         * modules/uname-tests: New file.
83253         * tests/test-uname.c: New file.
83255         New module 'uname'.
83256         * lib/uname.c: New file.
83257         * m4/uname.m4: New file.
83258         * modules/uname: New file.
83259         * doc/posix-functions/uname.texi: Mention the new module.
83261 2009-08-02  Bruno Haible  <bruno@clisp.org>
83263         Tests for module 'sys_utsname'.
83264         * modules/sys_utsname-tests: New file.
83265         * tests/test-sys_utsname.c: New file.
83267         New module 'sys_utsname'.
83268         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
83269         * m4/sys_utsname_h.m4: New file.
83270         * modules/sys_utsname: New file.
83271         * doc/posix-headers/sys_utsname.texi: Mention the new module.
83273 2009-08-02  Bruno Haible  <bruno@clisp.org>
83275         Implicitly initialize the sockets library.
83276         * lib/gethostname.c: Include sockets.h.
83277         (rpl_gethostname): Invoke gl_sockets_startup.
83278         * lib/socket.c: Include sockets.h.
83279         (rpl_socket): Invoke gl_sockets_startup.
83280         * modules/gethostname (Depends-on): Add sockets.
83281         * modules/socket (Depends-on): Likewise.
83282         * tests/test-poll.c: Don't include sockets.h.
83283         (main): Don't invoke gl_sockets_startup.
83284         * tests/test-select.c: Don't include sockets.h.
83285         (main): Don't invoke gl_sockets_startup.
83287 2009-08-02  Bruno Haible  <bruno@clisp.org>
83289         Allow multiple calls to gl_sockets_startup.
83290         * lib/sockets.c (initialized_sockets_version): New variable.
83291         (gl_sockets_startup): Do nothing if already called for this or a higher
83292         version.
83293         (gl_sockets_cleanup): Reset initialized_sockets_version.
83295 2009-08-03  Simon Josefsson  <simon@josefsson.org>
83297         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
83298         different project/version.
83300 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
83301             Bruno Haible  <bruno@clisp.org>
83303         Tests for module 'pipe-filter-gi'.
83304         * modules/pipe-filter-gi-tests: New file.
83305         * tests/test-pipe-filter-gi1.sh: New file.
83306         * tests/test-pipe-filter-gi1.c: New file.
83307         * tests/test-pipe-filter-gi2.sh: New file.
83308         * tests/test-pipe-filter-gi2-main.c: New file.
83309         * tests/test-pipe-filter-gi2-child.c: New file.
83311         New module 'pipe-filter-gi'.
83312         * lib/pipe-filter-gi.c: New file.
83313         * modules/pipe-filter-gi: New file.
83315 2009-08-02  Bruno Haible  <bruno@clisp.org>
83316             Paolo Bonzini  <bonzini@gnu.org>
83318         Tests for module 'pipe-filter-ii'.
83319         * modules/pipe-filter-ii-tests: New file.
83320         * tests/test-pipe-filter-ii1.sh: New file.
83321         * tests/test-pipe-filter-ii1.c: New file.
83322         * tests/test-pipe-filter-ii2.sh: New file.
83323         * tests/test-pipe-filter-ii2-main.c: New file.
83324         * tests/test-pipe-filter-ii2-child.c: New file.
83326         New module 'pipe-filter-ii'.
83327         * lib/pipe-filter.h: New file.
83328         * lib/pipe-filter-ii.c: New file.
83329         * lib/pipe-filter-aux.h: New file.
83330         * modules/pipe-filter-ii: New file.
83332 2009-08-02  Simon Josefsson  <simon@josefsson.org>
83334         * lib/gc-libgcrypt.c: Change copyright to FSF.
83335         * lib/gc-gnulib.c: Likewise.
83337 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
83339         * lib/gethostname.c: Include limits.h.
83341 2009-08-02  Simon Josefsson  <simon@josefsson.org>
83342             Bruno Haible  <bruno@clisp.org>
83344         Ensure HOST_NAME_MAX as part of the gethostname module.
83345         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
83346         define also HOST_NAME_MAX.
83347         * tests/test-gethostname.c: Include <limits.h>.
83348         (main): Check also HOST_NAME_MAX.
83349         * doc/posix-headers/limits.texi: Document the mingw problem.
83351 2009-08-02  Bruno Haible  <bruno@clisp.org>
83353         * lib/gethostname.c (gethostname): Fix handling of large len argument.
83354         Add comments.
83356 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83358         * lib/gethostname.c: Add Windows wrapper.
83359         * m4/gethostname.m4: Look for gethostname in -lws2_32.
83360         * modules/gethostname: Depend on sys_socket & errno, for also
83361         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
83362         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
83364 2009-07-31  Jim Meyering  <meyering@redhat.com>
83366         getloadavg: fix symbol name in comment
83367         * lib/getloadavg.c: Correct a typo I introduced when adding
83368         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
83369         Matt Kraai spotted the problem.
83371 2009-07-29  Matt Kraai  <mkraai@beckman.com>
83373         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
83374         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
83375         code also if ! defined N_NAME_POINTER.
83376         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
83377         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
83378         but the n_name member is a 12-byte array.
83380 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
83382         update-copyright: generalize comment handling
83383         * build-aux/update-copyright: Handle copyright statements
83384         within more comment styles.
83385         Document usage.
83386         Report any file with an external copyright holder or parse failure.
83388 2009-07-29  Jim Meyering  <meyering@redhat.com>
83390         mktime: correct setting of REPLACE_MKTIME
83391         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
83393         update-copyright: new module
83394         * modules/update-copyright: New file.
83395         * build-aux/update-copyright: New file.
83396         * MODULES.html.sh (maint+release support): Add update-copyright.
83398 2009-07-27  Bruno Haible  <bruno@clisp.org>
83400         Fix compilation error when <ctime> is used and mktime is replaced.
83401         * lib/time.in.h (mktime): New declaration.
83402         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
83403         REPLACE_MKTIME instead of defining mktime in config.h.
83404         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
83405         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
83406         Reported by Ross McFarland <rwmcfa1@neces.com>.
83408 2009-07-27  Bruno Haible  <bruno@clisp.org>
83410         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
83411         Reported by Matt Kraai <mkraai@beckman.com>.
83413 2009-07-25  Jim Meyering  <meyering@redhat.com>
83415         maint.mk: avoid warnings about missing files
83416         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
83417         diagnostic when .prev-version does not exist.
83418         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
83419         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
83420         nonexistent cfg.mk.
83421         Suggestions from Simon Josefsson.
83423 2009-07-25  Bruno Haible  <bruno@clisp.org>
83425         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
83426         defined as macros. Needed on QNX 6.4.1.
83427         Reported by Matt Kraai <mkraai@beckman.com>.
83429 2009-07-23  Jim Meyering  <meyering@redhat.com>
83431         maint.mk: invoke "make dist" with a working value of XZ_OPT
83432         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
83434 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
83436         Make fseeko.c compile on QNX.
83437         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
83439 2009-07-22  Peter Simons  <simons@cryp.to>
83441         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
83442         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
83443         * lib/md4.h: Likewise.
83444         * lib/md5.h: Likewise.
83445         * lib/sha1.h: Likewise.
83446         * lib/sha256.h: Likewise.
83447         * lib/sha512.h: Likewise.
83449         tests-sha1: don't assign literal string to 'char *' variable
83450         * tests/test-sha1.c (main): Declare locals with "const" to match
83451         attributes of the right hand side.
83453 2009-07-21  Eric Blake  <ebb9@byu.net>
83455         dup2: fix more mingw problems
83456         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
83457         fd to itself.
83458         * doc/posix-functions/dup2.texi (dup2): Document the bug.
83459         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
83460         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
83461         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
83462         care of mingw bugs.
83464 2009-07-21  Jim Meyering  <meyering@redhat.com>
83466         vc-list-files: avoid failure when /bin/sh is dash
83467         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
83468         On some Debian based systems, /bin/sh is a symlink to dash, and running
83469         this command would omit the "/" following each 'tests' prefix:
83470           dash -x build-aux/vc-list-files -C . tests
83471         That is because bash and dash work differently:
83472           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
83473           bash ok
83474           dash odd
83476 2009-07-21  Eric Blake  <ebb9@byu.net>
83478         dup2-tests: test previous patch
83479         * modules/dup2-tests: New file.
83480         * tests/test-dup2.c: Likewise.
83481         * tests/test-open.c (main): Avoid unspecified behavior.
83482         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
83483         test.
83485         dup2: work around mingw and cygwin 1.5 bug
83486         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
83487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
83488         * modules/unistd (Makefile.am): Substitute it.
83489         * lib/unistd.in.h (dup2): Declare the replacement.
83490         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
83491         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
83492         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
83493         * modules/execute (Depends-on): Add dup2.
83494         * modules/fseterr (Depends-on): Likewise.
83495         * modules/pipe (Depends-on): Likewise.
83496         * modules/posix_spawn-internal (Depends-on): Likewise.
83498 2009-07-21  Bruno Haible  <bruno@clisp.org>
83500         * modules/.gitattributes: New file.
83502 2009-07-20  Bruno Haible  <bruno@clisp.org>
83504         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
83505         (main): Use it.
83507 2009-07-20  Eric Blake  <ebb9@byu.net>
83509         test-pipe: make a bit more robust.
83510         * tests/test-pipe.c (myerr): Allow error messages regardless of
83511         what we do to stderr.
83512         (test_pipe): Rearrange to avoid deadlock.
83513         (child_main): Try a larger read, to ensure we avoided deadlock.
83514         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
83515         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
83516         if misused.
83518 2009-07-19  Jim Meyering  <meyering@redhat.com>
83520         fts: avoid false-positive cycle-detection
83521         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
83522         for each new command line argument.
83524 2009-07-19  Bruno Haible  <bruno@clisp.org>
83526         Fix build error on mingw with the modules sys_select and unistd.
83527         * modules/acl-tests (Depends-on): Add close.
83528         * modules/binary-io-tests (Depends-on): Likewise.
83529         * modules/closein-tests (Depends-on): Likewise.
83530         * modules/flock-tests (Depends-on): Likewise.
83531         * modules/fsync-tests (Depends-on): Likewise.
83532         * modules/lseek-tests (Depends-on): Likewise.
83533         * modules/pipe-tests (Depends-on): Likewise.
83534         * modules/posix_spawn-tests (Depends-on): Likewise.
83535         * modules/posix_spawnp-tests (Depends-on): Likewise.
83536         * modules/stat-time-tests (Depends-on): Likewise.
83537         * modules/yesno-tests (Depends-on): Likewise.
83539 2009-07-19  Bruno Haible  <bruno@clisp.org>
83541         Unify conditionals.
83542         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
83543         macros, not at the compiler macros.
83544         * lib/pipe.c: Likewise.
83545         * lib/execute.c: Likewise.
83546         * lib/spawni.c: Likewise.
83548 2009-07-19  Bruno Haible  <bruno@clisp.org>
83550         Fix handling of closed stdin/stdout/stderr on mingw.
83551         * lib/w32spawn.h: Include unistd.h.
83552         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
83553         file descriptor with O_NOINHERIT flag.
83554         (fd_safer_noinherit): New function, based on fd-safer.c.
83555         (dup_safer_noinherit): New function, based on dup-safer.c.
83556         (undup_safer_noinherit): New function.
83557         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
83558         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
83559         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
83560         instead of fd_safer.
83561         * tests/test-pipe.c: Include <windows.h>.
83562         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
83563         result.
83565         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
83566         from main.
83567         (test_pipe): Pass an extra argument for disambiguation.
83568         (main): Invoke parent_main or child_main.
83570         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
83571         consistently.
83573 2009-07-18  Eric Blake  <ebb9@byu.net>
83575         test-pipe: fix mingw build
83576         * tests/test-pipe.c (main): Avoid fcntl on mingw.
83578 2009-07-18  Bruno Haible  <bruno@clisp.org>
83580         * modules/pipe-tests (Makefile.am): Fix typo.
83582 2009-07-18  Eric Blake  <ebb9@byu.net>
83584         error: fix mingw build
83585         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
83586         Reported by Bruno Haible.
83588         error: avoid undefined use of stdout
83589         * lib/error.c (error, error_at_line): Check that fd 1 is open
83590         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
83591         is handling faults and the close_stdout module wants to report the
83592         detection of closed stdout as an error.
83594 2009-07-17  Eric Blake  <ebb9@byu.net>
83596         pipe: be robust in face of closed fds
83597         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
83598         should cause child to misbehave.
83599         * modules/pipe-tests: New module.
83600         * tests/test-pipe.c: New file.
83601         * tests/test-pipe.sh: New file.
83602         Reported by Akim Demaille.
83604 2009-07-14  Bruno Haible  <bruno@clisp.org>
83606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
83607         Reported by anonymous kc.
83609 2009-07-07  Jim Meyering  <meyering@redhat.com>
83611         maint.mk: don't look for translatable strings in *.m4 or *.mk
83612         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
83613         when searching for translatable strings.
83615 2009-07-05  Jim Meyering  <meyering@redhat.com>
83617         remove superfluous parentheses in STREQ definition
83618         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
83619         * lib/getugroups.c (STREQ): Likewise.
83620         * lib/fnmatch.c (STREQ): Likewise.
83621         Spotted by Bruno Haible.
83623 2009-07-04  Jim Meyering  <meyering@redhat.com>
83625         argv-iter: new module
83626         * MODULES.html.sh: Add argv-iter.
83627         * lib/argv-iter.c, lib/argv-iter.h: New files.
83628         * modules/argv-iter: New file.
83629         * modules/argv-iter-tests: New file.
83630         * tests/test-argv-iter.c: Test it.
83632 2009-07-04  Bruno Haible  <bruno@clisp.org>
83634         Fix assertion.
83635         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
83636         contains more exact copies of a given entry than file2, leave the extra
83637         copies unpaired rather than aborting.
83638         Reported by Eric Blake.
83640 2009-07-02  Bruno Haible  <bruno@clisp.org>
83642         Speedup git-merge-changelog for git cherry-pick.
83643         * lib/git-merge-changelog.c (struct entries_mapping): New type.
83644         (entries_mapping_get): New function, extracted from compute_mapping.
83645         (entries_mapping_reverse_get): New function.
83646         (compute_mapping): Add a 'full' argument. Return the result in a
83647         'struct entries_mapping'.
83648         (main): Update. Access the mappings through entries_mapping_get.
83649         Reported by Eric Blake.
83651 2009-07-02  Bruno Haible  <bruno@clisp.org>
83653         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
83654         best_i.
83656 2009-07-02  Bruno Haible  <bruno@clisp.org>
83658         Speed up approximate search for matching ChangeLog entries.
83659         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
83660         argument. Call fstrcmp_bounded instead of fstrcmp.
83661         (compute_mapping, try_split_merged_entry, main): Update callers.
83663 2009-07-02  Bruno Haible  <bruno@clisp.org>
83665         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
83667 2009-06-30  Bruno Haible  <bruno@clisp.org>
83669         Reduce the number of uc_is_cased calls.
83670         * lib/unicase.h (casing_suffix_context_t): Add
83671         'first_char_except_ignorable' field.
83672         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
83673         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
83674         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
83675         Update initializer.
83676         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
83677         case-ignorable characters.
83678         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
83679         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
83680         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
83681         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
83682         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
83684 2009-06-30  Bruno Haible  <bruno@clisp.org>
83686         Tests for module 'unicase/ignorable'.
83687         * modules/unicase/ignorable-tests: New file.
83688         * tests/unicase/test-ignorable.c: New file, generated by
83689         gen-uni-tables.
83691         Tests for module 'unicase/cased'.
83692         * modules/unicase/cased-tests: New file.
83693         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
83694         * tests/unicase/test-predicate-part1.h: New file, derived from
83695         tests/unictype/test-predicate-part1.h.
83696         * tests/unicase/test-predicate-part2.h: New file, same as
83697         tests/unictype/test-predicate-part2.h.
83699         Fix evaluation of "Before C" condition of FINAL_SIGMA.
83700         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
83701         (output_casing_properties): New function.
83702         (main): Call it.
83703         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
83704         * lib/unicase/cased.c: Include unictype/bitmap.h.
83705         (uc_is_cased): Define through a bitmap lookup.
83706         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
83707         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
83708         (uc_is_case_ignorable): Define through a bitmap lookup.
83709         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
83710         lib/unictype/bitmap.h.
83711         (Depends-on): Add inline. Clean up.
83712         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
83713         lib/unictype/bitmap.h.
83714         (Depends-on): Add inline. Clean up.
83715         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
83716         recognition.
83717         * tests/unicase/test-u16-tolower.c (main): Likewise.
83718         * tests/unicase/test-u32-tolower.c (main): Likewise.
83720 2009-06-30  Bruno Haible  <bruno@clisp.org>
83722         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
83723         * lib/unicase/u16-casemap.c: Likewise.
83724         * lib/unicase/u32-casemap.c: Likewise.
83726 2009-06-29  Bruno Haible  <bruno@clisp.org>
83728         Define u32_casefold as a wrapper around u32_ct_casefold.
83729         * lib/unicase/u32-casefold.c: Update.
83730         * modules/unicase/u32-casefold (Depends-on): Add
83731         unicase/u32-ct-casefold, unicase/empty-prefix-context,
83732         unicase/empty-suffix-context. Clean up.
83734         Define u16_casefold as a wrapper around u16_ct_casefold.
83735         * lib/unicase/u16-casefold.c: Update.
83736         * modules/unicase/u16-casefold (Depends-on): Add
83737         unicase/u16-ct-casefold, unicase/empty-prefix-context,
83738         unicase/empty-suffix-context. Clean up.
83740         Define u8_casefold as a wrapper around u8_ct_casefold.
83741         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
83742         * lib/unicase/u8-casefold.c: Update.
83743         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
83744         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83746         Define u32_totitle as a wrapper around u32_ct_totitle.
83747         * lib/unicase/u32-totitle.c: Update.
83748         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
83749         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83751         Define u16_totitle as a wrapper around u16_ct_totitle.
83752         * lib/unicase/u16-totitle.c: Update.
83753         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
83754         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83756         Define u8_totitle as a wrapper around u8_ct_totitle.
83757         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
83758         functions.
83759         (FUNC): Delegate to U_CT_TOTITLE.
83760         * lib/unicase/u8-totitle.c: Update.
83761         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
83762         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83764         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
83765         invocation.
83766         * modules/unicase/u32-tolower (Depends-on): Add
83767         unicase/empty-prefix-context, unicase/empty-suffix-context.
83769         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
83770         invocation.
83771         * modules/unicase/u16-tolower (Depends-on): Add
83772         unicase/empty-prefix-context, unicase/empty-suffix-context.
83774         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
83775         * modules/unicase/u8-tolower (Depends-on): Add
83776         unicase/empty-prefix-context, unicase/empty-suffix-context.
83778         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
83779         invocation.
83780         * modules/unicase/u32-toupper (Depends-on): Add
83781         unicase/empty-prefix-context, unicase/empty-suffix-context.
83783         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
83784         invocation.
83785         * modules/unicase/u16-toupper (Depends-on): Add
83786         unicase/empty-prefix-context, unicase/empty-suffix-context.
83788         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
83789         * modules/unicase/u8-toupper (Depends-on): Add
83790         unicase/empty-prefix-context, unicase/empty-suffix-context.
83792         New module 'unicase/u32-ct-casefold'.
83793         * lib/unicase/u32-ct-casefold.c: New file.
83794         * modules/unicase/u32-ct-casefold: New file.
83796         New module 'unicase/u16-ct-casefold'.
83797         * lib/unicase/u16-ct-casefold.c: New file.
83798         * modules/unicase/u16-ct-casefold: New file.
83800         New module 'unicase/u8-ct-casefold'.
83801         * lib/unicase/u8-ct-casefold.c: New file.
83802         * lib/unicase/u-ct-casefold.h: New file, derived from
83803         lib/unicase/u-casefold.h.
83804         * modules/unicase/u8-ct-casefold: New file.
83806         New module 'unicase/u32-ct-totitle'.
83807         * lib/unicase/u32-ct-totitle.c: New file.
83808         * modules/unicase/u32-ct-totitle: New file.
83810         New module 'unicase/u16-ct-totitle'.
83811         * lib/unicase/u16-ct-totitle.c: New file.
83812         * modules/unicase/u16-ct-totitle: New file.
83814         New module 'unicase/u8-ct-totitle'.
83815         * lib/unicase/u8-ct-totitle.c: New file.
83816         * lib/unicase/u-ct-totitle.h: New file, derived from
83817         lib/unicase/u-totitle.h.
83818         * modules/unicase/u8-ct-totitle: New file.
83820         New module 'unicase/u32-ct-tolower'.
83821         * lib/unicase/u32-ct-tolower.c: New file.
83822         * modules/unicase/u32-ct-tolower: New file.
83824         New module 'unicase/u16-ct-tolower'.
83825         * lib/unicase/u16-ct-tolower.c: New file.
83826         * modules/unicase/u16-ct-tolower: New file.
83828         New module 'unicase/u8-ct-tolower'.
83829         * lib/unicase/u8-ct-tolower.c: New file.
83830         * modules/unicase/u8-ct-tolower: New file.
83832         New module 'unicase/u32-ct-toupper'.
83833         * lib/unicase/u32-ct-toupper.c: New file.
83834         * modules/unicase/u32-ct-toupper: New file.
83836         New module 'unicase/u16-ct-toupper'.
83837         * lib/unicase/u16-ct-toupper.c: New file.
83838         * modules/unicase/u16-ct-toupper: New file.
83840         New module 'unicase/u8-ct-toupper'.
83841         * lib/unicase/u8-ct-toupper.c: New file.
83842         * modules/unicase/u8-ct-toupper: New file.
83844         Add context arguments to u*_casemap functions.
83845         * lib/unicase/unicasemap.h: Include unicase.h.
83846         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
83847         suffix_context arguments.
83848         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
83849         functions.
83850         (FUNC): Add prefix_context and suffix_context arguments. Use
83851         uc_is_cased and uc_is_case_ignorable.
83852         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
83853         * lib/unicase/u16-casemap.c: Likewise.
83854         * lib/unicase/u32-casemap.c: Likewise.
83855         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
83856         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83857         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
83858         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83859         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
83860         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83862         New module 'unicase/u32-suffix-context'.
83863         * lib/unicase/u32-suffix-context.c: New file.
83864         * modules/unicase/u32-suffix-context: New file.
83866         New module 'unicase/u16-suffix-context'.
83867         * lib/unicase/u16-suffix-context.c: New file.
83868         * modules/unicase/u16-suffix-context: New file.
83870         New module 'unicase/u8-suffix-context'.
83871         * lib/unicase/u8-suffix-context.c: New file.
83872         * lib/unicase/u-suffix-context.h: New file.
83873         * modules/unicase/u8-suffix-context: New file.
83875         New module 'unicase/empty-suffix-context'.
83876         * lib/unicase/empty-suffix-context.c: New file.
83877         * modules/unicase/empty-suffix-context: New file.
83879         New module 'unicase/u32-prefix-context'.
83880         * lib/unicase/u32-prefix-context.c: New file.
83881         * modules/unicase/u32-prefix-context: New file.
83883         New module 'unicase/u16-prefix-context'.
83884         * lib/unicase/u16-prefix-context.c: New file.
83885         * modules/unicase/u16-prefix-context: New file.
83887         New module 'unicase/u8-prefix-context'.
83888         * lib/unicase/u8-prefix-context.c: New file.
83889         * lib/unicase/u-prefix-context.h: New file.
83890         * lib/unicase/context.h: New file.
83891         * modules/unicase/u8-prefix-context: New file.
83893         New module 'unicase/empty-prefix-context'.
83894         * lib/unicase/empty-prefix-context.c: New file.
83895         * modules/unicase/empty-prefix-context: New file.
83897         New module 'unicase/ignorable'.
83898         * lib/unicase/ignorable.c: New file.
83899         * modules/unicase/ignorable: New file.
83901         New module 'unicase/cased'.
83902         * lib/unicase/caseprop.h: New file.
83903         * lib/unicase/cased.c: New file.
83904         * modules/unicase/cased: New file.
83906         New functions for case mapping of substrings.
83907         * lib/unicase.h (casing_prefix_context_t): New type.
83908         (unicase_empty_prefix_context): New variable.
83909         (u8_casing_prefix_context, u16_casing_prefix_context,
83910         u32_casing_prefix_context, u8_casing_prefixes_context,
83911         u16_casing_prefixes_context, u32_casing_prefixes_context): New
83912         declarations.
83913         (casing_suffix_context_t): New type.
83914         (unicase_empty_suffix_context): New variable.
83915         (u8_casing_suffix_context, u16_casing_suffix_context,
83916         u32_casing_suffix_context, u8_casing_suffixes_context,
83917         u16_casing_suffixes_context, u32_casing_suffixes_context,
83918         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
83919         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
83920         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
83921         declarations.
83923 2009-06-28  Jim Meyering  <meyering@redhat.com>
83925         boostrap: indent only with spaces
83926         * build-aux/bootstrap: Indent only with spaces, never TABs.
83928         bootstrap: split long lines
83929         * build-aux/bootstrap: Keep line length < 80.
83931         bootstrap: sync from coreutils
83932         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
83933         just as autoreconf does.  Verify a list of prerequisite
83934         package-name,version-number pairs if defined in bootstrap.conf.
83935         Refer to README-prereq, if prerequisites are not satisfied.
83937 2009-06-27  Eric Blake  <ebb9@byu.net>
83939         tests: add test for bogus NULL definition
83940         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
83941         * tests/test-stdlib.c: Likewise.
83942         * tests/test-string.c: Likewise.
83943         * tests/test-locale.c: Likewise.
83944         * tests/test-unistd.c: Likewise.
83945         * modules/stdio-tests (Depends-on): Add verify.
83946         * modules/stdlib-tests (Depends-on): Likewise.
83947         * modules/string-tests (Depends-on): Likewise.
83948         * modules/locale-tests (Depends-on): Likewise.
83949         * modules/unistd-tests (Depends-on): Likewise.
83951 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
83953         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
83954         self-explaining comment.
83955         * m4/selinux-selinux-h: Update serial.
83956         (gl_LIBSELINUX): New macro, adding a warning for missing development
83957         packages to code extracted from...
83958         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
83959         Add warning for missing development packages here, too.
83961 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
83963         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
83965 2009-06-25  Eric Blake  <ebb9@byu.net>
83967         version-etc: fix regression
83968         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
83969         gcc.
83970         (version_etc): Use it, to catch bugs with trailing NULL.
83971         * lib/version-etc.c (version_etc_arn): Delete unused argument.
83972         (version_etc_va): Fix logic bug.
83973         * modules/version-etc-tests: Add test.
83974         * tests/test-version-etc.c: New file.
83975         * tests/test-version-etc.sh: Likewise.
83977 2009-06-25  Sam Steingold  <sds@gnu.org>
83979         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
83980         mbtowc declaration.
83982 2009-06-25  Eric Blake  <ebb9@byu.net>
83984         fpurge: migrate into <stdio.h>
83985         * lib/fpurge.h: Delete...
83986         * lib/stdio.in.h (fpurge): ...and declare here, instead.
83987         * lib/fpurge.c (fpurge): Change declaring header.
83988         * modules/fpurge (Files): Drop deleted file.
83989         (Depends-on): Add stdio.
83990         (configure.ac): Set witness.
83991         * modules/stdio (Makefile.am): Support fpurge macros.
83992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83993         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
83994         * lib/fflush.c: Update client.
83995         * tests/test-fpurge.c: Likewise.
83996         * NEWS: Mention the change.
83998 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
84000         * lib/argp-version-etc.c (program_authors): Add const
84001         qualifier.
84002         * lib/version-etc.c: Fix typos in the comments.
84003         * modules/argp-version-etc: Depends on version-etc.
84005 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
84007         argp-version-etc: new module.
84009         * lib/argp-version-etc.c: New file.
84010         * lib/argp-version-etc.h: New file.
84011         * modules/argp-version-etc: New file.
84012         * modules/argp-version-etc-tests: New file.
84013         * tests/test-argp-version-etc.c: New test.
84014         * tests/test-argp-version-etc-1.sh: New test.
84016 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
84018         Provide additional interfaces and documentation for version-etc
84019         module.
84021         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
84022         interfaces.
84023         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
84024         prototypes.
84026 2009-06-24  Bruno Haible  <bruno@clisp.org>
84028         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
84029         HAVE_LIB${NAME} macro.
84030         Reported by Sam Steingold <sds@gnu.org>.
84032 2009-06-23  Simon Josefsson  <simon@josefsson.org>
84034         * modules/hash-tests (test_hash_LDADD): Link to libintl when
84035         needed.
84037 2009-06-21  Bruno Haible  <bruno@clisp.org>
84039         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
84040         work.
84041         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
84042         together with LIB${NAME}, LTLIB${NAME}.
84043         Reported by Sam Steingold <sds@gnu.org>.
84045 2009-06-20  Jim Meyering  <meyering@redhat.com>
84047         tests: make sc_require_test_exit_idiom more generic
84048         * top/maint.mk (Exit_witness_file): New overridable variable.
84049         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
84050         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
84052 2009-06-19  Jim Meyering  <meyering@redhat.com>
84054         hash: reverse order of src/dst parameters in an internal interface
84055         * lib/hash.c (transfer_entries): Reverse order of parameters to
84056         put DST before SRC.  Adjust callers.
84058         tests: test-hash: avoid wholesale duplication
84059         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
84060         Instead, use a loop and add a single conditional.
84062         tests: test-hash: allow seed selection via a command line argument
84063         * tests/test-hash.c (get_seed): New function.
84064         (main): Use it.
84066 2009-06-19  Eric Blake  <ebb9@byu.net>
84068         hash: avoid memory leak on allocation failure
84069         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
84070         failure.  Factor repeated algorithm...
84071         (transfer_entries): ...into new helper routine.
84072         (hash_delete): React to hash_rehash return value.
84074         hash: reduce memory pressure in hash_rehash no-op case
84075         * lib/hash.c (next_prime): Avoid overflow.
84076         (hash_initialize): Factor bucket size computation...
84077         (compute_bucket_size): ...into new helper function.
84078         (hash_rehash): Use new function and open coding to reduce memory
84079         pressure, and avoid a memory leak in USE_OBSTACK code.
84080         Reported by Jim Meyering.
84082 2009-06-18  Eric Blake  <ebb9@byu.net>
84084         hash: make rotation more obvious
84085         * modules/hash (Depends-on): Add bitrotate and stdint.
84086         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
84087         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
84088         (SIZE_MAX): Rely on headers for definition.
84089         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
84090         (raw_hasher): Use rotr_sz.
84091         Suggested by Jim Meyering.
84093         hash: fix memory leak in last patch
84094         * lib/hash.c (hash_rehash): Avoid memory leak.
84096         hash: avoid no-op rehashing
84097         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
84099         hash: provide default callback functions
84100         * lib/hash.c (raw_hasher, raw_comparator): New functions.
84101         (hash_initialize): Use them as defaults.
84102         * tests/test-hash.c (main): Test this.
84104         hash: minor optimization
84105         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
84106         when possible.
84107         (hash_initialize): Document this promise.
84108         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
84109         * tests/test-hash.c (hash_compare_strings): Test this.
84111 2009-06-18  Bruno Haible  <bruno@clisp.org>
84113         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
84114         going to be replaced anyway.
84116 2009-06-18  Bruno Haible  <bruno@clisp.org>
84118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
84119         in one place.
84120         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
84121         be replaced anyway.
84123 2009-06-18  Eric Blake  <ebb9@byu.net>
84125         hash: check for resize before insertion
84126         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
84127         threshold before insertion, so that a pathological hash_rehash
84128         that fills every bucket can still trigger another rehash.
84130 2009-06-18  Jim Meyering  <meyering@redhat.com>
84132         hash-tests: add a loop around the small tests
84133         * tests/test-hash.c (main): Repeat small tests with selected
84134         small initial table sizes.
84136 2009-06-17  Eric Blake  <ebb9@byu.net>
84138         hash: minor cleanups
84139         * lib/hash.h (hash_entry): Make opaque, by moving...
84140         * lib/hash.c (hash_entry): ...here.
84141         (hash_insert): Clarify restrictions on what can be inserted.
84142         (hash_get_next): Clarify when it is safe to remove an element
84143         during traversal.
84144         (check_tuning): Skip verification when tuning is known safe.
84145         (hash_initialize): Clarify restrictions on tuning.
84147 2009-06-17  Jim Meyering  <jim@meyering.net>
84148         and Eric Blake  <ebb9@byu.net>
84150         hash-tests: new module
84151         * modules/hash-tests: New file.
84152         * tests/test-hash.c: New file.
84154 2009-06-17  Eric Blake  <ebb9@byu.net>
84156         strstr-simple: document new module
84157         * MODULES.html.sh: Document new module.
84159         strstr, strcasestr: replace on platforms with broken memchr
84160         * modules/strstr: Split into...
84161         * modules/strstr-simple: ...new module that does not care about
84162         performance, but does care about glibc bug.
84163         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
84164         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
84165         if platform memchr is broken, per Debian bug 521737.
84166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
84167         memchr.
84168         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
84169         * doc/posix-functions/strstr.texi (strstr): Document the fix.
84170         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
84171         * modules/mountlist (Depends-on): Add strstr-simple.
84172         * modules/gen-uni-tables (Depends-on): Likewise.
84173         * modules/argz (Depends-on): Add strstr.
84175 2009-06-17  Bruno Haible  <bruno@clisp.org>
84177         * modules/posix_spawn-internal (Depends-on): Add errno.
84179 2009-06-17  Bruno Haible  <bruno@clisp.org>
84181         Define missing ESTALE on Interix 3.5.
84182         * lib/errno.in.h (ESTALE): Assign a value if missing.
84183         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
84184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
84185         missing.
84186         * doc/posix-headers/errno.texi: Mention the Interix bug.
84187         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
84189 2009-06-15  Eric Blake  <ebb9@byu.net>
84191         memchr, memchr2: add valgrind exception
84192         * lib/memchr.valgrind: New file.
84193         * lib/memchr2.valgrind: New file.
84194         * modules/memchr (Files): Distribute valgrind file.
84195         * modules/memchr2 (Files): Likewise.
84197         docs: memchr is no longer obsolete
84198         * MODULES.html.sh: Move memchr from obsolete to string.h section.
84199         * lib/string.in.h (memchr): Simplify logic.
84201 2009-06-14  Jim Meyering  <meyering@redhat.com>
84203         link-follow: fix the "checking..." message to not mention trailing slash
84204         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
84205         never considered trailing slashes.
84207 2009-06-14  Bruno Haible  <bruno@clisp.org>
84209         * m4/memchr.m4: Mention also the bug on IA-64.
84210         * doc/posix-functions/memchr.texi: Likewise.
84212 2009-06-12  Eric Blake  <ebb9@byu.net>
84214         memchr: detect broken x86_64 and alpha implementations
84215         * modules/memchr-tests (Depends-on): Move mmap detection...
84216         * modules/memchr (Depends-on): ...here.
84217         (configure.ac): Set indicator.
84218         * lib/string.in.h (memchr): Declare replacement.
84219         * modules/string (Makefile.am): Trigger replacement.
84220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
84221         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
84222         bugs.
84223         * doc/posix-functions/memchr.texi (memchr): Document the bug.
84224         * modules/getpagesize (License): Relax license.
84226 2009-06-11  Bruno Haible  <bruno@clisp.org>
84228         * lib/idpriv.h: Add more references.
84230 2009-06-08  Bruno Haible  <bruno@clisp.org>
84232         Tests for module 'idpriv-droptemp'.
84233         * modules/idpriv-droptemp-tests: New file.
84234         * tests/test-idpriv-droptemp.sh: New file.
84235         * tests/test-idpriv-droptemp.su.sh: New file.
84236         * tests/test-idpriv-droptemp.c: New file.
84238         New module 'idpriv-droptemp'.
84239         * lib/idpriv-droptemp.c: New file.
84240         * modules/idpriv-droptemp: New file.
84242 2009-06-08  Bruno Haible  <bruno@clisp.org>
84244         Tests for module 'idpriv-drop'.
84245         * modules/idpriv-drop-tests: New file.
84246         * tests/test-idpriv-drop.sh: New file.
84247         * tests/test-idpriv-drop.su.sh: New file.
84248         * tests/test-idpriv-drop.c: New file.
84250         New module 'idpriv-drop'.
84251         * lib/idpriv.h: New file.
84252         * lib-idpriv-drop.c: New file.
84253         * m4/idpriv.m4: New file.
84254         * modules/idpriv-drop: New file.
84256 2009-06-08  Bruno Haible  <bruno@clisp.org>
84258         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
84259         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84260         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84261         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84262         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84263         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84264         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84266 2009-06-08  Eric Blake  <ebb9@byu.net>
84268         test-strstr: use memory fence, when possible
84269         * tests/test-strstr.c (main): Use memory fence, in order to be
84270         more likely to trigger Debian bug 521737.
84271         * modules/strstr-tests (Files): Pull in additional files.
84273         memchr: no longer obsolete, for wider field testing
84274         * modules/memchr (Status, Notice): Delete, this module is no
84275         longer obsolete.
84276         * modules/vasnprintf (Depends-on): Add memchr.
84278 2009-06-07  Jim Meyering  <meyering@redhat.com>
84280         hash: declare some functions with the warn_unused_result attribute
84281         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
84283 2009-06-07  Bruno Haible  <bruno@clisp.org>
84285         * tests/test-alignof.c: Don't test int64_t if it does not exist.
84286         Reported by Eric Blake.
84288 2009-06-06  Eric Blake  <ebb9@byu.net>
84290         test-alignof: fix typo with long double
84291         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
84292         compiler error.
84294 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
84296         Escape non-texinfo { and }s.
84297         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
84298         markup error.
84300 2009-06-04  Jim Meyering  <meyering@redhat.com>
84302         gitlog-to-changelog: don't infloop on an empty commit log
84303         * build-aux/gitlog-to-changelog: Warn about an empty log message.
84304         Reported by Boris Petersen <transacid@centerim.org>.
84306 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
84308         version-etc: extend for packagers
84309         Add three new configure options, intended for packagers:
84310           --with-packager="packager name"
84311           --with-packager-version="packager-specific version"
84312           --with-packager-bug-reports="packager bug reporting"
84313         An example with coreutils:
84314           $ ./configure \
84315             --with-packager=Gentoo \
84316             --with-packager-bug-report=http://bugs.gentoo.org/ \
84317             --with-packager-version="patchset 1.6"
84318           $ ./src/ls --version | head -n2
84319           ls (GNU coreutils) 7.1-dirty
84320           Packaged by Gentoo (patchset 1.6)
84321         Note that the bug reporting info via --help doesn't show up because
84322         coreutils uses its own custom emit_bug_reporting_address() implementation
84323         in src/system.h.  If it didn't, it'd look like:
84324           $ ./src/ls --help | tail -n4
84325           Report bugs to <bug-coreutils@gnu.org>.
84326           Report Gentoo bugs to <http://bugs.gentoo.org/>.
84327           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
84328           General help using GNU software: <http://www.gnu.org/gethelp/>.
84329         * lib/version-etc.c: Print new information, if provided.
84330         * m4/version-etc.m4: New file.
84331         * modules/version-etc (Files): Add m4/version-etc.m4.
84332         (configure.ac): Add gl_VERSION_ETC.
84334 2009-05-31  Bruno Haible  <bruno@clisp.org>
84336         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
84337         and 'int64_t'.
84338         * modules/alignof-tests (Dependencies): Add stdint.
84339         Reported by Eric Blake.
84341 2009-05-31  Bruno Haible  <bruno@clisp.org>
84343         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
84344         restriction due to compiler bugs.
84345         Reported by Eric Blake.
84347 2009-05-31  Simon Josefsson  <simon@josefsson.org>
84348             Bruno Haible  <bruno@clisp.org>
84350         Fix test-alignof failure.
84351         * lib/alignof.h (alignof_slot): New macro.
84352         (alignof_type): New macro, with the same semantics as the previous
84353         'alignof'.
84354         (alignof): Alias to alignof_slot.
84355         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
84356         check that the results are usable as constant expressions.
84358 2009-05-31  Bruno Haible  <bruno@clisp.org>
84360         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
84361         * tests/test-memchr.c (main): Check that memchr does not read past the
84362         first occurrence of the byte.
84363         * tests/test-strstr.c (main): Update comment.
84364         Suggested by Eric Blake.
84366 2009-05-30  Bruno Haible  <bruno@clisp.org>
84368         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
84369         detail how to use dumpbin.
84370         Reported by David Byron <dbyron@dbyron.com>.
84372 2009-06-02  Simon Josefsson  <simon@josefsson.org>
84374         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
84376 2009-06-02  Simon Josefsson  <simon@josefsson.org>
84378         * m4/manywarnings.m4: Add GCC 4.4 warnings.
84380 2009-05-28  Bruno Haible  <bruno@clisp.org>
84382         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
84383         build-aux/ files.
84385 2009-05-28  Simon Josefsson  <simon@josefsson.org>
84387         * gnulib-tool (func_import): Transform license on build-aux/ files too.
84389 2009-05-27  Simon Josefsson  <simon@josefsson.org>
84391         * gnulib-tool (sed_transform_main_lib_file)
84392         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
84393         regexps.
84395 2009-05-26  Simon Josefsson  <simon@josefsson.org>
84397         * tests/test-strstr.c: Add another self-test.
84398         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
84399         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
84401 2009-05-23  Bruno Haible  <bruno@clisp.org>
84403         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
84404         change.
84406 2009-05-21  Bruno Haible  <bruno@clisp.org>
84408         Simplify use of mode_t varargs.
84409         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
84410         uses 'mode_t' or 'int'.
84411         * lib/openat.c (openat): Likewise.
84412         * lib/open-safer.c (open_safer): Likewise.
84413         * m4/mode_t.m4: New file.
84414         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
84415         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
84416         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
84417         * modules/open (Files): Add m4/mode_t.m4.
84418         * modules/openat (Files): Likewise.
84419         * modules/fcntl-safer (Files): Likewise.
84420         Suggested by Eric Blake.
84422 2009-05-21  Pádraig Brady  <P@draigbrady.com>
84424         * doc/glibc-functions/fallocate.texi: New file.
84425         * doc/gnulib.texi: Include it.
84427 2009-05-21  Eric Blake  <ebb9@byu.net>
84428             Bruno Haible  <bruno@clisp.org>
84430         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
84431         invocations.
84432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
84434 2009-05-21  Eric Blake  <ebb9@byu.net>
84435             Bruno Haible  <bruno@clisp.org>
84437         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
84438         include_next. Fix of 2008-11-20 commit.
84439         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
84440         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
84441         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
84442         NEXT_MATH_H.
84443         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
84444         instead of NEXT_MATH_H.
84446 2009-05-21  Bruno Haible  <bruno@clisp.org>
84448         Avoid redefinition warnings for SIZE_MAX.
84449         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
84450         Reported by Simon Josefsson.
84452 2009-05-21  Bruno Haible  <bruno@clisp.org>
84454         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
84455         AC_CACHE_VAL.
84457 2009-05-20  Bruno Haible  <bruno@clisp.org>
84459         Make zeroptr.h work on mingw.
84460         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
84461         mprotect.
84462         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
84463         * modules/memchr2-tests (configure.ac): Likewise.
84464         * modules/memcmp-tests (configure.ac): Likewise.
84465         * modules/memmem-tests (configure.ac): Likewise.
84466         * modules/memrchr-tests (configure.ac): Likewise.
84467         Reported by Simon Josefsson.
84469 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84471         * tests/test-glob.c: Include string.h for strcmp prototype.
84473 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84475         * modules/getdelim (Depends-on): Add explicit stdint, although it
84476         was implicitly already pulled in via realloc-posix.
84477         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
84479 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84481         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
84482         G. Christensen" <tgc@jupiterrise.com>.
84483         * m4/sys_socket_h.m4: Check for sa_family_t.
84484         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
84485         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
84486         * tests/test-sys_socket.c: Check that sa_family_t works.
84488 2009-05-18  Eric Blake  <ebb9@byu.net>
84490         maint.mk: allow gnulib_dir in VPATH build
84491         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
84493 2009-05-15  Jim Meyering  <meyering@redhat.com>
84495         maint.mk: Give gnulib_dir a default definition.
84496         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
84497         Thus, most packages no longer need to specify this variable in cfg.mk
84499 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
84501         rename.m4: fix typos that would make non-mingw cross-configure fail
84502         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
84504 2009-05-13  Eric Blake  <ebb9@byu.net>
84506         mmap-anon: avoid out-of-order autoconf expansion
84507         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
84508         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
84509         * modules/memchr-tests (Depends-on): Add extensions.
84510         * modules/memchr2-tests (Depends-on): Add extensions.
84511         * modules/memcmp-tests (Depends-on): Add extensions.
84512         * modules/memmem-tests (Depends-on): Add extensions.
84513         * modules/memrchr-tests (Depends-on): Add extensions.
84515 2009-05-13  Bruno Haible  <bruno@clisp.org>
84517         Make some tests ISO C 99 compliant.
84518         * tests/zerosize-ptr.h: New file.
84519         * tests/test-memchr.c: Include zerosize-ptr.h.
84520         (main): Use a zero-size object pointer instead of NULL.
84521         * tests/test-memchr2.c: Include zerosize-ptr.h.
84522         (main): Use a zero-size object pointer instead of NULL.
84523         * tests/test-memcmp.c: Include zerosize-ptr.h.
84524         (main): Use a zero-size object pointer instead of NULL.
84525         * tests/test-memmem.c: Include zerosize-ptr.h.
84526         (main): Use a zero-size object pointer instead of NULL.
84527         * tests/test-memrchr.c: Include zerosize-ptr.h.
84528         (main): Use a zero-size object pointer instead of NULL.
84529         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
84530         m4/mmap-anon.m4.
84531         (Depends-on): Add getpagesize.
84532         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84533         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
84534         m4/mmap-anon.m4.
84535         (Depends-on): Add getpagesize.
84536         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84537         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
84538         m4/mmap-anon.m4.
84539         (Depends-on): Add getpagesize.
84540         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84541         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
84542         m4/mmap-anon.m4.
84543         (Depends-on): Add getpagesize.
84544         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84545         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
84546         m4/mmap-anon.m4.
84547         (Depends-on): Add getpagesize.
84548         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84550 2009-05-12  Bruno Haible  <bruno@clisp.org>
84552         Tests for module 'alignof'.
84553         * modules/alignof-tests: New file.
84554         * tests/test-alignof.c: New file.
84556 2009-05-12  Bruno Haible  <bruno@clisp.org>
84558         Fix alignof macro.
84559         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
84560         vendor compilers that are always correct.
84562 2009-05-12  Bruno Haible  <bruno@clisp.org>
84564         Make the MAP_ANONYMOUS detection work on HP-UX 11.
84565         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
84566         not whether its fully works.
84568 2009-05-12  Bruno Haible  <bruno@clisp.org>
84570         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
84572 2009-05-12  Jim Meyering  <meyering@redhat.com>
84574         * top/maint.mk: Adjust backslash alignment.
84576 2009-05-11  Simon Josefsson  <simon@josefsson.org>
84578         * top/maint.mk: Make $(srcdir)/build-aux configurable.
84580 2009-05-11  Eric Blake  <ebb9@byu.net>
84582         argp: avoid undefined behavior
84583         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
84584         macros.
84586 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84588         * tests/test-vc-list-files-git.sh: Do git config of user.email and
84589         user.name to prevent git commit from complaining.
84591 2009-05-10  Bruno Haible  <bruno@clisp.org>
84593         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
84594         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
84595         it rewrites every file name only once.
84596         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
84598 2009-05-08  Bruno Haible  <bruno@clisp.org>
84600         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
84601         instead of 'max'.
84603 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84605         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
84606         sockaddr_storage test.
84608 2009-05-07  Simon Josefsson  <simon@josefsson.org>
84610         * modules/sys_socket (Makefile.am): Substitute
84611         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
84612         * m4/sys_socket_h.m4: Check for sockaddr_storage.
84613         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
84614         * tests/test-sys_socket.c: Check sockaddr_storage.
84616 2009-05-08  Bruno Haible  <bruno@clisp.org>
84618         New module 'alignof'.
84619         * lib/alignof.h: New file.
84620         * modules/alignof: New file.
84622 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84623             Bruno Haible  <bruno@clisp.org>
84625         Fix test-file-has-acl on FreeBSD.
84626         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
84627         mask is implicitly added.
84628         * tests/test-file-has-acl.c: Include <signal.h>.
84629         (main): Terminate the test after 5 seconds.
84630         * modules/acl-tests (configure.ac): Check for alarm function.
84632 2009-05-04  Bruno Haible  <bruno@clisp.org>
84634         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
84635         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
84636         * modules/errno (configure.ac): Drop AC_REQUIRE.
84637         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
84638         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
84640 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84642         * modules/glob-tests: New module.
84643         * tests/test-glob.c: Add.
84645 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84647         * modules/fnmatch-tests: New module.
84648         * tests/test-fnmatch.c: Add.
84650 2009-05-04  Eric Blake  <ebb9@byu.net>
84652         maint: make the new no-submodule-changes rule VPATH-safe
84653         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
84655 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84656             Bruno Haible  <bruno@clisp.org>
84658         acl: Fix infinite loop on FreeBSD.
84659         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
84660         of return value from acl_get_entry.
84661         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
84662         Likewise.
84664 2009-05-03  Bruno Haible  <bruno@clisp.org>
84666         * lib/acl-internal.h (acl_entries): Clarify return value.
84667         * lib/acl_entries.c (acl_entries): Likewise.
84669 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84671         Bug fix in acl module.
84672         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
84674 2009-05-03  Bruno Haible  <bruno@clisp.org>
84676         Create gperf-generated file in the source dir, not in the build dir.
84677         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
84678         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
84679         * modules/unicase/locale-language (unicase/locale-languages.h):
84680         Likewise.
84681         * modules/unicase/special-casing (unicase/special-casing-table.h):
84682         Likewise.
84683         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
84684         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
84685         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
84686         Reported by Ralf Wildenhues.
84688 2009-05-03  Bruno Haible  <bruno@clisp.org>
84690         * modules/fnmatch (Description, configure.ac): Taken from
84691         fnmatch-posix.
84692         * modules/fnmatch-posix: Turn into a symbolic reference to the
84693         'fnmatch' module, and deprecate.
84694         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
84696 2009-05-03  Bruno Haible  <bruno@clisp.org>
84698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
84699         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
84700         Reported by Ralf Wildenhues.
84702 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84704         * m4/fnmatch.m4: Fix fnmatch re-define.
84706 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84708         priv-set: new module and tests; adapt write-any-file
84709         * lib/priv-set.c: New file.
84710         * lib/priv-set.h: New file.
84711         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
84712         * lib/write-any-file.c: Simplify by using priv-set module.
84713         * m4/priv-set.m4: New file.
84714         * modules/priv-set: New file.
84715         * modules/unlinkdir: Add dependency on priv-set module.
84716         * modules/write-any-file: Likewise.
84718         Tests for module 'priv-set'.
84719         * modules/priv-set-tests: New file.
84720         * tests/test-priv-set.c: New file.
84722 2009-05-03  Jim Meyering  <meyering@redhat.com>
84723             Bruno Haible  <bruno@clisp.org>
84725         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
84726         use the converted UTF-8 variant of the name instead.
84728 2009-05-03  Jim Meyering  <meyering@redhat.com>
84730         tests: tighten some getdate tests
84731         * tests/test-getdate.c (main): Tighten tests: require equality,
84732         not just greater than.  Set TZ envvar to UTC0.
84734 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
84736         getdate: correctly interpret "next monday" when run on a Monday
84737         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
84738         that e.g., "next tues" (when run on a tuesday) results in a date
84739         that is one week in the future, and not today's date.
84740         I.e., add a week when the wday is the same as the current one.
84741         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
84742         and earlier by Martin Bernreuther and Jan Minář.
84743         * tests/test-getdate.c (main): Check that "next DAY" is always in
84744         the future and that "last DAY" is always in the past.
84746 2009-05-02  Jim Meyering  <meyering@redhat.com>
84748         build: ensure that a release build fails when a submodule is unclean
84749         * top/maint.mk (no-submodule-changes): New rule.
84750         (alpha beta major): Depend on it.
84752 2009-05-02  Bruno Haible  <bruno@clisp.org>
84754         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
84755         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
84756         shell variable gl_fnmatch_required to detect which variant is
84757         requested.
84758         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
84759         gl_FUNC_FNMATCH_POSIX.
84760         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
84761         exclude fnmatch-posix.
84763 2009-05-02  Bruno Haible  <bruno@clisp.org>
84765         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
84766         * modules/mbsrtowcs (License): Change to LGPLv2+.
84767         * modules/strnlen1 (License): Likewise.
84768         Reported by Simon Josefsson.
84770 2009-05-02  Bruno Haible  <bruno@clisp.org>
84772         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
84773         "cross".
84774         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
84775         gnulib-tool was called with option --source-base=lib.
84777 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84779         Use automake *-local hooks without commands, for extensibility.
84780         * modules/localcharset (Makefile.am): Rename install-exec-local
84781         rule to install-exec-localcharset, and make it a prerequisite of
84782         install-exec-local.  Likewise, rename the uninstall-local rule to
84783         uninstall-localcharset, and make it a prerequisite of the former.
84785 2009-05-01  Bruno Haible  <bruno@clisp.org>
84787         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
84788         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84789         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
84790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
84791         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
84792         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84793         m4/locale-zh.m4, m4/codeset.m4.
84795         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84796         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
84797         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84798         m4/locale-zh.m4.
84800         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
84801         REPLACE_WCRTOMB if mbstate_t must be replaced.
84802         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
84803         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
84805 2009-05-01  Bruno Haible  <bruno@clisp.org>
84807         Avoid compiler warnings when redefining macros defined by <libintl.h>.
84808         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
84809         dngettext, dcngettext, textdomain, bindtextdomain,
84810         bind_textdomain_codeset): Undefine before redefining.
84812 2009-04-30  Bruno Haible  <bruno@clisp.org>
84814         Fix bug introduced on 2009-04-25.
84815         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
84816         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
84817         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
84818         is defined.
84819         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
84820         is defined.
84821         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
84822         is defined.
84823         Reported by Elbert_Pol <elbert.pol@gmail.com>.
84825 2009-04-28  Bruno Haible  <bruno@clisp.org>
84827         Comment tweaks.
84828         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
84829         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
84830         * lib/unicase.h (u*_casexfrm): Likewise.
84831         Reported by Paolo Bonzini.
84833 2009-04-28  Bruno Haible  <bruno@clisp.org>
84835         Fix a compilation error.
84836         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
84837         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84838         Reported by Jim Meyering.
84840 2009-04-27  Bruno Haible  <bruno@clisp.org>
84842         New module 'libunistring'.
84843         * modules/libunistring: New file.
84844         * m4/libunistring.m4: New file.
84845         * MODULES.html.sh (Unicode string functions): Add it.
84847 2009-04-27  Eric Blake  <ebb9@byu.net>
84849         maint.mk: allow package-specific header to provide <config.h>
84850         * top/maint.mk (sc_require_config_h): New variable.
84851         (sc_require_config_h, sc_require_config_h_first): Use it.
84853 2009-04-27  Simon Josefsson  <simon@josefsson.org>
84855         * top/maint.mk (sc_avoid_if_before_free): Except
84856         useless-if-before-free script.
84858 2009-04-27  Eric Blake  <ebb9@byu.net>
84860         maintainer-makefile: depend on all required helper scripts
84861         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
84862         useless-if-before-free.
84863         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
84864         version, rather than assuming gnulib checkout is available.
84865         Reported by Simen Josefsson.
84867 2009-04-26  Bruno Haible  <bruno@clisp.org>
84869         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
84870         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
84871         "../" or "..".
84873 2009-04-26  Bruno Haible  <bruno@clisp.org>
84875         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
84876         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
84877         AC_LIB_HAVE_LINKFLAGS.
84879 2009-04-26  Bruno Haible  <bruno@clisp.org>
84881         Simplify calling convention of u*_conv_from_encoding.
84882         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
84883         u32_conv_from_encoding): Expect a resultbuf argument and return the
84884         result directly as a pointer.
84885         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
84886         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
84887         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
84888         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
84889         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
84890         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84891         Update.
84892         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
84893         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
84894         * lib/vasnprintf.c (VASNPRINTF): Update.
84895         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
84896         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
84897         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
84898         * NEWS: Mention the change.
84900 2009-04-26  Bruno Haible  <bruno@clisp.org>
84902         Simplify calling convention of u*_conv_to_encoding.
84903         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84904         u32_conv_to_encoding): Expect a resultbuf argument and return the
84905         result directly as a pointer.
84906         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84907         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
84908         freeing scaled_offsets if mem_iconveha failed.
84909         * lib/unicase/u-casexfrm.h (FUNC): Update.
84910         * lib/uninorm/u-normxfrm.h (FUNC): Update.
84911         * lib/vasnprintf.c (VASNPRINTF): Update.
84912         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
84913         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
84914         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
84915         * NEWS: Mention the change.
84917 2009-04-26  Bruno Haible  <bruno@clisp.org>
84919         Avoid test failures on AIX and OSF/1.
84920         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
84921         malloc(0).
84922         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84923         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84924         Likewise.
84925         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
84926         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
84927         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
84928         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
84929         * doc/posix-functions/malloc.texi: Document the portability problem
84930         related to malloc(0).
84932 2009-04-26  Bruno Haible  <bruno@clisp.org>
84934         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
84935         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
84936         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
84938 2009-04-25  Bruno Haible  <bruno@clisp.org>
84940         Avoid link error when creating a namespace clean library.
84941         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
84942         as macro with arguments if already defined as an alias.
84943         * lib/signbitf.c (gl_signbitf): Don't undefine.
84944         * lib/signbitd.c (gl_signbitd): Don't undefine.
84945         * lib/signbitl.c (gl_signbitl): Don't undefine.
84947 2009-04-25  Jim Meyering  <meyering@redhat.com>
84949         vc-list-files: fix another quoting bug
84950         * build-aux/vc-list-files: Avoid sed backslash expansion
84951         of pathological directory names.
84953 2009-04-25  Eric Blake  <ebb9@byu.net>
84955         vc-list-files: fix shell quoting error
84956         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
84957         timestamp.
84959 2009-04-25  Jim Meyering  <meyering@redhat.com>
84961         vc-list-files: restore lost functionality with subdir argument
84962         * build-aux/vc-list-files: When given a non-"." sub-directory
84963         argument, substitute the $dir/ prefix back onto each resulting name.
84964         Otherwise, coreutils' root_tests check would fail.
84966 2009-04-24  Eric Blake  <ebb9@byu.net>
84968         vc-list-files: ignore git symlinks
84969         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
84970         than ls-files, to ignore git symlinks.
84972         maint.mk: import improvements from m4
84973         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
84974         (move_if_change): Delete unused macro.
84975         (news-date-check, vc-diff-check): Support VPATH builds.
84976         (announcement): Likewise.  Split --bootstrap-tools list...
84977         (boostrap-tools): ...into separate list, which can be overridden
84978         in cfg.mk.
84979         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
84980         requiring dependency on useless-if-before-free module.
84981         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
84982         Support VPATH builds.
84984 2009-04-24  Jim Meyering  <meyering@redhat.com>
84986         maint.mk: remove coreutils-specific rules and variables
84987         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
84988         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
84989         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
84991         maint.mk: remove obsolete rule
84992         * top/maint.mk (rel-check): Remove rule.
84993         (WGET, WGETFLAGS): Remove now-unused variables.
84995 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84997         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
84998         consistency.
85000         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
85001         '$(PATH_SEPARATOR)' instead of ':'.
85003 2009-04-24  Simon Josefsson  <simon@josefsson.org>
85005         * lib/getopt1.c (main): Use 'const' for static array.
85007 2009-04-24  Simon Josefsson  <simon@josefsson.org>
85009         * top/maint.mk: Sync with coreutils.
85010         * NEWS: Explain incompatibilities.
85012 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85013             Bruno Haible  <bruno@clisp.org>
85015         Fix cross-compilation results.
85016         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
85017         statement, as third argument of AC_TRY_RUN.
85018         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
85019         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
85020         Likewise.
85021         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
85022         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
85023         Likewise.
85024         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
85025         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
85026         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
85028 2009-04-20  Bruno Haible  <bruno@clisp.org>
85030         Avoid test failure on mingw.
85031         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
85033 2009-04-20  Bruno Haible  <bruno@clisp.org>
85035         Avoid compilation error on mingw.
85036         * modules/localename-tests (Depends-on): Add locale.
85038 2009-04-19  Bruno Haible  <bruno@clisp.org>
85040         Support for building a shared library on Windows platforms.
85041         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
85042         (main): Test the presence of UNINORM_NFC here.
85043         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
85044         (main): Test the presence of UNINORM_NFD here.
85045         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
85046         (main): Test the presence of UNINORM_NFKC here.
85047         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
85048         (main): Test the presence of UNINORM_NFKD here.
85050 2009-04-19  Bruno Haible  <bruno@clisp.org>
85052         Avoid a compiler warning.
85053         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
85054         Change type of variable 'sequence'.
85056 2009-04-19  Bruno Haible  <bruno@clisp.org>
85058         * modules/configmake (Makefile.am): When the contents of configmake.h
85059         does not change, arrange to preserve its modification time.
85061 2009-04-17  Simon Josefsson  <simon@josefsson.org>
85063         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
85064         gettext domain.
85066 2009-04-16  Jim Meyering  <meyering@redhat.com>
85068         useless-if-before-free: improve conversion code
85069         * build-aux/useless-if-before-free: Adjust code-in-comment to match
85070         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
85072 2009-04-14  Bruno Haible  <bruno@clisp.org>
85074         * modules/fcntl (Depends-on): Add extensions.
85075         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
85077 2009-04-12  Ben Pfaff  <blp@gnu.org>
85079         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
85080         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
85082 2009-03-20  Ben Pfaff  <blp@gnu.org>
85084         Make rename replace existing destinations on Windows.
85085         * m4/rename.m4: Add test for Mingw.
85086         * lib/rename.c: Add rename replacement that uses MoveFileEx with
85087         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
85088         * doc/posix-functions/rename.texi: Document.
85090 2009-04-10  Bruno Haible  <bruno@clisp.org>
85092         New include file "iconveh.h".
85093         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
85094         * lib/striconveh.h: Include it.
85095         (enum iconv_ilseq_handler): Remove definition.
85096         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
85097         striconveh.h.
85098         * lib/striconveha.c: Include striconveh.h.
85099         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
85100         * modules/striconveh (Files): Add lib/iconveh.h.
85101         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
85102         lib/striconveh.h.
85104 2009-04-10  Bruno Haible  <bruno@clisp.org>
85106         * lib/uniconv.h: Update comment.
85108 2009-04-10  Bruno Haible  <bruno@clisp.org>
85110         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
85111         always.
85112         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85113         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85114         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85115         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
85116         "unistring-notinline.h", so that the function gets defined always.
85117         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85118         * lib/unistr/u8-uctomb.c: Likewise.
85119         * lib/unistr/u16-mbtouc.c: Likewise.
85120         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85121         * lib/unistr/u16-uctomb.c: Likewise.
85122         * lib/unistr/u32-mbtouc.c: Likewise.
85123         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85124         * lib/unistr/u32-uctomb.c: Likewise.
85126 2009-04-10  Bruno Haible  <bruno@clisp.org>
85128         Mark 'utime' obsolete.
85129         * modules/utime (Status, Notice): New sections.
85130         Suggested by Jim Meyering.
85132         Fix cross-compile guess for utime test.
85133         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
85134         autoconf.
85135         * doc/posix-functions/utime.texi: Give more precisions.
85136         Reported by Jan <ipif@ymail.com>.
85138 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
85140         filevercmp: correct today's change
85141         * lib/filevercmp.c: Also handle coreutils' test inputs.
85142         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
85144         Fix regression in 'filevercmp' module. Thanks Sven Joachim
85145         for reporting it.
85146         * lib/filevercmp.c: Special handle for "", "." and "..".
85147         * tests/test-filevercmp.c: Enlarge the set suite.
85149 2009-04-07  Jim Meyering  <meyering@redhat.com>
85151         useless-if-before-free: show how to remove braced useless free, too
85152         * build-aux/useless-if-before-free: still only in a comment, though.
85154 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
85156         maint.mk: import changes to syntax-check macros from coreutils
85157         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
85158         Use them in the relevant macros.
85160 2009-04-06  Bruno Haible  <bruno@clisp.org>
85162         Fix unportable use of bit-fields.
85163         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
85164         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
85165         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
85167 2009-04-06  Bruno Haible  <bruno@clisp.org>
85169         Avoid test failures on AIX and OSF/1.
85170         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
85171         that malloc(0) = NULL.
85172         * tests/unicase/test-u8-tolower.c (check): Likewise.
85173         * tests/unicase/test-u8-totitle.c (check): Likewise.
85174         * tests/unicase/test-u8-toupper.c (check): Likewise.
85175         * tests/unicase/test-u16-casefold.c (check): Likewise.
85176         * tests/unicase/test-u16-tolower.c (check): Likewise.
85177         * tests/unicase/test-u16-totitle.c (check): Likewise.
85178         * tests/unicase/test-u16-toupper.c (check): Likewise.
85179         * tests/unicase/test-u32-casefold.c (check): Likewise.
85180         * tests/unicase/test-u32-tolower.c (check): Likewise.
85181         * tests/unicase/test-u32-totitle.c (check): Likewise.
85182         * tests/unicase/test-u32-toupper.c (check): Likewise.
85183         * tests/uninorm/test-u8-nfc.c (check): Likewise.
85184         * tests/uninorm/test-u8-nfd.c (check): Likewise.
85185         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
85186         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
85187         * tests/uninorm/test-u16-nfc.c (check): Likewise.
85188         * tests/uninorm/test-u16-nfd.c (check): Likewise.
85189         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
85190         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
85191         * tests/uninorm/test-u32-nfc.c (check): Likewise.
85192         * tests/uninorm/test-u32-nfd.c (check): Likewise.
85193         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
85194         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
85196 2009-04-05  Bruno Haible  <bruno@clisp.org>
85198         Work around an autoconf limitation.
85199         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
85200         comment line if it would be longer than 3 KB.
85202 2009-04-05  Bruno Haible  <bruno@clisp.org>
85204         Avoid test failure with libiconv-1.13.
85205         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
85206         of the expected test results.
85208 2009-04-05  Bruno Haible  <bruno@clisp.org>
85210         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
85211         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
85212         that it should be installed.
85214 2009-04-05  Bruno Haible  <bruno@clisp.org>
85216         * gnulib-tool: New option --copy-file.
85217         (func_usage): Document it.
85218         (func_dest_tmpfilename): Moved out of func_import.
85219         (func_add_file, func_update_file): New functions, extracted from
85220         func_import.
85221         (func_import): Update.
85223 2009-04-05  Karl Berry  <karl@gnu.org>
85225         * README: prominently mention gnulib-tool.
85226         Rearrange sections so getting the code is near the top.
85228 2009-04-05  Bruno Haible  <bruno@clisp.org>
85230         * lib/unicase.h: Mention u*_cmp2.
85231         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
85232         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
85233         * lib/unicase/ulc-casecmp.c: Likewise.
85234         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
85235         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
85236         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
85237         unistr/u8-cmp.
85238         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
85239         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
85240         unistr/u16-cmp.
85241         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
85242         unistr/u32-cmp.
85244         * lib/uninorm.h: Mention u*_cmp2.
85245         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
85246         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
85247         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
85248         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
85249         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
85250         unistr/u8-cmp.
85251         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
85252         unistr/u16-cmp.
85253         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
85254         unistr/u32-cmp.
85256         New module 'unistr/u32-cmp2'.
85257         * lib/unistr/u32-cmp2.c: New file.
85258         * modules/unistr/u32-cmp2: New file.
85260         New module 'unistr/u16-cmp2'.
85261         * lib/unistr/u16-cmp2.c: New file.
85262         * modules/unistr/u16-cmp2: New file.
85264         New module 'unistr/u8-cmp2'.
85265         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
85266         * lib/unistr/u8-cmp2.c: New file.
85267         * lib/unistr/u-cmp2.h: New file.
85268         * modules/unistr/u8-cmp2: New file.
85270 2009-04-05  Bruno Haible  <bruno@clisp.org>
85272         * lib/unictype.h (uc_property_is_valid): New macro.
85273         * tests/unictype/test-pr_byname.c (main): Use it.
85275         * lib/unistr.h: Doc fixes.
85276         * lib/uniconv.h: Doc fixes.
85277         * lib/unictype.h: Doc fixes.
85279 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
85281         Port coreutils 7.2 to Solaris 8.
85283         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
85284         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
85285         for Solaris 8.  This is a bit of a hack, as it means it's the
85286         caller's responsibility to add -lnsl if needed, but most likely it
85287         won't be needed since only getaddrinfo uses this and getaddrinfo
85288         isn't needed on Solaris 8.
85290         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
85291         problem to Solaris 8 encountered with coreutils 7.2, which
85292         resulted in a message "fnmatch.c:292: warning: passing argument 4
85293         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
85294         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
85296 2009-04-03  Simon Josefsson  <simon@josefsson.org>
85298         * m4/ld-version-script.m4: Add FIXME comment.
85300 2009-04-02  Simon Josefsson  <simon@josefsson.org>
85302         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
85303         SOVERSION variable.
85305 2009-04-02  Bruno Haible  <bruno@clisp.org>
85307         * Makefile (info, html, dvi, pdf): Combine the rules.
85308         Suggested by Jim Meyering.
85310 2009-04-01  Bruno Haible  <bruno@clisp.org>
85312         * Makefile (info, html, dvi, pdf): New targets.
85313         Reported by Reuben Thomas <rrt@sc3d.org>.
85315 2009-04-01  Bruno Haible  <bruno@clisp.org>
85317         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
85318         can be put into PATH.
85319         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
85321 2009-04-01  Bruno Haible  <bruno@clisp.org>
85323         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
85325 2009-04-01  Bruno Haible  <bruno@clisp.org>
85327         Rename module 'visibility'.
85328         * modules/lib-symbol-visibility: Renamed from modules/visibility.
85329         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
85330         * doc/gnulib.texi: Update.
85331         * MODULES.html.sh (Misc): Update.
85332         * NEWS: Mention the change.
85334 2009-04-01  Simon Josefsson  <simon@josefsson.org>
85336         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
85337         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
85338         Eric Blake <ebb9@byu.net> for review.
85339         * MODULES.html.sh: Add lib-msvc-compat.
85340         * doc/gnulib.texi: Link to new section.
85341         * m4/ld-output-def.m4: New file.
85342         * doc/ld-output-def.texi: New file.
85344 2009-04-01  Simon Josefsson  <simon@josefsson.org>
85346         Rename ld-version-script to lib-symbol-versions.  Suggested by
85347         Bruno Haible <bruno@clisp.org>.
85348         * modules/ld-version-script: Renamed to lib-symbol-versions.
85349         * doc/ld-version-script.texi: Fix module name.
85350         * MODULES.html.sh: Add lib-symbol-versions.
85352 2009-03-31  Simon Josefsson  <simon@josefsson.org>
85354         * modules/u64-tests: New file.
85355         * tests/test-u64.c: New file.
85357 2009-03-04  Simon Josefsson  <simon@josefsson.org>
85359         * MODULES.html.sh: Mention u64.
85360         * modules/u64: New module.
85361         * modules/crypto/sha512: Depend on u64 module instead of providing
85362         u64.h.
85364 2009-03-27  Eric Blake  <ebb9@byu.net>
85366         test-strerror: make debugging EAI_SYSTEM easier
85367         * modules/getaddrinfo-tests (Depends-on): Add strerror.
85368         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
85369         failure was EAI_SYSTEM.
85371 2009-03-25  Bruno Haible  <bruno@clisp.org>
85373         Fix a problem with --enable-relocatable on Solaris 7.
85374         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
85375         since 2008-02-24.
85377 2009-03-25  Eric Blake  <ebb9@byu.net>
85379         test-sockets: avoid gcc warning
85380         * tests/test-sockets.c (main): Silence compiler warning.
85382 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
85384         New modules nproc, pthread, contributed by Glen Lenker.
85386         * MODULES.html.sh: Add pthread, nproc.
85387         * lib/nproc.c: New file.
85388         * lib/nproc.h: New file.
85389         * lib/pthread.in.h: New file.
85390         * m4/pthread.m4: New file.
85391         * modules/nproc: New file.
85392         * modules/pthread: New file.
85394 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85396         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
85397         New variable.
85399 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
85401         filevercmp: handle simple~ and numbered.~3~ backup suffixes
85402         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
85403         * tests/test-filevercmp.c: Add tests for backup suffixes.
85405 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85407         * modules/stdlib (Depends-on): Add stdint, needed when defining
85408         struct random_data on, for example, HP-UX 10.20.  Reported by
85409         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85411 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85413         * lib/readline.c (readline): Call fflush on stdout after printing
85414         prompt.
85416 2009-03-20  Bruno Haible  <bruno@clisp.org>
85418         Remove dependency from 'close' module to -lws2_32 on native Windows.
85419         * lib/close-hook.h: New file.
85420         * lib/close-hook.c: New file.
85421         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
85422         w32sock.h.
85423         (_gl_close_fd_maybe_socket): Remove function.
85424         (rpl_close): Invoke execute_all_close_hooks instead of
85425         _gl_close_fd_maybe_socket.
85426         * lib/sockets.c: Include close-hook.h, w32sock.h.
85427         (close_fd_maybe_socket): New function, essentially from lib/close.c.
85428         (close_sockets_hook): New variable.
85429         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
85430         (gl_sockets_cleanup): Unregister it.
85431         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
85432         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
85433         * modules/close-hook: New file.
85434         * modules/close (Files): Remove lib/w32sock.h.
85435         (Depends-on): Add close-hook.
85436         (Link): Remove section.
85437         * modules/sockets (Files): Add lib/w32sock.h.
85438         (Depends-on): Add close-hook.
85439         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
85440         invocation.
85441         * NEWS: Mention that LIB_CLOSE is gone.
85443 2009-03-23  Eric Blake  <ebb9@byu.net>
85445         signal-tests: test previous patch
85446         * tests/test-signal.c: New file.
85447         * modules/signal-tests: Likewise.
85449         signal.h: always support 'volatile sig_atomic_t'
85450         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
85451         (gl_SIGNAL_H_DEFAULTS): Add a default.
85452         * modules/signal (Makefile.am): Substitute if needed.
85453         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
85454         users can blindly add volatile.
85455         * doc/posix-headers/signal.texi (signal.h): Document it.
85456         Reported by Matthew Woehlke.
85458 2009-03-23  Jim Meyering  <meyering@redhat.com>
85460         pathmax: PATH_MAX: use pathconf only when available
85461         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
85462         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
85463         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
85464         This avoids a link failure in a PSP cross-compilation environment
85465         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
85467         * lib/vasnprintf.c (divide): Fix typo in comment.
85469 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85471         * gnulib-tool (func_filter_filelist): Fix comment.
85473 2009-03-20  Bruno Haible  <bruno@clisp.org>
85475         Make sockets.h self-contained.
85476         * lib/sockets.c: Include sockets.h first.
85477         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
85479 2009-03-19  Eric Blake  <ebb9@byu.net>
85481         doc: mention more functions added in cygwin 1.7.0
85482         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
85483         addition.
85484         * doc/posix-functions/log2f.texi: Likewise.
85486 2009-03-19  Jim Meyering  <meyering@redhat.com>
85488         fsusage: avoid syntax error due to statement-before-declaration
85489         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
85490         after all declarations.  Reported by Matthew Woehlke in
85491         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
85493 2009-03-18  Eric Blake  <ebb9@byu.net>
85495         build-aux/compile: sync from automake
85496         * build-aux/compile: New file, from automake.
85497         * config/srclist.txt: Mention build-aux/compile.
85499 2009-03-17  Bruno Haible  <bruno@clisp.org>
85501         * lib/git-merge-changelog.c: Fix typo in comment.
85502         Reported by Reuben Thomas <rrt@sc3d.org>.
85504 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
85506         * m4/regex.m4: update and improve help for
85507         --without-included-regex.
85509 2009-03-17  Simon Josefsson  <simon@josefsson.org>
85511         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
85512         failure on missing include files.
85514 2009-03-17  Eric Blake  <ebb9@byu.net>
85516         doc: mention more functions added in cygwin 1.7.0
85517         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
85518         addition.
85519         * doc/posix-functions/fwscanf.texi: Likewise.
85520         * doc/posix-functions/swprintf.texi: Likewise.
85521         * doc/posix-functions/swscanf.texi: Likewise.
85522         * doc/posix-functions/vfwprintf.texi: Likewise.
85523         * doc/posix-functions/vfwscanf.texi: Likewise.
85524         * doc/posix-functions/vswprintf.texi: Likewise.
85525         * doc/posix-functions/vswscanf.texi: Likewise.
85526         * doc/posix-functions/vwprintf.texi: Likewise.
85527         * doc/posix-functions/vwscanf.texi: Likewise.
85528         * doc/posix-functions/wcscasecmp.texi: Likewise.
85529         * doc/posix-functions/wcsdup.texi: Likewise.
85530         * doc/posix-functions/wcsftime.texi: Likewise.
85531         * doc/posix-functions/wcsncasecmp.texi: Likewise.
85532         * doc/posix-functions/wprintf.texi: Likewise.
85533         * doc/posix-functions/wscanf.texi: Likewise.
85534         * doc/glibc-functions/gethostbyname2.texi: Likewise.
85536 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85538         maint.mk: really add $(AM_MAKEFLAGS)
85539         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
85540         was inadvertently omitted in the last commit.
85541         Spotted by Bruno Haible.
85543         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
85544         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
85545         $(AM_MAKEFLAGS)' rather than plain `make'.
85547         gnulib-tool: execute $MAKE not make
85548         * gnulib-tool: Default $MAKE to 'make'.
85549         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
85550         than make.  Initialize $MAKE in the do-autobuild script.
85552         gnulib-tool: use $MAKE not make in generated files
85553         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
85554         make, in generated files.  Initialize $MAKE in the do-autobuild
85555         script.
85557         * top/GNUmakefile (_have-git-version-gen): Fix typo.
85559         GNUmakefile: disable parallelism only for multiple, recursive targets
85560         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
85561         additions in the Makefile.
85562         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
85563         by Automake.
85564         (.NOTPARALLEL): Only disable parallel builds if multiple targets
85565         are listed on the command line and at least one of them is
85566         listed in $(ALL_RECURSIVE_TARGETS).
85568 2009-03-14  Bruno Haible  <bruno@clisp.org>
85570         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
85571         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
85572         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
85573         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
85574         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
85575         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
85576         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
85577         unistr/u8-uctomb.
85578         * modules/unistr/u8-strchr (Depends-on): Likewise.
85579         * modules/unistr/u8-strrchr (Depends-on): Likewise.
85580         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
85581         unistr/u16-uctomb.
85582         * modules/unistr/u16-strchr (Depends-on): Likewise.
85583         * modules/unistr/u16-strrchr (Depends-on): Likewise.
85585 2009-03-12  Bruno Haible  <bruno@clisp.org>
85587         Work around select() bug on Interix 3.5.
85588         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
85589         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
85590         * m4/select.m4: New file.
85591         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
85592         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
85593         * modules/select (Files): Add m4/select.m4.
85594         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
85595         * modules/nanosleep (Depends-on): Add select.
85596         * modules/poll (Depends-on): Likewise.
85597         * doc/posix-functions/select.texi: Mention the Interix bug.
85598         Reported by Markus Duft <mduft@gentoo.org>.
85600         * lib/select.c: Renamed from lib/winsock-select.c.
85601         * modules/select (Files): Add lib/select.c, remove
85602         lib/winsock-select.c.
85603         (configure.ac): Update.
85605 2009-03-12  Jim Meyering  <meyering@redhat.com>
85607         avoid gcc warnings about unused macro definitions
85608         * lib/readtokens.c (STREQ): Remove unused definition.
85609         * lib/xmalloc.c (SIZE_MAX): Likewise.
85610         * lib/openat-die.c (N_): Likewise.
85611         * lib/mountlist.c (SIZE_MAX): Remove definition.
85612         Instead, include <stdint.h>.
85613         * lib/readutmp.c: Likewise.
85614         * modules/readutmp (Depends-on): Add stdint.
85615         * modules/mountlist (Depends-on): Add stdint.
85616         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
85618 2009-03-10  Bruno Haible  <bruno@clisp.org>
85620         Tests for module 'mbmemcasecoll'.
85621         * modules/mbmemcasecoll-tests: New file.
85622         * tests/test-mbmemcasecoll1.sh: New file.
85623         * tests/test-mbmemcasecoll2.sh: New file.
85624         * tests/test-mbmemcasecoll3.sh: New file.
85625         * tests/test-mbmemcasecoll.c: New file.
85627         New module 'mbmemcasecoll'.
85628         * lib/mbmemcasecoll.h: New file.
85629         * lib/mbmemcasecoll.c: New file.
85630         * modules/mbmemcasecoll: New file.
85632         * tests/test-mbmemcasecmp.h: New file, extracted from
85633         tests/test-mbmemcasecmp.c.
85634         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
85635         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
85636         (main): Update.
85637         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
85639 2009-03-09  Bruno Haible  <bruno@clisp.org>
85641         Tests for module 'mbmemcasecmp'.
85642         * modules/mbmemcasecmp-tests: New file.
85643         * tests/test-mbmemcasecmp1.sh: New file.
85644         * tests/test-mbmemcasecmp2.sh: New file.
85645         * tests/test-mbmemcasecmp3.sh: New file.
85646         * tests/test-mbmemcasecmp.c: New file.
85648         New module 'mbmemcasecmp'.
85649         * lib/mbmemcasecmp.h: New file.
85650         * lib/mbmemcasecmp.c: New file.
85651         * modules/mbmemcasecmp: New file.
85653 2009-03-09  Bruno Haible  <bruno@clisp.org>
85655         Tests for module 'unicase/ulc-casecoll'.
85656         * modules/unicase/ulc-casecoll-tests: New file.
85657         * tests/unicase/test-ulc-casecoll1.sh: New file.
85658         * tests/unicase/test-ulc-casecoll2.sh: New file.
85659         * tests/unicase/test-ulc-casecoll.c: New file.
85661         New module 'unicase/ulc-casecoll'.
85662         * lib/unicase.h (ulc_casecoll): New declaration.
85663         * lib/unicase/ulc-casecoll.c: New file.
85664         * modules/unicase/ulc-casecoll: New file.
85666         New module 'unicase/ulc-casexfrm'.
85667         * lib/unicase.h (ulc_casexfrm): New declaration.
85668         * lib/unicase/ulc-casexfrm.c: New file.
85669         * modules/unicase/ulc-casexfrm: New file.
85671 2009-03-09  Bruno Haible  <bruno@clisp.org>
85673         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
85674         invocations.
85676         * m4/mbscasecmp.m4: Remove file.
85677         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
85678         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
85680         * m4/mbscasestr.m4: Remove file.
85681         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
85682         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
85684         * m4/mbschr.m4: Remove file.
85685         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
85686         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
85688         * m4/mbscspn.m4: Remove file.
85689         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
85690         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
85692         * m4/mbslen.m4: Remove file.
85693         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
85694         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
85696         * m4/mbsncasecmp.m4: Remove file.
85697         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
85698         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
85700         * m4/mbsnlen.m4: Remove file.
85701         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
85702         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
85704         * m4/mbspbrk.m4: Remove file.
85705         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
85706         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
85708         * m4/mbspcasecmp.m4: Remove file.
85709         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
85710         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
85712         * m4/mbsrchr.m4: Remove file.
85713         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
85714         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
85716         * m4/mbssep.m4: Remove file.
85717         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
85718         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
85720         * m4/mbsspn.m4: Remove file.
85721         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
85722         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
85724         * m4/mbsstr.m4: Remove file.
85725         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
85726         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
85728         * m4/mbstok_r.m4: Remove file.
85729         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
85730         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
85732         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
85734         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
85735         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
85737         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
85739 2009-03-08  Bruno Haible  <bruno@clisp.org>
85741         Tests for module 'unicase/ulc-casecmp'.
85742         * modules/unicase/ulc-casecmp-tests: New file.
85743         * tests/unicase/test-ulc-casecmp1.sh: New file.
85744         * tests/unicase/test-ulc-casecmp2.sh: New file.
85745         * tests/unicase/test-ulc-casecmp.c: New file.
85747         New module 'unicase/ulc-casecmp'.
85748         * lib/unicase.h (ulc_casecmp): New declaration.
85749         * lib/unicase/ulc-casecmp.c: New file.
85750         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
85751         'const SRC_UNIT *'.
85752         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
85753         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
85754         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
85755         * modules/unicase/ulc-casecmp: New file.
85757         Tests for module 'unicase/u32-is-cased'.
85758         * modules/unicase/u32-is-cased-tests: New file.
85759         * tests/unicase/test-u32-is-cased.c: New file.
85761         Tests for module 'unicase/u16-is-cased'.
85762         * modules/unicase/u16-is-cased-tests: New file.
85763         * tests/unicase/test-u16-is-cased.c: New file.
85765         Tests for module 'unicase/u8-is-cased'.
85766         * modules/unicase/u8-is-cased-tests: New file.
85767         * tests/unicase/test-u8-is-cased.c: New file.
85768         * tests/unicase/test-is-cased.h: New file.
85770         New module 'unicase/u32-is-cased'.
85771         * lib/unicase/u32-is-cased.c: New file.
85772         * modules/unicase/u32-is-cased: New file.
85774         New module 'unicase/u16-is-cased'.
85775         * lib/unicase/u16-is-cased.c: New file.
85776         * modules/unicase/u16-is-cased: New file.
85778         New module 'unicase/u8-is-cased'.
85779         * lib/unicase/u8-is-cased.c: New file.
85780         * lib/unicase/u-is-cased.h: New file.
85781         * modules/unicase/u8-is-cased: New file.
85783         Tests for module 'unicase/u32-is-casefolded'.
85784         * modules/unicase/u32-is-casefolded-tests: New file.
85785         * tests/unicase/test-u32-is-casefolded.c: New file.
85787         Tests for module 'unicase/u16-is-casefolded'.
85788         * modules/unicase/u16-is-casefolded-tests: New file.
85789         * tests/unicase/test-u16-is-casefolded.c: New file.
85791         Tests for module 'unicase/u8-is-casefolded'.
85792         * modules/unicase/u8-is-casefolded-tests: New file.
85793         * tests/unicase/test-u8-is-casefolded.c: New file.
85794         * tests/unicase/test-is-casefolded.h: New file.
85796         New module 'unicase/u32-is-casefolded'.
85797         * lib/unicase/u32-is-casefolded.c: New file.
85798         * modules/unicase/u32-is-casefolded: New file.
85800         New module 'unicase/u16-is-casefolded'.
85801         * lib/unicase/u16-is-casefolded.c: New file.
85802         * modules/unicase/u16-is-casefolded: New file.
85804         New module 'unicase/u8-is-casefolded'.
85805         * lib/unicase/u8-is-casefolded.c: New file.
85806         * modules/unicase/u8-is-casefolded: New file.
85808         Tests for module 'unicase/u32-is-titlecase'.
85809         * modules/unicase/u32-is-titlecase-tests: New file.
85810         * tests/unicase/test-u32-is-titlecase.c: New file.
85812         Tests for module 'unicase/u16-is-titlecase'.
85813         * modules/unicase/u16-is-titlecase-tests: New file.
85814         * tests/unicase/test-u16-is-titlecase.c: New file.
85816         Tests for module 'unicase/u8-is-titlecase'.
85817         * modules/unicase/u8-is-titlecase-tests: New file.
85818         * tests/unicase/test-u8-is-titlecase.c: New file.
85819         * tests/unicase/test-is-titlecase.h: New file.
85821         New module 'unicase/u32-is-titlecase'.
85822         * lib/unicase/u32-is-titlecase.c: New file.
85823         * modules/unicase/u32-is-titlecase: New file.
85825         New module 'unicase/u16-is-titlecase'.
85826         * lib/unicase/u16-is-titlecase.c: New file.
85827         * modules/unicase/u16-is-titlecase: New file.
85829         New module 'unicase/u8-is-titlecase'.
85830         * lib/unicase/u8-is-titlecase.c: New file.
85831         * modules/unicase/u8-is-titlecase: New file.
85833         Tests for module 'unicase/u32-is-lowercase'.
85834         * modules/unicase/u32-is-lowercase-tests: New file.
85835         * tests/unicase/test-u32-is-lowercase.c: New file.
85837         Tests for module 'unicase/u16-is-lowercase'.
85838         * modules/unicase/u16-is-lowercase-tests: New file.
85839         * tests/unicase/test-u16-is-lowercase.c: New file.
85841         Tests for module 'unicase/u8-is-lowercase'.
85842         * modules/unicase/u8-is-lowercase-tests: New file.
85843         * tests/unicase/test-u8-is-lowercase.c: New file.
85844         * tests/unicase/test-is-lowercase.h: New file.
85846         New module 'unicase/u32-is-lowercase'.
85847         * lib/unicase/u32-is-lowercase.c: New file.
85848         * modules/unicase/u32-is-lowercase: New file.
85850         New module 'unicase/u16-is-lowercase'.
85851         * lib/unicase/u16-is-lowercase.c: New file.
85852         * modules/unicase/u16-is-lowercase: New file.
85854         New module 'unicase/u8-is-lowercase'.
85855         * lib/unicase/u8-is-lowercase.c: New file.
85856         * modules/unicase/u8-is-lowercase: New file.
85858         Tests for module 'unicase/u32-is-uppercase'.
85859         * modules/unicase/u32-is-uppercase-tests: New file.
85860         * tests/unicase/test-u32-is-uppercase.c: New file.
85862         Tests for module 'unicase/u16-is-uppercase'.
85863         * modules/unicase/u16-is-uppercase-tests: New file.
85864         * tests/unicase/test-u16-is-uppercase.c: New file.
85866         Tests for module 'unicase/u8-is-uppercase'.
85867         * modules/unicase/u8-is-uppercase-tests: New file.
85868         * tests/unicase/test-u8-is-uppercase.c: New file.
85869         * tests/unicase/test-is-uppercase.h: New file.
85871         New module 'unicase/u32-is-uppercase'.
85872         * lib/unicase/u32-is-uppercase.c: New file.
85873         * modules/unicase/u32-is-uppercase: New file.
85875         New module 'unicase/u16-is-uppercase'.
85876         * lib/unicase/u16-is-uppercase.c: New file.
85877         * modules/unicase/u16-is-uppercase: New file.
85879         New module 'unicase/u8-is-uppercase'.
85880         * lib/unicase/u8-is-uppercase.c: New file.
85881         * modules/unicase/u8-is-uppercase: New file.
85883         New module 'unicase/u32-is-invariant'.
85884         * lib/unicase/u32-is-invariant.c: New file.
85885         * modules/unicase/u32-is-invariant: New file.
85887         New module 'unicase/u16-is-invariant'.
85888         * lib/unicase/u16-is-invariant.c: New file.
85889         * modules/unicase/u16-is-invariant: New file.
85891         New module 'unicase/u8-is-invariant'.
85892         * lib/unicase/u8-is-invariant.c: New file.
85893         * lib/unicase/invariant.h: New file.
85894         * lib/unicase/u-is-invariant.h: New file.
85895         * modules/unicase/u8-is-invariant: New file.
85897         Tests for module 'unicase/u32-casecoll'.
85898         * modules/unicase/u32-casecoll-tests: New file.
85899         * tests/unicase/test-u32-casecoll.c: New file.
85901         Tests for module 'unicase/u16-casecoll'.
85902         * modules/unicase/u16-casecoll-tests: New file.
85903         * tests/unicase/test-u16-casecoll.c: New file.
85905         Tests for module 'unicase/u8-casecoll'.
85906         * modules/unicase/u8-casecoll-tests: New file.
85907         * tests/unicase/test-u8-casecoll.c: New file.
85909         New module 'unicase/u32-casecoll'.
85910         * lib/unicase/u32-casecoll.c: New file.
85911         * modules/unicase/u32-casecoll: New file.
85913         New module 'unicase/u16-casecoll'.
85914         * lib/unicase/u16-casecoll.c: New file.
85915         * modules/unicase/u16-casecoll: New file.
85917         New module 'unicase/u8-casecoll'.
85918         * lib/unicase/u8-casecoll.c: New file.
85919         * lib/unicase/u-casecoll.h: New file.
85920         * modules/unicase/u8-casecoll: New file.
85922         New module 'unicase/u32-casexfrm'.
85923         * lib/unicase/u32-casexfrm.c: New file.
85924         * modules/unicase/u32-casexfrm: New file.
85926         New module 'unicase/u16-casexfrm'.
85927         * lib/unicase/u16-casexfrm.c: New file.
85928         * modules/unicase/u16-casexfrm: New file.
85930         New module 'unicase/u8-casexfrm'.
85931         * lib/unicase/u8-casexfrm.c: New file.
85932         * lib/unicase/u-casexfrm.h: New file.
85933         * modules/unicase/u8-casexfrm: New file.
85935         Tests for module 'unicase/u32-casecmp'.
85936         * modules/unicase/u32-casecmp-tests: New file.
85937         * tests/unicase/test-u32-casecmp.c: New file.
85939         Tests for module 'unicase/u16-casecmp'.
85940         * modules/unicase/u16-casecmp-tests: New file.
85941         * tests/unicase/test-u16-casecmp.c: New file.
85943         Tests for module 'unicase/u8-casecmp'.
85944         * modules/unicase/u8-casecmp-tests: New file.
85945         * tests/unicase/test-u8-casecmp.c: New file.
85946         * tests/unicase/test-casecmp.h: New file.
85948         New module 'unicase/u32-casecmp'.
85949         * lib/unicase/u32-casecmp.c: New file.
85950         * modules/unicase/u32-casecmp: New file.
85952         New module 'unicase/u16-casecmp'.
85953         * lib/unicase/u16-casecmp.c: New file.
85954         * modules/unicase/u16-casecmp: New file.
85956         New module 'unicase/u8-casecmp'.
85957         * lib/unicase/u8-casecmp.c: New file.
85958         * lib/unicase/u-casecmp.h: New file.
85959         * modules/unicase/u8-casecmp: New file.
85961         Tests for module 'unicase/u32-casefold'.
85962         * modules/unicase/u32-casefold-tests: New file.
85963         * tests/unicase/test-u32-casefold.c: New file.
85965         Tests for module 'unicase/u16-casefold'.
85966         * modules/unicase/u16-casefold-tests: New file.
85967         * tests/unicase/test-u16-casefold.c: New file.
85969         Tests for module 'unicase/u8-casefold'.
85970         * modules/unicase/u8-casefold-tests: New file.
85971         * tests/unicase/test-u8-casefold.c: New file.
85973         New module 'unicase/u32-casefold'.
85974         * lib/unicase/u32-casefold.c: New file.
85975         * modules/unicase/u32-casefold: New file.
85977         New module 'unicase/u16-casefold'.
85978         * lib/unicase/u16-casefold.c: New file.
85979         * modules/unicase/u16-casefold: New file.
85981         New module 'unicase/u8-casefold'.
85982         * lib/unicase/u8-casefold.c: New file.
85983         * lib/unicase/u-casefold.h: New file.
85984         * modules/unicase/u8-casefold: New file.
85986         New module 'unicase/tocasefold'.
85987         * lib/unicase/casefold.h: New file.
85988         * lib/unicase/tocasefold.c: New file.
85989         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
85990         * modules/unicase/tocasefold: New file.
85992         Tests for module 'unicase/u32-totitle'.
85993         * modules/unicase/u32-totitle-tests: New file.
85994         * tests/unicase/test-u32-totitle.c: New file.
85996         Tests for module 'unicase/u16-totitle'.
85997         * modules/unicase/u16-totitle-tests: New file.
85998         * tests/unicase/test-u16-totitle.c: New file.
86000         Tests for module 'unicase/u8-totitle'.
86001         * modules/unicase/u8-totitle-tests: New file.
86002         * tests/unicase/test-u8-totitle.c: New file.
86004         New module 'unicase/u32-totitle'.
86005         * lib/unicase/u32-totitle.c: New file.
86006         * modules/unicase/u32-totitle: New file.
86008         New module 'unicase/u16-totitle'.
86009         * lib/unicase/u16-totitle.c: New file.
86010         * modules/unicase/u16-totitle: New file.
86012         New module 'unicase/u8-totitle'.
86013         * lib/unicase/u8-totitle.c: New file.
86014         * lib/unicase/u-totitle.h: New file.
86015         * modules/unicase/u8-totitle: New file.
86017         Tests for module 'unicase/u32-tolower'.
86018         * modules/unicase/u32-tolower-tests: New file.
86019         * tests/unicase/test-u32-tolower.c: New file.
86021         Tests for module 'unicase/u16-tolower'.
86022         * modules/unicase/u16-tolower-tests: New file.
86023         * tests/unicase/test-u16-tolower.c: New file.
86025         Tests for module 'unicase/u8-tolower'.
86026         * modules/unicase/u8-tolower-tests: New file.
86027         * tests/unicase/test-u8-tolower.c: New file.
86029         New module 'unicase/u32-tolower'.
86030         * lib/unicase/u32-tolower.c: New file.
86031         * modules/unicase/u32-tolower: New file.
86033         New module 'unicase/u16-tolower'.
86034         * lib/unicase/u16-tolower.c: New file.
86035         * modules/unicase/u16-tolower: New file.
86037         New module 'unicase/u8-tolower'.
86038         * lib/unicase/u8-tolower.c: New file.
86039         * modules/unicase/u8-tolower: New file.
86041         Tests for module 'unicase/u32-toupper'.
86042         * modules/unicase/u32-toupper-tests: New file.
86043         * tests/unicase/test-u32-toupper.c: New file.
86045         Tests for module 'unicase/u16-toupper'.
86046         * modules/unicase/u16-toupper-tests: New file.
86047         * tests/unicase/test-u16-toupper.c: New file.
86049         Tests for module 'unicase/u8-toupper'.
86050         * modules/unicase/u8-toupper-tests: New file.
86051         * tests/unicase/test-u8-toupper.c: New file.
86053         New module 'unicase/u32-toupper'.
86054         * lib/unicase/u32-toupper.c: New file.
86055         * modules/unicase/u32-toupper: New file.
86057         New module 'unicase/u16-toupper'.
86058         * lib/unicase/u16-toupper.c: New file.
86059         * modules/unicase/u16-toupper: New file.
86061         New module 'unicase/u8-toupper'.
86062         * lib/unicase/u8-toupper.c: New file.
86063         * modules/unicase/u8-toupper: New file.
86065         New module 'unicase/u32-casemap'.
86066         * lib/unicase/u32-casemap.c: New file.
86067         * modules/unicase/u32-casemap: New file.
86069         New module 'unicase/u16-casemap'.
86070         * lib/unicase/u16-casemap.c: New file.
86071         * modules/unicase/u16-casemap: New file.
86073         New module 'unicase/u8-casemap'.
86074         * lib/unicase/unicasemap.h: New file.
86075         * lib/unicase/u8-casemap.c: New file.
86076         * lib/unicase/u-casemap.h: New file.
86077         * modules/unicase/u8-casemap: New file.
86079         New module 'unicase/special-casing'.
86080         * lib/unicase/special-casing.h: New file.
86081         * lib/unicase/special-casing.c: New file.
86082         * lib/unicase/special-casing-table.gperf: New file, generated by
86083         gen-uni-tables.c.
86084         * modules/unicase/special-casing: New file.
86086         Tests for module 'unicase/locale-language'.
86087         * modules/unicase/locale-language-tests: New file.
86088         * tests/unicase/test-locale-language.sh: New file.
86089         * tests/unicase/test-locale-language.c: New file.
86091         New module 'unicase/locale-language'.
86092         * lib/unicase/locale-language.c: New file.
86093         * lib/unicase/locale-languages.gperf: New file.
86094         * modules/unicase/locale-language: New file.
86096         Generate more tables for case conversion and case folding.
86097         * lib/gen-uni-tables.c (SCC_*): New enum items.
86098         (struct special_casing_rule): New type.
86099         (casing_rules, num_casing_rules, allocated_casing_rules): New
86100         variables.
86101         (add_casing_rule, fill_casing_rules): New functions.
86102         (struct casefold_rule): New type.
86103         (casefolding_rules, num_casefolding_rules,
86104         allocated_casefolding_rules): New variables.
86105         (fill_casefolding_rules): New function.
86106         (unicode_casefold): New variable.
86107         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
86108         sort_casing_rules, output_casing_rules): New functions.
86109         (main): Accept to more arguments: SpecialCasing.txt and
86110         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
86111         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
86112         Output mapping for casefolding.
86114         * lib/unicase.h: Include stdbool.h, uninorm.h.
86115         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
86116         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
86117         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
86118         arguments.
86119         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
86120         resultp arguments.
86121         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
86122         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
86123         resultp arguments.
86124         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
86125         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
86126         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
86127         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
86128         declarations.
86129         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
86131 2009-03-08  Bruno Haible  <bruno@clisp.org>
86133         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
86134         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
86135         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
86136         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
86138 2009-03-07  Bruno Haible  <bruno@clisp.org>
86140         Adjust u*_normcmp, u*_normcoll API.
86141         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
86142         u16_normcoll, u32_normcoll): Change failure conventions.
86143         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
86144         errno and return -1.
86145         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
86147 2009-03-07  Bruno Haible  <bruno@clisp.org>
86149         Tests for module 'uninorm/u32-normcoll'.
86150         * modules/uninorm/u32-normcoll-tests: New file.
86151         * tests/uninorm/test-u32-normcoll.c: New file.
86153         Tests for module 'uninorm/u16-normcoll'.
86154         * modules/uninorm/u16-normcoll-tests: New file.
86155         * tests/uninorm/test-u16-normcoll.c: New file.
86157         Tests for module 'uninorm/u8-normcoll'.
86158         * modules/uninorm/u8-normcoll-tests: New file.
86159         * tests/uninorm/test-u8-normcoll.c: New file.
86161 2009-03-07  Bruno Haible  <bruno@clisp.org>
86163         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
86164         tests/uninorm/test-u32-normcmp.c.
86165         * tests/uninorm/test-u32-normcmp.c: Include it.
86166         (test_nonascii): New function, extracted from main. Add some more
86167         tests.
86168         (main): Invoke test_ascii and test_nonascii.
86169         * modules/uninorm/u32-normcmp-tests (Files): Add
86170         tests/uninorm/test-u32-normcmp.h.
86171         (Depends-on): Remove uninorm/u32-normcmp.
86173         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
86174         tests/uninorm/test-u16-normcmp.c.
86175         * tests/uninorm/test-u16-normcmp.c: Include it.
86176         (test_nonascii): New function, extracted from main. Add some more
86177         tests.
86178         (main): Invoke test_ascii and test_nonascii.
86179         * modules/uninorm/u16-normcmp-tests (Files): Add
86180         tests/uninorm/test-u16-normcmp.h.
86181         (Depends-on): Remove uninorm/u16-normcmp.
86183         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
86184         tests/uninorm/test-u8-normcmp.c.
86185         * tests/uninorm/test-u8-normcmp.c: Include it.
86186         (test_nonascii): New function, extracted from main. Add some more
86187         tests.
86188         (main): Invoke test_ascii and test_nonascii.
86189         * modules/uninorm/u8-normcmp-tests (Files): Add
86190         tests/uninorm/test-u8-normcmp.h.
86191         (Depends-on): Remove uninorm/u8-normcmp.
86193 2009-03-07  Bruno Haible  <bruno@clisp.org>
86195         New module 'uninorm/u32-normcoll'.
86196         * lib/uninorm/u32-normcoll.c: New file.
86197         * modules/uninorm/u32-normcoll: New file.
86199         New module 'uninorm/u16-normcoll'.
86200         * lib/uninorm/u16-normcoll.c: New file.
86201         * modules/uninorm/u16-normcoll: New file.
86203         New module 'uninorm/u8-normcoll'.
86204         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
86205         declarations.
86206         * lib/uninorm/u8-normcoll.c: New file.
86207         * lib/uninorm/u-normcoll.h: New file.
86208         * modules/uninorm/u8-normcoll: New file.
86210         New module 'uninorm/u32-normxfrm'.
86211         * lib/uninorm/u32-normxfrm.c: New file.
86212         * modules/uninorm/u32-normxfrm: New file.
86214         New module 'uninorm/u16-normxfrm'.
86215         * lib/uninorm/u16-normxfrm.c: New file.
86216         * modules/uninorm/u16-normxfrm: New file.
86218         New module 'uninorm/u8-normxfrm'.
86219         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
86220         declarations.
86221         * lib/uninorm/u8-normxfrm.c: New file.
86222         * lib/uninorm/u-normxfrm.h: New file.
86223         * modules/uninorm/u8-normxfrm: New file.
86225 2009-03-07  Bruno Haible  <bruno@clisp.org>
86227         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
86228         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
86229         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
86231 2009-03-07  Bruno Haible  <bruno@clisp.org>
86233         New module 'memxfrm'.
86234         * lib/memxfrm.h: New file.
86235         * lib/memxfrm.c: New file.
86236         * modules/memxfrm: New file.
86238 2009-03-07  Bruno Haible  <bruno@clisp.org>
86240         New module 'memcmp2'.
86241         * lib/memcmp2.h: New file.
86242         * lib/memcmp2.c: New file.
86243         * modules/memcmp2: New file.
86245 2009-03-07  Bruno Haible  <bruno@clisp.org>
86247         Tests for module 'uninorm/decomposing-form'.
86248         * modules/uninorm/decomposing-form-tests: New file.
86249         * tests/uninorm/test-decomposing-form.c: New file.
86251         New module 'uninorm/decomposing-form'.
86252         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
86253         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
86254         Add 'decomposing_variant' field.
86255         * lib/uninorm/decomposing-form.c: New file.
86256         * lib/uninorm/nfc.c (uninorm_nfc): Update.
86257         * lib/uninorm/nfd.c (uninorm_nfd): Update.
86258         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
86259         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
86260         * modules/uninorm/decomposing-form: New file.
86261         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
86262         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
86264 2009-03-07  Bruno Haible  <bruno@clisp.org>
86266         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
86267         strings.
86269 2009-03-06  Bruno Haible  <bruno@clisp.org>
86271         Tests for module 'uninorm/u32-normcmp'.
86272         * tests/uninorm/test-u32-normcmp.c: New file.
86273         * modules/uninorm/u32-normcmp-tests: New file.
86275         Tests for module 'uninorm/u16-normcmp'.
86276         * tests/uninorm/test-u16-normcmp.c: New file.
86277         * modules/uninorm/u16-normcmp-tests: New file.
86279         Tests for module 'uninorm/u8-normcmp'.
86280         * tests/uninorm/test-u8-normcmp.c: New file.
86281         * modules/uninorm/u8-normcmp-tests: New file.
86283         New module 'uninorm/u32-normcmp'.
86284         * lib/uninorm/u32-normcmp.c: New file.
86285         * modules/uninorm/u32-normcmp: New file.
86287         New module 'uninorm/u16-normcmp'.
86288         * lib/uninorm/u16-normcmp.c: New file.
86289         * modules/uninorm/u16-normcmp: New file.
86291         New module 'uninorm/u8-normcmp'.
86292         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
86293         declarations.
86294         * lib/uninorm/u8-normcmp.c: New file.
86295         * lib/uninorm/u-normcmp.h: New file.
86296         * modules/uninorm/u8-normcmp: New file.
86298 2009-03-06  Bruno Haible  <bruno@clisp.org>
86300         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
86301         Reported by Eric Blake.
86303 2009-03-06  Eric Blake  <ebb9@byu.net>
86304             Bruno Haible  <bruno@clisp.org>
86306         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
86307         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
86308         condition.
86309         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
86310         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
86311         condition.
86312         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
86314 2009-03-06  Eric Blake  <ebb9@byu.net>
86316         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
86317         to avoid compiler warnings.
86318         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
86320 2009-03-05  Bruno Haible  <bruno@clisp.org>
86322         * tests/test-ftell.c (main): Disable test beyond end of file on
86323         FreeMiNT.
86324         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
86326 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
86328         * lib/filevercmp.c: Move hidden files up in ordering.
86329         * tests/test-filevercmp.c: Add tests for hidden files.
86331 2009-03-04  Bruno Haible  <bruno@clisp.org>
86333         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
86334         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
86335         AM_CFLAGS.
86336         Reported by Simon Josefsson.
86338 2009-03-03  Bruno Haible  <bruno@clisp.org>
86340         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
86341         Reported by Simon Josefsson.
86343         * doc/ld-version-script.texi: Update node reference.
86345 2009-03-03  Bruno Haible  <bruno@clisp.org>
86347         * modules/visibility (License): Change to 'unlimited'.
86348         Suggested by Simon Josefsson.
86350 2009-03-03  Jim Meyering  <meyering@redhat.com>
86352         unlinkdir: cannot_unlink_dir may modify process state
86353         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
86354         it's neither thread-safe nor appropriate for use in a library.
86356 2009-03-03  Eric Blake  <ebb9@byu.net>
86358         test-closein: silence test under Darwin
86359         * tests/test-closein.sh: Ignore stderr from cat, since we don't
86360         care if it dies from EPIPE or EBADF.
86362 2009-03-03  Bruno Haible  <bruno@clisp.org>
86364         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
86365         earlier.
86366         * doc/visibility.texi: Fix @node and @section.
86368 2009-03-03  Simon Josefsson  <simon@josefsson.org>
86370         * doc/gnulib.texi: Link to sections for ld version script and
86371         visibility.
86372         * doc/visibility.texi: Add @node and @section.
86373         * modules/ld-version-script: New module.
86374         * m4/ld-version-script.m4: New file.
86375         * doc/ld-version-script.texi: New file.
86377 2009-03-02  David Lutterkort  <lutter@redhat.com>
86379         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
86380         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86382 2009-03-02  Bruno Haible  <bruno@clisp.org>
86384         * doc/visibility.texi: Mention libtool's -export-symbols option.
86386 2009-03-02  Jim Meyering  <meyering@redhat.com>
86388         announce-gen: new option: --no-print-checksums
86389         * build-aux/announce-gen (usage): Describe it.
86390         (print_checksums): Print a newline here, not in the [*] footnote.
86391         (main): Honor it.
86393 2009-03-01  Bruno Haible  <bruno@clisp.org>
86395         Use socklen_t in the native Windows replacements prototypes.
86396         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
86397         instead of 'int'.
86398         * lib/getsockopt.c (rpl_getsockopt): Likewise.
86399         * lib/setsockopt.c (rpl_setsockopt): Likewise.
86400         * modules/getsockopt (Depends-on): Add socklen.
86401         * modules/setsockopt (Depends-on): Add socklen.
86403 2009-03-01  Bruno Haible  <bruno@clisp.org>
86405         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
86406         least 4.2.
86408 2009-03-01  Eric Blake  <ebb9@byu.net>
86409             Bruno Haible  <bruno@clisp.org>
86411         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
86412         error messages.
86413         * lib/wait-process.c (wait_subprocess): Omit error message about
86414         deadly signal sent to the child of termsigp != NULL.
86416 2009-03-01  Eric Blake  <ebb9@byu.net>
86418         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
86420 2009-03-01  Bruno Haible  <bruno@clisp.org>
86422         Avoid a gcc warning.
86423         * tests/test-sched.c (b): Make global.
86424         Reported by Eric Blake.
86426 2009-01-19  Martin Lambers  <marlam@marlam.de>
86428         Provide POSIX semantics for socket timeout options on W32.
86429         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
86430         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
86431         * modules/setsockopt: Depend on sys_time module for struct timeval.
86432         * modules/getsockopt: Depend on sys_time module for struct timeval.
86434 2009-03-01  Simon Josefsson  <simon@josefsson.org>
86436         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
86437         __USE_GNU, for consistency with netdb.in.h.
86438         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86440 2009-03-01  Bruno Haible  <bruno@clisp.org>
86442         More support for FreeMiNT.
86443         * lib/fseeko.c (rpl_fseeko): Complete last commit.
86444         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86446 2009-03-01  Bruno Haible  <bruno@clisp.org>
86448         More support for FreeMiNT.
86449         * lib/fpurge.c (fpurge): Correct last commit.
86450         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86452 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86454         Fix unportable awk script in vc-list-files.
86455         * build-aux/vc-list-files: In the replacement awk script, use
86456         substr with a second argument of 1, not zero.
86457         Report by Simon Josefsson.
86459 2009-02-28  Bruno Haible  <bruno@clisp.org>
86461         More support for FreeMiNT.
86462         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
86463         to FreeMiNT today.
86464         * lib/fwriting.c (fwriting): Likewise.
86465         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
86467 2009-02-28  Bruno Haible  <bruno@clisp.org>
86469         * tests/test-freadseek.c (main): Disable test beyond end of file on
86470         FreeMiNT.
86471         * tests/test-ftello.c (main): Likewise.
86472         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
86474 2009-02-28  Bruno Haible  <bruno@clisp.org>
86476         Add tentative support for FreeMiNT.
86477         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
86478         * lib/fpurge.c (fpurge): Likewise.
86479         * lib/freadable.c (freadable): Likewise.
86480         * lib/freading.c (freading): Likewise.
86481         * lib/freadptr.c (freadptr): Likewise.
86482         * lib/freadseek.c (freadptrinc): Likewise.
86483         * lib/fseeko.c (rpl_fseeko): Likewise.
86484         * lib/fseterr.c (fseterr): Likewise.
86485         * lib/fwritable.c (fwritable): Likewise.
86486         * lib/fwriting.c (fwriting): Likewise.
86487         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
86488         Hourihane.
86489         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86491 2009-02-28  Bruno Haible  <bruno@clisp.org>
86493         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
86494         SIGCHLD.
86495         Reported by Jim Meyering.
86497 2009-02-28  Bruno Haible  <bruno@clisp.org>
86499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
86500         Mention the results of these tests on various platforms.
86501         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
86502         order.
86503         * doc/posix-functions/printf.texi: Likewise.
86504         * doc/posix-functions/snprintf.texi: Likewise.
86505         * doc/posix-functions/sprintf.texi: Likewise.
86506         * doc/posix-functions/vfprintf.texi: Likewise.
86507         * doc/posix-functions/vprintf.texi: Likewise.
86508         * doc/posix-functions/vsnprintf.texi: Likewise.
86509         * doc/posix-functions/vsprintf.texi: Likewise.
86510         * doc/glibc-functions/obstack_printf.texi: Likewise.
86511         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
86513 2009-02-28  Bruno Haible  <bruno@clisp.org>
86515         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
86516         Reported by Loïc Minier <lool@dooz.org>.
86518 2009-02-27  Bruno Haible  <bruno@clisp.org>
86520         * gnulib-tool (func_import): Make the sed expression used to create the
86521         sed script for updating the .gitignore file POSIX compliant.
86522         Reported by Eric Blake.
86524 2009-02-27  Bruno Haible  <bruno@clisp.org>
86526         * gnulib-tool (sed): Don't alias as "sed --posix".
86527         Reported by Eric Blake.
86529 2009-02-27  Bruno Haible  <bruno@clisp.org>
86531         Avoid test link errors.
86532         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
86533         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
86534         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
86535         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
86536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86538 2009-02-27  Bruno Haible  <bruno@clisp.org>
86540         Avoid spurious "(cached)" in configure output.
86541         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
86542         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
86543         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
86544         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
86545         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
86546         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
86547         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
86548         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
86549         Reported by Eric Blake.
86551 2009-02-27  Eric Blake  <ebb9@byu.net>
86553         printf: fix regression in previous patch
86554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
86556 2009-02-27  Bruno Haible  <bruno@clisp.org>
86558         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
86559         value.
86560         * lib/stdint.in.h: Likewise.
86561         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
86563 2009-02-27  Eric Blake  <ebb9@byu.net>
86565         doc: mention more functions added in cygwin 1.7.0
86566         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
86567         addition.
86568         * doc/posix-functions/open_wmemstream.texi: Likewise.
86569         * doc/posix-functions/wcsnlen.texi: Likewise.
86570         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86571         * doc/posix-functions/wcstod.texi: Likewise.
86572         * doc/posix-functions/wcstof.texi: Likewise.
86573         * doc/posix-functions/wcstoimax.texi: Likewise.
86574         * doc/posix-functions/wcstok.texi: Likewise.
86575         * doc/posix-functions/wcstoumax.texi: Likewise.
86577         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
86578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
86579         * doc/posix-functions/fprintf.texi: Update.
86580         * doc/posix-functions/printf.texi: Update.
86581         * doc/posix-functions/snprintf.texi: Update.
86582         * doc/posix-functions/sprintf.texi: Update.
86583         * doc/posix-functions/vfprintf.texi: Update.
86584         * doc/posix-functions/vprintf.texi: Update.
86585         * doc/posix-functions/vsnprintf.texi: Update.
86586         * doc/posix-functions/vsprintf.texi: Update.
86587         * doc/glibc-functions/obstack_printf.texi: Update.
86588         * doc/glibc-functions/obstack_vprintf.texi: Update.
86590 2009-02-26  Eric Blake  <ebb9@byu.net>
86592         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
86593         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
86594         compilation bug by using runtime conversion.
86595         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
86596         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
86597         * modules/ceill-tests (Files): Use nan.h.
86598         * modules/floorl-tests (Files): Likewise.
86599         * modules/frexpl-tests (Files): Likewise.
86600         * modules/isnanl-tests (Files): Likewise.
86601         * modules/ldexpl-tests (Files): Likewise.
86602         * modules/roundl-tests (Files): Likewise.
86603         * modules/truncl-tests (Files): Likewise.
86604         * tests/test-ceill.c (main): Use a working NaN.
86605         * tests/test-floorl.c (main): Likewise.
86606         * tests/test-frexpl.c (main): Likewise.
86607         * tests/test-isnan.c (test_long_double): Likewise.
86608         * tests/test-isnanl.h (main): Likewise.
86609         * tests/test-ldexpl.h (main): Likewise.
86610         * tests/test-roundl.h (main): Likewise.
86611         * tests/test-truncl.h (main): Likewise.
86612         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
86614 2009-02-26  Eric Blake  <ebb9@byu.net>
86615             Bruno Haible  <bruno@clisp.org>
86617         Work around a *printf bug with %ls on Solaris.
86618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
86619         precision is specified, sprintf stops converting the wide string
86620         argument when the number of bytes that have been produced by this
86621         conversion equals or exceeds the precision.
86622         * doc/posix-functions/fprintf.texi: Update.
86623         * doc/posix-functions/printf.texi: Update.
86624         * doc/posix-functions/snprintf.texi: Update.
86625         * doc/posix-functions/sprintf.texi: Update.
86626         * doc/posix-functions/vfprintf.texi: Update.
86627         * doc/posix-functions/vprintf.texi: Update.
86628         * doc/posix-functions/vsnprintf.texi: Update.
86629         * doc/posix-functions/vsprintf.texi: Update.
86630         * doc/glibc-functions/obstack_printf.texi: Update.
86631         * doc/glibc-functions/obstack_vprintf.texi: Update.
86633 2009-02-26  Eric Blake  <ebb9@byu.net>
86635         stdlib: favor compiler check of random.h
86636         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
86637         to avoid an ObjC random.h installed by Swarm.
86639 2009-02-26  Bruno Haible  <bruno@clisp.org>
86641         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
86642         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
86643         Reported by Gary V. Vaughan <gary@gnu.org>.
86645 2009-02-26  Bruno Haible  <bruno@clisp.org>
86647         Fix *printf behaviour regarding the %ls directive.
86648         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
86649         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
86650         NEED_PRINTF_DIRECTIVE_LS.
86651         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
86652         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
86653         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86654         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
86655         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
86656         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
86657         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
86658         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86659         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86660         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86661         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86662         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
86663         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86665         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86666         * doc/posix-functions/fprintf.texi: Update.
86667         * doc/posix-functions/printf.texi: Update.
86668         * doc/posix-functions/snprintf.texi: Update.
86669         * doc/posix-functions/sprintf.texi: Update.
86670         * doc/posix-functions/vfprintf.texi: Update.
86671         * doc/posix-functions/vprintf.texi: Update.
86672         * doc/posix-functions/vsnprintf.texi: Update.
86673         * doc/posix-functions/vsprintf.texi: Update.
86674         * doc/glibc-functions/obstack_printf.texi: Update.
86675         * doc/glibc-functions/obstack_vprintf.texi: Update.
86676         Reported by Eric Blake.
86678 2009-02-25  Bruno Haible  <bruno@clisp.org>
86680         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
86681         with known value.
86682         Reported by Gary V. Vaughan <gary@gnu.org>.
86684 2009-02-25  Bruno Haible  <bruno@clisp.org>
86686         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
86687         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
86688         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
86689         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
86690         Reported by Gary V. Vaughan <gary@gnu.org>.
86692 2009-02-25  Bruno Haible  <bruno@clisp.org>
86694         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
86695         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
86696         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
86697         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
86698         Reported by Gary V. Vaughan <gary@gnu.org>.
86700 2009-02-25  Eric Blake  <ebb9@byu.net>
86702         tests: skip fseek/ftell tests if ungetc is broken
86703         * m4/ungetc.m4: New file.
86704         * modules/fseek-tests: Split test, so ungetc dependency is
86705         separate from rest of test.
86706         * modules/fseeko-tests: Likewise.
86707         * modules/ftell-tests: Likewise.
86708         * modules/ftello-tests: Likewise.
86709         * tests/test-fseek.c (main): Isolate ungetc dependency.
86710         * tests/test-fseeko.c (main): Likewise.
86711         * tests/test-ftell.c (main): Likewise.
86712         * tests/test-ftello.c (main): Likewise.
86713         * tests/test-fseek2.sh: New file.
86714         * tests/test-fseeko2.sh: Likewise.
86715         * tests/test-ftell2.sh: Likewise.
86716         * tests/test-ftello2.sh: Likewise.
86718 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
86720         test-getaddrinfo: fix usage of skip return code 77
86721         * tests/test-gettaddrinfo.c: Return skip code 77 only
86722         for first occurrence of skip (4x77 is not 77)
86724 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
86726         strtod: avoid C99 decl-after-statement
86727         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
86729 2009-02-24  Eric Blake  <ebb9@byu.net>
86731         strtod: detect HP-UX 11.31 bug
86732         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
86733         Reported by Gary V. Vaughan.
86735 2009-02-23  Bruno Haible  <bruno@clisp.org>
86737         Fix invalid read past end of memory block.
86738         * lib/vasnprintf.c (DCHAR_SET): Define.
86739         (local_wcslen): Define only when needed.
86740         (local_strnlen, local_wcsnlen): New functions.
86741         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
86742         directives that involve a conversion ourselves.
86743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
86744         wcsnlen, mbrtowc, wcrtomb.
86745         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
86746         * tests/test-vasprintf-posix.c (test_function): Likewise.
86747         * tests/test-snprintf-posix.h (test_function): Likewise.
86748         * tests/test-sprintf-posix.h (test_function): Likewise.
86749         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86751 2009-02-22  Bruno Haible  <bruno@clisp.org>
86753         Implement new clarified decomposition of Hangul syllables.
86754         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
86755         of type LTV, return only a pairwise decomposition.
86756         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
86757         Likewise.
86758         * tests/uninorm/test-decomposition.c (main): Updated expected result.
86759         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
86760         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
86762 2009-02-22  Bruno Haible  <bruno@clisp.org>
86764         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
86765         zero-length results and shrink excess allocated memory.
86766         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
86767         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
86768         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
86769         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
86770         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
86771         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
86772         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
86773         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
86774         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
86775         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
86776         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
86777         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
86779 2009-02-21  Bruno Haible  <bruno@clisp.org>
86781         * doc/gnulib.texi: Include safe-alloc.texi earlier.
86782         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
86783         spaces after a period. Put a space between a macro name and its
86784         argument list. Trivial rewordings.
86785         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
86786         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
86787         (main): Return 0 explicitly.
86789 2009-02-21  Bruno Haible  <bruno@clisp.org>
86791         Tests for module 'uninorm/filter'.
86792         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
86793         * modules/uninorm/filter-tests: New file.
86795         New module 'uninorm/filter'.
86796         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
86797         uninorm_filter_flush, uninorm_filter_free): New declarations.
86798         * lib/uninorm/uninorm-filter.c: New file.
86799         * modules/uninorm/filter: New file.
86801 2009-02-21  Bruno Haible  <bruno@clisp.org>
86803         Tests for module 'uninorm/nfkc'.
86804         * tests/uninorm/test-nfkc.c: New file.
86805         * tests/uninorm/test-u8-nfkc.c: New file.
86806         * tests/uninorm/test-u16-nfkc.c: New file.
86807         * tests/uninorm/test-u32-nfkc.c: New file.
86808         * tests/uninorm/test-u32-nfkc-big.sh: New file.
86809         * tests/uninorm/test-u32-nfkc-big.c: New file.
86810         * modules/uninorm/nfkc-tests: New file.
86812         New module 'uninorm/nfkc'.
86813         * lib/uninorm/nfkc.c: New file.
86814         * modules/uninorm/nfkc: New file.
86816         Tests for module 'uninorm/nfkd'.
86817         * tests/uninorm/test-nfkd.c: New file.
86818         * tests/uninorm/test-u8-nfkd.c: New file.
86819         * tests/uninorm/test-u16-nfkd.c: New file.
86820         * tests/uninorm/test-u32-nfkd.c: New file.
86821         * tests/uninorm/test-u32-nfkd-big.sh: New file.
86822         * tests/uninorm/test-u32-nfkd-big.c: New file.
86823         * modules/uninorm/nfkd-tests: New file.
86825         New module 'uninorm/nfkd'.
86826         * lib/uninorm/nfkd.c: New file.
86827         * modules/uninorm/nfkd: New file.
86829         Tests for module 'uninorm/nfc'.
86830         * tests/uninorm/test-nfc.c: New file.
86831         * tests/uninorm/test-u8-nfc.c: New file.
86832         * tests/uninorm/test-u16-nfc.c: New file.
86833         * tests/uninorm/test-u32-nfc.c: New file.
86834         * tests/uninorm/test-u32-nfc-big.sh: New file.
86835         * tests/uninorm/test-u32-nfc-big.c: New file.
86836         * modules/uninorm/nfc-tests: New file.
86838         New module 'uninorm/nfc'.
86839         * lib/uninorm/nfc.c: New file.
86840         * modules/uninorm/nfc: New file.
86842         Tests for module 'uninorm/nfd'.
86843         * tests/uninorm/test-nfd.c: New file.
86844         * tests/uninorm/test-u8-nfd.c: New file.
86845         * tests/uninorm/test-u16-nfd.c: New file.
86846         * tests/uninorm/test-u32-nfd.c: New file.
86847         * tests/uninorm/test-u32-nfd-big.sh: New file.
86848         * tests/uninorm/test-u32-nfd-big.c: New file.
86849         * tests/uninorm/test-u32-normalize-big.h: New file.
86850         * tests/uninorm/test-u32-normalize-big.c: New file.
86851         * tests/uninorm/NormalizationTest.txt: New file, created from
86852         Unicode 5.1.0 NormalizationTest.txt.
86853         * modules/uninorm/nfd-tests: New file.
86855         New module 'uninorm/nfd'.
86856         * lib/uninorm/nfd.c: New file.
86857         * modules/uninorm/nfd: New file.
86859         New module 'uninorm/u32-normalize'.
86860         * lib/uninorm/u32-normalize.c: New file.
86861         * modules/uninorm/u32-normalize: New file.
86863         New module 'uninorm/u16-normalize'.
86864         * lib/uninorm/u16-normalize.c: New file.
86865         * modules/uninorm/u16-normalize: New file.
86867         New module 'uninorm/u8-normalize'.
86868         * lib/uninorm/u8-normalize.c: New file.
86869         * lib/uninorm/normalize-internal.h: New file.
86870         * lib/uninorm/u-normalize-internal.h: New file.
86871         * modules/uninorm/u8-normalize: New file.
86873         New module 'uninorm/decompose-internal'.
86874         * lib/uninorm/decompose-internal.c: New file.
86875         * modules/uninorm/decompose-internal: New file.
86877         Tests for module 'uninorm/composition'.
86878         * tests/uninorm/test-composition.c: New file.
86879         * modules/uninorm/composition-tests: New file.
86881         New module 'uninorm/composition'.
86882         * lib/uninorm/composition.c: New file.
86883         * lib/uninorm/composition-table.gperf: New file, generated by
86884         gen-uni-tables.
86885         * modules/uninorm/composition: New file.
86887         Tests for module 'uninorm/compat-decomposition'.
86888         * tests/uninorm/test-compat-decomposition.c: New file.
86889         * modules/uninorm/compat-decomposition-tests: New file.
86891         New module 'uninorm/compat-decomposition'.
86892         * lib/uninorm/decompose-internal.h: New file.
86893         * lib/uninorm/compat-decomposition.c: New file.
86894         * modules/uninorm/compat-decomposition: New file.
86896         Tests for module 'uninorm/canonical-decomposition'.
86897         * tests/uninorm/test-canonical-decomposition.c: New file.
86898         * modules/uninorm/canonical-decomposition-tests: New file.
86900         New module 'uninorm/canonical-decomposition'.
86901         * lib/uninorm/canonical-decomposition.c: New file.
86902         * modules/uninorm/canonical-decomposition: New file.
86904         Tests for module 'uninorm/decomposition'.
86905         * tests/uninorm/test-decomposition.c: New file.
86906         * modules/uninorm/decomposition-tests: New file.
86908         New module 'uninorm/decomposition'.
86909         * lib/uninorm/decomposition.c: New file.
86910         * modules/uninorm/decomposition: New file.
86912         New module 'uninorm/decomposition-table'.
86913         * lib/uninorm/decomposition-table.h: New file.
86914         * lib/uninorm/decomposition-table.c: New file.
86915         * lib/uninorm/decomposition-table1.h: New file, generated by
86916         gen-uni-tables.
86917         * lib/uninorm/decomposition-table2.h: New file, generated by
86918         gen-uni-tables.
86919         * modules/uninorm/decomposition-table: New file.
86921         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
86922         (UC_DECOMP_*): New enumeration items.
86923         (get_decomposition): New function.
86924         (struct decomp_table): New type.
86925         (output_decomposition, output_decomposition_tables): New functions.
86926         (unicode_composition_exclusions): New variable.
86927         (fill_composition_exclusions, debug_output_composition_tables): New
86928         functions.
86929         (main): Accept one more argument. Invoke fill_composition_exclusions.
86930         Output decomposition and composition tables.
86932         New module 'uninorm/base'.
86933         * lib/uninorm.h: New file.
86934         * lib/unictype.h: Update comment.
86935         * modules/uninorm/base: New file.
86937 2009-02-21  David Lutterkort  <lutter@redhat.com>
86939         Tests for module 'safe-alloc'.
86940         * tests/test-safe-alloc.c: New file.
86941         * modules/safe-alloc-tests: New file.
86943         New module 'safe-alloc'.
86944         * lib/safe-alloc.h: New file.
86945         * lib/safe-alloc.c: New file.
86946         * m4/safe-alloc.m4: New file.
86947         * modules/safe-alloc: New file.
86948         * doc/safe-alloc.texi: New file.
86949         * doc/gnulib.texi: Include it.
86950         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
86951         safe-alloc.
86953 2009-02-18  Bruno Haible  <bruno@clisp.org>
86955         Fix link error on non-glibc systems.
86956         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
86957         variable.
86958         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86960 2009-02-18  Jim Meyering  <meyering@redhat.com>
86962         fts: avoid used-uninitialized error due to recent change
86963         * lib/fts.c (fts_read): Guard uses of the new member,
86964         parent->fts_n_dirs_remaining, since it's not relevant for
86965         the parent of a directory specified on the command-line.
86967 2009-02-17  James Youngman  <jay@gnu.org>
86968             Bruno Haible  <bruno@clisp.org>
86970         * m4/include_next.m4: Reformulate comment.
86972 2009-02-16  Jim Meyering  <meyering@redhat.com>
86974         fts: add #if guards so that the fts_lgpl module still builds
86975         * lib/fts.c: Guard just-added hash-table-using parts with
86976         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
86977         Reported by Simon Josefsson.
86979 2009-02-15  Bruno Haible  <bruno@clisp.org>
86981         * modules/array-mergesort-tests: New file.
86982         * tests/test-array-mergesort.c: New file.
86984         New module 'array-mergesort'.
86985         * modules/array-mergesort: New file.
86986         * lib/array-mergesort.h: New file.
86988 2009-02-15  Bruno Haible  <bruno@clisp.org>
86990         Fix 2009-02-07 commit.
86991         * lib/gen-uni-tables.c (output_predicate, output_category,
86992         output_combclass, output_bidi_category, output_decimal_digit,
86993         output_digit, output_numeric, output_mirror, output_scripts,
86994         output_ident_category, output_simple_mapping): Fix format directives.
86995         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
86997 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
86999         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
87000         fixes are available from IBM.
87002 2009-02-13  Jim Meyering  <meyering@redhat.com>
87004         fts: arrange not to stat non-directories in more cases
87005         This makes GNU find (when it doesn't need to stat each file)
87006         *much* more efficient at traversing reiserfs file systems.
87007         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
87008         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
87009         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
87010         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
87011         (leaf_optimization_applies): New function.
87012         (LCO_hash, LCO_compare): New helper functions.
87013         (link_count_optimize_ok): New function.
87014         (fts_stat): Initialize new member (if dir).
87015         (fts_read): Decrement parent's fts_n_dirs_remaining count if
87016         we've just stat'ed a directory.  Skip the stat call when possible.
87017         ---
87018         Note this AFS-related exchange:
87019         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
87020         and note find's pioctl call in find/fstype.c.
87021         But that is necessary only if you want to enable the
87022         optimization for AFS, and for now, I don't.
87024         fts: move a function definition "up" (no semantic change)
87025         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
87026         "up" to precede upcoming use of a related function.
87028 2009-02-11  Jim Meyering  <meyering@redhat.com>
87030         fts: correct internal computation of nlinks (optimization-related)
87031         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
87032         whether the current entry is a directory, so don't test it.
87034 2009-02-10  Bruno Haible  <bruno@clisp.org>
87036         Tests for module 'uniwbrk/ulc-wordbreaks'.
87037         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
87038         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
87039         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
87041         Tests for module 'uniwbrk/u32-wordbreaks'.
87042         * modules/uniwbrk/u32-wordbreaks-tests: New file.
87043         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
87045         Tests for module 'uniwbrk/u16-wordbreaks'.
87046         * modules/uniwbrk/u16-wordbreaks-tests: New file.
87047         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
87049         Tests for module 'uniwbrk/u8-wordbreaks'.
87050         * modules/uniwbrk/u8-wordbreaks-tests: New file.
87051         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
87053 2009-02-10  Bruno Haible  <bruno@clisp.org>
87055         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
87056         property.
87057         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
87058         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
87059         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
87061 2009-02-10  Simon Josefsson  <simon@josefsson.org>
87063         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
87064         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
87066 2009-02-10  Bruno Haible  <bruno@clisp.org>
87068         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
87069         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
87070         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
87071         * lib/unilbrk/u8-possible-linebreaks.c: Update.
87072         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
87073         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
87075 2009-02-09  Simon Josefsson  <simon@josefsson.org>
87077         * lib/sockets.h (gl_fd_to_handle): New function.
87079         * tests/test-sockets.c: Call gl_fd_to_handle.
87081 2009-02-09  Bruno Haible  <bruno@clisp.org>
87083         * doc/havelib.texi: Document the conventions on bi-arch systems.
87085 2009-02-08  Bruno Haible  <bruno@clisp.org>
87087         Document the AC_LIB_LINKFLAGS macro.
87088         * doc/havelib.texi: New file, mostly written on 2005-05-24.
87089         * doc/gnulib.texi: Include it.
87091 2009-02-08  Bruno Haible  <bruno@clisp.org>
87093         Fix wrong order of sections, compared to TOC.
87094         * doc/gnulib.texi: Include relocatable-maint.texi after the
87095         "Regular expressions" node, not before.
87097 2009-02-08  Bruno Haible  <bruno@clisp.org>
87099         Tests for module 'unicase/totitle'.
87100         * modules/unicase/totitle-tests: New file.
87102         Tests for module 'unicase/tolower'.
87103         * modules/unicase/tolower-tests: New file.
87105         Tests for module 'unicase/toupper'.
87106         * modules/unicase/toupper-tests: New file.
87107         * tests/unicase/test-mapping-part1.h: New file.
87108         * tests/unicase/test-mapping-part2.h: New file.
87110         New module 'unicase/totitle'.
87111         * modules/unicase/totitle: New file.
87112         * lib/unicase/totitle.c: New file.
87114         New module 'unicase/tolower'.
87115         * modules/unicase/tolower: New file.
87116         * lib/unicase/tolower.c: New file.
87118         New module 'unicase/toupper'.
87119         * modules/unicase/toupper: New file.
87120         * lib/unicase/toupper.c: New file.
87121         * lib/unicase/simple-mapping.h: New file.
87123         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
87124         (mapping_table): New structure.
87125         (output_simple_mapping): New function.
87126         (main): Invoke output_simple_mapping_test and output_simple_mapping.
87127         * modules/gen-uni-tables (Description): Update.
87128         * lib/unicase/toupper.h: New file, automatically generated by
87129         gen-uni-tables.
87130         * lib/unicase/tolower.h: New file, automatically generated by
87131         gen-uni-tables.
87132         * lib/unicase/totitle.h: New file, automatically generated by
87133         gen-uni-tables.
87134         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
87135         gen-uni-tables.
87136         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
87137         gen-uni-tables.
87138         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
87139         gen-uni-tables.
87141         New module 'unicase/base'.
87142         * modules/unicase/base: New file.
87143         * lib/unicase.h: New file.
87145 2009-02-08  Bruno Haible  <bruno@clisp.org>
87147         New module 'uniwbrk/ulc-wordbreaks'.
87148         * modules/uniwbrk/ulc-wordbreaks: New file.
87149         * lib/uniwbrk/ulc-wordbreaks.c: New file.
87151         New module 'uniwbrk/u32-wordbreaks'.
87152         * modules/uniwbrk/u32-wordbreaks: New file.
87153         * lib/uniwbrk/u32-wordbreaks.c: New file.
87155         New module 'uniwbrk/u16-wordbreaks'.
87156         * modules/uniwbrk/u16-wordbreaks: New file.
87157         * lib/uniwbrk/u16-wordbreaks.c: New file.
87159         New module 'uniwbrk/u8-wordbreaks'.
87160         * modules/uniwbrk/u8-wordbreaks: New file.
87161         * lib/uniwbrk/u8-wordbreaks.c: New file.
87162         * lib/uniwbrk/u-wordbreaks.h: New file.
87164         New module 'uniwbrk/table'.
87165         * modules/uniwbrk/table: New file.
87166         * lib/uniwbrk/wbrktable.h: New file.
87167         * lib/uniwbrk/wbrktable.c: New file.
87169         New module 'uniwbrk/wordbreak-property'.
87170         * modules/uniwbrk/wordbreak-property: New file.
87171         * lib/uniwbrk/wordbreak-property.c: New file.
87173         * lib/gen-uni-tables.c (WBP_*): New enum items.
87174         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
87175         (unicode_org_wbp): New variable.
87176         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
87177         New functions.
87178         (wbp_table): New structure.
87179         (output_wbp, output_wbrk_tables): New functions.
87180         (main): Accept additional argument. Invoke fill_org_wbp,
87181         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
87182         output_wbrk_tables.
87183         * modules/gen-uni-tables (Description): Update.
87184         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
87185         gen-uni-tables.
87187         New module 'uniwbrk/base'.
87188         * modules/uniwbrk/base: New file.
87189         * lib/uniwbrk.h: New file.
87191 2009-02-08  Bruno Haible  <bruno@clisp.org>
87193         Update to Unicode 5.1.0.
87194         * lib/gen-uni-tables.c (is_property_alphabetic): Include
87195         U+2185..U+2188.
87196         (is_property_default_ignorable_code_point): Don't include characters
87197         of category Cc or Cs and not-a-characters.
87198         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
87199         U+0D79, U+109E, U+109F, U+A60C.
87200         * lib/unictype/bidi_of.h: Regenerated.
87201         * lib/unictype/blocks.h: Regenerated.
87202         * lib/unictype/categ_C.h: Regenerated.
87203         * lib/unictype/categ_Cf.h: Regenerated.
87204         * lib/unictype/categ_Cn.h: Regenerated.
87205         * lib/unictype/categ_L.h: Regenerated.
87206         * lib/unictype/categ_Ll.h: Regenerated.
87207         * lib/unictype/categ_Lm.h: Regenerated.
87208         * lib/unictype/categ_Lo.h: Regenerated.
87209         * lib/unictype/categ_Lu.h: Regenerated.
87210         * lib/unictype/categ_M.h: Regenerated.
87211         * lib/unictype/categ_Mc.h: Regenerated.
87212         * lib/unictype/categ_Me.h: Regenerated.
87213         * lib/unictype/categ_Mn.h: Regenerated.
87214         * lib/unictype/categ_N.h: Regenerated.
87215         * lib/unictype/categ_Nd.h: Regenerated.
87216         * lib/unictype/categ_Nl.h: Regenerated.
87217         * lib/unictype/categ_No.h: Regenerated.
87218         * lib/unictype/categ_P.h: Regenerated.
87219         * lib/unictype/categ_Pd.h: Regenerated.
87220         * lib/unictype/categ_Pe.h: Regenerated.
87221         * lib/unictype/categ_Pf.h: Regenerated.
87222         * lib/unictype/categ_Pi.h: Regenerated.
87223         * lib/unictype/categ_Po.h: Regenerated.
87224         * lib/unictype/categ_Ps.h: Regenerated.
87225         * lib/unictype/categ_S.h: Regenerated.
87226         * lib/unictype/categ_Sk.h: Regenerated.
87227         * lib/unictype/categ_Sm.h: Regenerated.
87228         * lib/unictype/categ_So.h: Regenerated.
87229         * lib/unictype/categ_of.h: Regenerated.
87230         * lib/unictype/combining.h: Regenerated.
87231         * lib/unictype/ctype_alnum.h: Regenerated.
87232         * lib/unictype/ctype_alpha.h: Regenerated.
87233         * lib/unictype/ctype_graph.h: Regenerated.
87234         * lib/unictype/ctype_lower.h: Regenerated.
87235         * lib/unictype/ctype_print.h: Regenerated.
87236         * lib/unictype/ctype_punct.h: Regenerated.
87237         * lib/unictype/ctype_upper.h: Regenerated.
87238         * lib/unictype/decdigit.h: Regenerated.
87239         * lib/unictype/digit.h: Regenerated.
87240         * lib/unictype/mirror.h: Regenerated.
87241         * lib/unictype/numeric.h: Regenerated.
87242         * lib/unictype/pr_alphabetic.h: Regenerated.
87243         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
87244         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
87245         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
87246         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
87247         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
87248         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
87249         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
87250         * lib/unictype/pr_combining.h: Regenerated.
87251         * lib/unictype/pr_dash.h: Regenerated.
87252         * lib/unictype/pr_decimal_digit.h: Regenerated.
87253         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
87254         * lib/unictype/pr_deprecated.h: Regenerated.
87255         * lib/unictype/pr_diacritic.h: Regenerated.
87256         * lib/unictype/pr_extender.h: Regenerated.
87257         * lib/unictype/pr_format_control.h: Regenerated.
87258         * lib/unictype/pr_grapheme_base.h: Regenerated.
87259         * lib/unictype/pr_grapheme_extend.h: Regenerated.
87260         * lib/unictype/pr_grapheme_link.h: Regenerated.
87261         * lib/unictype/pr_id_continue.h: Regenerated.
87262         * lib/unictype/pr_id_start.h: Regenerated.
87263         * lib/unictype/pr_ideographic.h: Regenerated.
87264         * lib/unictype/pr_ignorable_control.h: Regenerated.
87265         * lib/unictype/pr_lowercase.h: Regenerated.
87266         * lib/unictype/pr_math.h: Regenerated.
87267         * lib/unictype/pr_numeric.h: Regenerated.
87268         * lib/unictype/pr_other_alphabetic.h: Regenerated.
87269         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
87270         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
87271         * lib/unictype/pr_other_id_continue.h: Regenerated.
87272         * lib/unictype/pr_other_lowercase.h: Regenerated.
87273         * lib/unictype/pr_other_math.h: Regenerated.
87274         * lib/unictype/pr_punctuation.h: Regenerated.
87275         * lib/unictype/pr_sentence_terminal.h: Regenerated.
87276         * lib/unictype/pr_soft_dotted.h: Regenerated.
87277         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
87278         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
87279         * lib/unictype/pr_unified_ideograph.h: Regenerated.
87280         * lib/unictype/pr_uppercase.h: Regenerated.
87281         * lib/unictype/pr_xid_continue.h: Regenerated.
87282         * lib/unictype/pr_xid_start.h: Regenerated.
87283         * lib/unictype/pr_zero_width.h: Regenerated.
87284         * lib/unictype/scripts.h: Regenerated.
87285         * lib/unictype/scripts_byname.gperf: Regenerated.
87286         * lib/unictype/sy_java_ident.h: Regenerated.
87287         * lib/unilbrk/lbrkprop1.h: Regenerated.
87288         * lib/unilbrk/lbrkprop2.h: Regenerated.
87289         * tests/unictype/test-categ_C.c: Regenerated.
87290         * tests/unictype/test-categ_Cf.c: Regenerated.
87291         * tests/unictype/test-categ_Cn.c: Regenerated.
87292         * tests/unictype/test-categ_L.c: Regenerated.
87293         * tests/unictype/test-categ_Ll.c: Regenerated.
87294         * tests/unictype/test-categ_Lm.c: Regenerated.
87295         * tests/unictype/test-categ_Lo.c: Regenerated.
87296         * tests/unictype/test-categ_Lu.c: Regenerated.
87297         * tests/unictype/test-categ_M.c: Regenerated.
87298         * tests/unictype/test-categ_Mc.c: Regenerated.
87299         * tests/unictype/test-categ_Me.c: Regenerated.
87300         * tests/unictype/test-categ_Mn.c: Regenerated.
87301         * tests/unictype/test-categ_N.c: Regenerated.
87302         * tests/unictype/test-categ_Nd.c: Regenerated.
87303         * tests/unictype/test-categ_Nl.c: Regenerated.
87304         * tests/unictype/test-categ_No.c: Regenerated.
87305         * tests/unictype/test-categ_P.c: Regenerated.
87306         * tests/unictype/test-categ_Pd.c: Regenerated.
87307         * tests/unictype/test-categ_Pe.c: Regenerated.
87308         * tests/unictype/test-categ_Pf.c: Regenerated.
87309         * tests/unictype/test-categ_Pi.c: Regenerated.
87310         * tests/unictype/test-categ_Po.c: Regenerated.
87311         * tests/unictype/test-categ_Ps.c: Regenerated.
87312         * tests/unictype/test-categ_S.c: Regenerated.
87313         * tests/unictype/test-categ_Sk.c: Regenerated.
87314         * tests/unictype/test-categ_Sm.c: Regenerated.
87315         * tests/unictype/test-categ_So.c: Regenerated.
87316         * tests/unictype/test-ctype_alnum.c: Regenerated.
87317         * tests/unictype/test-ctype_alpha.c: Regenerated.
87318         * tests/unictype/test-ctype_graph.c: Regenerated.
87319         * tests/unictype/test-ctype_lower.c: Regenerated.
87320         * tests/unictype/test-ctype_print.c: Regenerated.
87321         * tests/unictype/test-ctype_punct.c: Regenerated.
87322         * tests/unictype/test-ctype_upper.c: Regenerated.
87323         * tests/unictype/test-decdigit.h: Regenerated.
87324         * tests/unictype/test-digit.h: Regenerated.
87325         * tests/unictype/test-numeric.h: Regenerated.
87326         * tests/unictype/test-pr_alphabetic.c: Regenerated.
87327         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
87328         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
87329         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
87330         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
87331         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
87332         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
87333         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
87334         * tests/unictype/test-pr_combining.c: Regenerated.
87335         * tests/unictype/test-pr_dash.c: Regenerated.
87336         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
87337         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
87338         * tests/unictype/test-pr_deprecated.c: Regenerated.
87339         * tests/unictype/test-pr_diacritic.c: Regenerated.
87340         * tests/unictype/test-pr_extender.c: Regenerated.
87341         * tests/unictype/test-pr_format_control.c: Regenerated.
87342         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
87343         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
87344         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
87345         * tests/unictype/test-pr_id_continue.c: Regenerated.
87346         * tests/unictype/test-pr_id_start.c: Regenerated.
87347         * tests/unictype/test-pr_ideographic.c: Regenerated.
87348         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
87349         * tests/unictype/test-pr_lowercase.c: Regenerated.
87350         * tests/unictype/test-pr_math.c: Regenerated.
87351         * tests/unictype/test-pr_numeric.c: Regenerated.
87352         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
87353         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
87354         Regenerated.
87355         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
87356         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
87357         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
87358         * tests/unictype/test-pr_other_math.c: Regenerated.
87359         * tests/unictype/test-pr_punctuation.c: Regenerated.
87360         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
87361         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
87362         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
87363         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
87364         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
87365         * tests/unictype/test-pr_uppercase.c: Regenerated.
87366         * tests/unictype/test-pr_xid_continue.c: Regenerated.
87367         * tests/unictype/test-pr_xid_start.c: Regenerated.
87368         * tests/unictype/test-pr_zero_width.c: Regenerated.
87370         Update to Unicode 5.1.0.
87371         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
87372         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
87373         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
87374         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
87375         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
87376         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
87377         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
87378         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
87379         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
87380         (nonspacing_table_ind): Update.
87381         * tests/uniwidth/test-uc_width2.sh: Update expected result.
87383         Update to Unicode 5.1.0.
87384         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
87385         code transform.
87386         * lib/uniname/uniname.c (unicode_character_name,
87387         unicode_name_character): Add the range 0x1Fxxx to the code transform.
87388         * lib/uniname/uninames.h: Regenerated.
87389         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
87391 2009-02-07  Bruno Haible  <bruno@clisp.org>
87393         Merge gen-ctype and gen-lbrk into a single program.
87394         * lib/gen-uni-tables.c: New file, incorporating
87395         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
87396         Add directory prefixes to the names of the generated files.
87397         * lib/unictype/gen-ctype.c: Remove file.
87398         * lib/unilbrk/gen-lbrk.c: Remove file.
87399         * modules/gen-uni-tables: New file.
87400         * modules/unictype/gen-ctype: Remove file.
87401         * modules/unilbrk/gen-lbrk: Remove file.
87403 2009-02-07  Bruno Haible  <bruno@clisp.org>
87405         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
87407         New module 'unistr/u32-strcoll'.
87408         * modules/unistr/u32-strcoll: New file.
87409         * lib/unistr/u32-strcoll.c: New file.
87411         New module 'unistr/u16-strcoll'.
87412         * modules/unistr/u16-strcoll: New file.
87413         * lib/unistr/u16-strcoll.c: New file.
87415         New module 'unistr/u8-strcoll'.
87416         * modules/unistr/u8-strcoll: New file.
87417         * lib/unistr/u8-strcoll.c: New file.
87418         * lib/unistr/u-strcoll.h: New file.
87420 2009-02-07  Bruno Haible  <bruno@clisp.org>
87422         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
87423         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
87424         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
87425         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
87426         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
87427         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
87429 2009-02-07  Bruno Haible  <bruno@clisp.org>
87431         Make 64-bit clean.
87432         * lib/unictype/gen-ctype.c (output_predicate, output_category,
87433         output_combclass, output_bidi_category, output_decimal_digit,
87434         output_digit, output_numeric, output_mirror, output_scripts,
87435         output_ident_category): Use proper width specifier in format strings.
87437 2009-02-07  Bruno Haible  <bruno@clisp.org>
87439         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
87440         failure behaviour.
87442 2009-02-07  Jim Meyering  <meyering@redhat.com>
87444         regex: avoid compilation failure with upcoming gcc-4.4
87445         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
87446         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
87447         "... error: integer overflow in preprocessor expression".
87449 2009-02-05  Ben Pfaff  <blp@gnu.org>
87451         Fix link errors on Windows when close module is used.
87452         * modules/close: Add $(LIB_CLOSE) to Link section.
87453         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
87454         $(LIB_CLOSE) on Windows.
87456 2009-02-05  Jim Meyering  <meyering@redhat.com>
87458         still avoid unused-parameter warnings, but do it cleanly
87459         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
87460         (get_fs_usage): Cast to void instead.
87461         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
87462         (dev_from_mount_options, read_file_system_list): Cast to void.
87463         Prompted by Bruno Haible.
87465 2009-02-04  Jim Meyering  <meyering@redhat.com>
87467         fsusage.c: correct copyright year
87468         * lib/fsusage.c: Reflect year in which the change is pushed into
87470         avoid misc. warnings
87471         * lib/fsusage.c (UNUSED_PARAM): Define.
87472         (get_fs_usage): Mark parameter "disk" as unused.
87473         * lib/getugroups.c (getgrent): Use "void" in prototype.
87474         * lib/mountlist.c: Mark unused parameters.
87475         (read_file_system_list): Declare a local with "const".
87476         * lib/nanosleep.c (getnow): Declare static.
87477         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
87479         dirfd: set errno upon failure
87480         * lib/dirfd.c: Include <errno.h>.
87481         Set errno to ENOTSUP when returning -1.
87482         * modules/dirfd (Depends-on): Add errno.
87483         Suggested by John Kodis <kodis@comcast.net>.
87485 2009-02-01  Bruno Haible  <bruno@clisp.org>
87487         Don't assume sizeof (long) >= sizeof (void *).
87488         * lib/memcmp.c: Include stdint.h.
87489         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
87490         srcp2 to 'const byte *'.
87491         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
87492         types to uintptr_t.
87493         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
87494         * modules/memcmp (Depends-on): Add stdint.
87495         Reported by Ozkan Sezer <sezeroz@gmail.com>.
87497 2009-01-30  Eric Blake  <ebb9@byu.net>
87499         fix more require-before-expand issues
87500         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
87501         expand, AC_PROG_AWK.
87502         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
87504 2009-01-28  Eric Blake  <ebb9@byu.net>
87506         version-etc: use consistent URL formatting
87507         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
87508         Improve formatting.  Use fputs for string without %.
87510 2009-01-28  Jim Meyering  <meyering@redhat.com>
87512         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
87513         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
87514         "underquoted definition of NAME" from autoconf-2.59.
87516 2009-01-28  Bruno Haible  <bruno@clisp.org>
87518         * doc/gnulib.texi: Add "Obsolete modules" to index.
87520 2009-01-28  Jim Meyering  <meyering@redhat.com>
87522         useless-if-before-free: recognize more variants
87523         * build-aux/useless-if-before-free: Also recognize e.g.,
87524         if (NULL != p) free (p);
87526 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
87528         test-getaddrinfo: skip (don't fail) this test when there's no network
87529         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
87530         on the presumption that it means you lack network access.
87532 2009-01-26  Jim Meyering  <meyering@redhat.com>
87534         fflush: avoid warnings on modern systems
87535         * lib/fflush.c (rpl_fflush): Move declarations of locals,
87536         pos and result, into scopes where they're used.
87538 2009-01-26  Eric Blake  <ebb9@byu.net>
87540         Silence warning reintroduced by recent extensions patch.
87541         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
87542         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
87543         autoconf.
87545         Backport improved autoconf semantics of AC_DEFUN_ONCE.
87546         * m4/00gnulib.m4: New file.
87547         * gnulib-tool (func_get_filelist): Always use it.
87548         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
87549         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
87551 2009-01-25  Bruno Haible  <bruno@clisp.org>
87553         Make test-quotearg work on MacOS X and AIX.
87554         * tests/test-quotearg.sh: New file.
87555         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
87556         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
87557         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
87558         include <libintl.h>.
87559         (fake_locale): Remove variable.
87560         (gettext, dgettext, dcgettext): Remove functions.
87561         (main): Instead of setting a fake locale, set a real locale. Call
87562         textdomain and bindtextdomain.
87563         * modules/quotearg-tests (Files): Add the new files.
87564         (Depends-on): Add gettext, setenv, unsetenv.
87565         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
87566         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
87567         Augment TESTS_ENVIRONMENT.
87569 2009-01-25  Bruno Haible  <bruno@clisp.org>
87571         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
87572         fr_FR.ISO8859-1 locale on MacOS X.
87573         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
87574         ja_JP.eucJP locale on MacOS X.
87575         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
87576         zh_CN.GB18030 locale on MacOS X.
87578 2009-01-25  Bruno Haible  <bruno@clisp.org>
87580         Avoid link errors on MacOS X 10.3.
87581         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
87582         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
87584 2009-01-25  Bruno Haible  <bruno@clisp.org>
87586         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87587         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
87588         * modules/pipe (Files): Remove m4/posix_spawn.m4.
87589         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87590         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
87591         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87592         posix_spawnattr_init, posix_spawnattr_setsigmask,
87593         posix_spawnattr_setflags, posix_spawnattr_destroy.
87595         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87596         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
87597         * modules/execute (Files): Remove m4/posix_spawn.m4.
87598         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87599         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87600         posix_spawnattr_init, posix_spawnattr_setsigmask,
87601         posix_spawnattr_setflags, posix_spawnattr_destroy.
87603 2009-01-25  Bruno Haible  <bruno@clisp.org>
87605         * lib/glthread/threadlib.c: Include <stdlib.h>.
87607 2009-01-25  Bruno Haible  <bruno@clisp.org>
87609         * lib/glthread/threadlib.c (dummy): New declaration.
87611 2009-01-25  Bruno Haible  <bruno@clisp.org>
87613         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
87614         multibyte characters also for the GB18030 encoding. Don't crash when
87615         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
87617 2009-01-25  Bruno Haible  <bruno@clisp.org>
87619         Avoid redefining 'struct random_data' on OSF/1 5.1.
87620         * lib/stdlib.in.h: Include <random.h> if it exists.
87621         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
87622         HAVE_RANDOM_H. Include <random.h> when testing whether
87623         'struct random_data' exists.
87624         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
87626 2009-01-25  Bruno Haible  <bruno@clisp.org>
87628         Don't install charset.alias on MacOS X >= 10.3.
87629         * lib/localcharset.c (DARWIN7): New macro.
87630         (get_charset_aliases): Hardcode the result for Darwin7.
87631         * modules/localcharset (install-exec-local): Don't install
87632         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
87634 2009-01-25  Bruno Haible  <bruno@clisp.org>
87636         Don't install charset.alias on mingw and Cygwin.
87637         * modules/localcharset (install-exec-local): Don't install
87638         charset.alias on mingw and Cygwin, if the file does not yet exist.
87639         The result for these platforms is hardcoded in localcharset.c.
87641 2009-01-25  Bruno Haible  <bruno@clisp.org>
87643         Make it possible again to use AC_GNU_SOURCE together with gnulib.
87644         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
87645         before requiring AC_USE_SYSTEM_EXTENSIONS.
87647 2009-01-25  Jim Meyering  <meyering@redhat.com>
87649         c-strtod: avoid warnings
87650         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
87651         "assignment discards qualifiers from pointer target type" warnings.
87653 2009-01-24  Bruno Haible  <bruno@clisp.org>
87655         Add support for non-UTF-8 locales on MacOS X.
87656         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
87657         canonical encodings. For Darwin 7 and newer, don't map traditional
87658         encodings to UTF-8.
87659         Reported by Vincent Lefevre <vincent@vinc17.org>
87660         at <http://savannah.gnu.org/bugs/?25235>.
87662 2009-01-24  Bruno Haible  <bruno@clisp.org>
87664         * doc/gnulib.texi (Obsolete modules): New section.
87665         Reported by Mike Frysinger <vapier@gentoo.org>.
87667 2009-01-24  Bruno Haible  <bruno@clisp.org>
87669         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
87670         (%.dvi): New rule.
87672 2009-01-24  Bruno Haible  <bruno@clisp.org>
87674         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
87675         Reported by Eric Blake.
87677 2009-01-24  Bruno Haible  <bruno@clisp.org>
87679         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
87680         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
87681         Reported by Gary V. Vaughan <gary@gnu.org>.
87683 2009-01-24  Bruno Haible  <bruno@clisp.org>
87685         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
87687 2009-01-23  Bruno Haible  <bruno@clisp.org>
87689         Make c-strtod, c-strtold usable in libraries.
87690         * lib/c-strtod.c: Include string.h instead of xalloc.h.
87691         (C_STRTOD): Call strdup instead of xstrdup.
87692         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
87693         * modules/c-strtold (Depends-on): Likewise.
87694         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
87695         * NEWS: Mention the change.
87696         Reported by Michael Gold <mgold@ncf.ca>.
87698 2009-01-23  Jim Meyering  <meyering@redhat.com>
87700         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
87701         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
87702         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
87704 2009-01-23  Simon Josefsson  <simon@josefsson.org>
87706         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
87707         GNU CoreUtils.
87708         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
87709         * modules/version-etc (Description): Update.
87711 2009-01-22  Bruno Haible  <bruno@clisp.org>
87713         Cache the C locale object.
87714         * lib/c-strtod.c (c_locale_cache): New variable.
87715         (c_locale): New function.
87716         (C_STRTOD): Use it, and don't call freelocale.
87717         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
87718         Suggested by Paolo Bonzini.
87720 2009-01-21  Bruno Haible  <bruno@clisp.org>
87722         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
87723         conditions other than overflow.
87725 2009-01-21  Bruno Haible  <bruno@clisp.org>
87727         * lib/c-strtod.c: Include errno.h.
87728         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
87729         value from STRTOD_L and STRTOD.
87731 2009-01-21  Bruno Haible  <bruno@clisp.org>
87732         and Jim Meyering  <meyering@redhat.com>
87734         nanosleep: skip configure test (fail it) for apple universal builds
87735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
87736         universal builds, assume that nanosleep does not work.
87737         * modules/nanosleep (Depends-on): Add multiarch.
87739         mktime: skip configure test (fail it) for apple universal builds
87740         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
87741         universal builds, assume that mktime does not work.
87742         * modules/mktime (Depends-on): Add multiarch.
87744 2009-01-21  Eric Blake  <ebb9@byu.net>
87746         multiarch: avoid expand-before-require warning
87747         * modules/multiarch (configure.ac): Require, rather than expand,
87748         gl_MULTIARCH.
87749         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
87750         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
87751         enforce that all clients require it.  Partial reversion of
87752         2008-12-29 patch.
87754         error: avoid expand-before-require warning
87755         * modules/errno (configure.ac): Require, rather than expand,
87756         gl_HEADER_ERRNO_H.
87757         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
87758         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
87759         enforce that all clients require it.
87761         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
87762         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
87763         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
87764         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
87766 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
87768         Revert:
87769         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87771         regex: do not depend on obsolete modules.
87772         * modules/regex: Remove memcmp and memmove.
87774 2009-01-20  Bruno Haible  <bruno@clisp.org>
87776         Make the 'link' module link on Windows NT 4.
87777         * lib/link.c (_WIN32_WINNT): Don't define.
87778         (CreateHardLinkFuncType): New type.
87779         (CreateHardLinkFunc, initialized): New variables.
87780         (initialize): New function.
87781         (link): Invoke CreateHardLink indirectly through the function pointer.
87783 2009-01-20  Bruno Haible  <bruno@clisp.org>
87785         Fix compilation failure on mingw.
87786         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
87788 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
87790         * doc/c-strtod.texi: Mention a couple of restrictions.
87792 2009-01-20  Jim Meyering  <meyering@redhat.com>
87794         gettimeofday: move more declarations out of functions
87795         * lib/gettimeofday.c: Move extern declarations of tzset and
87796         gmtime out of containing functions.  Prompted by Bruno Haible.
87798 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87800         regex: do not depend on obsolete modules.
87801         * modules/regex: Remove memcmp and memmove.
87803 2009-01-19  Bruno Haible  <bruno@clisp.org>
87805         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87806         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
87807         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87808         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
87809         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
87811 2009-01-19  Bruno Haible  <bruno@clisp.org>
87813         * tests/test-link.c: Include <errno.h>.
87814         (main): Exit with code 77 when a hard link cannot be created due to
87815         the file system.
87816         * tests/test-link.sh: Skip test when a hard link cannot be created due
87817         to the file system.
87818         Suggested by Eric Blake.
87820 2009-01-19  Martin Lambers  <marlam@marlam.de>
87822         * modules/link-tests: New file.
87823         * tests/test-link.sh: New file.
87824         * tests/test-link.c: New file.
87826 2009-01-19  Eric Blake  <ebb9@byu.net>
87828         doc: mention another function added in cygwin 1.7.0
87829         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
87830         Another new function in cygwin 1.7.
87832 2009-01-19  Bruno Haible  <bruno@clisp.org>
87834         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87835         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
87836         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
87837         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87838         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
87839         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
87840         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
87841         * m4/md4.m4 (gl_MD4): Likewise.
87842         * m4/md5.m4 (gl_MD5): Likewise.
87843         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
87844         * m4/sha1.m4 (gl_SHA1): Likewise.
87845         * m4/sha256.m4 (gl_SHA256): Likewise.
87846         * m4/sha512.m4 (gl_SHA512): Likewise.
87848 2009-01-19  Bruno Haible  <bruno@clisp.org>
87850         * modules/uniname/uniname-tests (Depends-on): Add progname.
87851         * tests/uniname/test-uninames.c: Include progname.h.
87852         (main): Call set_program_name.
87854         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
87855         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
87856         (main): Call set_program_name.
87858         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
87859         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
87860         (main): Call set_program_name.
87862         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
87863         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
87864         (main): Call set_program_name.
87866         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
87867         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
87868         (main): Call set_program_name.
87870         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
87871         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
87872         (main): Call set_program_name.
87874         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
87875         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
87876         (main): Call set_program_name.
87878         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
87879         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
87880         (main): Call set_program_name.
87882         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
87883         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
87884         (main): Call set_program_name.
87886 2009-01-19  Eric Blake  <ebb9@byu.net>
87888         test-unistd: test previous patch
87889         * tests/test-unistd.c: Test *_FILENO macros.
87891         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
87892         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87893         Guarantee a definition.
87894         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
87895         * modules/unistd-safer (Depends-on): Add dependency on unistd.
87896         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
87897         * lib/dup-safer.c (STDERR_FILENO): Likewise.
87898         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87899         Likewise.
87900         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
87901         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
87902         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87903         Likewise.
87904         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
87905         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
87906         (STDERR_FILENO): Likewise.
87907         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
87908         (STDERR_FILENO): Likewise.
87909         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
87910         (STDERR_FILENO): Likewise.
87911         Reported by Elbert Pol.
87913 2009-01-19  Eric Blake  <ebb9@byu.net>
87915         doc: mention more functions added in cygwin 1.7.0
87916         * doc/posix-functions/abort.texi (abort): Update wording related
87917         to cygwin.
87918         * doc/posix-functions/daylight.texi (daylight): Likewise.
87919         * doc/posix-functions/optarg.texi (optarg): Likewise.
87920         * doc/posix-functions/optarg.texi (opterr): Likewise.
87921         * doc/posix-functions/optarg.texi (optind): Likewise.
87922         * doc/posix-functions/optarg.texi (optopt): Likewise.
87923         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
87924         worked in 1.5.x, and was withdrawn in 1.7.
87925         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
87926         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
87927         cygwin versions.
87928         * doc/posix-functions/perror.texi (perror): Likewise.
87929         * doc/posix-functions/printf.texi (printf): Likewise.
87930         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
87931         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
87932         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
87933         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
87934         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
87935         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
87936         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87937         Likewise.
87938         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87939         Likewise.
87940         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
87941         this function.
87942         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
87943         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
87944         Likewise.
87945         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
87946         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
87947         * doc/posix-functions/confstr.texi (confstr): Likewise.
87948         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
87949         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
87950         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
87951         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
87952         * doc/posix-functions/fputws.texi (fputws): Likewise.
87953         * doc/posix-functions/fwide.texi (fwide): Likewise.
87954         * doc/posix-functions/getwc.texi (getwc): Likewise.
87955         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
87956         * doc/posix-functions/putwc.texi (putwc): Likewise.
87957         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
87958         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
87959         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
87960         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
87961         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
87962         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
87963         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
87964         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
87965         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
87966         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
87967         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
87969 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87971         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
87972         * lib/ioctl.c: Include <sys/ioctl.h>.
87974 2009-01-19  Simon Josefsson  <simon@josefsson.org>
87976         * modules/getdate-tests (Depends-on): Add progname.
87977         * tests/test-getdate.c: Use progname module, to avoid link errors
87978         on non-glibc systems.
87980 2009-01-18  Simon Josefsson  <simon@josefsson.org>
87982         * modules/filenamecat-tests (Depends-on): Add progname.
87983         * modules/fstrcmp-tests (Depends-on): Likewise.
87985         * tests/test-filenamecat.c: Use progname module, to avoid link
87986         errors on non-glibc systems.
87987         * tests/test-fstrcmp.c: Likewise.
87989 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87991         gettimeofday: avoid warning: nested extern declaration of 'localtime'
87992         * lib/gettimeofday.c: Move extern declaration out of function.
87994 2009-01-18  Bruno Haible  <bruno@clisp.org>
87996         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
87997         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
87998         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
88000 2009-01-18  Bruno Haible  <bruno@clisp.org>
88002         * lib/strftime.c (MEMPCPY): Remove unused macro.
88003         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
88005 2009-01-18  Martin Lambers  <marlam@marlam.de>
88007         New module 'link'.
88008         * lib/unistd.in.h (link): New declaration.
88009         * lib/link.c: New file.
88010         * m4/link.m4: New file.
88011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
88012         HAVE_LINK.
88013         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
88014         * modules/link: New file.
88015         * doc/posix-functions/link.texi: Mention the new module.
88017 2009-01-18  Bruno Haible  <bruno@clisp.org>
88019         * tests/test-avltree_list.c (main): Call set_program_name.
88020         * tests/test-avltree_oset.c (main): Likewise.
88021         * tests/test-obstack-printf.c: Include progname.h.
88022         (main): Call set_program_name.
88023         * tests/test-quotearg.c: Include progname.h.
88024         (main): Call set_program_name.
88025         * tests/test-xmemdup0.c: Include progname.h.
88026         (main): Call set_program_name.
88028 2009-01-18  Bruno Haible  <bruno@clisp.org>
88030         New module 'alphasort'.
88031         * lib/dirent.in.h (alphasort): New declaration.
88032         * lib/alphasort.c: New file, from glibc with modifications.
88033         * m4/alphasort.m4: New file.
88034         * modules/alphasort: New file.
88035         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
88036         HAVE_ALPHASORT.
88037         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
88038         HAVE_ALPHASORT.
88039         * doc/posix-functions/alphasort.texi: Mention the new module and the
88040         portability problems.
88042 2009-01-18  Bruno Haible  <bruno@clisp.org>
88044         New module 'scandir'.
88045         * lib/dirent.in.h (scandir): New declaration.
88046         * lib/scandir.c: New file, from glibc with modifications.
88047         * m4/scandir.m4: New file.
88048         * modules/scandir: New file.
88049         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
88050         HAVE_SCANDIR.
88051         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
88052         HAVE_SCANDIR.
88053         * doc/posix-functions/scandir.texi: Mention the new module and the
88054         portability problems.
88056 2009-01-17  Bruno Haible  <bruno@clisp.org>
88058         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
88059         Update documentation.
88060         (func_remove_suffix): Escape all dots in the suffix. Update
88061         documentation.
88062         (func_filter_filelist): Update documentation.
88063         Reported by Ralf Wildenhues.
88065 2009-01-17  Bruno Haible  <bruno@clisp.org>
88067         * modules/dprintf-posix-tests: New file.
88068         * tests/test-dprintf-posix.sh: New file.
88069         * tests/test-dprintf-posix.c: New file.
88071         New modules 'dprintf', 'dprintf-posix'.
88072         * lib/stdio.in.h (dprintf): New declaration.
88073         * lib/dprintf.c: New file.
88074         * m4/dprintf.m4: New file.
88075         * m4/dprintf-posix.m4: New file.
88076         * modules/dprintf: New file.
88077         * modules/dprintf-posix: New file.
88078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
88079         HAVE_DPRINTF, REPLACE_DPRINTF.
88080         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
88081         HAVE_DPRINTF, REPLACE_DPRINTF.
88082         * doc/posix-functions/dprintf.texi: Mention the new modules.
88084 2009-01-17  Bruno Haible  <bruno@clisp.org>
88086         * modules/vdprintf-posix-tests: New file.
88087         * tests/test-vdprintf-posix.sh: New file.
88088         * tests/test-vdprintf-posix.c: New file.
88090         New modules 'vdprintf', 'vdprintf-posix'.
88091         * lib/stdio.in.h (vdprintf): New declaration.
88092         * lib/vdprintf.c: New file.
88093         * m4/vdprintf.m4: New file.
88094         * m4/vdprintf-posix.m4: New file.
88095         * modules/vdprintf: New file.
88096         * modules/vdprintf-posix: New file.
88097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
88098         HAVE_VDPRINTF, REPLACE_VDPRINTF.
88099         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
88100         HAVE_VDPRINTF, REPLACE_VDPRINTF.
88101         * doc/posix-functions/vdprintf.texi: Mention the new modules.
88103 2009-01-17  Bruno Haible  <bruno@clisp.org>
88105         Fix replacement of fopen on mingw.
88106         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
88107         mingw.
88109 2009-01-17  Bruno Haible  <bruno@clisp.org>
88111         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
88112         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
88114 2009-01-17  Bruno Haible  <bruno@clisp.org>
88116         Avoid test-fflush2.sh failure on mingw.
88117         * tests/test-fflush2.c: Include binary-io.h.
88118         (main): Put standard input into binary mode.
88119         * modules/fflush-tests (Depends-on): Add binary-io.
88121 2009-01-17  Bruno Haible  <bruno@clisp.org>
88123         * lib/wchar.in.h: In another particular situation, include only the
88124         system's <wchar.h> file.
88125         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
88126         Reported by Albert Chin-A-Young <china@thewrittenword.com>
88127         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
88129 2009-01-17  Bruno Haible  <bruno@clisp.org>
88131         Support for stripping executables in --enable-relocatable.
88132         * build-aux/install-reloc: Expect one more argument, or an environment
88133         variable RELOC_STRIP_PROG. If set, strip the destination program and
88134         its wrapper.
88135         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
88136         RELOC_STRIP_PROG.
88137         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
88138         to set RELOCATABLE_STRIP.
88139         * NEWS: Mention the new Makefile requirement.
88141 2009-01-17  Bruno Haible  <bruno@clisp.org>
88143         * build-aux/install-reloc: Remove debugging information left over by
88144         C compiler on MacOS X.
88146 2009-01-17  Bruno Haible  <bruno@clisp.org>
88148         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
88149         * lib/progreloc.c (find_executable): Fix type of pointer passed to
88150         _NSGetExecutablePath.
88152 2009-01-16  Jim Meyering  <meyering@redhat.com>
88154         strerror: avoid warnings about discarding "const"
88155         * lib/strerror.c (rpl_strerror): Instead of returning a const
88156         string from each and every "case", use a variable, and add a single
88157         cast after the switch.
88159 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
88161         * lib/arpa_inet.in.h: Add extern "C" block for C++.
88163 2009-01-16  Bruno Haible  <bruno@clisp.org>
88165         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
88166         array initializer syntax that also works in C++ mode.
88167         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88169 2009-01-16  Jim Meyering  <meyering@redhat.com>
88171         poll: suppress a warning
88172         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
88173         to ignore "...unsigned expression < 0 is always false" warnings.
88175 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
88177         poll: remove declarations of unused variables
88178         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
88179         sockbuf and optlen.
88181 2009-01-15  Bruno Haible  <bruno@clisp.org>
88183         Make fflush-after-ungetc POSIX compliant on BSD systems.
88184         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
88185         (clear_ungetc_buffer): Implement also for other systems.
88186         (rpl_fflush): On glibc systems, invoke
88187         clear_ungetc_buffer_preserving_position. Otherwise, invoke
88188         clear_ungetc_buffer after fetching the stream's position, not before.
88190 2009-01-15  Bruno Haible  <bruno@clisp.org>
88192         Make fflush-after-ungetc POSIX compliant on glibc systems.
88193         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
88194         after ungetc.
88195         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
88196         (rpl_fflush): On glibc systems, simply call the system's fflush
88197         function after clearing the ungetc buffer.
88198         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
88199         Instead, lseek only to the end of file, then use the system's fseeko
88200         for the rest. On glibc systems, reset the EOF indicator bit.
88202 2009-01-15  Jim Meyering  <meyering@redhat.com>
88204         openmp.m4: revert quote-adding change, for portability to older autoconf
88205         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
88206         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
88207         Simon Josefsson noticed the problem when using autoconf-2.61.
88209 2009-01-15  Bruno Haible  <bruno@clisp.org>
88211         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
88212         * tests/test-fflush2.c (ASSERT): Always fail.
88213         (main): Add two tests for fflush() after ungetc(), taking into account
88214         the Austin Group's clarification.
88215         Suggested by Eric Blake.
88217 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
88219         mktime.m4: remove K&R-style function prototypes
88220         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
88221         for the Sun C++ compiler.
88223 2009-01-14  Bruno Haible  <bruno@clisp.org>
88225         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
88226         while including <wchar.h>.
88227         * lib/wchar.in.h: In two particular situations on HP-UX, include only
88228         the system's <wchar.h> file.
88229         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88231 2009-01-14  Bruno Haible  <bruno@clisp.org>
88233         * m4/csharp.m4: Don't mention gettext on the serial number line.
88234         * m4/csharpexec.m4: Likewise.
88235         * m4/eaccess.m4: Likewise.
88236         * m4/javaexec.m4: Likewise.
88237         * m4/sig_atomic_t.m4: Likewise.
88238         * m4/tmpdir.m4: Likewise.
88239         * m4/intldir.m4: Bump gettext version.
88240         * m4/lib-ld.m4: Likewise.
88242 2009-01-14  Bruno Haible  <bruno@clisp.org>
88244         * lib/progname.c (set_program_name): Add more comments.
88245         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
88247 2009-01-14  Simon Josefsson  <simon@josefsson.org>
88249         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
88250         were sys/stat.h does not define it.
88252 2009-01-14  Jim Meyering  <meyering@redhat.com>
88254         many *.m4 files: improve m4 quoting
88255         99% of this change was performed by running the following commands:
88256         git ls-files | grep '\.m4$' | xargs perl -pi \
88257           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
88258           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
88259           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
88260           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
88261         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
88262         The remainder were to add Copyright dates, increment serial numbers,
88263         undo some changes in comments, exclude m4/intl.m4, and add quotes
88264         around the "1" in ",1" where the unusual spacing prohibited the
88265         above regexps from doing the job.  For more details, see
88266         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
88267         * m4/acl.m4: Modified.
88268         * m4/afs.m4: Likewise.
88269         * m4/alloca.m4: Likewise.
88270         * m4/argp.m4: Likewise.
88271         * m4/argz.m4: Likewise.
88272         * m4/atexit.m4: Likewise.
88273         * m4/bison-i18n.m4: Likewise.
88274         * m4/bison.m4: Likewise.
88275         * m4/byteswap.m4: Likewise.
88276         * m4/c-stack.m4: Likewise.
88277         * m4/c-strtod.m4: Likewise.
88278         * m4/calloc.m4: Likewise.
88279         * m4/canonicalize-lgpl.m4: Likewise.
88280         * m4/chown.m4: Likewise.
88281         * m4/clock_time.m4: Likewise.
88282         * m4/codeset.m4: Likewise.
88283         * m4/copy-file.m4: Likewise.
88284         * m4/csharp.m4: Likewise.
88285         * m4/csharpcomp.m4: Likewise.
88286         * m4/csharpexec.m4: Likewise.
88287         * m4/d-ino.m4: Likewise.
88288         * m4/d-type.m4: Likewise.
88289         * m4/dirfd.m4: Likewise.
88290         * m4/double-slash-root.m4: Likewise.
88291         * m4/eaccess.m4: Likewise.
88292         * m4/eealloc.m4: Likewise.
88293         * m4/environ.m4: Likewise.
88294         * m4/errno_h.m4: Likewise.
88295         * m4/euidaccess.m4: Likewise.
88296         * m4/execute.m4: Likewise.
88297         * m4/fatal-signal.m4: Likewise.
88298         * m4/fchdir.m4: Likewise.
88299         * m4/fcntl_h.m4: Likewise.
88300         * m4/fileblocks.m4: Likewise.
88301         * m4/filenamecat.m4: Likewise.
88302         * m4/findprog.m4: Likewise.
88303         * m4/flexmember.m4: Likewise.
88304         * m4/fnmatch.m4: Likewise.
88305         * m4/fopen.m4: Likewise.
88306         * m4/fpending.m4: Likewise.
88307         * m4/fprintf-posix.m4: Likewise.
88308         * m4/free.m4: Likewise.
88309         * m4/frexp.m4: Likewise.
88310         * m4/frexpl.m4: Likewise.
88311         * m4/fsusage.m4: Likewise.
88312         * m4/ftruncate.m4: Likewise.
88313         * m4/gc-camellia.m4: Likewise.
88314         * m4/gc-random.m4: Likewise.
88315         * m4/gc.m4: Likewise.
88316         * m4/getaddrinfo.m4: Likewise.
88317         * m4/getcwd-abort-bug.m4: Likewise.
88318         * m4/getcwd-path-max.m4: Likewise.
88319         * m4/getdate.m4: Likewise.
88320         * m4/getdomainname.m4: Likewise.
88321         * m4/getgroups.m4: Likewise.
88322         * m4/gethostname.m4: Likewise.
88323         * m4/gethrxtime.m4: Likewise.
88324         * m4/getline.m4: Likewise.
88325         * m4/getloadavg.m4: Likewise.
88326         * m4/getndelim2.m4: Likewise.
88327         * m4/getpass.m4: Likewise.
88328         * m4/gettext.m4: Likewise.
88329         * m4/gettime.m4: Likewise.
88330         * m4/gettimeofday.m4: Likewise.
88331         * m4/gnulib-common.m4: Likewise.
88332         * m4/group-member.m4: Likewise.
88333         * m4/host-os.m4: Likewise.
88334         * m4/iconv.m4: Likewise.
88335         * m4/iconv_open.m4: Likewise.
88336         * m4/inet_ntop.m4: Likewise.
88337         * m4/inet_pton.m4: Likewise.
88338         * m4/inline.m4: Likewise.
88339         * m4/intldir.m4: Likewise.
88340         * m4/intlmacosx.m4: Likewise.
88341         * m4/intmax.m4: Likewise.
88342         * m4/intmax_t.m4: Likewise.
88343         * m4/inttypes.m4: Likewise.
88344         * m4/inttypes_h.m4: Likewise.
88345         * m4/inttypes-pri.m4: Likewise.
88346         * m4/isapipe.m4: Likewise.
88347         * m4/isnand.m4: Likewise.
88348         * m4/isnanf.m4: Likewise.
88349         * m4/isnanl.m4: Likewise.
88350         * m4/javacomp.m4: Likewise.
88351         * m4/javaexec.m4: Likewise.
88352         * m4/jm-winsz1.m4: Likewise.
88353         * m4/jm-winsz2.m4: Likewise.
88354         * m4/lchown.m4: Likewise.
88355         * m4/lcmessage.m4: Likewise.
88356         * m4/ldexpl.m4: Likewise.
88357         * m4/lib-ld.m4: Likewise.
88358         * m4/lib-link.m4: Likewise.
88359         * m4/libsigsegv.m4: Likewise.
88360         * m4/link-follow.m4: Likewise.
88361         * m4/localcharset.m4: Likewise.
88362         * m4/locale-fr.m4: Likewise.
88363         * m4/locale-ja.m4: Likewise.
88364         * m4/locale-tr.m4: Likewise.
88365         * m4/locale-zh.m4: Likewise.
88366         * m4/lock.m4: Likewise.
88367         * m4/longlong.m4: Likewise.
88368         * m4/ls-mntd-fs.m4: Likewise.
88369         * m4/lstat.m4: Likewise.
88370         * m4/malloc.m4: Likewise.
88371         * m4/mathl.m4: Likewise.
88372         * m4/mbrtowc.m4: Likewise.
88373         * m4/mbstate_t.m4: Likewise.
88374         * m4/mbswidth.m4: Likewise.
88375         * m4/memchr.m4: Likewise.
88376         * m4/memcmp.m4: Likewise.
88377         * m4/memcpy.m4: Likewise.
88378         * m4/memmem.m4: Likewise.
88379         * m4/memmove.m4: Likewise.
88380         * m4/mempcpy.m4: Likewise.
88381         * m4/memrchr.m4: Likewise.
88382         * m4/memset.m4: Likewise.
88383         * m4/minmax.m4: Likewise.
88384         * m4/mkdir-slash.m4: Likewise.
88385         * m4/mkdtemp.m4: Likewise.
88386         * m4/mktime.m4: Likewise.
88387         * m4/mmap-anon.m4: Likewise.
88388         * m4/mountlist.m4: Likewise.
88389         * m4/nanosleep.m4: Likewise.
88390         * m4/nls.m4: Likewise.
88391         * m4/nocrash.m4: Likewise.
88392         * m4/open.m4: Likewise.
88393         * m4/openat.m4: Likewise.
88394         * m4/openmp.m4: Likewise.
88395         * m4/pathmax.m4: Likewise.
88396         * m4/perl.m4: Likewise.
88397         * m4/physmem.m4: Likewise.
88398         * m4/pipe.m4: Likewise.
88399         * m4/po.m4: Likewise.
88400         * m4/poll.m4: Likewise.
88401         * m4/posixtm.m4: Likewise.
88402         * m4/posixver.m4: Likewise.
88403         * m4/printf-frexp.m4: Likewise.
88404         * m4/printf-frexpl.m4: Likewise.
88405         * m4/printf-posix.m4: Likewise.
88406         * m4/printf-posix-rpl.m4: Likewise.
88407         * m4/printf.m4: Likewise.
88408         * m4/progtest.m4: Likewise.
88409         * m4/putenv.m4: Likewise.
88410         * m4/readline.m4: Likewise.
88411         * m4/readlink.m4: Likewise.
88412         * m4/readutmp.m4: Likewise.
88413         * m4/realloc.m4: Likewise.
88414         * m4/regex.m4: Likewise.
88415         * m4/relocatable.m4: Likewise.
88416         * m4/relocatable-lib.m4: Likewise.
88417         * m4/rename-dest-slash.m4: Likewise.
88418         * m4/rename.m4: Likewise.
88419         * m4/rmdir-errno.m4: Likewise.
88420         * m4/rmdir.m4: Likewise.
88421         * m4/roundf.m4: Likewise.
88422         * m4/roundl.m4: Likewise.
88423         * m4/rpmatch.m4: Likewise.
88424         * m4/save-cwd.m4: Likewise.
88425         * m4/selinux-selinux-h.m4: Likewise.
88426         * m4/setenv.m4: Likewise.
88427         * m4/settime.m4: Likewise.
88428         * m4/sig2str.m4: Likewise.
88429         * m4/sig_atomic_t.m4: Likewise.
88430         * m4/signalblocking.m4: Likewise.
88431         * m4/signbit.m4: Likewise.
88432         * m4/sigpipe.m4: Likewise.
88433         * m4/sockets.m4: Likewise.
88434         * m4/sockpfaf.m4: Likewise.
88435         * m4/st_dm_mode.m4: Likewise.
88436         * m4/stat-time.m4: Likewise.
88437         * m4/stdbool.m4: Likewise.
88438         * m4/stdint.m4: Likewise.
88439         * m4/stdint_h.m4: Likewise.
88440         * m4/stpcpy.m4: Likewise.
88441         * m4/stpncpy.m4: Likewise.
88442         * m4/strcase.m4: Likewise.
88443         * m4/strchrnul.m4: Likewise.
88444         * m4/strcspn.m4: Likewise.
88445         * m4/strdup.m4: Likewise.
88446         * m4/strftime.m4: Likewise.
88447         * m4/strndup.m4: Likewise.
88448         * m4/strnlen.m4: Likewise.
88449         * m4/strpbrk.m4: Likewise.
88450         * m4/strptime.m4: Likewise.
88451         * m4/strsep.m4: Likewise.
88452         * m4/strtod.m4: Likewise.
88453         * m4/strtoimax.m4: Likewise.
88454         * m4/strtok_r.m4: Likewise.
88455         * m4/strtol.m4: Likewise.
88456         * m4/strtoll.m4: Likewise.
88457         * m4/strtoul.m4: Likewise.
88458         * m4/strtoull.m4: Likewise.
88459         * m4/strtoumax.m4: Likewise.
88460         * m4/strverscmp.m4: Likewise.
88461         * m4/threadlib.m4: Likewise.
88462         * m4/timegm.m4: Likewise.
88463         * m4/tm_gmtoff.m4: Likewise.
88464         * m4/tmpdir.m4: Likewise.
88465         * m4/tmpfile.m4: Likewise.
88466         * m4/tzset.m4: Likewise.
88467         * m4/uintmax_t.m4: Likewise.
88468         * m4/unlinkdir.m4: Likewise.
88469         * m4/unlocked-io.m4: Likewise.
88470         * m4/uptime.m4: Likewise.
88471         * m4/userspec.m4: Likewise.
88472         * m4/utimbuf.m4: Likewise.
88473         * m4/utime.m4: Likewise.
88474         * m4/utimes-null.m4: Likewise.
88475         * m4/utimes.m4: Likewise.
88476         * m4/vararrays.m4: Likewise.
88477         * m4/vasnprintf.m4: Likewise.
88478         * m4/vfprintf-posix.m4: Likewise.
88479         * m4/vprintf-posix.m4: Likewise.
88480         * m4/wait-process.m4: Likewise.
88481         * m4/wchar_t.m4: Likewise.
88482         * m4/wint_t.m4: Likewise.
88483         * m4/write-any-file.m4: Likewise.
88484         * m4/yield.m4: Likewise.
88486 2009-01-13  Bruno Haible  <bruno@clisp.org>
88488         Avoid test-copy-file.sh failures when ACL support insufficient.
88489         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
88490         TESTS_ENVIRONMENT.
88491         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
88492         Reported by Jim Meyering.
88494 2009-01-13  Bruno Haible  <bruno@clisp.org>
88496         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
88497         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
88498         * modules/unistdio/u8-printf-parse (Files): Likewise.
88499         * modules/unistdio/u32-printf-parse (Files): Likewise.
88500         * modules/unistdio/ulc-printf-parse (Files): Likewise.
88502 2009-01-13  Simon Josefsson  <simon@josefsson.org>
88504         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
88505         and m4/inttypes_h.m4 too.
88507 2009-01-12  Eric Blake  <ebb9@byu.net>
88509         tests: IRIX 6.2 cc can't compile -0.0 into .data
88510         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
88511         rather than at compile-time.
88512         * tests/test-floorl.c (minus_zero): Likewise.
88513         * tests/test-frexpl.c (minus_zero): Likewise.
88514         * tests/test-isnan.c (minus_zerol): Likewise.
88515         * tests/test-isnanl.h (minus_zero): Likewise.
88516         * tests/test-ldexpl.c (minus_zero): Likewise.
88517         * tests/test-roundl.c (minus_zero): Likewise.
88518         * tests/test-signbit.c (minus_zerol): Likewise.
88519         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
88520         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
88521         * tests/test-truncl.c (minus_zero): Likewise.
88522         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
88523         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
88524         Reported by Tom G. Christensen and Nelson H. F. Beebe.
88526 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88528         regex: fix glibc bug 9697
88529         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
88530         handling.
88532 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88534         regex: fix glibc bug 697
88535         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
88536         being NULL also if there are no backreferences.
88538 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88540         regex: merge glibc changes
88541         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
88542         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
88543         re_string_skip_chars, re_string_reconstruct): Likewise.
88544         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
88546 2009-01-07  Jim Meyering  <meyering@redhat.com>
88548         poll: filter through cppi
88549         * lib/poll.c: Indent cpp directives to reflect nesting.
88551 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
88553         poll: don't return uninitialized
88554         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
88556 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
88558         avoid compile failure on AIX 6.1
88559         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
88560         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
88562 2009-01-04  Jim Meyering  <meyering@redhat.com>
88564         remove duplicate inclusion of <stdio.h>
88565         * tests/test-fprintf-posix.c: Likewise.
88566         * tests/test-printf-posix.c: Likewise.
88567         * tests/test-snprintf-posix.c: Likewise.
88568         * tests/test-sprintf-posix.c: Likewise.
88569         * tests/test-vasprintf-posix.c: Likewise.
88570         * tests/test-vfprintf-posix.c: Likewise.
88571         * tests/test-vprintf-posix.c: Likewise.
88572         * tests/test-vsnprintf-posix.c: Likewise.
88573         * tests/test-vsprintf-posix.c: Likewise.
88575 2009-01-03  Jim Meyering  <meyering@redhat.com>
88577         gnulib-tool: fix sed-based filtering
88578         * gnulib-tool (func_filter_filelist): Remove extra backslash
88579         in sed_fff_filter definition.
88581 2009-01-02  Jim Meyering  <meyering@redhat.com>
88583         strftime: avoid compilation failure on Solaris 2.6
88584         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
88585         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
88586         Don't #define mbrlen or mbsinit, since now they're guaranteed to
88587         be available.  Reported by Tom G. Christensen.  Details in
88588         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
88590 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88591             Bruno Haible  <bruno@clisp.org>
88593         Speed up gnulib-tool by doing more string processing through shell
88594         built-ins.
88595         * gnulib-tool (fast_func_append): New variable.
88596         (func_remove_prefix, func_remove_suffix): New functions.
88597         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
88598         (func_filter_filelist): New function.
88599         (func_get_dependencies): Use func_remove_suffix instead of sed.
88600         (func_get_automake_snippet): Use func_filter_filelist instead of a
88601         subshell and sed invocation.
88603 2009-01-01  Bruno Haible  <bruno@clisp.org>
88605         Fix a security bug.
88606         * gnulib-tool (func_import, import, update): Don't allow the characters
88607         '"', '$', '`', '\' in macro arguments that become part of commands that
88608         are evaluated.
88610 2009-01-01  Bruno Haible  <bruno@clisp.org>
88612         * gnulib-tool (func_reset_sigpipe): Add more comments.
88614 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88616         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
88617         func_emit_tests_Makefile_am, func_import): Abort loops early if we
88618         already know the answer.
88620 2009-01-01  Jim Meyering  <meyering@redhat.com>
88622         * lib/version-etc.c (version_etc_va): Update copyright year.
88624 2008-12-30  Bruno Haible  <bruno@clisp.org>
88626         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
88627         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
88628         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
88630 2008-12-29  Eric Blake  <ebb9@byu.net>
88632         multiarch: avoid autoconf AC_REQUIRE bug
88633         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
88634         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
88635         2.63 and older.
88636         Reported by Bruno Haible, and analyzed in
88637         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
88639 2008-12-29  Bruno Haible  <bruno@clisp.org>
88641         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
88642         files in subdirectories correctly.
88643         Reported by Ralf Wildenhues.
88645 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88647         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
88648         rather than 'join FILE -', for Solaris join.
88650 2008-12-29  Bruno Haible  <bruno@clisp.org>
88652         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
88653         quoting.
88654         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88655         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
88656         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
88657         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
88658         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
88659         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
88660         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
88661         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
88662         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
88663         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
88664         * m4/nls.m4 (AM_NLS): Likewise.
88665         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
88666         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
88667         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88668         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
88669         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
88670         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
88671         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
88672         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
88673         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
88674         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
88675         * m4/xsize.m4 (gl_XSIZE): Likewise.
88676         Suggested by Jim Meyering.
88678 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88680         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
88681         * lib/parse-duration.c: use a switch instead of cascading if's.
88683 2008-12-29  Eric Blake  <ebb9@byu.net>
88685         wchar.h: supply WEOF on Irix 5.3
88686         * lib/wchar.in.h (wint_t): Also supply WEOF.
88687         * lib/wctype.in.h (wint_t): Likewise.
88688         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
88689         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
88690         Reported by Tom G. Christensen.
88692 2008-12-26  Bruno Haible  <bruno@clisp.org>
88694         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
88695         i486, i586, i686.
88697 2008-12-26  Bruno Haible  <bruno@clisp.org>
88699         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
88701 2008-12-26  Bruno Haible  <bruno@clisp.org>
88703         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
88704         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
88705         not __STDC_CONSTANT_MACROS.
88706         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
88708 2008-12-25  Bruno Haible  <bruno@clisp.org>
88710         Add support for universal builds to vasnprintf.
88711         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
88712         universal builds, guess no.
88713         * modules/vasnprintf-posix (Depends-on): Add multiarch.
88714         * modules/vasprintf-posix (Depends-on): Likewise.
88715         * modules/fprintf-posix (Depends-on): Likewise.
88716         * modules/vfprintf-posix (Depends-on): Likewise.
88717         * modules/snprintf-posix (Depends-on): Likewise.
88718         * modules/vsnprintf-posix (Depends-on): Likewise.
88719         * modules/sprintf-posix (Depends-on): Likewise.
88720         * modules/vsprintf-posix (Depends-on): Likewise.
88721         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88722         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88723         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88724         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88725         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88726         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88727         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88729         Add support for universal builds to <inttypes.h>.
88730         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
88731         _SCNu64_PREFIX): In Apple
88732         universal builds, define directly, using _LP64.
88733         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
88734         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
88735         * modules/inttypes (Depends-on): Add multiarch.
88736         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88738         Add support for universal builds to <stdint.h>.
88739         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
88740         universal builds, define directly, using _LP64.
88741         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
88742         Apple universal builds, don't test for the size and suffix of ptrdiff_t
88743         and size_t.
88744         * modules/stdint (Depends-on): Add multiarch.
88745         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88747         New module 'multiarch'.
88748         * modules/multiarch: New file.
88749         * m4/multiarch.m4: New file.
88751 2008-12-25  Bruno Haible  <bruno@clisp.org>
88753         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
88755 2008-12-25  Bruno Haible  <bruno@clisp.org>
88757         * modules/btowc (License): Relicense under LGPLv2+.
88758         * modules/mbsinit (License): Likewise.
88759         * modules/mbrtowc (License): Likewise.
88760         * modules/wcrtomb (License): Likewise.
88761         * modules/streq (License): Likewise.
88762         Reported by David Lutterkort <lutter@redhat.com>.
88764 2008-12-23  Bruno Haible  <bruno@clisp.org>
88766         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
88768 2008-12-23  Bruno Haible  <bruno@clisp.org>
88770         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
88771         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
88772         GETADDRINFO_LIB, not in LIBS.
88773         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
88774         * modules/canon-host (Link): Likewise.
88775         * NEWS: Mention the change.
88776         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
88777         GETADDRINFO_LIB.
88779 2008-12-22  Bruno Haible  <bruno@clisp.org>
88781         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
88782         * doc/posix-functions/iswalpha_l.texi: Likewise.
88783         * doc/posix-functions/iswblank_l.texi: Likewise.
88784         * doc/posix-functions/iswcntrl_l.texi: Likewise.
88785         * doc/posix-functions/iswctype_l.texi: Likewise.
88786         * doc/posix-functions/iswdigit_l.texi: Likewise.
88787         * doc/posix-functions/iswgraph_l.texi: Likewise.
88788         * doc/posix-functions/iswlower_l.texi: Likewise.
88789         * doc/posix-functions/iswprint_l.texi: Likewise.
88790         * doc/posix-functions/iswpunct_l.texi: Likewise.
88791         * doc/posix-functions/iswspace_l.texi: Likewise.
88792         * doc/posix-functions/iswupper_l.texi: Likewise.
88793         * doc/posix-functions/iswxdigit_l.texi: Likewise.
88794         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
88795         * doc/posix-functions/open_wmemstream.texi: Likewise.
88796         * doc/posix-functions/swscanf.texi: Likewise.
88797         * doc/posix-functions/towctrans_l.texi: Likewise.
88798         * doc/posix-functions/towlower.texi: Likewise.
88799         * doc/posix-functions/towlower_l.texi: Likewise.
88800         * doc/posix-functions/towupper.texi: Likewise.
88801         * doc/posix-functions/towupper_l.texi: Likewise.
88802         * doc/posix-functions/vfwprintf.texi: Likewise.
88803         * doc/posix-functions/vfwscanf.texi: Likewise.
88804         * doc/posix-functions/vswscanf.texi: Likewise.
88805         * doc/posix-functions/vwprintf.texi: Likewise.
88806         * doc/posix-functions/vwscanf.texi: Likewise.
88807         * doc/posix-functions/wcpcpy.texi: Likewise.
88808         * doc/posix-functions/wcpncpy.texi: Likewise.
88809         * doc/posix-functions/wcscasecmp.texi: Likewise.
88810         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
88811         * doc/posix-functions/wcscoll_l.texi: Likewise.
88812         * doc/posix-functions/wcsdup.texi: Likewise.
88813         * doc/posix-functions/wcsncasecmp.texi: Likewise.
88814         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
88815         * doc/posix-functions/wcsnlen.texi: Likewise.
88816         * doc/posix-functions/wcsnrtombs.texi: Likewise.
88817         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
88818         * doc/posix-functions/wctrans_l.texi: Likewise.
88819         * doc/posix-functions/wctype_l.texi: Likewise.
88820         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
88821         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
88822         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
88823         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
88824         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
88825         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
88826         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
88827         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
88828         * doc/glibc-functions/wcschrnul.texi: Likewise.
88829         * doc/glibc-functions/wcsftime_l.texi: Likewise.
88830         * doc/glibc-functions/wcstod_l.texi: Likewise.
88831         * doc/glibc-functions/wcstof_l.texi: Likewise.
88832         * doc/glibc-functions/wcstol_l.texi: Likewise.
88833         * doc/glibc-functions/wcstold_l.texi: Likewise.
88834         * doc/glibc-functions/wcstoll_l.texi: Likewise.
88835         * doc/glibc-functions/wcstoq.texi: Likewise.
88836         * doc/glibc-functions/wcstoul_l.texi: Likewise.
88837         * doc/glibc-functions/wcstoull_l.texi: Likewise.
88838         * doc/glibc-functions/wcstouq.texi: Likewise.
88839         * doc/glibc-functions/wmempcpy.texi: Likewise.
88841 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
88842             Eric Blake  <ebb9@byu.net>
88843             Paolo Bonzini  <bonzini@gnu.org>
88844             Bruno Haible  <bruno@clisp.org>
88846         Make c-stack work on Haiku.
88847         * lib/c-stack.c (SA_ONSTACK): Define fallback.
88848         (c_stack_action): Use SA_ONSTACK flag.
88850 2008-12-22  Bruno Haible  <bruno@clisp.org>
88852         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
88854 2008-12-22  Bruno Haible  <bruno@clisp.org>
88856         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
88857         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
88858         being overridden.
88859         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
88860         New macros.
88861         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
88862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
88863         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
88864         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
88866 2008-12-22  Bruno Haible  <bruno@clisp.org>
88868         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
88869         from test code.
88871 2008-12-22  Eric Blake  <ebb9@byu.net>
88873         Avoid gcc warnings on cygwin.
88874         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
88875         Avoid unused variable.
88876         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
88877         Likewise.
88879 2008-12-22  Bruno Haible  <bruno@clisp.org>
88881         Remove HAVE_MBRTOWC conditionals.
88882         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
88883         (mbscasecmp): Assume mbrtowc function.
88884         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
88885         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
88886         * lib/mbschr.c: Include mbuiter.h unconditionally.
88887         (mbschr): Assume mbrtowc function.
88888         * lib/mbscspn.c: Include mbuiter.h unconditionally.
88889         (mbscspn): Assume mbrtowc function.
88890         * lib/mbslen.c: Include mbuiter.h unconditionally.
88891         (mbslen): Assume mbrtowc function.
88892         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
88893         (mbsncasecmp): Assume mbrtowc function.
88894         * lib/mbsnlen.c: Include mbiter.h unconditionally.
88895         (mbsnlen): Assume mbrtowc function.
88896         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
88897         (mbspbrk): Assume mbrtowc function.
88898         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
88899         (mbspcasecmp): Assume mbrtowc function.
88900         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
88901         (mbsrchr): Assume mbrtowc function.
88902         * lib/mbssep.c: Include mbuiter.h unconditionally.
88903         (mbssep): Assume mbrtowc function.
88904         * lib/mbsspn.c: Include mbuiter.h unconditionally.
88905         (mbsspn): Assume mbrtowc function.
88906         * lib/mbsstr.c: Include mbuiter.h unconditionally.
88907         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
88908         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
88909         (mbstok_r): Assume mbrtowc function.
88910         * lib/propername.c: Include mbuiter.h unconditionally.
88911         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
88912         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
88913         (trim2): Assume mbrtowc function.
88914         * lib/mbswidth.c (mbsinit): Remove fallback definition.
88915         (mbsnwidth): Assume mbrtowc function.
88916         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
88917         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
88918         fallback definitions.
88919         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
88921 2008-12-22  Bruno Haible  <bruno@clisp.org>
88923         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
88925 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
88927         * modules/regex: Request emulations for the mb*/wc* functions we need.
88928         * m4/regex.m4: Don't look for those functions here.
88929         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
88931 2008-12-22  Bruno Haible  <bruno@clisp.org>
88933         * modules/fnmatch (Depends-on): Remove duplicated dependency.
88935 2008-12-21  Bruno Haible  <bruno@clisp.org>
88937         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
88938         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
88939         (Include): Remove conditionalization.
88940         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
88941         (Include): Remove conditionalization.
88942         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
88943         (Include): Remove conditionalization.
88944         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
88945         * m4/mbfile.m4 (gl_MBFILE): Likewise.
88946         * NEWS: Mention the change.
88947         Reported by Alan Hourihane <alanh@fairlite.co.uk>
88948         via Sergey Poznyakoff <gray@gnu.org.ua>.
88950 2008-12-21  Bruno Haible  <bruno@clisp.org>
88952         * MODULES.html.sh (Extended multibyte and wide character utilities
88953         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
88954         wcrtomb, wcsrtombs.
88955         (Support for systems lacking POSIX:2008): Add accept, bind, close,
88956         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
88957         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
88958         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
88960 2008-12-21  Bruno Haible  <bruno@clisp.org>
88962         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
88964 2008-12-21  Bruno Haible  <bruno@clisp.org>
88966         * modules/wcsnrtombs-tests: New file.
88967         * tests/test-wcsnrtombs1.sh: New file.
88968         * tests/test-wcsnrtombs2.sh: New file.
88969         * tests/test-wcsnrtombs3.sh: New file.
88970         * tests/test-wcsnrtombs4.sh: New file.
88971         * tests/test-wcsnrtombs.c: New file.
88973         New module 'wcsnrtombs'.
88974         * lib/wchar.in.h (wcsnrtombs): New declaration.
88975         * lib/wcsnrtombs.c: New file.
88976         * lib/wcsrtombs-state.c: New file.
88977         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
88978         (internal_state): Remove variable.
88979         * m4/wcsnrtombs.m4: New file.
88980         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
88981         compilation units.
88982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
88983         HAVE_WCSNRTOMBS.
88984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
88985         HAVE_WCSNRTOMBS.
88986         * modules/wcsnrtombs: New file.
88987         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
88988         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
88990 2008-12-21  Bruno Haible  <bruno@clisp.org>
88992         * modules/wcsrtombs-tests: New file.
88993         * tests/test-wcsrtombs1.sh: New file.
88994         * tests/test-wcsrtombs2.sh: New file.
88995         * tests/test-wcsrtombs3.sh: New file.
88996         * tests/test-wcsrtombs4.sh: New file.
88997         * tests/test-wcsrtombs.c: New file.
88999         New module 'wcsrtombs'.
89000         * lib/wchar.in.h (wcsrtombs): New declaration.
89001         * lib/wcsrtombs.c: New file.
89002         * m4/wcsrtombs.m4: New file.
89003         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
89004         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
89005         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
89006         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
89007         * modules/wcsrtombs: New file.
89008         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
89009         bugs.
89011 2008-12-21  Bruno Haible  <bruno@clisp.org>
89013         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
89014         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
89015         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
89016         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
89017         if not correct.
89018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
89019         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
89020         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
89021         m4/locale-zh.m4, m4/codeset.m4.
89022         * doc/posix-functions/wcrtomb.texi: Document the bug.
89024 2008-12-21  Bruno Haible  <bruno@clisp.org>
89026         Work around a btowc() bug on IRIX 6.5.
89027         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
89028         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
89029         REPLACE_WTOBC if not.
89030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
89031         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
89032         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
89034 2008-12-21  Bruno Haible  <bruno@clisp.org>
89036         * modules/wcrtomb-tests: New file.
89037         * tests/test-wcrtomb.sh: New file.
89038         * tests/test-wcrtomb.c: New file.
89040         New module 'wcrtomb'.
89041         * lib/wchar.in.h (wcrtomb): New declaration.
89042         * lib/wcrtomb.c: New file.
89043         * m4/wcrtomb.m4: New file.
89044         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
89045         HAVE_WCRTOMB.
89046         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
89047         HAVE_WCRTOMB.
89048         * modules/wcrtomb: New file.
89049         * doc/posix-functions/wcrtomb.texi: Mention the new module.
89051 2008-12-21  Bruno Haible  <bruno@clisp.org>
89053         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
89054         * modules/mbsrtowcs (Files): Likewise.
89055         * modules/wctob (Files): Likewise.
89056         * modules/c-strcase-tests (Files): Likewise.
89057         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
89058         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
89059         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
89060         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
89061         * modules/vasnprintf-posix-tests (Files): Likewise.
89063 2008-12-21  William Pursell  <bill.pursell@gmail.com>
89065         gitlog-to-changelog: pass all command-line arguments to git-log
89066         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
89067         it is sometimes convenient to filter the commits in various ways.
89068         gitlog-to-changelog only allows --since to specify a start date,
89069         but git-log itself supports many other filtering mechanisms.
89070         At the moment, I want to filter by branch name.  Rather than
89071         adding a --branch option to gitlog-to-changelog, it seems more
89072         flexible to simply pass all options directly to git-log and let
89073         git do the work.  Notice that this effectively makes --since a
89074         redundant option for gitlog-to-changelog, but removing it would
89075         require current usage to change since calls would then require
89076         an additional '--'.
89078 2008-12-21  Bruno Haible  <bruno@clisp.org>
89080         * modules/mbsnrtowcs-tests: New file.
89081         * tests/test-mbsnrtowcs1.sh: New file.
89082         * tests/test-mbsnrtowcs2.sh: New file.
89083         * tests/test-mbsnrtowcs3.sh: New file.
89084         * tests/test-mbsnrtowcs4.sh: New file.
89085         * tests/test-mbsnrtowcs.c: New file.
89087         New module 'mbsnrtowcs'.
89088         * lib/wchar.in.h (mbsnrtowcs): New declaration.
89089         * lib/mbsnrtowcs.c: New file.
89090         * lib/mbsrtowcs-state.c: New file.
89091         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
89092         (internal_state): Remove variable.
89093         * m4/mbsnrtowcs.m4: New file.
89094         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
89095         compilation units.
89096         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
89097         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
89098         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
89099         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
89100         * modules/mbsnrtowcs: New file.
89101         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
89102         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
89103         portability problem.
89105 2008-12-21  Bruno Haible  <bruno@clisp.org>
89107         Work around mbsrtowcs bug.
89108         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
89109         (gl_FUNC_MBSRTOWCS): Invoke it.
89110         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
89111         m4/locale-zh.m4.
89112         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
89114 2008-12-21  Bruno Haible  <bruno@clisp.org>
89116         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
89118 2008-12-21  Bruno Haible  <bruno@clisp.org>
89120         Update doc for AIX.
89121         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
89122         16-bit wchar_t type.
89123         * doc/posix-functions/btowc.texi: Likewise.
89124         * doc/posix-functions/fgetwc.texi: Likewise.
89125         * doc/posix-functions/fgetws.texi: Likewise.
89126         * doc/posix-functions/fputwc.texi: Likewise.
89127         * doc/posix-functions/fputws.texi: Likewise.
89128         * doc/posix-functions/fwide.texi: Likewise.
89129         * doc/posix-functions/fwprintf.texi: Likewise.
89130         * doc/posix-functions/fwscanf.texi: Likewise.
89131         * doc/posix-functions/getwchar.texi: Likewise.
89132         * doc/posix-functions/getwc.texi: Likewise.
89133         * doc/posix-functions/iswalnum.texi: Likewise.
89134         * doc/posix-functions/iswalpha.texi: Likewise.
89135         * doc/posix-functions/iswblank.texi: Likewise.
89136         * doc/posix-functions/iswcntrl.texi: Likewise.
89137         * doc/posix-functions/iswctype.texi: Likewise.
89138         * doc/posix-functions/iswdigit.texi: Likewise.
89139         * doc/posix-functions/iswgraph.texi: Likewise.
89140         * doc/posix-functions/iswlower.texi: Likewise.
89141         * doc/posix-functions/iswprint.texi: Likewise.
89142         * doc/posix-functions/iswpunct.texi: Likewise.
89143         * doc/posix-functions/iswspace.texi: Likewise.
89144         * doc/posix-functions/iswupper.texi: Likewise.
89145         * doc/posix-functions/iswxdigit.texi: Likewise.
89146         * doc/posix-functions/mbrtowc.texi: Likewise.
89147         * doc/posix-functions/mbsrtowcs.texi: Likewise.
89148         * doc/posix-functions/mbstowcs.texi: Likewise.
89149         * doc/posix-functions/mbtowc.texi: Likewise.
89150         * doc/posix-functions/putwchar.texi: Likewise.
89151         * doc/posix-functions/putwc.texi: Likewise.
89152         * doc/posix-functions/swprintf.texi: Likewise.
89153         * doc/posix-functions/tolower.texi: Likewise.
89154         * doc/posix-functions/toupper.texi: Likewise.
89155         * doc/posix-functions/towctrans.texi: Likewise.
89156         * doc/posix-functions/ungetwc.texi: Likewise.
89157         * doc/posix-functions/vswprintf.texi: Likewise.
89158         * doc/posix-functions/wcrtomb.texi: Likewise.
89159         * doc/posix-functions/wcscat.texi: Likewise.
89160         * doc/posix-functions/wcschr.texi: Likewise.
89161         * doc/posix-functions/wcscmp.texi: Likewise.
89162         * doc/posix-functions/wcscoll.texi: Likewise.
89163         * doc/posix-functions/wcscpy.texi: Likewise.
89164         * doc/posix-functions/wcscspn.texi: Likewise.
89165         * doc/posix-functions/wcsftime.texi: Likewise.
89166         * doc/posix-functions/wcslen.texi: Likewise.
89167         * doc/posix-functions/wcsncat.texi: Likewise.
89168         * doc/posix-functions/wcsncmp.texi: Likewise.
89169         * doc/posix-functions/wcsncpy.texi: Likewise.
89170         * doc/posix-functions/wcspbrk.texi: Likewise.
89171         * doc/posix-functions/wcsrchr.texi: Likewise.
89172         * doc/posix-functions/wcsrtombs.texi: Likewise.
89173         * doc/posix-functions/wcsspn.texi: Likewise.
89174         * doc/posix-functions/wcsstr.texi: Likewise.
89175         * doc/posix-functions/wcstod.texi: Likewise.
89176         * doc/posix-functions/wcstof.texi: Likewise.
89177         * doc/posix-functions/wcstoimax.texi: Likewise.
89178         * doc/posix-functions/wcstok.texi: Likewise.
89179         * doc/posix-functions/wcstold.texi: Likewise.
89180         * doc/posix-functions/wcstoll.texi: Likewise.
89181         * doc/posix-functions/wcstol.texi: Likewise.
89182         * doc/posix-functions/wcstombs.texi: Likewise.
89183         * doc/posix-functions/wcstoull.texi: Likewise.
89184         * doc/posix-functions/wcstoul.texi: Likewise.
89185         * doc/posix-functions/wcstoumax.texi: Likewise.
89186         * doc/posix-functions/wcswidth.texi: Likewise.
89187         * doc/posix-functions/wcsxfrm.texi: Likewise.
89188         * doc/posix-functions/wctob.texi: Likewise.
89189         * doc/posix-functions/wctomb.texi: Likewise.
89190         * doc/posix-functions/wctrans.texi: Likewise.
89191         * doc/posix-functions/wctype.texi: Likewise.
89192         * doc/posix-functions/wcwidth.texi: Likewise.
89193         * doc/posix-functions/wmemchr.texi: Likewise.
89194         * doc/posix-functions/wmemcmp.texi: Likewise.
89195         * doc/posix-functions/wmemcpy.texi: Likewise.
89196         * doc/posix-functions/wmemmove.texi: Likewise.
89197         * doc/posix-functions/wmemset.texi: Likewise.
89198         * doc/posix-functions/wprintf.texi: Likewise.
89199         * doc/posix-functions/wscanf.texi: Likewise.
89201 2008-12-21  Bruno Haible  <bruno@clisp.org>
89203         Update doc for HP-UX 11.11.
89204         * doc/posix-functions/btowc.texi: Clarify that the function is missing
89205         in HP-UX version 11.00, not in all versions of HP-UX 11.
89206         * doc/posix-functions/fwide.texi: Likewise.
89207         * doc/posix-functions/fwprintf.texi: Likewise.
89208         * doc/posix-functions/fwscanf.texi: Likewise.
89209         * doc/posix-functions/inet_ntop.texi: Likewise.
89210         * doc/posix-functions/inet_pton.texi: Likewise.
89211         * doc/posix-functions/mbrlen.texi: Likewise.
89212         * doc/posix-functions/mbrtowc.texi: Likewise.
89213         * doc/posix-functions/mbsinit.texi: Likewise.
89214         * doc/posix-functions/mbsrtowcs.texi: Likewise.
89215         * doc/posix-functions/swprintf.texi: Likewise.
89216         * doc/posix-functions/swscanf.texi: Likewise.
89217         * doc/posix-functions/towctrans.texi: Likewise.
89218         * doc/posix-functions/vfwprintf.texi: Likewise.
89219         * doc/posix-functions/vswprintf.texi: Likewise.
89220         * doc/posix-functions/vwprintf.texi: Likewise.
89221         * doc/posix-functions/wcrtomb.texi: Likewise.
89222         * doc/posix-functions/wcsrtombs.texi: Likewise.
89223         * doc/posix-functions/wcsstr.texi: Likewise.
89224         * doc/posix-functions/wctob.texi: Likewise.
89225         * doc/posix-functions/wctrans.texi: Likewise.
89226         * doc/posix-functions/wmemchr.texi: Likewise.
89227         * doc/posix-functions/wmemcmp.texi: Likewise.
89228         * doc/posix-functions/wmemcpy.texi: Likewise.
89229         * doc/posix-functions/wmemmove.texi: Likewise.
89230         * doc/posix-functions/wmemset.texi: Likewise.
89231         * doc/posix-functions/wprintf.texi: Likewise.
89232         * doc/posix-functions/wscanf.texi: Likewise.
89234 2008-12-21  Bruno Haible  <bruno@clisp.org>
89236         Work around a portability problem.
89237         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
89238         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
89240 2008-12-20  Bruno Haible  <bruno@clisp.org>
89242         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
89243         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
89244         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
89245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
89246         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
89248         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
89249         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
89250         set.
89251         (GNULIB_defined_mbstate_t): New macro.
89252         (mbsinit): Redefine if REPLACE_MBSINIT is set.
89253         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
89254         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
89255         reuses the system's mbrtowc function but works around the bugs.
89256         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
89257         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
89258         macros.
89259         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
89260         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
89261         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
89262         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
89263         REPLACE_MBSINIT if mbsinit needs to be overridden.
89264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
89265         REPLACE_MBSINIT, REPLACE_MBRTOWC.
89266         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
89267         REPLACE_MBSINIT, REPLACE_MBRTOWC.
89268         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
89269         m4/locale-zh.m4.
89270         (Depends): Add mbsinit.
89271         * modules/mbsinit (Depends): Add mbrtowc.
89272         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
89274 2008-12-20  Bruno Haible  <bruno@clisp.org>
89276         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
89277         so that there are no conversion errors on AIX.
89278         * tests/test-mbsrtowcs.c (main): LIkewise.
89280 2008-12-20  Bruno Haible  <bruno@clisp.org>
89282         Work around wctob bug on Solaris <= 9.
89283         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
89284         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
89285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
89286         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
89287         * modules/wctob (Files): Add m4/locale-fr.m4.
89288         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
89290 2008-12-20  Bruno Haible  <bruno@clisp.org>
89292         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
89293         /dev/null.
89294         * tests/test-select-in.sh: Likewise.
89295         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
89297 2008-12-20  Bruno Haible  <bruno@clisp.org>
89299         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
89300         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
89301         Cygwin 1.5.x.
89303 2008-12-20  Bruno Haible  <bruno@clisp.org>
89305         Ensure mbstate_t is defined on HP-UX 11.11.
89306         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
89307         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
89308         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
89309         AC_USE_SYSTEM_EXTENSIONS.
89310         * modules/fnmatch (Depends-on): Add extensions.
89311         * modules/mbrlen (Depends-on): Likewise.
89312         * modules/mbrtowc (Depends-on): Likewise.
89313         * modules/mbsinit (Depends-on): Likewise.
89314         * modules/mbsrtowcs (Depends-on): Likewise.
89315         * modules/mbswidth (Depends-on): Likewise.
89316         * modules/quotearg (Depends-on): Likewise.
89317         * modules/strftime (Depends-on): Likewise.
89319 2008-12-20  Bruno Haible  <bruno@clisp.org>
89321         Ensure wctob is declared on IRIX 6.5.
89322         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
89323         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
89324         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
89325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
89326         of HAVE_WCTOB.
89327         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
89328         HAVE_WCTOB.
89329         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
89331 2008-12-19  Bruno Haible  <bruno@clisp.org>
89333         * modules/mbsrtowcs-tests: New file.
89334         * tests/test-mbsrtowcs1.sh: New file.
89335         * tests/test-mbsrtowcs2.sh: New file.
89336         * tests/test-mbsrtowcs3.sh: New file.
89337         * tests/test-mbsrtowcs4.sh: New file.
89338         * tests/test-mbsrtowcs.c: New file.
89340         New module 'mbsrtowcs'.
89341         * lib/wchar.in.h (mbsrtowcs): New declaration.
89342         * lib/mbsrtowcs.c: New file.
89343         * m4/mbsrtowcs.m4: New file.
89344         * modules/mbsrtowcs: New file.
89345         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
89346         HAVE_MBSRTOWCS.
89347         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
89348         HAVE_MBSRTOWCS.
89349         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
89351 2008-12-19  Bruno Haible  <bruno@clisp.org>
89353         New module 'mbrlen'.
89354         * lib/wchar.in.h (mbrlen): New declaration.
89355         * lib/mbrlen.c: New file.
89356         * m4/mbrlen.m4: New file.
89357         * modules/mbrlen: New file.
89358         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
89359         HAVE_MBRLEN.
89360         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
89361         HAVE_MBRLEN.
89362         * doc/posix-functions/mbrlen.texi: Document the new module.
89364 2008-12-19  Bruno Haible  <bruno@clisp.org>
89366         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
89367         * modules/mbrtowc (Depends-on): Add verify.
89368         Suggested by Paul Eggert.
89370 2008-12-18  Bruno Haible  <bruno@clisp.org>
89372         * modules/mbsinit-tests: New file.
89373         * tests/test-mbsinit.sh: New file.
89374         * tests/test-mbsinit.c: New file.
89376 2008-12-18  Bruno Haible  <bruno@clisp.org>
89378         * modules/mbrtowc-tests: New file.
89379         * tests/test-mbrtowc1.sh: New file.
89380         * tests/test-mbrtowc2.sh: New file.
89381         * tests/test-mbrtowc3.sh: New file.
89382         * tests/test-mbrtowc4.sh: New file.
89383         * tests/test-mbrtowc.c: New file.
89385         New module 'mbrtowc'.
89386         * lib/wchar.in.h (mbstate_t): Override when the system does not have
89387         mbsinit and mbrtowc.
89388         (mbrtowc): New declaration.
89389         * lib/mbrtowc.c: New file.
89390         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
89391         * modules/mbrtowc: New file.
89392         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
89393         HAVE_MBRTOWC.
89394         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
89395         HAVE_MBRTOWC.
89396         * doc/posix-functions/mbrtowc.texi: Document the new module.
89398 2008-12-18  Bruno Haible  <bruno@clisp.org>
89400         New module 'wctob'.
89401         * lib/wchar.in.h (wctob): New declaration.
89402         * lib/wctob.c: New file.
89403         * m4/wctob.m4: New file.
89404         * modules/wctob: New file.
89405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
89406         HAVE_WCTOB.
89407         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
89408         * doc/posix-functions/wctob.texi: Document the new module.
89410 2008-12-18  Bruno Haible  <bruno@clisp.org>
89412         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
89413         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
89415 2008-12-18  Simon Josefsson  <simon@josefsson.org>
89417         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
89418         G. Christensen" <tgc@jupiterrise.com>.
89420         * lib/flock.c: Need to include errno.h.  Reported by "Tom
89421         G. Christensen" <tgc@jupiterrise.com>.
89423         * lib/flock.c: Need to include string.h.  Reported by "Tom
89424         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
89425         <ebb9@byu.net>.
89427 2008-12-18  Bruno Haible  <bruno@clisp.org>
89429         * m4/locale-ja.m4: New file, from GNU gettext.
89431 2008-12-17  Bruno Haible  <bruno@clisp.org>
89433         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
89434         Suggested by Eric Blake.
89436 2008-12-17  Bruno Haible  <bruno@clisp.org>
89438         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
89440 2008-12-17  Bruno Haible  <bruno@clisp.org>
89442         * lib/mbsinit.c: Include verify.h. Verify an assumption.
89443         * modules/mbsinit (Depends-on): Add verify.
89444         Suggested by Paul Eggert.
89446 2008-12-17  Bruno Haible  <bruno@clisp.org>
89448         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
89449         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
89450         gl_FUNC_MBRTOWC.
89451         * m4/mbiter.m4 (gl_MBITER): LIkewise.
89452         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
89453         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
89454         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
89455         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
89456         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
89457         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
89458         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
89459         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
89460         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
89461         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
89462         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
89463         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
89464         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
89465         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
89466         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
89467         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
89468         * modules/trim (configure.ac): Likewise.
89470 2008-12-17  Bruno Haible  <bruno@clisp.org>
89472         * modules/btowc-tests: New file.
89473         * tests/test-btowc1.sh: New file.
89474         * tests/test-btowc2.sh: New file.
89475         * tests/test-btowc.c: New file.
89477         New module 'btowc'.
89478         * lib/wchar.in.h (btowc): New declaration.
89479         * lib/btowc.c: New file.
89480         * m4/btowc.m4: New file.
89481         * modules/btowc: New file.
89482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
89483         HAVE_BTOWC.
89484         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
89485         * doc/posix-functions/btowc.texi: Document the new module.
89487 2008-12-17  Bruno Haible  <bruno@clisp.org>
89489         New module 'mbsinit'.
89490         * lib/wchar.in.h (mbsinit): New declaration.
89491         * lib/mbsinit.c: New file.
89492         * m4/mbsinit.m4: New file.
89493         * modules/mbsinit: New file.
89494         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
89495         HAVE_MBSINIT.
89496         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
89497         HAVE_MBSINIT.
89498         * doc/posix-functions/mbsinit.texi: Document the new module.
89500 2008-12-16  Bruno Haible  <bruno@clisp.org>
89502         * lib/unistd.in.h: Add comment.
89503         * tests/test-environ.c: Don't include <stdlib.h>.
89505 2008-12-16  Bruno Haible  <bruno@clisp.org>
89507         * lib/parse-duration.h (parse_duration): Document return value
89508         convention.
89509         * lib/parse-duration.c: Include specification header first. Add
89510         comments.
89511         (_): Remove macro.
89512         (parse_year_month_day, parse_hour_minute_second): Move side effects
89513         outside of strchr call.
89514         (parse_non_iso8601): Move side effects outside of isspace call.
89515         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
89516         call.
89518 2008-12-16  Bruno Haible  <bruno@clisp.org>
89520         * tests/test-parse-duration.sh: Produce no output when the test
89521         succeeds.
89523 2008-12-16  Bruno Haible  <bruno@clisp.org>
89525         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
89526         expressions.
89528 2008-12-15  Bruno Haible  <bruno@clisp.org>
89530         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
89531         * doc/glibc-functions/flistxattr.texi: Likewise.
89532         * doc/glibc-functions/fopencookie.texi: Likewise.
89533         * doc/glibc-functions/fremovexattr.texi: Likewise.
89534         * doc/glibc-functions/fsetxattr.texi: Likewise.
89535         * doc/glibc-functions/getxattr.texi: Likewise.
89536         * doc/glibc-functions/lgetxattr.texi: Likewise.
89537         * doc/glibc-functions/listxattr.texi: Likewise.
89538         * doc/glibc-functions/llistxattr.texi: Likewise.
89539         * doc/glibc-functions/lremovexattr.texi: Likewise.
89540         * doc/glibc-functions/lsetxattr.texi: Likewise.
89541         * doc/glibc-functions/removexattr.texi: Likewise.
89542         * doc/glibc-functions/setxattr.texi: Likewise.
89543         * doc/posix-functions/open_memstream.texi: Likewise.
89545 2008-12-15  Eric Blake  <ebb9@byu.net>
89547         Update doc for cygwin 1.7.
89548         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
89549         functions.
89550         * doc/posix-functions/fchmodat.texi: Likewise.
89551         * doc/posix-functions/fchownat.texi: Likewise.
89552         * doc/posix-functions/fdopendir.texi: Likewise.
89553         * doc/posix-functions/fmemopen.texi: Likewise.
89554         * doc/posix-functions/freeaddrinfo.texi: Likewise.
89555         * doc/posix-functions/fstatat.texi: Likewise.
89556         * doc/posix-functions/futimens.texi: Likewise.
89557         * doc/posix-functions/gai_strerror.texi: Likewise.
89558         * doc/posix-functions/getaddrinfo.texi: Likewise.
89559         * doc/posix-functions/getnameinfo.texi: Likewise.
89560         * doc/posix-functions/if_freenameindex.texi: Likewise.
89561         * doc/posix-functions/if_indextoname.texi: Likewise.
89562         * doc/posix-functions/if_nameindex.texi: Likewise.
89563         * doc/posix-functions/if_nametoindex.texi: Likewise.
89564         * doc/posix-functions/insque.texi: Likewise.
89565         * doc/posix-functions/linkat.texi: Likewise.
89566         * doc/posix-functions/llrint.texi: Likewise.
89567         * doc/posix-functions/llrintf.texi: Likewise.
89568         * doc/posix-functions/llrintl.texi: Likewise.
89569         * doc/posix-functions/lockf.texi: Likewise.
89570         * doc/posix-functions/lrintl.texi: Likewise.
89571         * doc/posix-functions/mkdirat.texi: Likewise.
89572         * doc/posix-functions/mkfifoat.texi: Likewise.
89573         * doc/posix-functions/mknodat.texi: Likewise.
89574         * doc/posix-functions/mq_close.texi: Likewise.
89575         * doc/posix-functions/mq_getattr.texi: Likewise.
89576         * doc/posix-functions/mq_notify.texi: Likewise.
89577         * doc/posix-functions/mq_open.texi: Likewise.
89578         * doc/posix-functions/mq_receive.texi: Likewise.
89579         * doc/posix-functions/mq_send.texi: Likewise.
89580         * doc/posix-functions/mq_setattr.texi: Likewise.
89581         * doc/posix-functions/mq_timedreceive.texi: Likewise.
89582         * doc/posix-functions/mq_timedsend.texi: Likewise.
89583         * doc/posix-functions/mq_unlink.texi: Likewise.
89584         * doc/posix-functions/open_memstream.texi: Likewise.
89585         * doc/posix-functions/openat.texi: Likewise.
89586         * doc/posix-functions/posix_fadvise.texi: Likewise.
89587         * doc/posix-functions/posix_fallocate.texi: Likewise.
89588         * doc/posix-functions/posix_madvise.texi: Likewise.
89589         * doc/posix-functions/posix_memalign.texi: Likewise.
89590         * doc/posix-functions/posix_openpt.texi: Likewise.
89591         * doc/posix-functions/readlinkat.texi: Likewise.
89592         * doc/posix-functions/remque.texi: Likewise.
89593         * doc/posix-functions/renameat.texi: Likewise.
89594         * doc/posix-functions/rintl.texi: Likewise.
89595         * doc/posix-functions/sem_unlink.texi: Likewise.
89596         * doc/posix-functions/shm_open.texi: Likewise.
89597         * doc/posix-functions/shm_unlink.texi: Likewise.
89598         * doc/posix-functions/signgam.texi: Likewise.
89599         * doc/posix-functions/sigset.texi: Likewise.
89600         * doc/posix-functions/stpcpy.texi: Likewise.
89601         * doc/posix-functions/stpncpy.texi: Likewise.
89602         * doc/posix-functions/strerror.texi: Likewise.
89603         * doc/posix-functions/strtod.texi: Likewise.
89604         * doc/posix-functions/symlinkat.texi: Likewise.
89605         * doc/posix-functions/unlinkat.texi: Likewise.
89606         * doc/posix-functions/utimensat.texi: Likewise.
89607         * doc/glibc-functions/bindresvport.texi: Likewise.
89608         * doc/glibc-functions/dn_expand.texi: Likewise.
89609         * doc/glibc-functions/exp10.texi: Likewise.
89610         * doc/glibc-functions/exp10f.texi: Likewise.
89611         * doc/glibc-functions/fgetxattr.texi: Likewise.
89612         * doc/glibc-functions/flistxattr.texi: Likewise.
89613         * doc/glibc-functions/fopencookie.texi: Likewise.
89614         * doc/glibc-functions/freeifaddrs.texi: Likewise.
89615         * doc/glibc-functions/fremovexattr.texi: Likewise.
89616         * doc/glibc-functions/fsetxattr.texi: Likewise.
89617         * doc/glibc-functions/getifaddrs.texi: Likewise.
89618         * doc/glibc-functions/getxattr.texi: Likewise.
89619         * doc/glibc-functions/lgetxattr.texi: Likewise.
89620         * doc/glibc-functions/listxattr.texi: Likewise.
89621         * doc/glibc-functions/llistxattr.texi: Likewise.
89622         * doc/glibc-functions/lremovexattr.texi: Likewise.
89623         * doc/glibc-functions/lsetxattr.texi: Likewise.
89624         * doc/glibc-functions/pow10.texi: Likewise.
89625         * doc/glibc-functions/pow10f.texi: Likewise.
89626         * doc/glibc-functions/rcmd_af.texi: Likewise.
89627         * doc/glibc-functions/removexattr.texi: Likewise.
89628         * doc/glibc-functions/res_init.texi: Likewise.
89629         * doc/glibc-functions/res_mkquery.texi: Likewise.
89630         * doc/glibc-functions/res_query.texi: Likewise.
89631         * doc/glibc-functions/res_querydomain.texi: Likewise.
89632         * doc/glibc-functions/res_send.texi: Likewise.
89633         * doc/glibc-functions/rresvport_af.texi: Likewise.
89634         * doc/glibc-functions/setxattr.texi: Likewise.
89635         * doc/glibc-functions/strcasestr.texi: Likewise.
89637 2008-12-15  Bruno Haible  <bruno@clisp.org>
89639         Fix compilation error on OSF/1 4.0.
89640         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
89641         <sys/time.h>, simply delegate to the system header.
89642         Reported by Daniel Richard G. <oss@teragram.com>.
89644 2008-12-15  Bruno Haible  <bruno@clisp.org>
89646         * doc/posix-functions/openat.texi: Mention the 'openat' module.
89647         * doc/posix-functions/fchmodat.texi: Likewise.
89648         * doc/posix-functions/fchownat.texi: Likewise.
89649         * doc/posix-functions/fdopendir.texi: Likewise.
89650         * doc/posix-functions/fstatat.texi: Likewise.
89651         * doc/posix-functions/mkdirat.texi: Likewise.
89652         * doc/posix-functions/unlinkat.texi: Likewise.
89654 2008-12-14  Bruno Haible  <bruno@clisp.org>
89656         Update doc for POSIX:2008.
89657         * doc/posix-functions/faccessat.texi: New file.
89658         * doc/posix-functions/fchmodat.texi: New file.
89659         * doc/posix-functions/fchownat.texi: New file.
89660         * doc/posix-functions/fdopendir.texi: New file.
89661         * doc/posix-functions/fstatat.texi: New file.
89662         * doc/posix-functions/futimens.texi: New file.
89663         * doc/posix-functions/linkat.texi: New file.
89664         * doc/posix-functions/mkdirat.texi: New file.
89665         * doc/posix-functions/mkfifoat.texi: New file.
89666         * doc/posix-functions/mknodat.texi: New file.
89667         * doc/posix-functions/open_wmemstream.texi: New file.
89668         * doc/posix-functions/openat.texi: New file.
89669         * doc/posix-functions/psiginfo.texi: New file.
89670         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
89671         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
89672         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
89673         * doc/posix-functions/readlinkat.texi: New file.
89674         * doc/posix-functions/renameat.texi: New file.
89675         * doc/posix-functions/strerror_l.texi: New file.
89676         * doc/posix-functions/symlinkat.texi: New file.
89677         * doc/posix-functions/unlinkat.texi: New file.
89678         * doc/posix-functions/utimensat.texi: New file.
89679         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89681 2008-12-14  Bruno Haible  <bruno@clisp.org>
89683         Update doc for POSIX:2008.
89684         * doc/posix-functions/alphasort.texi: Renamed from
89685         doc/glibc-functions/alphasort.texi.
89686         * doc/posix-functions/dirfd.texi: Renamed from
89687         doc/glibc-functions/dirfd.texi.
89688         * doc/posix-functions/dprintf.texi: Renamed from
89689         doc/glibc-functions/dprintf.texi.
89690         * doc/posix-functions/duplocale.texi: Renamed from
89691         doc/glibc-functions/duplocale.texi.
89692         * doc/posix-functions/fexecve.texi: Renamed from
89693         doc/glibc-functions/fexecve.texi.
89694         * doc/posix-functions/fmemopen.texi: Renamed from
89695         doc/glibc-functions/fmemopen.texi.
89696         * doc/posix-functions/freelocale.texi: Renamed from
89697         doc/glibc-functions/freelocale.texi.
89698         * doc/posix-functions/getdate_err.texi: Renamed from
89699         doc/glibc-functions/getdate_err.texi.
89700         * doc/posix-functions/isalnum_l.texi: Renamed from
89701         doc/glibc-functions/isalnum_l.texi.
89702         * doc/posix-functions/isalpha_l.texi: Renamed from
89703         doc/glibc-functions/isalpha_l.texi.
89704         * doc/posix-functions/isblank_l.texi: Renamed from
89705         doc/glibc-functions/isblank_l.texi.
89706         * doc/posix-functions/iscntrl_l.texi: Renamed from
89707         doc/glibc-functions/iscntrl_l.texi.
89708         * doc/posix-functions/isdigit_l.texi: Renamed from
89709         doc/glibc-functions/isdigit_l.texi.
89710         * doc/posix-functions/isgraph_l.texi: Renamed from
89711         doc/glibc-functions/isgraph_l.texi.
89712         * doc/posix-functions/islower_l.texi: Renamed from
89713         doc/glibc-functions/islower_l.texi.
89714         * doc/posix-functions/isprint_l.texi: Renamed from
89715         doc/glibc-functions/isprint_l.texi.
89716         * doc/posix-functions/ispunct_l.texi: Renamed from
89717         doc/glibc-functions/ispunct_l.texi.
89718         * doc/posix-functions/isspace_l.texi: Renamed from
89719         doc/glibc-functions/isspace_l.texi.
89720         * doc/posix-functions/isupper_l.texi: Renamed from
89721         doc/glibc-functions/isupper_l.texi.
89722         * doc/posix-functions/iswalnum_l.texi: Renamed from
89723         doc/glibc-functions/iswalnum_l.texi.
89724         * doc/posix-functions/iswalpha_l.texi: Renamed from
89725         doc/glibc-functions/iswalpha_l.texi.
89726         * doc/posix-functions/iswblank_l.texi: Renamed from
89727         doc/glibc-functions/iswblank_l.texi.
89728         * doc/posix-functions/iswcntrl_l.texi: Renamed from
89729         doc/glibc-functions/iswcntrl_l.texi.
89730         * doc/posix-functions/iswctype_l.texi: Renamed from
89731         doc/glibc-functions/iswctype_l.texi.
89732         * doc/posix-functions/iswdigit_l.texi: Renamed from
89733         doc/glibc-functions/iswdigit_l.texi.
89734         * doc/posix-functions/iswgraph_l.texi: Renamed from
89735         doc/glibc-functions/iswgraph_l.texi.
89736         * doc/posix-functions/iswlower_l.texi: Renamed from
89737         doc/glibc-functions/iswlower_l.texi.
89738         * doc/posix-functions/iswprint_l.texi: Renamed from
89739         doc/glibc-functions/iswprint_l.texi.
89740         * doc/posix-functions/iswpunct_l.texi: Renamed from
89741         doc/glibc-functions/iswpunct_l.texi.
89742         * doc/posix-functions/iswspace_l.texi: Renamed from
89743         doc/glibc-functions/iswspace_l.texi.
89744         * doc/posix-functions/iswupper_l.texi: Renamed from
89745         doc/glibc-functions/iswupper_l.texi.
89746         * doc/posix-functions/iswxdigit_l.texi: Renamed from
89747         doc/glibc-functions/iswxdigit_l.texi.
89748         * doc/posix-functions/isxdigit_l.texi: Renamed from
89749         doc/glibc-functions/isxdigit_l.texi.
89750         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
89751         doc/glibc-functions/mbsnrtowcs.texi.
89752         * doc/posix-functions/mkdtemp.texi: Renamed from
89753         doc/glibc-functions/mkdtemp.texi.
89754         * doc/posix-functions/newlocale.texi: Renamed from
89755         doc/glibc-functions/newlocale.texi.
89756         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
89757         doc/glibc-functions/nl_langinfo_l.texi.
89758         * doc/posix-functions/open_memstream.texi: Renamed from
89759         doc/glibc-functions/open_memstream.texi.
89760         * doc/posix-functions/opterr.texi: Renamed from
89761         doc/glibc-functions/opterr.texi.
89762         * doc/posix-functions/optind.texi: Renamed from
89763         doc/glibc-functions/optind.texi.
89764         * doc/posix-functions/optopt.texi: Renamed from
89765         doc/glibc-functions/optopt.texi.
89766         * doc/posix-functions/psignal.texi: Renamed from
89767         doc/glibc-functions/psignal.texi.
89768         * doc/posix-functions/scandir.texi: Renamed from
89769         doc/glibc-functions/scandir.texi.
89770         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
89771         doc/glibc-functions/sched_get_priority_min.texi.
89772         * doc/posix-functions/signgam.texi: Renamed from
89773         doc/glibc-functions/signgam.texi.
89774         * doc/posix-functions/stpcpy.texi: Renamed from
89775         doc/glibc-functions/stpcpy.texi.
89776         * doc/posix-functions/stpncpy.texi: Renamed from
89777         doc/glibc-functions/stpncpy.texi.
89778         * doc/posix-functions/strcasecmp_l.texi: Renamed from
89779         doc/glibc-functions/strcasecmp_l.texi.
89780         * doc/posix-functions/strcoll_l.texi: Renamed from
89781         doc/glibc-functions/strcoll_l.texi.
89782         * doc/posix-functions/strfmon_l.texi: Renamed from
89783         doc/glibc-functions/strfmon_l.texi.
89784         * doc/posix-functions/strftime_l.texi: Renamed from
89785         doc/glibc-functions/strftime_l.texi.
89786         * doc/posix-functions/strncasecmp_l.texi: Renamed from
89787         doc/glibc-functions/strncasecmp_l.texi.
89788         * doc/posix-functions/strndup.texi: Renamed from
89789         doc/glibc-functions/strndup.texi.
89790         * doc/posix-functions/strnlen.texi: Renamed from
89791         doc/glibc-functions/strnlen.texi.
89792         * doc/posix-functions/strsignal.texi: Renamed from
89793         doc/glibc-functions/strsignal.texi.
89794         * doc/posix-functions/strxfrm_l.texi: Renamed from
89795         doc/glibc-functions/strxfrm_l.texi.
89796         * doc/posix-functions/timer_gettime.texi: Renamed from
89797         doc/glibc-functions/timer_gettime.texi.
89798         * doc/posix-functions/tolower_l.texi: Renamed from
89799         doc/glibc-functions/tolower_l.texi.
89800         * doc/posix-functions/toupper_l.texi: Renamed from
89801         doc/glibc-functions/toupper_l.texi.
89802         * doc/posix-functions/towctrans_l.texi: Renamed from
89803         doc/glibc-functions/towctrans_l.texi.
89804         * doc/posix-functions/towlower_l.texi: Renamed from
89805         doc/glibc-functions/towlower_l.texi.
89806         * doc/posix-functions/towupper_l.texi: Renamed from
89807         doc/glibc-functions/towupper_l.texi.
89808         * doc/posix-functions/uselocale.texi: Renamed from
89809         doc/glibc-functions/uselocale.texi.
89810         * doc/posix-functions/vdprintf.texi: Renamed from
89811         doc/glibc-functions/vdprintf.texi.
89812         * doc/posix-functions/wcpcpy.texi:
89813         Renamed from doc/glibc-functions/wcpcpy.texi.
89814         * doc/posix-functions/wcpncpy.texi: Renamed from
89815         doc/glibc-functions/wcpncpy.texi.
89816         * doc/posix-functions/wcscasecmp.texi: Renamed from
89817         doc/glibc-functions/wcscasecmp.texi.
89818         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
89819         doc/glibc-functions/wcscasecmp_l.texi.
89820         * doc/posix-functions/wcscoll_l.texi: Renamed from
89821         doc/glibc-functions/wcscoll_l.texi.
89822         * doc/posix-functions/wcsdup.texi: Renamed from
89823         doc/glibc-functions/wcsdup.texi.
89824         * doc/posix-functions/wcsncasecmp.texi: Renamed from
89825         doc/glibc-functions/wcsncasecmp.texi.
89826         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
89827         doc/glibc-functions/wcsncasecmp_l.texi.
89828         * doc/posix-functions/wcsnlen.texi: Renamed from
89829         doc/glibc-functions/wcsnlen.texi.
89830         * doc/posix-functions/wcsnrtombs.texi: Renamed from
89831         doc/glibc-functions/wcsnrtombs.texi.
89832         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
89833         doc/glibc-functions/wcsxfrm_l.texi.
89834         * doc/posix-functions/wctrans_l.texi: Renamed from
89835         doc/glibc-functions/wctrans_l.texi.
89836         * doc/posix-functions/wctype_l.texi: Renamed from
89837         doc/glibc-functions/wctype_l.texi.
89838         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89839         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
89840         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
89841         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
89842         these subsections.
89843         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
89844         Remove sections.
89846 2008-12-14  Bruno Haible  <bruno@clisp.org>
89848         Update doc for POSIX:2008.
89849         * doc/posix-functions/*.texi: Update URL of POSIX specification.
89851 2008-12-14  Bruno Haible  <bruno@clisp.org>
89853         Update doc for POSIX:2008.
89854         * doc/pastposix-functions/bcmp.texi: Renamed from
89855         doc/posix-functions/bcmp.texi.
89856         * doc/pastposix-functions/bcopy.texi: Renamed from
89857         doc/posix-functions/bcopy.texi.
89858         * doc/pastposix-functions/bsd_signal.texi: Renamed from
89859         doc/posix-functions/bsd_signal.texi.
89860         * doc/pastposix-functions/bzero.texi: Renamed from
89861         doc/posix-functions/bzero.texi.
89862         * doc/pastposix-functions/ecvt.texi: Renamed from
89863         doc/posix-functions/ecvt.texi.
89864         * doc/pastposix-functions/fcvt.texi: Renamed from
89865         doc/posix-functions/fcvt.texi.
89866         * doc/pastposix-functions/ftime.texi: Renamed from
89867         doc/posix-functions/ftime.texi.
89868         * doc/pastposix-functions/gcvt.texi: Renamed from
89869         doc/posix-functions/gcvt.texi.
89870         * doc/pastposix-functions/getcontext.texi: Renamed from
89871         doc/posix-functions/getcontext.texi.
89872         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
89873         doc/posix-functions/gethostbyaddr.texi.
89874         * doc/pastposix-functions/gethostbyname.texi: Renamed from
89875         doc/posix-functions/gethostbyname.texi.
89876         * doc/pastposix-functions/getwd.texi: Renamed from
89877         doc/posix-functions/getwd.texi.
89878         * doc/pastposix-functions/h_errno.texi: Renamed from
89879         doc/posix-functions/h_errno.texi.
89880         * doc/pastposix-functions/index.texi: Renamed from
89881         doc/posix-functions/index.texi.
89882         * doc/pastposix-functions/makecontext.texi: Renamed from
89883         doc/posix-functions/makecontext.texi.
89884         * doc/pastposix-functions/mktemp.texi: Renamed from
89885         doc/posix-functions/mktemp.texi.
89886         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
89887         doc/posix-functions/pthread_attr_getstackaddr.texi.
89888         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
89889         doc/posix-functions/pthread_attr_setstackaddr.texi.
89890         * doc/pastposix-functions/rindex.texi: Renamed from
89891         doc/posix-functions/rindex.texi.
89892         * doc/pastposix-functions/scalb.texi: Renamed from
89893         doc/posix-functions/scalb.texi.
89894         * doc/pastposix-functions/setcontext.texi: Renamed from
89895         doc/posix-functions/setcontext.texi.
89896         * doc/pastposix-functions/swapcontext.texi: Renamed from
89897         doc/posix-functions/swapcontext.texi.
89898         * doc/pastposix-functions/ualarm.texi: Renamed from
89899         doc/posix-functions/ualarm.texi.
89900         * doc/pastposix-functions/usleep.texi: Renamed from
89901         doc/posix-functions/usleep.texi.
89902         * doc/pastposix-functions/vfork.texi: Renamed from
89903         doc/posix-functions/vfork.texi.
89904         * doc/pastposix-functions/wcswcs.texi: Renamed from
89905         doc/posix-functions/wcswcs.texi.
89906         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
89907         (Function Substitutes): Update.
89909 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89911         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
89912         m4/strerror.m4.
89914 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89915             Bruno Haible  <bruno@clisp.org>
89917         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
89919 2008-12-13  Bruno Haible  <bruno@clisp.org>
89921         * modules/strtoull (Depends-on): Remove unistd.
89923 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89925         * modules/strtoull (Depends-on): Add stdlib.
89927 2008-12-11  Simon Josefsson  <simon@josefsson.org>
89929         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
89931 2008-12-10  Jim Meyering  <meyering@redhat.com>
89933         gl_ASSERT: don't say assertions are disabled when they're not
89934         * m4/assert.m4 (gl_ASSERT): Do not make configure report
89935         "checking whether to enable assertions... no", when they are in
89936         fact enabled.  This is solely a bug in the output of configure.
89937         In spite of saying "no", NDEBUG was not defined in that case.
89938         Also, as noted by Eric Blake, leave assertions enabled upon
89939         --enable-assert=INVALID.
89941 2008-12-10  Bruno Haible  <bruno@clisp.org>
89943         Change MODULES.html to refer to POSIX:2008 where possible.
89944         * MODULES.html.sh (POSIX2008_URL): New variable.
89945         (posix_headers): Remove sys/timeb, ucontext.
89946         (posix2001_headers): New variable.
89947         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
89948         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
89949         index, makecontext, mktemp, pthread_attr_getstackaddr,
89950         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
89951         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
89952         (posix2001_functions): New variable.
89953         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
89954         otherwise.
89956 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89958         add missing include to parse-duration.c
89959         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
89960         * modules/parse-duration (Depends-on): Add xalloc.
89962         fix sed script reading maint.mk
89963         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
89964         (syntax-check-rules): Use it.
89966 2008-12-09  Bruno Haible  <bruno@clisp.org>
89968         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
89969         MacOS X 10.4/PowerPC.
89970         Reported by Simon Josefsson.
89972 2008-12-08  Jim Meyering  <meyering@redhat.com>
89974         work around mingw's lack of some S_IF definitions
89975         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
89976         Reported by Simon Josefsson.
89978 2008-12-08  Bruno Haible  <bruno@clisp.org>
89980         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
89981         applied to variables. Needed on MacOS X 10.4/PowerPC.
89982         Reported by Simon Josefsson.
89984 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
89985         and Eric Blake  <ebb9@byu.net>
89987         assert: honor --enable-assert
89988         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
89989         order to honor --enable-assert, rather than treating it as a
89990         synonym for --disable-assert.
89992 2008-12-08  Jim Meyering  <meyering@redhat.com>
89994         * lib/posixtm.c: Remove now-useless declaration of mktime.
89996         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
89998 2008-12-07  Bruno Haible  <bruno@clisp.org>
90000         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
90001         test_once): Mark functions as static.
90002         * tests/test-tls.c (test_tls): Likewise.
90004 2008-12-07  Bruno Haible  <bruno@clisp.org>
90006         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
90007         iconv_register_autodetect.
90009 2008-12-07  Jim Meyering  <meyering@redhat.com>
90011         posixtm.c: avoid a warning
90012         * lib/posixtm.c (posixtime): Don't initialize tm0.
90013         It's no longer needed to placate gcc4's -Wuninitialized,
90014         and the attempt to placate would elicit a new warning.
90016         unicodeio.c: mark unused parameters
90017         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
90018         (fallback_failure_callback): Likewise.
90020 2008-12-07  Bruno Haible  <bruno@clisp.org>
90022         * gnulib-tool (func_create_testdir): When building the tests
90023         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
90024         Reported by Simon Josefsson.
90026 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90028         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
90030 2008-12-06  Bruno Haible  <bruno@clisp.org>
90032         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
90033         Suggested by Eric Blake.
90035 2008-12-06  Bruno Haible  <bruno@clisp.org>
90037         Fix a c-stack test failure on MacOS X.
90038         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
90039         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
90040         handler for SIGBUS as well.
90041         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
90042         install a signal handler for SIGBUS as well.
90043         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
90045 2008-12-06  Bruno Haible  <bruno@clisp.org>
90047         Advocacy documentation.
90048         * doc/gnulib-intro.texi (Benefits): New section.
90049         * doc/gnulib.texi: Update.
90051 2008-12-06  Bruno Haible  <bruno@clisp.org>
90053         Document the 'manywarnings' module.
90054         * doc/manywarnings.texi: New file.
90055         * doc/gnulib.texi: Include it.
90057 2008-12-05  Eric Blake  <ebb9@byu.net>
90059         tests: silence some gcc warnings
90060         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
90061         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
90062         type mismatches.
90064 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90065             Bruno Haible  <bruno@clisp.org>
90067         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
90069 2008-11-29  Jim Meyering  <meyering@redhat.com>
90071         unicodeio.c: mark unused parameters
90072         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
90073         (fallback_failure_callback): Likewise.
90075         fts: fix a thinko
90076         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
90077         (set_stat_type): Return S_IF*-valued "type" directly.
90078         Prompted by James Youngman's spotting a related bug.
90079         Confirmed by further testing through find.
90081         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
90082         * lib/fts.c (D_TYPE): Define.
90083         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
90084         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
90085         (s_ifmt_shift_bits): New function.
90086         (set_stat_type): New function.
90087         (fts_build): When not calling fts_stat, call set_stat_type
90088         to propagate dirent.d_type info to fts_read caller.
90089         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
90090         fts_statp->st_mode type information may be valid.
90092 2008-11-28  Simon Josefsson  <simon@josefsson.org>
90094         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
90095         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
90096         <sds@gnu.org>.
90098 2008-11-20  Bruno Haible  <bruno@clisp.org>
90100         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
90101         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
90102         INCLUDE_NEXT.
90103         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
90104         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
90105         * modules/math (Makefile.am): Substitute
90106         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
90107         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90109 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
90110             Bruno Haible  <bruno@clisp.org>
90112         * lib/stdint.in.h: Define all type macros so that their expansion is
90113         a single typedef'ed token. Fixes a compilation failure in Boost which
90114         does "using ::int8_t;".
90116 2008-11-18  Simon Josefsson  <simon@josefsson.org>
90118         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
90119         gl_MANYWARN_ALL_GCC.
90120         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
90121         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
90122         * modules/manywarnings: New file.
90123         * MODULES.html.sh: Mention manywarnings module.
90125 2008-11-18  Bruno Haible  <bruno@clisp.org>
90127         * doc/gnulib-tool.texi (Unit tests): New section.
90129 2008-11-18  Simon Josefsson  <simon@josefsson.org>
90131         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
90132         paths like 'lib/po/foo.po'.
90134 2008-11-17  Simon Josefsson  <simon@josefsson.org>
90136         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
90137         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
90139 2008-11-17  Simon Josefsson  <simon@josefsson.org>
90141         * m4/warnings.m4: Use CPPFLAGS to really check whether the
90142         parameter works.
90144 2008-11-17  Simon Josefsson  <simon@josefsson.org>
90146         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
90148 2008-11-17  Bruce Korb  <bkorb@gnu.org>
90150         * modules/parse-duration-tests: New file.
90151         * tests/test-parse-duration.sh: New file.
90152         * tests/test-parse-duration.c: New file.
90154         New module 'parse-duration'.
90155         * lib/parse-duration.h: New file.
90156         * lib/parse-duration.c: New file.
90157         * modules/parse-duration: New file.
90159 2008-11-17  Bruno Haible  <bruno@clisp.org>
90161         * tests/test-select-out.sh: Comment out the first pipe test.
90162         Reported by Simon Josefsson.
90164 2008-11-17  Bruno Haible  <bruno@clisp.org>
90166         * modules/getaddrinfo (Depends-on): Add servent, hostent.
90167         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
90168         gl_HOSTENT.
90170 2008-11-17  Bruno Haible  <bruno@clisp.org>
90172         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
90173         -lnetwork and -lnet. Needed for Haiku and BeOS.
90175 2008-11-16  Bruno Haible  <bruno@clisp.org>
90177         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
90179 2008-11-16  Bruno Haible  <bruno@clisp.org>
90181         Avoid test failure on Haiku.
90182         * tests/test-fsync.c: Include <errno.h>.
90183         (main): Don't require that fsync (0) fails.
90185 2008-11-15  Bruno Haible  <bruno@clisp.org>
90187         New module 'hostent'.
90188         * modules/hostent: New file.
90189         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
90191 2008-11-15  Bruno Haible  <bruno@clisp.org>
90193         New module 'servent'.
90194         * modules/servent: New file.
90195         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
90197 2008-11-15  Bruno Haible  <bruno@clisp.org>
90199         Avoid generating same test program with two different rules.
90200         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
90201         test-frexp to test-frexp-nolibm.
90202         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
90203         test-frexpl to test-frexpl-nolibm.
90205 2008-11-15  Bruno Haible  <bruno@clisp.org>
90207         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
90208         $(FREXPL_LIBM).
90210 2008-11-15  Bruno Haible  <bruno@clisp.org>
90212         * lib/netdb.in.h: Activate the definitions also when the system's
90213         <netdb.h> has 'struct addrinfo'.
90214         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
90215         EAI_OVERFLOW or AI_NUMERICSERV.
90216         * doc/posix-headers/netdb.texi: Document the problem.
90218 2008-11-15  Bruno Haible  <bruno@clisp.org>
90220         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
90222         Make the 'sched' module work on platforms where <sched.h> exists but
90223         is incomplete (such as Haiku).
90224         * lib/sched.in.h; Include the system's <sched.h> if it exists.
90225         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
90226         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
90227         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
90228         HAVE_STRUCT_SCHED_PARAM.
90229         * modules/sched (Depends-on): Add include_next.
90230         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
90231         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
90232         * doc/posix-headers/sched.texi: Document the issue.
90234 2008-11-13  Jim Meyering  <meyering@redhat.com>
90236         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
90237         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
90238         test would fail due to the difference in the Report bugs to ...
90239         line.  The expected address is empty, "<>", while the actual
90240         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
90242 2008-11-12  Bruno Haible  <bruno@clisp.org>
90244         lstat: don't compile lstat.c on systems lacking lstat
90245         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
90246         which don't have lstat; this is handled by lib/sys_stat.in.h already.
90247         Reported by Daniel P. Berrange via Jim Meyering.
90249 2008-11-12  Jim Meyering  <meyering@redhat.com>
90251         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
90253 2008-11-12  Simon Josefsson  <simon@josefsson.org>
90255         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
90256         instead.
90258 2008-11-12  Bruno Haible  <bruno@clisp.org>
90260         * lib/unicodeio.c: Include unistr.h.
90261         (utf8_wctomb): Remove function.
90262         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
90264 2008-11-12  Simon Josefsson  <simon@josefsson.org>
90266         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
90267         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
90268         <bruno@clisp.org>.
90269         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
90271 2008-11-12  Simon Josefsson  <simon@josefsson.org>
90273         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
90274         * doc/gnulib.texi: Add section for warnings.
90276 2008-11-11  Bruno Haible  <bruno@clisp.org>
90278         * lib/sockets.h: Add a comment.
90280 2008-11-11  Karl Berry  <karl@gnu.org>
90282         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
90284 2008-11-11  Eric Blake  <ebb9@byu.net>
90286         fdl.texi: avoid git symlinks
90287         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
90289 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90291         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
90293 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90295         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
90296         (gl_WARN_ADD): Substitute $2 if literal.
90298 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90300         * m4/warning.m4: Remove.
90302 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90304         * m4/warnings.m4: Almost complete rewrite. :-)
90306 2008-11-10  Simon Josefsson  <simon@josefsson.org>
90308         * modules/warnings: New module.
90309         * m4/warnings.m4: New file.
90310         * MODULES.html.sh: Mention warnings module.
90311         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
90312         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90314 2008-11-10  Eric Blake  <ebb9@byu.net>
90316         fdl.texi: make a symlink to the latest version
90317         * doc/standards.texi: Revert today's earlier change.
90318         * doc/fdl-1.2.texi: Rename from old fdl.texi...
90319         * doc/fdl.texi: ...and replace this with a symlink to the newer
90320         fdl-1.3.texi.
90322 2008-11-10  Bruno Haible  <bruno@clisp.org>
90324         * tests/test-select-fd.c (main): Accept the result file name as fourth
90325         argument.
90326         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
90327         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
90329 2008-11-10  Bruno Haible  <bruno@clisp.org>
90331         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
90332         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
90333         as autoconf-substituted macros.
90334         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
90335         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
90336         gl_NETDB_H_DEFAULTS. Set these variables.
90337         * modules/netdb (Makefile.am): Substitute these variables.
90339 2008-11-10  Eric Blake  <ebb9@byu.net>
90341         standards.texi: include correct file for FDL 1.3
90342         * doc/standards.texi (GNU Free Documentation License): Change
90343         include file to pull in FDL 1.3, not 1.2.
90345         fdl.texi: revert accidental change to license
90346         * doc/fdl.texi: This is FDL 1.2, not 1.3.
90348 2008-11-10  Bruno Haible  <bruno@clisp.org>
90350         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
90351         cross-compiling guesses also when the native compile gives no result.
90353 2008-11-10  Bruno Haible  <bruno@clisp.org>
90355         * lib/spawni.c (__spawni): Force variable into the stack.
90357 2008-11-10  Bruno Haible  <bruno@clisp.org>
90359         Add support for Haiku.
90360         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
90361         glibc and BeOS, but also on Haiku.
90362         * lib/fpurge.c (fpurge): Likewise.
90363         * lib/freadable.c (freadable): Likewise.
90364         * lib/freadahead.c (freadahead): Likewise.
90365         * lib/freading.c (freading): Likewise.
90366         * lib/freadptr.c (freadptr): Likewise.
90367         * lib/freadseek.c (freadptrinc): Likewise.
90368         * lib/fseeko.c (rpl_fseeko): Likewise.
90369         * lib/fseterr.c (fseterr): Likewise.
90370         * lib/fwritable.c (fwritable): Likewise.
90371         * lib/fwriting.c (fwriting): Likewise.
90372         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
90374 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
90376         * lib/config.charset: Treat Haiku like BeOS.
90378 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
90380         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
90381         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
90383 2008-11-08  Bruno Haible  <bruno@clisp.org>
90385         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
90386         AC_CACHE_CHECK.
90388 2008-11-08  Bruno Haible  <bruno@clisp.org>
90390         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
90392 2008-11-08  Bruno Haible  <bruno@clisp.org>
90394         * tests/test-select-fd.c: New file.
90395         * tests/test-select-in.sh: New file.
90396         * tests/test-select-out.sh: New file.
90397         * tests/test-select-stdin.c: New file.
90398         * modules/select-tests (Files): Add the new files.
90399         (Depends-on): Add gettimeofday.
90400         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
90401         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
90402         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
90404 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
90405             Bruno Haible  <bruno@clisp.org>
90407         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
90409 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
90411         * build-aux/pmccabe2html: Added support for C++ source files.
90413 2008-11-05  Ben Pfaff  <blp@gnu.org>
90415         Fix lib/close.c build on Windows.
90416         * modules/close (Files): Add lib/w32sock.h.
90418 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
90420         Accept Bison's NEWS format.
90421         * build-aux/announce-gen (print_news_deltas): Tweak
90422         $re_prefix.
90424 2008-11-04  Bruno Haible  <bruno@clisp.org>
90426         * modules/random_r (Maintainer): Add glibc.
90428 2008-11-04  Simon Josefsson  <simon@josefsson.org>
90430         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
90431         by karl@freefriends.org (Karl Berry).
90432         * doc/alloca.texi: Likewise.
90433         * doc/c-ctype.texi: Likewise.
90434         * doc/c-strcase.texi: Likewise.
90435         * doc/c-strcaseeq.texi: Likewise.
90436         * doc/c-strcasestr.texi: Likewise.
90437         * doc/c-strstr.texi: Likewise.
90438         * doc/c-strtod.texi: Likewise.
90439         * doc/c-strtold.texi: Likewise.
90440         * doc/ctime.texi: Likewise.
90441         * doc/error.texi: Likewise.
90442         * doc/fdl.texi: Likewise.
90443         * doc/gcd.texi: Likewise.
90444         * doc/getdate.texi: Likewise.
90445         * doc/gnulib-intro.texi: Likewise.
90446         * doc/gnulib-tool.texi: Likewise.
90447         * doc/gnulib.texi: Likewise.
90448         * doc/inet_ntoa.texi: Likewise.
90449         * doc/maintain.texi: Likewise.
90450         * doc/make-stds.texi: Likewise.
90451         * doc/quote.texi: Likewise.
90452         * doc/regexprops-generic.texi: Likewise.
90453         * doc/standards.texi: Likewise.
90454         * doc/verify.texi: Likewise.
90455         * doc/visibility.texi: Likewise.
90456         * doc/gnulib.texi (GNU Free Documentation License): Include
90457         fdl-1.3.texi instead of fdl.texi.
90459 2008-11-04  Simon Josefsson  <simon@josefsson.org>
90461         * doc/fdl-1.3.texi: New file, from
90462         <http://www.gnu.org/licenses/fdl-1.3.texi>.
90463         * modules/fdl-1.3: Add.
90464         * MODULES.html.sh: Add fdl-1.3.
90466 2008-11-03  Bruno Haible  <bruno@clisp.org>
90468         Make determination of absolute name of header file work with AIX xlc.
90469         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
90470         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
90471         preprocessing.
90472         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
90473         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
90475 2008-11-03  Simon Josefsson  <simon@josefsson.org>
90477         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
90478         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
90479         <ludo@gnu.org>.
90481 2008-11-02  Bruno Haible  <bruno@clisp.org>
90483         Mark 'strpbrk' obsolete.
90484         * modules/strpbrk (Status, Notice): New sections.
90485         * modules/strtok_r (Depends-on): Add strpbrk.
90487 2008-11-02  Bruno Haible  <bruno@clisp.org>
90489         Mark 'strdup' obsolete.
90490         * modules/strdup (Status, Notice): New sections.
90491         * modules/findprog (Depends-on): Add strdup.
90492         * modules/getaddrinfo (Depends-on): Likewise.
90493         * modules/localename (Depends-on): Likewise.
90494         * modules/relocatable-lib (Depends-on): Likewise.
90495         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
90496         * modules/relocatable-prog (Depends-on): Likewise.
90497         * modules/trim (Depends-on): Likewise.
90498         * modules/unictype/gen-ctype (Depends-on): Likewise.
90499         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90501 2008-11-02  Bruno Haible  <bruno@clisp.org>
90503         Mark 'strcspn' obsolete.
90504         * modules/strcspn (Status, Notice): New sections.
90506 2008-11-02  Bruno Haible  <bruno@clisp.org>
90508         Mark 'rmdir' obsolete.
90509         * modules/rmdir (Status, Notice): New sections.
90510         * modules/clean-temp (Depends-on): Add rmdir.
90511         * modules/openat (Depends-on): Likewise.
90513 2008-11-02  Bruno Haible  <bruno@clisp.org>
90515         Mark 'raise' obsolete.
90516         * modules/raise (Status, Notice): New sections.
90517         (Include): Specify <signal.h>.
90518         * modules/stdio (Depends-on): Add raise.
90519         * modules/write (Depends-on): Likewise.
90521 2008-11-02  Bruno Haible  <bruno@clisp.org>
90523         Mark 'memset' obsolete.
90524         * modules/memset (Status, Notice): New sections.
90526 2008-11-02  Bruno Haible  <bruno@clisp.org>
90528         Mark 'memmove' obsolete.
90529         * modules/memmove (Status, Notice): New sections.
90530         * modules/argp (Depends-on): Add memmove.
90531         * modules/argz (Depends-on): Likewise.
90532         * modules/canonicalize (Depends-on): Likewise.
90533         * modules/canonicalize-lgpl (Depends-on): Likewise.
90534         * modules/fts (Depends-on): Likewise.
90535         * modules/getcwd (Depends-on): Likewise.
90536         * modules/human (Depends-on): Likewise.
90537         * modules/regex (Depends-on): Likewise.
90538         * modules/striconveh (Depends-on): Likewise.
90539         * modules/trim (Depends-on): Likewise.
90540         * modules/unistr/u8-move (Depends-on): Likewise.
90541         * modules/unistr/u16-move (Depends-on): Likewise.
90542         * modules/unistr/u32-move (Depends-on): Likewise.
90544 2008-11-02  Bruno Haible  <bruno@clisp.org>
90546         Mark 'memcpy' obsolete.
90547         * modules/memcpy (Status, Notice): New sections.
90549 2008-11-02  Bruno Haible  <bruno@clisp.org>
90551         Mark 'memcmp' obsolete.
90552         * modules/memcmp (Status, Notice): New sections.
90553         * modules/argmatch (Depends-on): Add memchr.
90554         * modules/backupfile (Depends-on): Likewise.
90555         * modules/c-strcasestr (Depends-on): Likewise.
90556         * modules/crypto/des (Depends-on): Likewise.
90557         * modules/csharpcomp (Depends-on): Likewise.
90558         * modules/fnmatch (Depends-on): Likewise.
90559         * modules/git-merge-changelog (Depends-on): Likewise.
90560         * modules/isnand (Depends-on): Likewise.
90561         * modules/isnand-nolibm (Depends-on): Likewise.
90562         * modules/isnanf (Depends-on): Likewise.
90563         * modules/isnanf-nolibm (Depends-on): Likewise.
90564         * modules/isnanl (Depends-on): Likewise.
90565         * modules/isnanl-nolibm (Depends-on): Likewise.
90566         * modules/mbchar (Depends-on): Likewise.
90567         * modules/memcoll (Depends-on): Likewise.
90568         * modules/quotearg (Depends-on): Likewise.
90569         * modules/regex (Depends-on): Likewise.
90570         * modules/relocatable-prog (Depends-on): Likewise.
90571         * modules/same (Depends-on): Likewise.
90572         * modules/signbit (Depends-on): Likewise.
90573         * modules/strcasestr-simple (Depends-on): Likewise.
90574         * modules/unictype/gen-ctype (Depends-on): Likewise.
90575         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90576         * modules/uniname/uniname (Depends-on): Likewise.
90577         * modules/unistr/u8-cmp (Depends-on): Likewise.
90579 2008-11-02  Bruno Haible  <bruno@clisp.org>
90581         Mark 'memchr' obsolete.
90582         * modules/memchr (Status, Notice): New sections.
90583         * modules/argp (Depends-on): Add memchr.
90584         * modules/base64 (Depends-on): Likewise.
90585         * modules/c-strcasestr (Depends-on): Likewise.
90586         * modules/chdir-long (Depends-on): Likewise.
90587         * modules/fnmatch (Depends-on): Likewise.
90588         * modules/getsubopt (Depends-on): Likewise.
90589         * modules/git-merge-changelog (Depends-on): Likewise.
90590         * modules/glob (Depends-on): Likewise.
90591         * modules/strcasestr-simple (Depends-on): Likewise.
90592         * modules/strnlen (Depends-on): Likewise.
90594 2008-11-02  Bruno Haible  <bruno@clisp.org>
90596         Mark 'atexit' obsolete.
90597         * modules/atexit (Status, Notice): New sections.
90598         * modules/chdir-long (Depends-on): Add atexit.
90599         * modules/wait-process (Depends-on): Likewise.
90601 2008-11-02  Bruno Haible  <bruno@clisp.org>
90603         * gnulib-tool: New option --with-obsolete.
90604         (func_usage): Document it.
90605         (func_modules_transitive_closure): Drop obsolete dependencies if
90606         incobsolete is not true.
90607         (func_import): Read and save the incobsolete variable to the cache.
90609 2008-11-02  Bruno Haible  <bruno@clisp.org>
90611         * modules/TEMPLATE-EXTENDED: New field 'Status'.
90612         * gnulib-tool: New option --extract-status.
90613         (func_usage): Document it.
90614         (sed_extract_prog): Recognize it.
90615         (func_get_status): New function.
90617 2008-10-30  Simon Josefsson  <simon@josefsson.org>
90619         * modules/sockets (License): Change from LGPL to LGPLv2+.
90621 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90623         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
90625 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90627         * MODULES.html.sh (Support for systems lacking POSIX:2001):
90628         Mention times and sys_times.
90629         * modules/sys_times, modules/sys_times-tests: New modules.
90630         * modules/times, modules/times-tests: Likewise
90631         * m4/sys_times_h.m4: New file.
90632         * lib/sys_times.in.h: Likewise
90633         * lib/times.c: Likewise.
90634         * tests/test-sys_times.c: Likewise.
90635         * tests/test-times.c: Likewise.
90636         * doc/posix-headers/sys_times.texi: Update.
90637         * doc/posix-functions/times.texi: Update.
90639 2008-10-28  Jim Meyering  <meyering@redhat.com>
90641         * modules/tempname (Depends-on): Add lstat.
90643         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
90645 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90647         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
90648         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
90649         using idiom used elsewhere in gnulib.
90651 2008-10-27  Jim Meyering  <meyering@redhat.com>
90653         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
90655 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90657         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
90658         TESTS_ENVIRONMENT, for shell scripts that needs to call built
90659         programs.
90660         * tests/test-argp-2.sh: Use $EXEEXT when needed.
90662 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90664         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
90666 2008-10-27  Bruno Haible  <bruno@clisp.org>
90668         * tests/test-lstat.c: Include <stdio.h>.
90670 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90672         * modules/lstat-tests: New module.
90673         * tests/test-lstat.c: New file.
90675 2008-10-26  Jim Meyering  <meyering@redhat.com>
90677         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
90679 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90680             Bruno Haible  <bruno@clisp.org>
90682         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
90683         * modules/configmake (Include): Add a note that the include must come
90684         after all system headers.
90685         * lib/javaversion.c: Include configmake.h after all other includes.
90687 2008-10-26  Bruno Haible  <bruno@clisp.org>
90689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
90690         HAVE_STRUCT_RANDOM_DATA to 1.
90691         (gl_STDLIB_H): Simplify.
90693 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90695         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
90696         substitute HAVE_STRUCT_RANDOM_DATA.
90697         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
90698         random_data.
90699         * modules/stdlib (Makefile.am): Substitute
90700         HAVE_STRUCT_RANDOM_DATA.
90702 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90704         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
90705         * doc/gnulib-intro.texi (Copyright): Likewise.
90707 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90709         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
90710         findings.
90712 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
90713             Bruno Haible  <bruno@clisp.org>
90715         * lib/unistd.in.h: Include <winsock2.h>.
90716         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
90717         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
90718         Provide dummy declarations.
90719         (gethostname): Override.
90720         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
90721         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
90722         gl_PREREQ_SYS_H_WINSOCK2.
90723         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
90724         * doc/posix-functions/gethostname.texi: More details.
90726 2008-10-25  Bruno Haible  <bruno@clisp.org>
90728         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90729         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
90730         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
90732         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
90733         here ...
90734         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
90735         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
90736         gl_UNISTD_H_DEFAULTS.
90738 2008-10-25  Eric Blake  <ebb9@byu.net>
90740         signbit: avoid spurious compiler failure
90741         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
90742         declarations inside function.
90744 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90745             Bruno Haible  <bruno@clisp.org>
90747         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
90748         * modules/random_r (Depends-on): Add stdint.
90750 2008-10-24  Bruno Haible  <bruno@clisp.org>
90752         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
90753         Eggert.
90754         * modules/strerror (License): Likewise.
90756 2008-10-24  Jim Meyering  <meyering@redhat.com>
90758         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
90759         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
90761 2008-10-24  Eric Blake  <ebb9@byu.net>
90763         getgroups: fix compilation when getgroups is available
90764         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
90765         but with <config.h> override of getgroups disabled.
90767 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90769         * doc/gnulib.texi (Header files): Add note about C++ problems.
90770         Explained by Bruno Haible <bruno@clisp.org>.
90772 2008-10-23  Bruno Haible  <bruno@clisp.org>
90774         Define a dummy SA_NODEFER macro on Interix.
90775         * lib/signal.in.h (SA_NODEFER): Define fallback.
90776         Reported by Aleksey Cheusov <cheusov@tut.by> via
90777         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
90779 2008-10-23  Bruno Haible  <bruno@clisp.org>
90781         * modules/freadahead (License): Change to LGPLv2+.
90782         Suggested by Simon Josefsson.
90784 2008-10-23  Jim Meyering  <meyering@redhat.com>
90786         random_r: new module
90787         * modules/random_r: New file.
90788         * m4/random_r.m4: New file.
90789         * lib/random_r.c: New file, from glibc.
90790         * modules/random_r-tests: New file.
90791         * tests/test-random_r.c: New file.
90792         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
90793          Declare.
90794         (RAND_MAX): Define.
90795         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
90796         * modules/stdlib: Substitute them, too.
90797         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
90798         * doc/glibc-functions/initstate_r.texi: Mention the new module.
90799         * doc/glibc-functions/random_r.texi: Likewise.
90800         * doc/glibc-functions/setstate_r.texi: Likewise.
90801         * doc/glibc-functions/srandom_r.texi: Likewise.
90802         * config/srclist.txt: Mention it.
90804 2008-10-23  David Lutterkort  <lutter@redhat.com>
90806         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
90807         link requirement
90809 2008-10-23  Jim Meyering  <meyering@redhat.com>
90811         selinux-h: mark parameters of stub functions as intentionally unused
90812         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
90813         * lib/se-context.in.h: Likewise.
90815 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90817         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
90819 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90821         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
90823 2008-10-22  Eric Blake  <ebb9@byu.net>
90825         glthread/thread: avoid compiler warning
90826         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
90827         Add unreachable abort to silence compiler.
90829 2008-10-22  Eric Blake  <ebb9@byu.net>
90831         netdb: also supply struct addrinfo for cygwin 1.5.x
90832         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
90833         older cygwin.
90834         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
90835         cygwin.
90836         * doc/posix-headers/netdb.texi (netdb.h): Document this.
90838 2008-10-22  Bruno Haible  <bruno@clisp.org>
90840         * users.txt: Update entry about pspp.
90842 2008-10-21  Bruno Haible  <bruno@clisp.org>
90844         Simplification.
90845         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
90846         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
90848         Simplification.
90849         * lib/ioctl.c (ioctl): Don't undefine.
90850         * lib/socket.c (socket): Don't undefine.
90852         Remove unused module indicator macros.
90853         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
90854         GNULIB_$1 as a C macro.
90856         * doc/posix-functions/close.texi: Undo last change.
90857         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
90858         Windows platforms.
90860 2008-10-21  Bruno Haible  <bruno@clisp.org>
90862         Add gethostname() declaration to <unistd.h>.
90863         * lib/unistd.in.h (gethostname): New declaration.
90864         * lib/gethostname.c: Include <unistd.h>.
90865         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
90866         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
90867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
90868         and HAVE_GETHOSTNAME.
90869         * modules/gethostname (Depends-on): Add unistd.
90870         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90871         (Include): Specify <unistd.h>.
90872         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
90873         HAVE_GETHOSTNAME.
90874         * tests/test-gethostname.c: Include <unistd.h> first.
90876 2008-10-21  Bruno Haible  <bruno@clisp.org>
90878         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
90879         * modules/select-tests (Depends-on): Likewise.
90880         Reported by Simon Josefsson.
90882 2008-10-21  Simon Josefsson  <simon@josefsson.org>
90884         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
90885         * lib/accept.c: New file, based on winsock.c.
90886         * lib/bind.c: New file, based on winsock.c.
90887         * lib/connect.c: New file, based on winsock.c.
90888         * lib/getpeername.c: New file, based on winsock.c.
90889         * lib/getsockname.c: New file, based on winsock.c.
90890         * lib/getsockopt.c: New file, based on winsock.c.
90891         * lib/ioctl.c: New file, based on winsock.c.
90892         * lib/listen.c: New file, based on winsock.c.
90893         * lib/recv.c: New file, based on winsock.c.
90894         * lib/recvfrom.c: New file, based on winsock.c.
90895         * lib/send.c: New file, based on winsock.c.
90896         * lib/sendto.c: New file, based on winsock.c.
90897         * lib/setsockopt.c: New file, based on winsock.c.
90898         * lib/shutdown.c: New file, based on winsock.c.
90899         * lib/socket.c: New file, based on winsock.c.
90900         * lib/w32sock.h: New file, based on winsock.c.
90901         * lib/winsock.c: Remove file.
90902         * modules/accept: Likewise.
90903         * modules/bind: Likewise.
90904         * modules/connect: Likewise.
90905         * modules/getpeername: Likewise.
90906         * modules/getsockname: Likewise.
90907         * modules/getsockopt: Likewise.
90908         * modules/ioctl: Likewise.
90909         * modules/listen: Likewise.
90910         * modules/recv: Likewise.
90911         * modules/recvfrom: Likewise.
90912         * modules/send: Likewise.
90913         * modules/sendto: Likewise.
90914         * modules/setsockopt: Likewise.
90915         * modules/shutdown: Likewise.
90916         * modules/socket: Use socket.c instead of winsock.c.
90917         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
90918         * doc/posix-functions/accept.texi: Doc fix.
90919         * doc/posix-functions/bind.texi: Doc fix.
90920         * doc/posix-functions/close.texi: Doc fix.
90921         * doc/posix-functions/connect.texi: Doc fix.
90922         * doc/posix-functions/getpeername.texi: Doc fix.
90923         * doc/posix-functions/getsockname.texi: Doc fix.
90924         * doc/posix-functions/getsockopt.texi: Doc fix.
90925         * doc/posix-functions/ioctl.texi: Doc fix.
90926         * doc/posix-functions/listen.texi: Doc fix.
90927         * doc/posix-functions/recv.texi: Doc fix.
90928         * doc/posix-functions/recvfrom.texi: Doc fix.
90929         * doc/posix-functions/send.texi: Doc fix.
90930         * doc/posix-functions/sendto.texi: Doc fix.
90931         * doc/posix-functions/setsockopt.texi: Doc fix.
90932         * doc/posix-functions/shutdown.texi: Doc fix.
90933         * doc/posix-functions/socket.texi: Doc fix.
90935 2008-10-20  Bruno Haible  <bruno@clisp.org>
90937         Take into account the role of SIGABRT_COMPAT on Windows 2008.
90938         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
90939         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
90940         as an alias for SIGABRT.
90941         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
90942         (sigaction): Map it to SIGABRT.
90943         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
90945 2008-10-20  Bruno Haible  <bruno@clisp.org>
90947         * lib/fts.c: Don't include lstat.h.
90948         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
90950         Move the lstat() declaration to <sys/stat.h>.
90951         * lib/lstat.h: Remove file.
90952         * lib/sys_stat.in.h: Add special invocation convention.
90953         (lstat): New declaration.
90954         * lib/lstat.c (orig_lstat): New function.
90955         (rpl_lstat): Use orig_lstat instead of lstat.
90956         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
90957         AC_C_INLINE. Set REPLACE_LSTAT.
90958         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
90959         and REPLACE_LSTAT.
90960         * modules/lstat (Files): Remove lib/lstat.h.
90961         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90962         (Include): Specify <sys/stat.h> instead of lstat.h.
90963         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
90964         REPLACE_LSTAT.
90965         * NEWS: Mention the change.
90967 2008-10-20  Bruno Haible  <bruno@clisp.org>
90969         * modules/posix_spawn-tests: New file.
90970         * tests/test-posix_spawn3.c: New file.
90972 2008-10-20  Bruno Haible  <bruno@clisp.org>
90974         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
90975         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90976         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
90977         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90978         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
90980 2008-10-20  Bruno Haible  <bruno@clisp.org>
90982         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
90983         of posix_spawn on AIX 5.3.
90985 2008-10-20  Bruno Haible  <bruno@clisp.org>
90987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
90989 2008-10-20  Bruno Haible  <bruno@clisp.org>
90991         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
90992         of AC_LANG_PROGRAM.
90994 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90996         * lib/netdb.in.h: Don't define GNU specific constants until they
90997         are supported or needed.  Reported by Bruno Haible
90998         <bruno@clisp.org>.
91000 2008-10-20  Simon Josefsson  <simon@josefsson.org>
91002         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
91004 2008-10-20  Simon Josefsson  <simon@josefsson.org>
91006         * lib/getaddrinfo.h: Remove file.
91007         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
91008         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
91009         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
91010         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
91011         * modules/netdb: Substitute GNULIB_GETADDRINFO.
91012         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
91013         * tests/test-getaddrinfo.c: Likewise.
91014         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
91015         * NEWS: Mention change.
91017 2008-10-19  Bruno Haible  <bruno@clisp.org>
91019         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
91021 2008-10-19  Bruno Haible  <bruno@clisp.org>
91023         * lib/wait-process.c: Include simply <sys/wait.h>.
91024         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
91025         WIFSTOPPED): Remove fallback definitions.
91026         * modules/wait-process (Depends-on): Add sys_wait.
91028         New module 'sys_wait'.
91029         * modules/sys_wait: New file.
91030         * lib/sys_wait.in.h: New file, partially copied from
91031         lib/wait-process.c.
91032         * m4/sys_wait_h.m4: New file.
91033         * doc/posix-headers/sys_wait.texi: Mention the new module.
91035 2008-10-19  Bruno Haible  <bruno@clisp.org>
91037         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
91039 2008-10-19  Bruno Haible  <bruno@clisp.org>
91041         Assume that waitpid() fills an 'int' status, not a 'union wait'.
91042         * lib/wait-process.c (WAIT_T): Remove type.
91043         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
91044         (wait_subprocess): Update.
91046 2008-10-19  Bruno Haible  <bruno@clisp.org>
91048         New module 'atoll'.
91049         * modules/atoll: New file.
91050         * lib/stdlib.in.h (atoll): New declaration.
91051         * lib/atoll.c: New file, from glibc with modifications.
91052         * m4/atoll.m4: New file.
91053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
91054         HAVE_ATOLL.
91055         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
91056         * doc/posix-functions/atoll.texi: Mention the new module.
91058 2008-10-19  Bruno Haible  <bruno@clisp.org>
91060         Add strtoull() declaration to <stdlib.h>.
91061         * lib/stdlib.in.h (strtoull): New declaration.
91062         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
91063         Set HAVE_STRTOULL.
91064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
91065         HAVE_STRTOULL.
91066         * modules/strtoull (Depends-on): Add stdlib.
91067         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91068         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
91069         HAVE_STRTOULL.
91071 2008-10-19  Bruno Haible  <bruno@clisp.org>
91073         Add strtoll() declaration to <stdlib.h>.
91074         * lib/stdlib.in.h (strtoll): New declaration.
91075         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
91076         Set HAVE_STRTOLL.
91077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
91078         HAVE_STRTOLL.
91079         * modules/strtoll (Depends-on): Add stdlib.
91080         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91081         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
91083 2008-10-19  Bruno Haible  <bruno@clisp.org>
91085         * modules/bcopy (Depends-on): Add strings.
91086         (Include): Specify <strings.h>.
91088 2008-10-19  Bruno Haible  <bruno@clisp.org>
91090         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
91092 2008-10-19  Bruno Haible  <bruno@clisp.org>
91094         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
91095         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
91096         mingw.
91098 2008-10-19  Bruno Haible  <bruno@clisp.org>
91100         * lib/atanl.c: Don't include isnanl.h.
91101         * lib/cosl.c: Likewise.
91102         * lib/ldexpl.c: Likewise.
91103         * lib/logl.c: Likewise.
91104         * lib/sinl.c: Likewise.
91105         * lib/sqrtl.c: Likewise.
91106         * lib/tanl.c: Likewise.
91108         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
91109         * lib/isnanf.h: Remove file.
91110         * lib/isnand.h: Remove file.
91111         * lib/isnanl.h: Remove file.
91112         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
91113         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
91114         macros.
91115         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
91116         HAVE_ISNANF, don't define it as a C macro.
91117         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
91118         HAVE_ISNAND, don't define it as a C macro.
91119         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
91120         HAVE_ISNANL, don't define it as a C macro.
91121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
91122         HAVE_ISNAN[FDL].
91123         * modules/isnanf (Files): Remove lib/isnanf.h.
91124         (Depends-on): Add math.
91125         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
91126         (Include): Specify <math.h> instead of isnanf.h.
91127         * modules/isnand (Files): Remove lib/isnand.h.
91128         (Depends-on): Add math.
91129         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
91130         (Include): Specify <math.h> instead of isnand.h.
91131         * modules/isnanl (Files): Remove lib/isnanl.h.
91132         (Depends-on): Add math.
91133         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
91134         (Include): Specify <math.h> instead of isnanl.h.
91135         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
91136         HAVE_ISNAN[FDL].
91137         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
91138         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
91139         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
91140         * NEWS: Mention the change.
91142 2008-10-18  Bruno Haible  <bruno@clisp.org>
91144         Add getusershell(), setusershell(), endusershell() declarations to
91145         <unistd.h>.
91146         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
91147         declarations.
91148         * lib/getusershell.c: Include unistd.h.
91149         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
91150         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
91151         HAVE_GETUSERSHELL.
91152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
91153         and HAVE_GETUSERSHELL.
91154         * modules/getusershell (Depends-on): Add unistd, extensions.
91155         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91156         (Include): Specify <unistd.h>.
91157         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
91158         HAVE_GETUSERSHELL.
91160 2008-10-18  Bruno Haible  <bruno@clisp.org>
91162         Add a getloadavg() declaration to <stdlib.h>.
91163         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
91164         getloadavg declaration.
91165         (getloadavg): New declaration.
91166         * lib/getloadavg.c: Include <stdlib.h> first.
91167         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
91168         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
91169         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
91170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
91171         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
91172         * modules/getloadavg (Depends-on): Add stdlib, extensions.
91173         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91174         (Include): Specify <stdlib.h>.
91175         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
91176         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
91178 2008-10-18  Bruno Haible  <bruno@clisp.org>
91180         * lib/dirchownmod.c: Don't include lchmod.h.
91182         Move the lchmod() declaration to <sys/stat.h>.
91183         * lib/lchmod.h: Remove file.
91184         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
91185         (lchmod): New declaration, moved here from lib/lchown.h.
91186         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
91187         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
91188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
91189         and HAVE_LCHMOD.
91190         * modules/lchmod (Files): Remove lib/lchmod.h.
91191         (Depends-on): Add sys_stat, extensions.
91192         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
91193         (Include): Specify <sys/stat.h> instead of lchmod.h.
91194         * modules/sys_stat (Depends-on): Add link-warning.
91195         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
91196         definition of GL_LINK_WARNING.
91197         * NEWS: Mention the change.
91199 2008-10-18  Bruno Haible  <bruno@clisp.org>
91201         * lib/fchdir.c: Don't include dirfd.h.
91202         * lib/fts.c: Likewise.
91203         * lib/getcwd.c: Likewise.
91204         * lib/glob.c: Likewise.
91206         Move the dirfd() declaration to <dirent.h>.
91207         * lib/dirfd.h: Remove file.
91208         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
91209         (dirfd): New declaration.
91210         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
91211         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
91212         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
91213         HAVE_DECL_DIRFD.
91214         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
91215         HAVE_DECL_DIRFD.
91216         * modules/dirfd (Files): Remove lib/dirfd.h.
91217         (Depends-on): Add dirent, extensions.
91218         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
91219         (Include): Specify <dirent.h> instead of dirfd.h.
91220         * modules/dirent (Depends-on): Add link-warning.
91221         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
91222         definition of GL_LINK_WARNING.
91223         * NEWS: Mention the change.
91225 2008-10-18  Bruno Haible  <bruno@clisp.org>
91227         Move the euidaccess() declaration to <unistd.h>.
91228         * lib/euidaccess.h: Remove file.
91229         * lib/unistd.in.h (euidaccess): New declaration.
91230         * lib/euidaccess.c: Don't include euidaccess.h.
91231         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
91232         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
91233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
91234         and HAVE_EUIDACCESS.
91235         * modules/euidaccess (Files): Remove lib/euidaccess.h.
91236         (Depends-on): Add unistd.
91237         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91238         (Include): Specify <unistd.h> instead of euidaccess.h.
91239         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
91240         HAVE_EUIDACCESS.
91241         * NEWS: Mention the change.
91243 2008-10-18  Bruno Haible  <bruno@clisp.org>
91245         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
91247         Move the getdomainname() declaration to <unistd.h>.
91248         * lib/getdomainname.h: Remove file.
91249         * lib/unistd.in.h (getdomainname): New declaration.
91250         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
91251         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
91252         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
91253         HAVE_GETDOMAINNAME.
91254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91255         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
91256         * modules/getdomainname (Files): Remove lib/getdomainname.h.
91257         (Depends-on): Add unistd, extensions.
91258         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91259         (Includes): Specify <unistd.h> instead of getdomainname.h.
91260         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
91261         HAVE_GETDOMAINNAME.
91262         * NEWS: Mention the change.
91264 2008-10-18  Bruno Haible  <bruno@clisp.org>
91266         * modules/dirent: New file.
91267         * m4/dirent_h.m4: New file.
91268         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
91269         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
91270         * modules/fchdir (Files): Remove lib/dirent.in.h.
91271         (Depends-on): Add dirent.
91272         (Makefile.am): Move rules to modules/dirent.
91273         * doc/posix-headers/dirent.texi: Mention the new module.
91275 2008-10-18  Bruno Haible  <bruno@clisp.org>
91277         Avoid -Wunused-parameter warnings in public gnulib header files.
91278         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
91279         macro.
91280         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
91282 2008-10-18  Bruno Haible  <bruno@clisp.org>
91284         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
91285         * doc/glibc-functions/error.texi: Mention the module 'error'.
91286         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
91287         * doc/glibc-functions/getdomainname.texi: Mention the module
91288         'getdomainname'.
91289         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
91290         * doc/glibc-functions/getpagesize.texi: Mention the module
91291         'getpagesize'.
91292         * doc/glibc-functions/getusershell.texi: Mention the module
91293         'getusershell'.
91294         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
91295         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
91296         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
91297         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
91298         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
91299         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
91300         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
91301         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
91302         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
91303         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
91304         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
91305         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
91306         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
91307         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
91309 2008-10-17  Bruno Haible  <bruno@clisp.org>
91311         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
91312         HP-UX and IRIX, use -0.0L.
91313         * tests/test-ceill.c (minus_zero): Likewise.
91314         * tests/test-floorl.c (minus_zero): Likewise.
91315         * tests/test-frexpl.c (minus_zero): Likewise.
91316         * tests/test-isnan.c (minus_zerol): Likewise.
91317         * tests/test-isnanl.h (minus_zero): Likewise.
91318         * tests/test-ldexpl.c (minus_zero): Likewise.
91319         * tests/test-roundl.c (minus_zero): Likewise.
91320         * tests/test-signbit.c (minus_zerol): Likewise.
91321         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
91322         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
91323         * tests/test-truncl.c (minus_zero): Likewise.
91324         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
91325         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
91326         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
91327         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
91329 2008-10-17  Bruno Haible  <bruno@clisp.org>
91331         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
91332         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
91333         that it gets activated only for gcc >= 3.0.
91334         * lib/dirent.in.h: Likewise.
91335         * lib/errno.in.h: Likewise.
91336         * lib/fcntl.in.h: Likewise.
91337         * lib/float.in.h: Likewise.
91338         * lib/iconv.in.h: Likewise.
91339         * lib/inttypes.in.h: Likewise.
91340         * lib/locale.in.h: Likewise.
91341         * lib/math.in.h: Likewise.
91342         * lib/netdb.in.h: Likewise.
91343         * lib/netinet_in.in.h: Likewise.
91344         * lib/search.in.h: Likewise.
91345         * lib/signal.in.h: Likewise.
91346         * lib/spawn.in.h: Likewise.
91347         * lib/stdarg.in.h: Likewise.
91348         * lib/stdint.in.h: Likewise.
91349         * lib/stdio.in.h: Likewise.
91350         * lib/stdlib.in.h: Likewise.
91351         * lib/string.in.h: Likewise.
91352         * lib/strings.in.h: Likewise.
91353         * lib/sys_file.in.h: Likewise.
91354         * lib/sys_ioctl.in.h: Likewise.
91355         * lib/sys_select.in.h: Likewise.
91356         * lib/sys_socket.in.h: Likewise.
91357         * lib/sys_stat.in.h: Likewise.
91358         * lib/sys_time.in.h: Likewise.
91359         * lib/sysexits.in.h: Likewise.
91360         * lib/time.in.h: Likewise.
91361         * lib/unistd.in.h: Likewise.
91362         * lib/wchar.in.h: Likewise.
91363         * lib/wctype.in.h: Likewise.
91364         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91366 2008-10-17  Jim Meyering  <meyering@redhat.com>
91368         ignore-value: don't depend on inline module
91369         * modules/ignore-value (Depends-on): Remove 'inline'.
91370         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
91371         Suggestion from Bruno Haible.
91373 2008-10-17  Bruno Haible  <bruno@clisp.org>
91375         New implementation of condition variables for Win32.
91376         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
91377         (gl_linked_waitqueue_t): New type.
91378         (gl_cond_t): Use it.
91379         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
91380         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
91381         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
91382         (glthread_cond_init_func, glthread_cond_wait_func,
91383         glthread_cond_timedwait_func, glthread_cond_signal_func,
91384         glthread_cond_broadcast_func, glthread_cond_destroy_func):
91385         Reimplemented on the basis of gl_linked_waitqueue_t.
91386         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
91387         gl_waitqueue_t.
91388         (gl_rwlock_t): Update.
91389         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
91391 2008-10-17  Simon Josefsson  <simon@josefsson.org>
91393         * modules/recvfrom (Depends-on): Add dependency on getpeername.
91394         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91396 2008-10-17  Jim Meyering  <meyering@redhat.com>
91398         ignore-value: new module
91399         * modules/ignore-value: New file.
91400         * lib/ignore-value.h: New file.
91401         * MODULES.html.sh (Compiler warning management): New section,
91402         just for this module.  More to come.
91404 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91406         open-safer.c: avoid 'signed and unsigned in conditional...' warning
91407         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
91408         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
91410 2008-10-16  Jim Meyering  <meyering@redhat.com>
91412         openat-die.c: avoid 'no previous prototype' warning
91413         * lib/openat-die.c: Include "openat.h".
91414         Reported by Reuben Thomas <rrt@sc3d.org>.
91416 2008-10-16  Simon Josefsson  <simon@josefsson.org>
91418         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
91419         * lib/netdb.in.h: Fix typo.
91420         Reported by Bruno Haible  <bruno@clisp.org>
91422         * lib/netdb.in.h: Include sys/socket.h for platforms without
91423         netdb.h, to get structures like hostent on MinGW.
91424         * modules/netdb (Depends-on): Add sys_socket.
91426 2008-10-15  Simon Josefsson  <simon@josefsson.org>
91428         * modules/netdb, modules/netdb-tests: New file.
91429         * m4/netdb_h.m4: New file.
91430         * lib/netdb.in.h: Add, currently just an empty file pending
91431         definitions.
91432         * tests/test-netdb.c: New file.
91433         * doc/posix-headers/netdb.texi: Mention that we replace it if
91434         needed.
91435         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91436         netdb.
91438 2008-10-15  Simon Josefsson  <simon@josefsson.org>
91440         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
91441         with code.
91443 2008-10-13  Bruno Haible  <bruno@clisp.org>
91445         * lib/glthread/cond.c (glthread_cond_wait_func,
91446         glthread_cond_timedwait_func): Add a comment.
91448 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
91450         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
91451         * tests/test-select.c: Likewise,
91453 2008-10-13  Bruno Haible  <bruno@clisp.org>
91455         * lib/glthread/cond.c (glthread_cond_wait_func,
91456         glthread_cond_timedwait_func): Fix variable name.
91457         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91459 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
91461         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
91462         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
91463         struct sockaddr.sa_len.
91464         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
91466 2008-10-13  Simon Josefsson  <simon@josefsson.org>
91468         * build-aux/pmccabe2html: Add css and css_url parameters.
91470 2008-10-12  Bruno Haible  <bruno@clisp.org>
91472         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
91473         calling aclx_get.
91474         Reported by Rainer Tammer <tammer@tammer.net>.
91476 2008-10-12  Bruno Haible  <bruno@clisp.org>
91478         Use msvcrt aware primitives for creation/termination of Win32 threads.
91479         * lib/glthread/thread.c: Include <process.h>.
91480         (glthread_create_func): Use _beginthreadex instead of CreateThread.
91481         (wrapper_func): Update signature.
91482         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
91484 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
91485             Bruno Haible  <bruno@clisp.org>
91487         Provide a Win32 implementation of the 'cond' module.
91488         * lib/glthread/cond.h [USE_WIN32]: New implementation.
91489         * lib/glthread/cond.c (glthread_cond_init_func,
91490         glthread_cond_wait_func, glthread_cond_timedwait_func,
91491         glthread_cond_signal_func, glthread_cond_broadcast_func,
91492         glthread_cond_destroy_func) [USE_WIN32]: New functions.
91493         * modules/cond (Dependencies): Add gettimeofday.
91495 2008-10-11  Bruno Haible  <bruno@clisp.org>
91497         Make sleep work on older versions of mingw.
91498         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
91499         only whether it exists.
91500         * doc/posix-functions/sleep.texi: Mention the problem with older
91501         versions of mingw.
91503 2008-10-11  Bruno Haible  <bruno@clisp.org>
91505         New module 'shutdown'.
91506         * modules/shutdown: New file.
91507         * lib/sys_socket.in.h (shutdown): New declaration.
91508         * lib/winsock.c (shutdown): New function.
91509         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
91510         GNULIB_SHUTDOWN.
91511         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
91512         * doc/posix-functions/shutdown.texi: Document the new module.
91514 2008-10-11  Jim Meyering  <meyering@redhat.com>
91516         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
91518 2008-10-11  Bruno Haible  <bruno@clisp.org>
91520         New module 'fclose'.
91521         * modules/fclose: New file.
91522         * lib/stdio.in.h (fclose): New declaration.
91523         * lib/fclose.c: New file.
91524         * m4/fclose.m4: New file.
91525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
91526         REPLACE_FCLOSE.
91527         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
91528         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
91529         REPLACE_FCLOSE.
91530         * modules/close (Depends-on): fclose.
91531         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
91533 2008-10-11  Bruno Haible  <bruno@clisp.org>
91535         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
91536         set errno and don't call _close.
91538 2008-10-10  Bruno Haible  <bruno@clisp.org>
91540         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
91541         ACL, not afterwards. Fixes test failure on Cygwin.
91543 2008-10-09  Ben Pfaff  <blp@gnu.org>
91545         * build-aux/announce-gen: Fix gnulib version related part of usage
91546         message.  Die with a useful error message if no tarballs are
91547         found.
91549 2008-10-10  Jim Meyering  <meyering@redhat.com>
91551         bootstrap: use git's --depth=N option only if it's supported
91552         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
91553         recognize the --depth option.  Reported by Pádraig Brady.
91555 2008-10-09  Bruno Haible  <bruno@clisp.org>
91557         New module 'ioctl'.
91558         * modules/ioctl: New file.
91559         * lib/sys_socket.in.h (ioctl): Remove declaration.
91560         * lib/winsock.c: Include <sys/ioctl.h>.
91561         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
91562         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
91563         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
91564         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
91565         * doc/posix-functions/ioctl.texi: Mention the new module.
91567 2008-10-09  Bruno Haible  <bruno@clisp.org>
91569         New module 'sys_ioctl'.
91570         * lib/sys_ioctl.in.h: New file.
91571         * m4/sys_ioctl_h.m4: New file.
91572         * modules/sys_ioctl: New file.
91573         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
91575 2008-10-09  Bruno Haible  <bruno@clisp.org>
91577         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
91578         * lib/winsock.c: Include <stdarg.h>.
91579         (rpl_ioctl): Change to second argument 'int' and then varargs.
91581 2008-10-09  Bruno Haible  <bruno@clisp.org>
91583         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
91584         when the sys_socket module is present and the system has <winsock2.h>.
91586 2008-10-09  Bruno Haible  <bruno@clisp.org>
91588         * doc/posix-functions/close.texi: Mention module 'close' instead of
91589         module 'sys_socket'.
91591 2008-10-09  Bruno Haible  <bruno@clisp.org>
91593         * doc/glibc-headers/sys_ioctl.texi: New file.
91594         * doc/gnulib.texi: Include it.
91596 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91597             Bruno Haible  <bruno@clisp.org>
91599         Combine the two replacements of 'close'.
91600         * lib/sys_socket.in.h (close): Define to a reminder to include
91601         <unistd.h>.
91602         (_gl_close_fd_maybe_socket): New declaration.
91603         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
91604         * lib/winsock.c (close): Remove undefinition.
91605         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
91606         needed for the gnulib module 'close'.
91607         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
91608         define to an error symbol or to a warning, if suitable.
91609         * lib/close.c: Include <sys/socket.h>.
91610         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
91611         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
91612         UNISTD_H_HAVE_WINSOCK2_H.
91613         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
91614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91615         UNISTD_H_HAVE_WINSOCK2_H.
91616         * modules/sys_socket (Files): Add m4/unistd_h.m4.
91617         (configure.ac): Set a module indicator.
91618         (Makefile.am): Substitute GNULIB_CLOSE.
91619         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
91620         * modules/poll-tests (Depends-on): Add close.
91621         * modules/select-tests (Depends-on): Likewise.
91623 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91624             Bruno Haible  <bruno@clisp.org>
91626         New module 'close'.
91627         * modules/close: New file.
91628         * lib/unistd.in.h (close): Move declaration out of the
91629         FCHDIR_REPLACEMENT scope.
91630         (_gl_unregister_fd): New declaration.
91631         * lib/close.c: New file.
91632         * lib/fchdir.c (rpl_close): Remove function.
91633         * m4/close.m4: New file.
91634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91635         close.
91636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
91637         REPLACE_CLOSE.
91638         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
91639         REPLACE_CLOSE.
91640         * modules/fchdir (Depends-on): Add close.
91642 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91643             Bruno Haible  <bruno@clisp.org>
91645         * lib/fcntl.in.h (open): Simplify conditionals.
91646         (_gl_register_fd): New declaration.
91647         * lib/fchdir.c (rpl_open): Remove function.
91648         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
91649         also.
91650         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
91651         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91652         open.
91654 2008-10-09  Jim Meyering  <meyering@redhat.com>
91656         GNUmakefile: use the more name-space-friendly "_version"
91657         * top/GNUmakefile (_dummy): Update.
91658         (_version): Rename from "version".
91660 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91661             Bruno Haible  <bruno@clisp.org>
91663         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
91664         rpl_close.
91665         (_gl_register_fd): New function, extracted from rpl_open.
91666         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
91667         (rpl_open, rpl_opendir): Use _gl_register_fd.
91669 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91671         Fix organization of 'open' replacement.
91672         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
91673         (gl_FUNC_OPEN): Use it.
91674         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
91676 2008-10-08  Bruno Haible  <bruno@clisp.org>
91678         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
91680 2008-10-08  Simon Josefsson  <simon@josefsson.org>
91682         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
91683         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
91684         listen).
91686 2008-10-08  Eric Blake  <ebb9@byu.net>
91688         GNUmakefile: add 'make version' target
91689         * top/GNUmakefile (_curr-ver): Split version update rules...
91690         (version): ...into a target.
91692 2008-10-07  Bruno Haible  <bruno@clisp.org>
91694         Use a more portable replacement expression for -0.0L.
91695         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
91696         instead of -0.0L. Fix m4 quotation.
91698         * tests/test-signbit.c: Include <float.h>.
91699         (minus_zero): New variable.
91700         (test_signbitl): Use minus_zero instead of -zero.
91701         * modules/signbit-tests (Depends-on): Add float.
91703         * tests/test-ceill.c: Include <float.h>.
91704         (zero): Remove variable.
91705         (minus_zero): New variable.
91706         (main): Use minus_zero instead of -zero.
91707         * modules/ceill-tests (Depends-on): Add float.
91709         * tests/test-floorl.c: Include <float.h>.
91710         (zero): Remove variable.
91711         (minus_zero): New variable.
91712         (main): Use minus_zero instead of -zero.
91713         * modules/floorl-tests (Depends-on): Add float.
91715         * tests/test-roundl.c: Include <float.h>.
91716         (zero): Remove variable.
91717         (minus_zero): New variable.
91718         (main): Use minus_zero instead of -zero.
91719         * modules/roundl-tests (Depends-on): Add float.
91721         * tests/test-truncl.c: Include <float.h>.
91722         (zero): Remove variable.
91723         (minus_zero): New variable.
91724         (main): Use minus_zero instead of -zero.
91725         * modules/truncl-tests (Depends-on): Add float.
91727         * tests/test-frexpl.c (zero): Remove variable.
91728         (minus_zero): New variable.
91729         (main): Use minus_zero instead of -zero.
91730         * modules/frexpl-tests (Depends-on): Add float.
91732         * tests/test-isnan.c (zerol): Remove variable.
91733         (minus_zerol): New variable.
91734         (test_long_double): Use minus_zerol instead of -zerol.
91735         * modules/isnan-tests (Depends-on): Add float.
91737         * tests/test-isnanl.h (zero): Remove variable.
91738         (minus_zero): New variable.
91739         (main): Use minus_zero instead of -zero.
91740         * modules/isnanl-nolibm-tests (Depends-on): Add float.
91741         * modules/isnanl-tests (Depends-on): Add float.
91743         * tests/test-ldexpl.c (zero): Remove variable.
91744         (minus_zero): New variable.
91745         (main): Use minus_zero instead of -zero.
91746         * modules/ldexpl-tests (Depends-on): Add float.
91748         * tests/test-snprintf-posix.h (zerol): Remove variable.
91749         (minus_zerol): New variable.
91750         (test_function): Use minus_zerol instead of -zerol.
91751         * modules/snprintf-posix-tests (Depends-on): Add float.
91752         * modules/vsnprintf-posix-tests (Depends-on): Add float.
91754         * tests/test-sprintf-posix.h (zerol): Remove variable.
91755         (minus_zerol): New variable.
91756         (test_function): Use minus_zerol instead of -zerol.
91757         * modules/sprintf-posix-tests (Depends-on): Add float.
91758         * modules/vsprintf-posix-tests (Depends-on): Add float.
91760         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
91761         (minus_zerol): New variable.
91762         (test_function): Use minus_zerol instead of -zerol.
91763         * modules/vasnprintf-posix-tests (Depends-on): Add float.
91765         * tests/test-vasprintf-posix.c (zerol): Remove variable.
91766         (minus_zerol): New variable.
91767         (test_function): Use minus_zerol instead of -zerol.
91768         * modules/vasprintf-posix-tests (Depends-on): Add float.
91770 2008-10-07  Simon Josefsson  <simon@josefsson.org>
91772         * MODULES.html.sh (Support for building documentation): Mention
91773         pmccabe2html.  Sort entries.
91775         Add pmccabe2html module, from gnupdf.
91776         * build-aux/pmccabe.css: New file.
91777         * build-aux/pmccabe2html: New file.
91778         * m4/pmccabe2html.m4: New file.
91779         * modules/pmccabe2html: New file.
91781 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
91783         flock: new module
91784         * MODULES.html.sh: Add to list of modules.
91785         * lib/flock.c: flock implementation for Windows and Unix systems
91786         which have fcntl.
91787         * doc/glibc-functions/flock.texi: Update documentation.
91788         * lib/sys_file.in.h: <sys/file.h> header file.
91789         * m4/flock.m4: M4 macros.
91790         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
91791         * modules/flock: flock module.
91792         * modules/flock-tests: flock tests module.
91793         * modules/sys_file: sys/file.h module.
91794         * tests/test-flock.c: test suite for flock.
91796 2008-10-06  Jim Meyering  <meyering@redhat.com>
91798         bootstrap: check for LT_INIT more portably still ;-)
91799         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
91800         Spotted by Bruno Haible.
91802 2008-10-06  Eric Blake  <ebb9@byu.net>
91804         test-signbit: avoid tripping Irix cc bug on -0.0L
91805         * tests/test-signbit.c (minus_zerol): Delete, and replace with
91806         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
91807         entire testsuite consistent and avoids an Irix 6.2 bug.
91809 2008-10-05  Bruno Haible  <bruno@clisp.org>
91810             Jim Meyering  <jim@meyering.net>
91812         Add an option for ignoring EPIPE during close_stdout.
91813         * lib/closeout.h: Include <stdbool.h>.
91814         (close_stdout_set_ignore_EPIPE): New declaration.
91815         * lib/closeout.c: Include <stdbool.h>.
91816         (ignore_EPIPE): New variable.
91817         (close_stdout_set_ignore_EPIPE): New function.
91818         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
91819         * lib/close-stream.c (close_stream): Mention the possible EPIPE
91820         failure.
91821         * modules/closeout (Depends-on): Add stdbool.
91823 2008-10-05  Bruno Haible  <bruno@clisp.org>
91825         * modules/accept: New file.
91826         * modules/bind: New file.
91827         * modules/connect: New file.
91828         * modules/getpeername: New file.
91829         * modules/getsockname: New file.
91830         * modules/getsockopt: New file.
91831         * modules/listen: New file.
91832         * modules/recv: New file.
91833         * modules/recvfrom: New file.
91834         * modules/send: New file.
91835         * modules/sendto: New file.
91836         * modules/setsockopt: New file.
91837         * modules/socket: New file.
91838         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
91839         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
91840         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
91841         the particular module is requested. Add a link warning when the
91842         particular module is not requested.
91843         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
91844         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
91845         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
91846         the particular module is requested.
91847         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
91848         gl_SYS_SOCKET_H_DEFAULTS): New macros.
91849         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
91850         * modules/sys_socket (Depends-on): Add link-warning.
91851         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
91852         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
91853         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
91854         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
91855         GL_LINK_WARNING.
91856         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
91857         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
91858         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
91859         * doc/posix-functions/getpeername.texi: Mention the new module
91860         'getpeername'.
91861         * doc/posix-functions/getsockname.texi: Mention the new module
91862         'getsockname'.
91863         * doc/posix-functions/getsockopt.texi: Mention the new module
91864         'getsockopt'.
91865         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
91866         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
91867         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
91868         * doc/posix-functions/send.texi: Mention the new module 'send'.
91869         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
91870         * doc/posix-functions/setsockopt.texi: Mention the new module
91871         'setsockopt'.
91872         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
91873         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
91874         listen, connect, accept.
91875         * modules/select-tests (Depends-on): Likewise.
91877 2008-10-05  Bruno Haible  <bruno@clisp.org>
91879         * lib/winsock.c (strerror): Remove unused #undef.
91880         (rpl_close): Remove unused local variable.
91882         * modules/sys_socket (Depends-on); Add errno.
91884 2008-10-05  Bruno Haible  <bruno@clisp.org>
91886         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
91887         (select): Add a link warning when the 'select' module is not used.
91888         * modules/sys_select (Depends-on): Add link-warning.
91889         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
91890         Suggested by Paolo Bonzini.
91892 2008-10-05  Jim Meyering  <meyering@redhat.com>
91894         bootstrap: check for LT_INIT more portably
91895         * build-aux/bootstrap: Avoid using grep -E, since it's not
91896         portable enough.  Suggestion from Bruno Haible.
91898 2008-10-05  Bruno Haible  <bruno@clisp.org>
91900         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
91901         as being fixed by gnulib.
91903 2008-10-05  Bruno Haible  <bruno@clisp.org>
91905         * modules/select-tests: New file, mostly copied from
91906         modules/sys_select-tests.
91907         * tests/test-select.c: New file, mostly copied from
91908         tests/test-sys_select.c.
91909         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
91910         * modules/sys_select-tests (Depends-on): Remove all dependencies.
91911         (Makefile.am): Remove test_sys_select_LDADD.
91913         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
91914         to an undefined symbol, for an error message.
91915         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
91916         (gl_SYS_SELECT_H_DEFAULTS): New macro.
91917         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
91918         winsock-select.c here.
91919         * modules/sys_select (Files): Remove lib/winsock-select.c.
91920         (Depends-on): Remove alloca.
91921         (Makefile.am): Substitute GNULIB_SELECT.
91922         * modules/select: New file.
91923         * doc/posix-functions/select.texi: Update.
91925 2008-10-05  Bruno Haible  <bruno@clisp.org>
91927         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
91928         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
91929         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
91930         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
91931         getdtablesize.
91932         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
91933         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
91935 2008-10-05  Bruno Haible  <bruno@clisp.org>
91937         * modules/getdtablesize-tests: New file.
91938         * tests/test-getdtablesize.c: New file.
91940         New module 'getdtablesize'.
91941         * lib/unistd.in.h (getdtablesize): New declaration.
91942         * lib/getdtablesize.c: New file.
91943         * m4/getdtablesize.m4: New file.
91944         * modules/getdtablesize: New file.
91945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91946         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
91947         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
91948         HAVE_GETDTABLESIZE.
91949         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
91951 2008-10-05  Bruno Haible  <bruno@clisp.org>
91953         * modules/sched (Makefile.am): Fix typo.
91954         Reported by Simon Josefsson.
91956 2008-10-05  Jim Meyering  <meyering@redhat.com>
91958         bootstrap: check for LT_INIT, too
91959         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
91960         are deprecated.  Suggestion from Ralf Wildenhues.
91962 2008-10-05  Bruno Haible  <bruno@clisp.org>
91964         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
91965         overriding them by ours.
91966         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
91968 2008-10-05  Jim Meyering  <meyering@redhat.com>
91970         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
91971         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
91972         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
91974 2008-10-04  Bruno Haible  <bruno@clisp.org>
91976         * modules/dup2 (License): Change to LGPLv2+.
91977         * modules/sleep (License): Likewise.
91978         * modules/perror (License): Likewise.
91979         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
91980         Blake.
91981         * modules/signal (License): Likewise.
91982         * modules/sigprocmask (License): Likewise.
91983         * modules/raise (License): Change to LGPLv2+, with approval by Jim
91984         Meyering.
91986 2008-10-04  Bruno Haible  <bruno@clisp.org>
91988         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
91989         Reported by Rainer Tammer <tammer@tammer.net>.
91991 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
91992             Bruno Haible  <bruno@clisp.org>
91994         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
91995         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
91996         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
91998 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
92000         filevercmp: new module
92001         * lib/filevercmp.h: New function filevercmp comparing version strings.
92002         * lib/filevercmp.c: Implementation of filevercmp function.
92003         * modules/filevercmp: Module metadata.
92004         * tests/test-filevercmp.c: Unit test for new module.
92005         * modules/filevercmp-tests: Unit test metadata.
92006         * MODULES.html.sh: Add filevercmp module.
92008 2008-10-03  Bruno Haible  <bruno@clisp.org>
92010         * lib/c-ctype.h: Add comment.
92011         Reported by Jim Meyering.
92013 2008-10-02  Bruno Haible  <bruno@clisp.org>
92015         * modules/posix_spawn-internal (Depends-on): Add 'open'.
92017 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
92019         * build-aux/bootstrap: Allow renaming bootstrap, and change the
92020         name of bootstrap.conf accordingly.
92022 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
92024         * build-aux/bootstrap: Install git-merge-changelog configuration
92025         items into .gitconfig if needed.
92027 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
92029         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
92030         git repository, and initialize/update it accordingly.
92032 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
92034         * modules/fsync-tests: New file.
92035         * tests/test-fsync.c: New file.
92037         New module 'fsync'.
92038         * lib/fsync.c: New file.
92039         * m4/fsync.m4: New file.
92040         * modules/fsync: New file.
92041         * lib/unistd.in.h (fsync): New declaration.
92042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
92043         GNULIB_FSYNC and HAVE_FSYNC.
92044         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
92045         * MODULES.html.sh (posix_functions): Add fsync.
92046         * doc/posix-functions/fsync.texi: Mention the new module.
92048 2008-10-02  Jim Meyering  <meyering@redhat.com>
92050         fts.c: sync with similar code from coreutils' remove.c
92051         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
92052         Guard also with "#if defined __linux__", since for now at least,
92053         this code is Linux-kernel-specific.
92055 2008-10-02  Jim Meyering  <meyering@redhat.com>
92057         fts: bug fixes
92058         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
92059         Include <sys/vfs.h>, not <sys/statfs.h>.
92061         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
92062         Include <sys/vfs.h>, not <sys/statfs.h>.
92064 2008-10-01  Bruno Haible  <bruno@clisp.org>
92066         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
92067         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
92068         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
92069         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
92070         * doc/posix-functions/posix_spawnp.texi: Likewise.
92071         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
92072         whether posix_spawn actually works.
92073         * m4/pipe.m4 (gl_PIPE): Likewise.
92074         * modules/execute (Files): Add m4/posix_spawn.m4.
92075         * modules/pipe (Files): Add m4/posix_spawn.m4.
92076         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
92078 2008-10-01  Jim Meyering  <meyering@redhat.com>
92080         remove trailing spaces
92081         * NEWS: Likewise.
92082         * lib/poll.c (poll): Likewise.
92083         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
92084         * lib/winsock.c (rpl_close): Likewise.
92085         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
92086         * modules/yield: Likewise.
92087         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
92088         * tests/test-sys_select.c (connect_to_socket): Likewise.
92090         fts.c: adjust a new interface to be more generally useful
92091         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
92092         (fts_build): Adjust caller.
92094 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92096         * modules/cond-tests: New file.
92097         * tests/test-cond.c: New file.
92099 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92100             Bruno Haible  <bruno@clisp.org>
92102         * modules/cond (Dependencies): Add errno, time.
92103         * lib/glthread/cond.h: Include <time.h>.
92104         (gl_cond_define, gl_cond_define_initialized): Use the same definition
92105         across platforms.
92107 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92108             Bruno Haible  <bruno@clisp.org>
92110         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
92112 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92113             Bruno Haible  <bruno@clisp.org>
92115         * modules/tls-tests (Depends-on): Add thread, yield.
92116         (configure.ac): Remove all checks.
92117         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
92118         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
92119         gl_thread_self): Remove definitions. Include glthread/thread.h and
92120         glthread/yield.h instead.
92121         (test_tls): Pass an additional NULL argument to gl_thread_join.
92123 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92124             Bruno Haible  <bruno@clisp.org>
92126         * modules/lock-tests (Depends-on): Add thread, yield.
92127         (configure.ac): Remove all checks.
92128         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
92129         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
92130         gl_thread_self): Remove definitions. Include glthread/thread.h and
92131         glthread/yield.h instead.
92132         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
92133         additional NULL argument to gl_thread_join.
92135 2008-09-30  Bruno Haible  <bruno@clisp.org>
92137         Fix the Win32 implementation of the 'thread' module.
92138         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
92139         pointer type.
92140         (gl_thread_self): Invoke gl_thread_self_func.
92141         (gl_thread_self_func): New declaration.
92142         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
92143         (do_init_self_key, init_self_key): New functions.
92144         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
92145         Remove some fields.
92146         (running_threads, running_lock): Remove variables.
92147         (get_current_thread_handle): New function.
92148         (gl_thread_self_func, wrapper_func, glthread_create_func,
92149         glthread_join_func, gl_thread_exit_func): Largely rewritten and
92150         simplified.
92152 2008-09-30  Bruno Haible  <bruno@clisp.org>
92154         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
92155         files.
92157 2008-09-30  Jim Meyering  <meyering@redhat.com>
92159         fts.m4: correct the test for statfs.f_type
92160         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
92161         when checking for statfs.f_type.
92163 2008-09-15  Simon Josefsson  <simon@josefsson.org>
92165         tests: avoid some compiler warnings
92166         * tests/test-memchr.c (main): Pass NULL indirectly.
92167         * tests/test-getdate.c (main): Remove unused variable 'ret'.
92169 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
92171         getdate.y: disallow countable dayshifts like "4 yesterday ago"
92172         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
92173         exactly specified dayshifts.
92174         (dayshift): New rule.
92175         (rel): Add dayshift.
92176         (relative_time_table) [tomorrow, yesterday, today, now]:
92177         Use tDAY_SHIFT in place of tDAY_UNIT.
92178         * tests/test-getdate.c: Add tests for now-disallowed countable
92179         dayshifts, e.g., "4 yesterday ago".
92181 2008-09-29  Bruno Haible  <bruno@clisp.org>
92183         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
92184         * tests/test-posix_spawn1.in.sh: Renamed from
92185         tests/test-posix_spawn.in.sh.
92186         * tests/test-posix_spawn2.c: New file.
92187         * tests/test-posix_spawn2.in.sh: New file.
92188         * modules/posix_spawnp-tests (Files): Update.
92189         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
92191 2008-09-29  Bruno Haible  <bruno@clisp.org>
92193         Propagate effects of putenv/setenv/unsetenv to child processes.
92194         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
92195         * lib/pipe.c (create_pipe): Likewise.
92197 2008-09-29  Bruno Haible  <bruno@clisp.org>
92199         Enable use of shell scripts as executables in mingw.
92200         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
92201         run the program as a shell script.
92202         * lib/pipe.c (create_pipe): Likewise.
92203         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
92204         resulting array.
92206 2008-09-29  Eric Blake  <ebb9@byu.net>
92208         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
92210 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
92212         * doc/posix-functions/accept.texi: Update mingw problems.
92213         * doc/posix-functions/bind.texi: Update mingw problems.
92214         * doc/posix-functions/close.texi: Update mingw problems.
92215         * doc/posix-functions/connect.texi: Update mingw problems.
92216         * doc/posix-functions/getpeername.texi: Update mingw problems.
92217         * doc/posix-functions/getsockname.texi: Update mingw problems.
92218         * doc/posix-functions/getsockopt.texi: Update mingw problems.
92219         * doc/posix-functions/ioctl.texi: Update mingw problems.
92220         * doc/posix-functions/listen.texi: Update mingw problems.
92221         * doc/posix-functions/recv.texi: Update mingw problems.
92222         * doc/posix-functions/recvfrom.texi: Update mingw problems.
92223         * doc/posix-functions/select.texi: Update mingw problems.
92224         * doc/posix-functions/send.texi: Update mingw problems.
92225         * doc/posix-functions/sendto.texi: Update mingw problems.
92226         * doc/posix-functions/setsockopt.texi: Update mingw problems.
92227         * doc/posix-functions/socket.texi: Update mingw problems.
92229 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
92230             Bruno Haible  <bruno@clisp.org>
92232         * lib/sys_select.in.h: Include sys/time.h.
92233         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
92234         * modules/sys_select: Depend on sys_time.
92235         * tests/test-sys_select.c: Test that sys/select.h defines struct
92236         timeval fully.
92238 2008-09-29  Bruno Haible  <bruno@clisp.org>
92240         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
92241         * lib/sys_select.in.h: Likewise.
92243 2008-09-29  Bruno Haible  <bruno@clisp.org>
92245         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
92247 2008-09-29  Bruno Haible  <bruno@clisp.org>
92249         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
92250         Set LIBSOCKET instead of augmenting LIBS.
92251         * modules/sockets (Link): New section.
92252         * modules/sockets-tests (test_sockets_LDADD): New variable.
92253         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
92254         * modules/poll-tests (test_poll_LDADD): New variable.
92255         * NEWS: Document the change.
92257 2008-09-29  Bruno Haible  <bruno@clisp.org>
92259         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
92260         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
92261         ARPA_INET_H directly.
92262         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
92264 2008-09-28  Bruno Haible  <bruno@clisp.org>
92266         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
92267         from gl_HEADER_SYS_SOCKET.
92268         (gl_HEADER_SYS_SOCKET): Invoke it.
92269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
92271 2008-09-28  Bruno Haible  <bruno@clisp.org>
92273         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
92274         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
92275         Needed on OSF/1 4.0.
92277 2008-09-28  Bruno Haible  <bruno@clisp.org>
92279         Override open more carefully.
92280         * lib/open.c (orig_open): New function.
92281         (rpl_open): Use orig_open instead of open.
92282         * lib/fcntl.in.h: Add special invocation convention.
92283         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
92284         (gl_FUNC_OPEN): Invoke it.
92286         Override freopen more carefully.
92287         * lib/freopen.c (orig_freopen): New function.
92288         (rpl_freopen): Use orig_freopen instead of freopen.
92289         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
92290         (gl_FUNC_FREOPEN): Invoke it.
92292         Override fopen more carefully.
92293         * lib/fopen.c (orig_fopen): New function.
92294         (rpl_fopen): Use orig_fopen instead of fopen.
92295         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
92296         (gl_FUNC_FOPEN): Invoke it.
92297         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
92299 2008-09-28  Bruno Haible  <bruno@clisp.org>
92301         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
92302         SIGPIPE.
92304 2008-09-28  Bruno Haible  <bruno@clisp.org>
92306         * tests/test-sigaction.c (handler, main): Disable the check whether
92307         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
92308         glibc systems with LinuxThreads.
92310 2008-09-28  Bruno Haible  <bruno@clisp.org>
92312         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
92314         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
92315         with AIX xlc.
92316         * lib/fcntl.in.h (open): Likewise.
92317         Reported by Rainer Tammer <tammer@tammer.net>.
92319 2008-09-28  Bruno Haible  <bruno@clisp.org>
92321         * modules/posix_spawnp-tests: New file.
92322         * tests/test-posix_spawn.c: New file.
92323         * tests/test-posix_spawn.in.sh: New file.
92325         New module 'posix_spawnp'.
92326         * modules/posix_spawnp: New file.
92327         * lib/spawnp.c: New file, from GNU libc with modifications.
92328         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
92330         New module 'posix_spawn'.
92331         * modules/posix_spawn: New file.
92332         * lib/spawn.c: New file, from GNU libc with modifications.
92333         * doc/posix-functions/posix_spawn.texi: Mention the new module.
92335         New module 'posix_spawnattr_destroy'.
92336         * modules/posix_spawnattr_destroy: New file.
92337         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
92338         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
92339         module.
92341         New module 'posix_spawnattr_setsigmask'.
92342         * modules/posix_spawnattr_setsigmask: New file.
92343         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
92344         modifications.
92345         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
92346         new module.
92348         New module 'posix_spawnattr_getsigmask'.
92349         * modules/posix_spawnattr_getsigmask: New file.
92350         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
92351         modifications.
92352         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
92353         new module.
92355         New module 'posix_spawnattr_setsigdefault'.
92356         * modules/posix_spawnattr_setsigdefault: New file.
92357         * lib/spawnattr_setdefault.c: New file, from GNU libc with
92358         modifications.
92359         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
92360         new module.
92362         New module 'posix_spawnattr_getsigdefault'.
92363         * modules/posix_spawnattr_getsigdefault: New file.
92364         * lib/spawnattr_getdefault.c: New file, from GNU libc with
92365         modifications.
92366         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
92367         new module.
92369         New module 'posix_spawnattr_setschedpolicy'.
92370         * modules/posix_spawnattr_setschedpolicy: New file.
92371         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
92372         modifications.
92373         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
92374         new module.
92376         New module 'posix_spawnattr_getschedpolicy'.
92377         * modules/posix_spawnattr_getschedpolicy: New file.
92378         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
92379         modifications.
92380         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
92381         new module.
92383         New module 'posix_spawnattr_setschedparam'.
92384         * modules/posix_spawnattr_setschedparam: New file.
92385         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
92386         modifications.
92387         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
92388         new module.
92390         New module 'posix_spawnattr_getschedparam'.
92391         * modules/posix_spawnattr_getschedparam: New file.
92392         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
92393         modifications.
92394         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
92395         new module.
92397         New module 'posix_spawnattr_setpgroup'.
92398         * modules/posix_spawnattr_setpgroup: New file.
92399         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
92400         modifications.
92401         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
92402         module.
92404         New module 'posix_spawnattr_getpgroup'.
92405         * modules/posix_spawnattr_getpgroup: New file.
92406         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
92407         modifications.
92408         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
92409         module.
92411         New module 'posix_spawnattr_setflags'.
92412         * modules/posix_spawnattr_setflags: New file.
92413         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
92414         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
92415         module.
92417         New module 'posix_spawnattr_getflags'.
92418         * modules/posix_spawnattr_getflags: New file.
92419         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
92420         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
92421         module.
92423         New module 'posix_spawnattr_init'.
92424         * modules/posix_spawnattr_init: New file.
92425         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
92426         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
92427         module.
92429         New module 'posix_spawn_file_actions_destroy'.
92430         * modules/posix_spawn_file_actions_destroy: New file.
92431         * lib/spawn_faction_destroy.c: New file, from GNU libc with
92432         modifications.
92433         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
92434         the new module.
92436         New module 'posix_spawn_file_actions_addopen'.
92437         * modules/posix_spawn_file_actions_addopen: New file.
92438         * lib/spawn_faction_addopen.c: New file, from GNU libc with
92439         modifications.
92440         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
92441         the new module.
92443         New module 'posix_spawn_file_actions_adddup2'.
92444         * modules/posix_spawn_file_actions_adddup2: New file.
92445         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
92446         modifications.
92447         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
92448         the new module.
92450         New module 'posix_spawn_file_actions_addclose'.
92451         * modules/posix_spawn_file_actions_addclose: New file.
92452         * lib/spawn_faction_addclose.c: New file, from GNU libc with
92453         modifications.
92454         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
92455         the new module.
92457         New module 'posix_spawn_file_actions_init'.
92458         * modules/posix_spawn_file_actions_init: New file.
92459         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
92460         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
92461         new module.
92463         New module 'posix_spawn-internal'.
92464         * modules/posix_spawn-internal: New file.
92465         * lib/spawn_int.h: New file, from GNU libc with modifications.
92466         * lib/spawni.c: New file, from GNU libc with modifications.
92467         * m4/posix_spawn.m4: New file.
92469         New module 'spawn'.
92470         * modules/spawn: New file.
92471         * lib/spawn.in.h: New file, from GNU libc with modifications.
92472         * m4/spawn_h.m4: New file.
92473         * doc/posix-headers/spawn.texi: Mention the new module.
92475 2008-09-28  Bruno Haible  <bruno@clisp.org>
92477         * modules/sched-tests: New file.
92478         * tests/test-sched.c: New file.
92480         New module 'sched'.
92481         * modules/sched: New file.
92482         * lib/sched.in.h: New file.
92483         * m4/sched_h.m4: New file.
92484         * doc/posix-headers/sched.texi: Mention the new module.
92486 2008-09-27  Eric Blake  <ebb9@byu.net>
92488         Fix previous patch, and tweak references to $0.
92489         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
92490         (func_version, func_gnulib_dir): Don't call this program
92491         gnulib-tool.
92492         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
92493         with using $0 in function.
92494         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
92495         (func_fatal_error): Reuse the name the user invoked us with.
92497 2008-09-27  Bruno Haible  <bruno@clisp.org>
92499         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
92500         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
92501         (gl_ICONV_H): Not here.
92502         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
92503         instead of assigning ICONV_H directly.
92505         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
92506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
92507         WCHAR_H directly.
92509 2008-09-27  Bruno Haible  <bruno@clisp.org>
92511         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
92512         * modules/arpa_inet (Depends-on): Add link-warning.
92513         (Makefile.am): Insert the definition of GL_LINK-WARNING.
92514         * modules/unistd (Makefile.am): Likewise.
92516 2008-09-26  Bruno Haible  <bruno@clisp.org>
92518         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
92519         variables.
92520         (func_version): Essentially copied from gnulib-tool.
92521         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
92522         func_readlink): Copied from gnulib-tool.
92524 2008-09-26  Bruno Haible  <bruno@clisp.org>
92526         * gnulib-tool (func_version): Change directory to $gnulib_dir before
92527         invoking git-version-gen.
92529 2008-09-26  Bruno Haible  <bruno@clisp.org>
92531         * posix-modules: Update to directory names changed on 2008-01-19.
92532         Remove commas in output before splitting into words. No more need to
92533         avoid 'ftruncate' since 2007-02-19.
92535 2008-09-26  Bruno Haible  <bruno@clisp.org>
92537         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
92539 2008-09-26  Bruno Haible  <bruno@clisp.org>
92541         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
92542         * modules/fwriteerror (Depends-on): Add errno.
92544 2008-09-26  Bruno Haible  <bruno@clisp.org>
92546         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
92547         * tests/test-vc-list-files-cvs.sh: Likewise.
92549 2008-09-26  Bruno Haible  <bruno@clisp.org>
92551         * doc/posix-headers/sys_resource.texi: Reorder items.
92553 2008-09-26  Jim Meyering  <meyering@redhat.com>
92555         fts: tweak inode comparison function
92556         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
92557         inode numbers, as documented.
92559         fts: sort dirent entries on inode number before traversing
92560         This avoids a quadratic, seek-related performance penalty when
92561         operating on a directory containing many entries (measurable at 10k;
92562         3.5 hours at 2 million entries with a cold cache) on certain types
92563         of file systems, including ext3 and ext4, but not tmpfs.
92564         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
92565         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
92566         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
92567         (fs_handles_readdir_ordered_dirents_efficiently): New function.
92568         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
92569         (fts_build): Set the stat.st_ino member from D_INO.
92570         If it is likely to be useful, sort dirent entries on inode number.
92572         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
92573         and the struct statfs.f_type member.
92574         * modules/fts (Depends-on): Add d-ino.
92576 2008-09-26  Bruno Haible  <bruno@clisp.org>
92578         * modules/sigpipe-die (Depends-on): Add sigpipe.
92580         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
92581         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
92582         and GNULIB_STDIO_H_SIGPIPE are set.
92583         * lib/stdio-write.c: New file.
92584         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
92585         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92586         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92587         REPLACE_STDIO_WRITE_FUNCS.
92588         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
92589         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92590         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92591         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92592         * modules/stdio (Files): Add lib/stdio-write.c.
92593         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
92594         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92595         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92596         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92597         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
92598         REPLACE_FPRINTF_POSIX.
92599         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
92600         REPLACE_PRINTF_POSIX.
92601         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
92602         REPLACE_VFPRINTF_POSIX.
92603         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
92604         REPLACE_VPRINTF_POSIX.
92605         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
92606         SIGPIPE issue.
92607         * doc/posix-functions/fputc.texi: Likewise.
92608         * doc/posix-functions/fputs.texi: Likewise.
92609         * doc/posix-functions/fwrite.texi: Likewise.
92610         * doc/posix-functions/printf.texi: Likewise.
92611         * doc/posix-functions/putc.texi: Likewise.
92612         * doc/posix-functions/putchar.texi: Likewise.
92613         * doc/posix-functions/puts.texi: Likewise.
92614         * doc/posix-functions/vfprintf.texi: Likewise.
92615         * doc/posix-functions/vprintf.texi: Likewise.
92617         * modules/safe-write (Depends-on): Add write.
92619         * modules/sigpipe-tests: New file.
92620         * tests/test-sigpipe.c: New file.
92621         * tests/test-sigpipe.sh: New file.
92623         * modules/write: New file.
92624         * lib/unistd.in.h: Include <sys/types.h>.
92625         (write): New declaration.
92626         * lib/write.c: New file.
92627         * m4/write.m4: New file.
92628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
92629         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
92630         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
92631         GNULIB_WRITE, REPLACE_WRITE.
92632         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
92633         and the SIGPIPE issue.
92635         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
92636         (raise): New declaration.
92637         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
92638         (ext_signal): New function.
92639         (rpl_raise): New function.
92640         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
92641         GNULIB_SIGNAL_H_SIGPIPE.
92642         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
92643         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
92645         * modules/sigpipe: New file.
92646         * m4/sigpipe.m4: New file.
92648 2008-09-25  Derek Price  <derek@ximbiot.com>
92649             Bruno Haible  <bruno@clisp.org>
92651         * gnulib-tool (func_import): Report all license incompatibilities, not
92652         just the first one.
92654 2008-09-25  Bruno Haible  <bruno@clisp.org>
92656         * gnulib-tool (func_import): When computing the edits, consider not
92657         only the Makefile.ams that exist but also those that will be generated.
92659 2008-09-25  Simon Josefsson  <simon@josefsson.org>
92661         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
92662         fixes gnulib-tool --test warning about duplicate dependency.
92664 2008-09-25  Bruno Haible  <bruno@clisp.org>
92666         * gnulib-tool: Don't ask the user to perform edits in the generated
92667         Makefile.ams.
92668         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
92669         apply to the Makefile.am being generated.
92670         (func_emit_tests_Makefile_am): Execute edits that apply to the
92671         Makefile.am being generated.
92672         (func_import): Setup list of Makefile.am edits before emitting the
92673         Makefile.ams, not at the end.
92674         (func_create_testdir): Update.
92675         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92677 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92679         * gnulib-tool (func_import): Store the --tests-base option in the
92680         comment in gnulib-cache.m4.
92682 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
92684         * NEWS: Document increased portability that sys_select now provides.
92686         * lib/sys_select.in.h: Install select wrapper.
92687         * lib/sys_socket.in.h: Use more descriptive name when there is no
92688         select wrapper.
92689         * lib/winsock-select.c: New.
92690         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
92691         Require gl_HEADER_SYS_SOCKET.
92692         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
92693         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
92694         * tests/test-sys_select.c: Add functional tests.
92696 2008-09-24  Eric Blake  <ebb9@byu.net>
92698         open, fopen: close fd leak in last patch
92699         * lib/open.c (rpl_open): Close fd before returning error.
92700         * lib/fopen.c (rpl_fopen): Close fd before returning error.
92701         * doc/posix-functions/open.texi (open): Document that Irix also
92702         has the bug.
92703         * doc/posix-functions/fopen.texi (fopen): Likewise.
92704         Reported by Paolo Bonzini.
92706 2008-09-24  Bruno Haible  <bruno@clisp.org>
92708         Ensure that a filename ending in a slash cannot be used to access a
92709         non-directory.
92710         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
92711         to check whether it's really a directory.
92712         * lib/fopen.c: Include fcntl.h, unistd.h.
92713         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
92714         and fdopen().
92715         * modules/fopen (Depends-on): Add unistd.
92716         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
92717         * tests/test-fopen.c (main): Likewise.
92718         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
92719         * doc/posix-functions/fopen.texi: Likewise.
92720         Reported by Eric Blake.
92722 2008-09-23  Eric Blake  <ebb9@byu.net>
92724         c-stack: avoid compiler optimizations when provoking overflow
92725         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
92726         recursion harder to optimize, to ensure a stack overflow occurs.
92727         * tests/test-c-stack.c (recurse): Likewise.
92728         Borrowed from libsigsegv.
92730         c-stack: work around Irix sigaltstack bug
92731         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
92732         whether sigaltstack uses wrong end of stack_t (copied in part from
92733         libsigsegv).
92734         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
92735         Irix bug, without requiring an over-allocation.
92736         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
92737         bug.
92739         fopen: document mingw bug on directories
92740         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
92741         not allowing a stream visiting a directory, even though reading
92742         from such a stream is not portable.
92744 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92746         * lib/poll.c: Rewrite.
92747         * modules/poll: Depend on alloca.
92749 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92751         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
92752         instead define prototypes for a full set of wrappers.  Ensure
92753         that Cygwin does not use the compatibility code, which is only
92754         for MinGW.
92755         * lib/winsock.c: New.
92756         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
92757         * modules/sys_socket: Add lib/winsock.c.
92759         * modules/poll-tests: Add errno and perror.
92760         * tests/test-poll.c: Use ioctl, not ioctlsocket.
92762 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92764         * tests/test-poll.c: Downgrade minimum needed Winsock version.
92766 2008-09-23  Bruno Haible  <bruno@clisp.org>
92768         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
92769         * doc/glibc-functions/*: Likewise.
92771 2008-09-23  Simon Josefsson  <simon@josefsson.org>
92773         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
92774         success.
92776 2008-09-22  Eric Blake  <ebb9@byu.net>
92777             Bruno Haible  <bruno@clisp.org>
92779         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
92780         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
92781         supply %A but mishandle pseudo-NaN.
92782         Reported by Simon Josefsson.
92784 2008-09-21  Bruno Haible  <bruno@clisp.org>
92786         * tests/test-lock.c (main): Tweak skip message.
92787         * tests/test-tls.c (main): Likewise.
92789 2008-09-21  Bruno Haible  <bruno@clisp.org>
92791         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
92792         whether 'struct sigaction' has sa_sigaction here...
92793         (gl_PREREQ_SIG_HANDLER_H): ... not here.
92794         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
92796 2008-09-21  Bruno Haible  <bruno@clisp.org>
92798         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
92799         section.
92800         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
92801         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
92802         the new section.
92803         (Support for obsolete systems lacking POSIX:2001): New section.
92804         (String handling <string.h>): Move strdup to the new section.
92805         Suggested by Simon Josefsson and Paolo Bonzini.
92807 2008-09-21  Bruno Haible  <bruno@clisp.org>
92809         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
92810         exponents in %e and %g results on 'long double'. Needed for mingw's
92811         improved *printf functions.
92812         * tests/test-vasprintf-posix.c (test_function): Likewise.
92813         * tests/test-snprintf-posix.h (test_function): Likewise.
92814         * tests/test-sprintf-posix.h (test_function): Likewise.
92815         Reported by Eric Blake.
92817 2008-09-21  Bruno Haible  <bruno@clisp.org>
92819         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
92820         * tests/test-sprintf-posix.h (test_function): Likewise.
92822 2008-09-21  Bruno Haible  <bruno@clisp.org>
92824         * modules/getpass (Depends-on): Add strdup-posix.
92826         New module 'strdup-posix'.
92827         * modules/strdup-posix: New file.
92828         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
92829         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
92830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92831         REPLACE_STRDUP.
92832         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
92833         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
92834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92835         strdup-posix.
92837         * modules/strdup (Depends-on): Remove malloc-posix.
92839 2008-09-20  Bruno Haible  <bruno@clisp.org>
92841         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
92842         Wildenhues.
92844 2008-09-20  Bruno Haible  <bruno@clisp.org>
92846         Ensure that wint_t gets defined on IRIX 5.3.
92847         * lib/wchar.in.h (wint_t): Define if not defined by the system.
92848         * lib/wctype.in.h (wint_t): Likewise.
92849         (__wctype_wint_t): Remove type.
92850         (isw*): Use wint_t instead of __wctype_wint_t.
92851         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
92852         * modules/wchar (Files): Add m4/wint_t.m4.
92853         (Makefile.am): Substitute HAVE_WINT_T.
92854         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
92855         * tests/test-wctype.c: Check that wint_t is defined.
92856         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
92857         * doc/posix-headers/wctype.texi: Likewise.
92858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
92860 2008-09-18  Bruno Haible  <bruno@clisp.org>
92862         * gnulib-tool (func_exit): Update comment.
92864 2008-09-18  Simon Josefsson  <simon@josefsson.org>
92866         * modules/getaddrinfo (Depends-on): Remove strdup, this module
92867         assumes strdup exists and does not depend on strdup to return
92868         ENOMEM on out of memory conditions.
92870 2008-09-18  Bruno Haible  <bruno@clisp.org>
92872         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
92873         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
92874         digits for the exponent.
92876 2008-09-18  Jim Meyering  <meyering@redhat.com>
92877             Bruno Haible  <bruno@clisp.org>
92879         * lib/vasnprintf.c (decimal_point_char): Define also if
92880         NEED_PRINTF_INFINITE_LONG_DOUBLE.
92882 2008-09-16  Bruno Haible  <bruno@clisp.org>
92883         and Eric Blake  <ebb9@byu.net>
92885         vasnprintf: support Irix 5.3
92886         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
92887         that mishandle long double infinity.
92888         Reported by Tom G. Christensen.
92890 2008-09-16  Bruno Haible  <bruno@clisp.org>
92892         * doc/glibc-functions/scandir.texi: Mention the function is missing on
92893         Solaris 9.
92894         * doc/glibc-functions/alphasort.texi: Likewise.
92895         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
92897 2008-09-16  Jim Meyering  <meyering@redhat.com>
92899         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
92900         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
92901         a umask modification leak out of a subshell.  Otherwise, the
92902         opensolaris /bin/sh would be accepted and thus cause unwarranted
92903         failures in the coreutils test suite.
92905 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
92907         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
92908         to succeed.
92910 2008-09-16  Jim Meyering  <meyering@redhat.com>
92912         avoid spurious test failure when library is built without ACL support
92913         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
92914         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
92915         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
92916         * tests/test-copy-acl.sh: Likewise.
92918 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92920         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
92921         based on character occurrence counts.
92923 2008-09-15  Eric Blake  <ebb9@byu.net>
92925         tests: avoid some compiler warnings
92926         * tests/test-memchr.c (main): Pass NULL indirectly.
92927         * tests/test-closein.c (main): Avoid unused variable.
92929 2008-09-15  Bruno Haible  <bruno@clisp.org>
92931         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
92932         are missing on OpenBSD 4.0 individually.
92933         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92935 2008-09-15  Bruno Haible  <bruno@clisp.org>
92937         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
92938         * doc/posix-functions/strerror.texi: Mention also Cygwin.
92939         * doc/posix-functions/perror.texi: Likewise.
92940         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
92941         is missing.
92942         Reported by Eric Blake.
92944         * lib/errno.in.h: Use replacement values >= 2000.
92945         Reported by Eric Blake.
92947 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92949         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
92950         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
92951         limit.
92952         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
92953         compareseq was aborted.
92955 2008-09-14  Bruno Haible  <bruno@clisp.org>
92957         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
92958         yvec_edit_count.
92959         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
92960         (fstrcmp_bounded): Simplify result computation accordingly.
92962 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92964         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
92965         (fstrcmp): Define in terms of fstrcmp_bounded.
92966         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
92967         lower_bound argument.
92968         Return quickly if the result is certainly < lower_bound.
92969         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
92971 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92973         * lib/diffseq.h (EARLY_ABORT): New macro.
92974         (compareseq): Change return type to bool. Return true when EARLY_ABORT
92975         evaluates to true.
92977 2008-09-14  Bruno Haible  <bruno@clisp.org>
92979         * modules/perror-tests: New file.
92980         * tests/test-perror.sh: New file.
92981         * tests/test-perror.c: New file.
92983         New module 'perror'.
92984         * lib/stdio.in.h (perror): New declaration.
92985         * lib/perror.c: New file.
92986         * m4/perror.m4: New file.
92987         * modules/perror: New file.
92988         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
92989         * doc/posix-functions/perror.texi: Mention the perror module.
92990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
92991         REPLACE_PERROR.
92992         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
92993         REPLACE_PERROR.
92995 2008-09-14  Bruno Haible  <bruno@clisp.org>
92997         * modules/stdio (Makefile.am): Reorder to match the order in
92998         lib/stdio.in.h.
92999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
93001 2008-09-13  Bruno Haible  <bruno@clisp.org>
93003         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
93005 2008-09-13  Bruno Haible  <bruno@clisp.org>
93007         Extend strerror to cover the added errno values.
93008         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
93009         (rpl_strerror): Provide error messages for the added errno values and
93010         for the WSA* values.
93011         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
93012         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
93013         strerror.
93014         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
93015         * modules/strerror (Depends-on): Add errno.
93016         * doc/posix-functions/strerror.texi: Document the change.
93017         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
93018         and EOVERFLOW.
93020 2008-09-13  Bruno Haible  <bruno@clisp.org>
93022         * modules/EOVERFLOW: Remove file.
93023         * m4/eoverflow.m4: Remove file.
93024         * modules/EOVERFLOW-tests: Remove file.
93025         * tests/test-EOVERFLOW.c: Remove file.
93026         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
93027         * modules/ftell (Depends-on): Likewise.
93028         * modules/getdelim (Depends-on): Likewise.
93029         * modules/getugroups (Depends-on): Likewise.
93030         * modules/poll (Depends-on): Likewise.
93031         * modules/snprintf (Depends-on): Likewise.
93032         * modules/sprintf-posix (Depends-on): Likewise.
93033         * modules/vasnprintf (Depends-on): Likewise.
93034         * modules/vasprintf (Depends-on): Likewise.
93035         * modules/vfprintf-posix (Depends-on): Likewise.
93036         * modules/vsnprintf (Depends-on): Likewise.
93037         * modules/vsprintf-posix (Depends-on): Likewise.
93038         * modules/xvasprintf (Depends-on): Likewise.
93039         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93040         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
93041         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
93042         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
93043         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93044         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
93045         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
93046         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
93047         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93048         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
93049         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
93050         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
93051         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93052         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
93053         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
93054         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
93055         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93056         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
93057         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
93058         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
93059         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93060         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
93061         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
93062         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
93063         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
93064         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93065         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
93066         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
93067         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
93068         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
93069         * MODULES.html.sh: Remove EOVERFLOW.
93070         * NEWS: Mention the change.
93072 2008-09-13  Bruno Haible  <bruno@clisp.org>
93074         * modules/errno-tests: New file.
93075         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
93077         * lib/errno.in.h: New file.
93078         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
93079         * modules/errno: New file.
93080         * doc/posix-headers/errno.texi: Update documentation.
93081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
93083 2008-09-13  Bruno Haible  <bruno@clisp.org>
93085         * tests/test-poll.c: Use #if for native Windows, rather than testing
93086         __MSVCRT__.
93088 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93089             Bruno Haible  <bruno@clisp.org>
93091         * lib/glob.c: Don't include <pwd.h> on native Windows.
93092         (WINDOWS32): New macro.
93093         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
93095 2008-09-13  Bruno Haible  <bruno@clisp.org>
93097         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
93098         (ETIMEDOUT): Remove macro.
93099         (glthread_cond_timedwait_multithreaded): New declaration.
93100         (glthread_cond_timedwait): Use it.
93101         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
93102         (glthread_cond_timedwait_multithreaded): New function.
93104 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
93106         * modules/poll-tests: Do not check for io.h.
93107         * tests/test-poll.c: Check for __MSVCRT__ instead.
93109 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
93111         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
93112         * modules/poll-tests: Add inet_pton, stdbool, sockets.
93113         * tests/test-poll.c: Use them.  Use _pipe on Windows.
93115 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
93117         * modules/poll-tests: New.
93118         * tests/test-poll.c: New.
93120 2008-09-12  Eric Blake  <ebb9@byu.net>
93122         frexp: test for NetBSD failure on -0.0
93123         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
93124         not all, bugs from NetBSD 3.0 have been fixed.
93125         * doc/posix-functions/frexp.texi (frexp): Document bug.
93126         Reported by Thomas Klausner.
93128         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
93129         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
93130         literal -0.0.
93131         Reported by Jonathan C. Patschke <jp@centtech.com>.
93133 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93135         * lib/glthread/cond.h: Use dummy implementation also if
93136         USE_WIN32_THREADS.
93138 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93140         * modules/fnmatch-posix (License): Change to LGPLv2+.
93141         * modules/fnmatch-gnu (License): Likewise.
93143 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93145         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
93147 2008-09-11  Jim Meyering  <meyering@redhat.com>
93149         * users.txt: Add gtk-vnc.
93151 2008-09-08  Simon Josefsson  <simon@josefsson.org>
93153         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
93154         rotate amounts.
93156         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
93157         required for 16-bit and 8-bit rotates.
93158         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
93159         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
93160         UINT8_MAX instead of hard-coded constants.
93161         Suggested by Paul Eggert.
93163 2008-09-07  Bruno Haible  <bruno@clisp.org>
93165         * tests/test-striconveh.c (main): Check behaviour when converting from
93166         UTF-7.
93168         Make striconveh work better with stateful encodings.
93169         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
93170         that iconv does not increment the inptr when returning -1/EINVAL.
93172 2008-09-07  Bruno Haible  <bruno@clisp.org>
93174         * build-aux/config.rpath: Update according to libtool-2.2.6.
93175         * build-aux/config.libpath: Likewise.
93177 2008-09-06  Bruno Haible  <bruno@clisp.org>
93179         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
93180         * lib/freadptr.c (freadptr): Likewise.
93181         * lib/freadseek.c (freadptrinc): Likewise.
93182         Reported by Simon Josefsson.
93184 2008-09-06  Bruno Haible  <bruno@clisp.org>
93186         * modules/freadptr (License): Change to LGPLv2+.
93187         * modules/freadseek (License): Likewise.
93188         Suggested by Eric Blake.
93190         * modules/memchr2 (License): Change to LGPLv2+.
93191         Approved by Eric Blake.
93193 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93194             Bruno Haible  <bruno@clisp.org>
93196         Make gnulib-tool work with native 'sed' on AIX.
93197         * gnulib-tool (sed_noop): New variable.
93198         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
93199         func_add_or_update, func_create_testdir): Use it to initialize sed
93200         script variables.
93201         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
93203 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
93204             Bruno Haible  <bruno@clisp.org>
93206         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
93207         also works after #include directives.
93209 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
93211         getdate.y: reject an out-of-range timezone value
93212         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
93213         the range [-24...+24].  When specified with only one or two digits,
93214         * tests/test-getdate.c: Tests for the fix.
93215         * doc/getdate.texi: Document this change.
93217 2008-09-03  Bruno Haible  <bruno@clisp.org>
93219         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
93221 2008-09-02  Simon Josefsson  <simon@josefsson.org>
93223         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
93224         <bruce.korb@gmail.com> with ideas from Ben Pfaff
93225         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
93226         Blake <ebb9@byu.net>.
93228         * tests/test-bitrotate.c: Add more test vectors.
93230 2008-09-02  Eric Blake  <ebb9@byu.net>
93232         vasnprintf-posix: handle large precision via %.*d
93233         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
93234         when handling it ourselves.
93235         * tests/test-vasnprintf-posix.c (test_function): Add test.
93236         * tests/test-snprintf-posix.h (test_function): Likewise.
93237         * tests/test-sprintf-posix.h (test_function): Likewise.
93238         * tests/test-vasprintf-posix.c (test_function): Likewise.
93239         Reported by Alain Guibert.
93241 2008-09-01  Eric Blake  <ebb9@byu.net>
93243         c-stack: make configure-time check more robust
93244         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
93245         successful sigaction call.
93246         Reported by Tom G. Christensen.
93248 2008-09-01  Bruno Haible  <bruno@clisp.org>
93250         New module 'findprog-lgpl'.
93251         * modules/findprog-lgpl: New file.
93252         * lib/findprog-lgpl.c: New file.
93253         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
93254         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
93255         to decide whether to use strdup or xstrdup, concatenated_filename or
93256         xconcatenated_filename.
93258 2008-09-01  Bruno Haible  <bruno@clisp.org>
93260         Split module 'concat-filename' into 'concat-filename' (LGPL) and
93261         'xconcat-filename' (GPL).
93262         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
93263         (License): Change to LGPLv2+.
93264         * modules/xconcat-filename: New file.
93265         * lib/concat-filename.h (concatenated_filename): Change specification.
93266         (xconcatenated_filename): New declaration.
93267         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
93268         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
93269         memory situations.
93270         * lib/xconcat-filename.c: New file.
93271         * NEWS: Mention the change.
93272         * lib/findprog.c: Include concat-filename.h, not filename.h.
93273         (find_in_path): Use xconcatenated_filename instead of
93274         concatenated_filename.
93275         * lib/javacomp.c: Include concat-filename.h, not filename.h.
93276         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
93277         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
93278         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
93279         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
93280         instead of concatenated_filename.
93281         * lib/javaexec.c: Include concat-filename.h, not filename.h.
93282         (execute_java_class): Use xconcatenated_filename instead of
93283         concatenated_filename.
93284         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
93285         * modules/javacomp (Depends-on): Likewise.
93286         * modules/javaexec (Depends-on): Likewise.
93288 2008-09-01  Bruno Haible  <bruno@clisp.org>
93290         Split module 'filename' into 'filename' and 'concat-filename'.
93291         * modules/filename: Keep only lib/filename.h.
93292         (License): Change to LGPLv2+.
93293         * modules/concat-filename: New file, extracted from modules/filename.
93294         * lib/filename.h (concatenated_filename): Remove declaration.
93295         * lib/concat-filename.h: New file, extracted from lib/filename.h.
93296         * lib/concat-filename.c: Include concat-filename.h.
93297         * NEWS: Mention the change.
93299 2008-09-01  Simon Josefsson  <simon@josefsson.org>
93301         * lib/bitrotate.h (rotl8, rotr8): Add.
93303         * modules/bitrotate (configure.ac): Need
93304         AC_REQUIRE([AC_C_INLINE]).
93305         (Description): Mention stdint.h.  Reported by Bruno Haible
93306         <bruno@clisp.org>.
93308         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
93309         Paolo Bonzini <bonzini@gnu.org>.
93311 2008-08-31  Bruno Haible  <bruno@clisp.org>
93313         Assume Solaris specific bi-arch conventions on Solaris systems.
93314         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
93315         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
93316         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
93317         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
93318         like acl_libdirstem.
93319         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
93320         acl_libdirstem.
93321         * NEWS: Mention the change.
93322         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
93324 2008-08-31  Jim Meyering  <meyering@redhat.com>
93326         * lib/strftime.h: Add comments describing the two added arguments.
93328         remove duplicate #include directives
93329         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
93330         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
93332 2008-08-31  Bruno Haible  <bruno@clisp.org>
93334         New module 'sigpipe-die'.
93335         * modules/sigpipe-die: New file.
93336         * lib/sigpipe-die.h: New file.
93337         * lib/sigpipe-die.c: New file.
93338         * MODULES.html.sh (Signal handling): Add sigpipe-die.
93340 2008-08-31  Bruno Haible  <bruno@clisp.org>
93342         Don't override previously installed signal handlers.
93343         * lib/fatal-signal.c (saved_sigactions): New variable.
93344         (uninstall_handlers): Reset the signal to the saved handler, not
93345         to SIG_DFL (except when ignored).
93346         (install_handlers): Save the previous handlers.
93348 2008-08-30  Bruno Haible  <bruno@clisp.org>
93350         * gnulib-tool (func_reset_sigpipe): New function.
93351         (func_get_automake_snippet, func_modules_transitive_closure,
93352         func_import): Invoke it before a join command that reads from stdin,
93353         to avoid "echo: write error: Broken pipe" error messages on stderr.
93354         Reported by Sam Steingold <sds@gnu.org>.
93356 2008-08-30  Bruno Haible  <bruno@clisp.org>
93358         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
93359         Code copied from m4/open.m4.
93360         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
93361         access and the filename ends in a slash. Code copied from lib/open.c.
93362         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
93363         * tests/test-fopen.c (main): Check against bug with trailing slash.
93365 2008-08-29  Bruno Haible  <bruno@clisp.org>
93367         Avoid some "gcc -pedantic" warnings.
93368         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
93369         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
93370         * lib/dirent.in.h: Likewise.
93371         * lib/fcntl.in.h: Likewise.
93372         * lib/float.in.h: Likewise.
93373         * lib/iconv.in.h: Likewise.
93374         * lib/inttypes.in.h: Likewise.
93375         * lib/locale.in.h: Likewise.
93376         * lib/math.in.h: Likewise.
93377         * lib/netinet_in.in.h: Likewise.
93378         * lib/search.in.h: Likewise.
93379         * lib/signal.in.h: Likewise.
93380         * lib/stdarg.in.h: Likewise.
93381         * lib/stdint.in.h: Likewise.
93382         * lib/stdio.in.h: Likewise.
93383         * lib/stdlib.in.h: Likewise.
93384         * lib/string.in.h: Likewise.
93385         * lib/strings.in.h: Likewise.
93386         * lib/sys_select.in.h: Likewise.
93387         * lib/sys_socket.in.h: Likewise.
93388         * lib/sys_stat.in.h: Likewise.
93389         * lib/sys_time.in.h: Likewise.
93390         * lib/sysexits.in.h: Likewise.
93391         * lib/time.in.h: Likewise.
93392         * lib/unistd.in.h: Likewise.
93393         * lib/wchar.in.h: Likewise.
93394         * lib/wctype.in.h: Likewise.
93395         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
93396         * modules/fchdir (Makefile.am): Likewise.
93397         * modules/fcntl (Makefile.am): Likewise.
93398         * modules/float (Makefile.am): Likewise.
93399         * modules/iconv_open (Makefile.am): Likewise.
93400         * modules/inttypes (Makefile.am): Likewise.
93401         * modules/locale (Makefile.am): Likewise.
93402         * modules/math (Makefile.am): Likewise.
93403         * modules/netinet_in (Makefile.am): Likewise.
93404         * modules/search (Makefile.am): Likewise.
93405         * modules/signal (Makefile.am): Likewise.
93406         * modules/stdarg (Makefile.am): Likewise.
93407         * modules/stdint (Makefile.am): Likewise.
93408         * modules/stdio (Makefile.am): Likewise.
93409         * modules/stdlib (Makefile.am): Likewise.
93410         * modules/string (Makefile.am): Likewise.
93411         * modules/strings (Makefile.am): Likewise.
93412         * modules/sys_select (Makefile.am): Likewise.
93413         * modules/sys_socket (Makefile.am): Likewise.
93414         * modules/sys_stat (Makefile.am): Likewise.
93415         * modules/sys_time (Makefile.am): Likewise.
93416         * modules/sysexits (Makefile.am): Likewise.
93417         * modules/time (Makefile.am): Likewise.
93418         * modules/unistd (Makefile.am): Likewise.
93419         * modules/wchar (Makefile.am): Likewise.
93420         * modules/wctype (Makefile.am): Likewise.
93421         Reported by Reuben Thomas <rrt@sc3d.org>.
93423 2008-08-29  Bruno Haible  <bruno@clisp.org>
93425         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
93426         any more.
93428 2008-08-29  Simon Josefsson  <simon@josefsson.org>
93430         * MODULES.html.sh (Misc): Add bitrotate.
93432         * modules/bitrotate: New file.
93434         * lib/bitrotate.h: New file.
93436         * modules/bitrotate-tests: New file.
93438         * tests/test-bitrotate.c: New file.
93440         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
93441         on the bitrotate module.
93443         * lib/arctwo.c: Use new bitrotate module.
93445 2008-08-29  Jim Meyering  <meyering@redhat.com>
93447         bootstrap: merge changes from coreutils
93448         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
93449         of copied files.  Remove a kludge, now that this is fixed.
93450         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
93451         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
93452         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
93454 2008-08-29  Bruno Haible  <bruno@clisp.org>
93456         * MODULES.html.sh: Remove --cvs-urls option.
93458 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
93460         maint.mk: adjust to file name change
93461         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
93463 2008-08-28  Jim Meyering  <meyering@redhat.com>
93465         * modules/getndelim2 (License): Relicense to LGPLv2+.
93466         Approved by Richard Stallman for the version of 1995, and by
93467         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
93469 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
93471         * lib/getdelim.c (flockfile, funlockfile): Make all of them
93472         dummy if one is not available.  Do not touch them if
93473         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
93474         (getc_maybe_unlocked): New.
93475         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
93477 2008-08-26  Eric Blake  <ebb9@byu.net>
93479         doc/INSTALL: resync from autoconf
93480         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
93481         (INSTALL_PRELUDE): Delete; this is done more efficiently by
93482         moving...
93483         * install.texi [!autoconf]: ...here.  Resync from autoconf.
93484         * INSTALL: Regenerate.
93485         * INSTALL.ISO: New file.
93486         * INSTALL.UTF-8: Likewise.
93488 2008-08-26  Jim Meyering  <meyering@redhat.com>
93490         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
93491         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
93492         these definitions conditional, so that they may be overridden, too.
93494 2008-08-26  Bruno Haible  <bruno@clisp.org>
93496         Generate INSTALL file variants with prettier quotes.
93497         * doc/Makefile (INSTALL_PRELUDE): New macro.
93498         (INSTALL): Use it.
93499         (INSTALL.ISO, INSTALL.UTF-8): New rules.
93501 2008-08-26  Bruno Haible  <bruno@clisp.org>
93503         Run makeinfo in an English locale.
93504         * doc/Makefile (MAKEINFO): New variable.
93506 2008-08-26  Bruno Haible  <bruno@clisp.org>
93508         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
93509         Suggested by Eric Blake.
93511 2008-08-25  Bruno Haible  <bruno@clisp.org>
93513         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
93515 2008-08-25  Eric Blake  <ebb9@byu.net>
93517         c-stack: test that stack overflow can be caught
93518         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
93519         that platform allows handling stack overflow; at least OS/2 EMX
93520         has sigaltstack, but crashes before transferring control to
93521         handler on stack overflow.
93522         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
93523         check for HAVE_STACK_OVERFLOW_HANDLING.
93524         Reported by Elbert Pol.
93526 2008-08-25  Bruno Haible  <bruno@clisp.org>
93528         * doc/posix-functions/strftime.texi: Fix description of strftime
93529         module.
93531 2008-08-24  Bruno Haible  <bruno@clisp.org>
93533         * tests/uniwidth/test-uc_width2.c: New file.
93534         * tests/uniwidth/test-uc_width2.sh: New file.
93535         * modules/uniwidth/width-tests (Files): Add the new files.
93536         (TESTS): Add uniwidth/test-uc_width2.sh.
93537         (TESTS_ENVIRONMENT): New variable.
93538         (check_PROGRAMS): Add test-uc_width2.
93539         (test_uc_width2_SOURCES): New variable.
93541         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
93542         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
93543         not 0x00AB.
93544         Reported by Alexander V. Lukyanov <lav@netis.ru>.
93546 2008-08-22  Eric Blake  <ebb9@byu.net>
93548         test-lock, test-tls: mention why a test is skipped
93549         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
93550         skipped.
93551         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
93553         count-one-bits: relax license
93554         * modules/count-one-bits (License): Relicense to LGPLv2+.
93555         Suggested by Ludovic Courtès, approved by Ben Pfaff.
93557 2008-08-22  Andreas Schwab  <schwab@suse.de>
93559         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
93560         Remove spurious space in assignment.
93562 2008-08-21  Simon Josefsson  <simon@josefsson.org>
93564         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
93565         Paul Eggert <eggert@CS.UCLA.EDU>.
93567 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
93569         * modules/gettext: Add m4/threadlib.m4.
93571 2008-08-19  Eric Blake  <ebb9@byu.net>
93573         test-c-stack: fix compilation failure on FreeBSD 5.0
93574         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
93575         headers before <sys/resource.h>.
93576         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
93577         the bug.
93578         Reported by Nelson H. F. Beebe.
93580         strverscmp: migrate from "strverscmp.h" to <string.h>
93581         * modules/string (Makefile.am): Add new hooks.
93582         * modules/strverscmp (Files): Remove strverscmp.h.
93583         (Depends-on): Add string.
93584         (configure.ac): Add indicator.
93585         (Include): Mention new header.
93586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
93587         defaults.
93588         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
93589         results.
93590         * lib/strverscmp.h: Delete.
93591         * lib/string.in.h (strverscmp): Provide declaration, when needed.
93592         * tests/test-strverscmp.c (includes): Adjust client.
93593         * lib/check-version.c (includes): Likewise.
93594         * NEWS: Document the change.
93596         strverscmp: add unit test
93597         * modules/strverscmp-tests: New file.
93598         * tests/test-strverscmp.c: Likewise.
93600 2008-08-19  Simon Josefsson  <simon@josefsson.org>
93602         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
93603         regarding Windows crypto stuff, from Mono.
93605 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
93607         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
93608         if present, for intel RND.  Return error on failures.
93610 2008-08-18  Ben Pfaff  <blp@gnu.org>
93612         gitlog-to-changelog: give better diagnostic for failed pipe-open
93613         * build-aux/gitlog-to-changelog: Improve error message: suggest
93614         that the version of Git may be too old.
93616 2008-08-18  Simon Josefsson  <simon@josefsson.org>
93618         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
93619         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
93621 2008-08-18  Bruno Haible  <bruno@clisp.org>
93623         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
93624         pthread_in_use().
93626 2008-08-18  Bruno Haible  <bruno@clisp.org>
93628         * lib/glthread/threadlib.c: Include <pthread.h>.
93630 2008-08-18  Bruno Haible  <bruno@clisp.org>
93632         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
93633         glthread_recursive_lock_* macros.
93634         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
93635         Fix syntax error.
93637 2008-08-18  Bruno Haible  <bruno@clisp.org>
93639         * lib/glthread/thread.c: Avoid forcing a context switch right after
93640         thread creation.
93642 2008-08-17  Bruno Haible  <bruno@clisp.org>
93644         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
93645         * lib/glthread/thread.h: Provide Win32 specific implementation.
93646         * modules/thread (Files): Add lib/glthread/thread.c.
93647         (Depends-on): Add lock.
93648         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
93650 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93652         New module 'yield'.
93653         * modules/yield: New file.
93654         * lib/glthread/yield.h: New file.
93655         * m4/yield.m4: New file.
93656         * MODULES.html.sh (Multithreading): Add yield.
93658 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93660         New module 'thread'.
93661         * modules/thread: New file.
93662         * lib/glthread/thread.h: New file.
93663         * m4/thread.m4: New file.
93664         * MODULES.html.sh (Multithreading): Add thread.
93666 2008-08-17  Bruno Haible  <bruno@clisp.org>
93668         * lib/glthread/lock.h: Include <stdlib.h> always.
93669         * lib/glthread/tls.h: Likewise.
93670         * lib/glthread/cond.h: Likewise.
93672 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93674         New module 'cond'.
93675         * modules/cond: New file.
93676         * lib/glthread/cond.h: New file.
93677         * lib/glthread/cond.c: New file.
93678         * m4/cond.m4: New file.
93679         * MODULES.html.sh (Multithreading): Add cond.
93681 2008-08-16  Eric Blake  <ebb9@byu.net>
93683         c-stack: fix regression on Irix 5.3 from 2008-06-21
93684         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
93685         sa_sigaction...
93686         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
93687         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
93688         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
93689         * modules/signal (Makefile.am): Use the value.
93690         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
93691         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
93692         * doc/posix-headers/signal.texi (signal.h): Document this
93693         portability issue.
93694         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
93695         Reported by Tom G. Christensen.
93697 2008-08-17  Bruno Haible  <bruno@clisp.org>
93699         New module 'threadlib'.
93700         * modules/threadlib: New file.
93701         * lib/glthread/threadlib.c: New file, extracted from
93702         lib/glthread/lock.c.
93703         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
93704         functions.
93705         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
93706         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
93707         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
93708         macros.
93709         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
93710         (gl_DISABLE_THREADS): Remove macro.
93711         * modules/lock (Files): Remove build-aux/config.rpath.
93712         (Depends-on): Remove havelib. Add threadlib.
93713         (configure.ac-early): Remove section.
93714         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
93715         * modules/tls (Depends-on): Remove lock. Add threadlib.
93716         (Link): New section, copied from threadlib.
93717         * MODULES.html.sh (Multithreading): Add threadlib.
93719 2008-08-14  Bruno Haible  <bruno@clisp.org>
93721         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
93722         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
93723         glthread_rwlock_unlock, glthread_rwlock_destroy,
93724         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
93725         glthread_recursive_lock_destroy): Define as macros always.
93726         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
93727         glthread_lock_lock.
93728         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
93729         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
93730         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
93731         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
93732         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
93733         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
93734         (glthread_recursive_lock_lock_func): Renamed from
93735         glthread_recursive_lock_lock.
93736         (glthread_recursive_lock_unlock_func): Renamed from
93737         glthread_recursive_lock_unlock.
93738         (glthread_recursive_lock_destroy_func): Renamed from
93739         glthread_recursive_lock_destroy.
93741 2008-08-14  Bruno Haible  <bruno@clisp.org>
93743         * lib/glthread/lock.h: Renamed from lib/lock.h.
93744         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
93745         * lib/glthread/tls.h: Renamed from lib/tls.h.
93746         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
93747         * lib/fstrcmp.c: Update includes.
93748         * lib/strsignal.c: Update includes.
93749         * modules/lock (Files, Makefile.am): Update.
93750         (Include): Change to "glthread/lock.h".
93751         * modules/tls (Files, Makefile.am): Update.
93752         (Include): Change to "glthread/tls.h".
93753         * tests/test-lock.c: Update includes.
93754         * tests/test-tls.c: Update includes.
93755         * NEWS: Mention the renamed header files.
93757 2008-08-11  Jim Meyering  <meyering@redhat.com>
93759         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
93761 2008-08-11  Eric Blake  <ebb9@byu.net>
93763         test-c-stack: avoid C99-ism
93764         * tests/test-c-stack.c (main): Fix whitespace, move declaration
93765         before statement.
93766         Reported by Alain Guibert.
93768 2008-08-10  Jim Meyering  <meyering@redhat.com>
93770         ensure that return value of uinttostr et al are not ignored
93771         * lib/inttostr.h (__GNUC_PREREQ): Define.
93772         (__attribute_warn_unused_result__): Define.
93773         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
93775 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
93777         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
93778         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
93780 2008-08-07  Jim Meyering  <meyering@redhat.com>
93782         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
93784         * modules/mkstemp (License): Relicense under LGPLv2+.
93785         * modules/tempname (License): Likewise.
93787 2008-08-06  Bruno Haible  <bruno@clisp.org>
93789         * lib/poll.c (poll): Further micro-optimization.
93791 2008-08-06  Jim Meyering  <meyering@redhat.com>
93793         inet_pton.c: use locale-independent tolower
93794         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
93795         (inet_pton6): Use c_tolower rather than tolower.
93796         * modules/inet_pton (Depends-on): Add c-ctype.
93798 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
93800         * lib/poll.c (poll): Avoid division when timeout is 0, cache
93801         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
93803 2008-08-06  Jim Meyering  <meyering@redhat.com>
93805         * modules/inet_pton (License): Relicense under LGPLv2+.
93807 2008-08-03  Bruno Haible  <bruno@clisp.org>
93809         Additional non-aborting API for lock and tls.
93810         * lib/lock.h: Include <errno.h>.
93811         (glthread_lock_init): New macro/function.
93812         (gl_lock_init): Define as wrapper around glthread_lock_init.
93813         (glthread_lock_lock): New macro/function.
93814         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
93815         (glthread_lock_unlock): New macro/function.
93816         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
93817         (glthread_lock_destroy): New macro/function.
93818         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
93819         (glthread_rwlock_init): New macro/function.
93820         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
93821         (glthread_rwlock_rdlock): New macro/function.
93822         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
93823         (glthread_rwlock_wrlock): New macro/function.
93824         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
93825         (glthread_rwlock_unlock): New macro/function.
93826         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
93827         (glthread_rwlock_destroy): New macro/function.
93828         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
93829         (glthread_recursive_lock_init): New macro/function.
93830         (gl_recursive_lock_init): Define as wrapper around
93831         glthread_recursive_lock_init.
93832         (glthread_recursive_lock_lock): New macro/function.
93833         (gl_recursive_lock_lock): Define as wrapper around
93834         glthread_recursive_lock_lock.
93835         (glthread_recursive_lock_unlock): New macro/function.
93836         (gl_recursive_lock_unlock): Define as wrapper around
93837         glthread_recursive_lock_unlock.
93838         (glthread_recursive_lock_destroy): New macro/function.
93839         (gl_recursive_lock_destroy): Define as wrapper around
93840         glthread_recursive_lock_destroy.
93841         (glthread_once): New macro/function.
93842         (gl_once): Define as wrapper around glthread_once.
93843         Update function declarations.
93844         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
93845         glthread_rwlock_init. Return error code.
93846         (glthread_rwlock_rdlock_multithreaded): Renamed from
93847         glthread_rwlock_rdlock. Return error code.
93848         (glthread_rwlock_wrlock_multithreaded): Renamed from
93849         glthread_rwlock_wrlock. Return error code.
93850         (glthread_rwlock_unlock_multithreaded): Renamed from
93851         glthread_rwlock_unlock. Return error code.
93852         (glthread_rwlock_destroy_multithreaded): Renamed from
93853         glthread_rwlock_destroy. Return error code.
93854         (glthread_recursive_lock_init_multithreaded): Renamed from
93855         glthread_recursive_lock_init. Return error code.
93856         (glthread_recursive_lock_lock_multithreaded): Renamed from
93857         glthread_recursive_lock_lock. Return error code.
93858         (glthread_recursive_lock_unlock_multithreaded): Renamed from
93859         glthread_recursive_lock_unlock. Return error code.
93860         (glthread_recursive_lock_destroy_multithreaded): Renamed from
93861         glthread_recursive_lock_destroy. Return error code.
93862         (glthread_once_call): Make static.
93863         (glthread_once_multithreaded): Renamed from glthread_once.
93864         * lib/tls.h: Include <errno.h>.
93865         (glthread_tls_key_init): New macro/function.
93866         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
93867         (glthread_tls_set): New macro/function.
93868         (gl_tls_set): Define as wrapper around glthread_tls_set.
93869         (glthread_tls_key_destroy): New macro/function.
93870         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
93871         Update function declarations.
93872         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
93873         glthread_tls_get.
93874         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
93876 2008-08-04  Eric Blake  <ebb9@byu.net>
93878         gnumakefile: use space, not TAB, outside of targets
93879         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
93881 2008-08-02  Jim Meyering  <meyering@redhat.com>
93883         getdate.y: avoid locale-dependent date parsing failure
93884         In Turkish locales, getdate would fail to recognize keywords
93885         containing a lowercase "i".  The solution is not to rely on
93886         locale-sensitive case-conversion.
93887         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
93888         (lookup_word): Use c_toupper in place of toupper.
93889         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
93890         Reported by Vefa Bicakci <bicave@superonline.com> in
93891         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
93892         * modules/getdate (Depends-on): Add c-ctype.
93894 2008-08-02  Bruno Haible  <bruno@clisp.org>
93896         * gnulib-tool (func_import): When updating or creating a .gitignore
93897         file, prepend each added line with a slash, and ignore leading slashes
93898         from the existing lines.
93899         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
93901 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93903         Portability fix for GNU make 3.79.1.
93904         * top/GNUmakefile: Avoid 'else COND', which older GNU make
93905         versions do not understand.
93907 2008-08-01  Bruno Haible  <bruno@clisp.org>
93909         Work around bug of HP-UX 10.20 cc with -0.0 literal.
93910         * tests/test-isnanf.h (zero): New variable.
93911         (main): Avoid literal -0.0f.
93912         * tests/test-isnand.h (zero): New variable.
93913         (main): Avoid literal -0.0.
93914         * tests/test-isnanl.h (zero): New variable.
93915         (main): Avoid literal -0.0L.
93916         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
93917         (test_float, test_double, test_long_double): Avoid literals -0.0f,
93918         -0.0, -0.0L.
93919         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
93920         (test_signbitd): Avoid literal -0.0.
93921         (test_signbitl): Avoid literal -0.0L.
93922         * tests/test-ceilf1.c (zero): New variable.
93923         (main): Avoid literal -0.0f.
93924         * tests/test-ceill.c (zero): New variable.
93925         (main): Avoid literal -0.0L.
93926         * tests/test-floorf1.c (zero): New variable.
93927         (main): Avoid literal -0.0f.
93928         * tests/test-floorl.c (zero): New variable.
93929         (main): Avoid literal -0.0L.
93930         * tests/test-roundf1.c (zero): New variable.
93931         (main): Avoid literal -0.0f.
93932         * tests/test-round1.c (zero): New variable.
93933         (main): Avoid literal -0.0.
93934         * tests/test-roundl.c (zero): New variable.
93935         (main): Avoid literal -0.0L.
93936         * tests/test-truncf1.c (zero): New variable.
93937         (main): Avoid literal -0.0f.
93938         * tests/test-trunc1.c (zero): New variable.
93939         (main): Avoid literal -0.0.
93940         * tests/test-truncl.c (zero): New variable.
93941         (main): Avoid literal -0.0L.
93942         * tests/test-frexp.c (zero): New variable.
93943         (main): Avoid literal -0.0.
93944         * tests/test-frexpl.c (zero): New variable.
93945         (main): Avoid literal -0.0L.
93946         * tests/test-ldexpl.c (zero): New variable.
93947         (main): Avoid literal -0.0L.
93948         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93949         (zerod, zerol): New variables.
93950         (test_function): Avoid literals -0.0, -0.0L.
93951         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93952         (zerod, zerol): New variables.
93953         (test_function): Avoid literals -0.0, -0.0L.
93954         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93955         (zerod, zerol): New variables.
93956         (test_function): Avoid literals -0.0, -0.0L.
93957         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93958         (zerod, zerol): New variables.
93959         (test_function): Avoid literals -0.0, -0.0L.
93960         * tests/test-strtod.c (zero): New variable.
93961         (main): Avoid literal -0.0.
93962         Reported by Jonathan C. Patschke <jp@centtech.com>.
93964 2008-07-31  Jim Meyering  <meyering@redhat.com>
93966         sha256.h: correct definition of SHA224_DIGEST_SIZE
93967         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
93968         Reported by Paulie Pena IV <paulie4@gmail.com>.
93969         Define as 224 / 8, rather than as a literal.
93970         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
93971         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
93972         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
93974 2008-07-31  Bruno Haible  <bruno@clisp.org>
93976         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
93977         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
93978         Reported by Jonathan Patschke <jp@centtech.com>.
93980 2008-07-31  Bruno Haible  <bruno@clisp.org>
93982         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
93983         Reported by Paolo Bonzini <bonzini@gnu.org>.
93985 2008-07-30  Eric Blake  <ebb9@byu.net>
93987         test-strtod: allow compilation without -lm
93988         * tests/test-strtod.c (main): Avoid link dependence on fabs.
93989         Reported by Dennis Clarke <blastwave@gmail.com>.
93991 2008-07-28  Jim Meyering  <meyering@redhat.com>
93993         bootstrap: work also when there are no .po files in po/
93994         * build-aux/bootstrap (update_po_files): Complete the change
93995         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
93997 2008-07-27  Jim Meyering  <meyering@redhat.com>
93999         * users.txt: Add zile.
94001 2008-07-26  Ben Pfaff  <blp@gnu.org>
94003         Add missing dependencies on new m4/exponent[fdl].m4 files.
94004         * modules/isnanf-nolibm: Add m4/exponentf.m4.
94005         * modules/isnand-nolibm: Add m4/exponentd.m4.
94006         * modules/isnanl-nolibm: Add m4/exponentl.m4.
94007         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
94008         m4/isnan[fdl].m4, because the macros actually used moved.
94009         Reported by Jim Meyering.
94011 2008-07-14  Ben Pfaff  <blp@gnu.org>
94013         Add isinf module.
94014         * lib/isinf.c: New file.
94015         * lib/math.in.h: Define isinf macro if we have decided to replace
94016         it.
94017         * m4/isinf.m4: New file.
94018         * m4/math_h.m4: Initialize and substitute variables for isinf
94019         module.
94020         * modules/isinf: New file.
94021         * modules/isinf-tests: New file.
94022         * modules/math: Add substitutions for new module.
94023         * tests/test-isinf.c: New file.
94024         * doc/posix-functions/isinf.texi: Mention new module.
94025         * MODULES.html.sh: Mention new module.
94027 2008-07-14  Ben Pfaff  <blp@gnu.org>
94029         Factor out some macros for use by additional modules.
94030         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
94031         exponentf.m4.
94032         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
94033         exponentd.m4.
94034         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
94035         file exponentl.m4.
94036         * m4/exponentf.m4: New file.
94037         * m4/exponentd.m4: New file.
94038         * m4/exponentl.m4: New file.
94039         * modules/isnanf: Use new file m4/exponentf.m4.
94040         * modules/isnand: Use new file m4/exponentd.m4.
94041         * modules/isnanl: Use new file m4/exponentl.m4.
94043 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
94045         mktime.c: normalize tp->tm_isdst value to -1/0/1.
94046         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
94047         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
94048         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
94050         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
94051         readlink on platforms without PATH_MAX.
94053 2008-07-21  Eric Blake  <ebb9@byu.net>
94055         Warn, not fail, on stale version.
94056         * top/GNUmakefile (_curr-ver): Tone down previous patch.
94058         Don't allow installation with stale devel version number.
94059         * top/GNUmakefile (_is-install-target): New macro.
94060         (_curr-ver): Forbid installation with stale version number.
94062 2008-07-20  Bruno Haible  <bruno@clisp.org>
94064         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
94065         TESTS_ENVIRONMENT.
94066         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
94068 2008-07-20  Bruno Haible  <bruno@clisp.org>
94070         * lib/c-stack.h (c_stack_action): Add documentation.
94071         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
94073 2008-07-20  Bruno Haible  <bruno@clisp.org>
94075         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
94076         * modules/readlink (License): Likewise.
94078 2008-07-17  Eric Blake  <ebb9@byu.net>
94080         * modules/c-stack (Link): Fix typo.
94082         Make c-stack use libsigsegv, when available.
94083         * modules/c-stack (Depends-on): Add libsigsegv.
94084         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
94085         needed.
94086         * lib/c-stack.c (SIGSTKSZ): Define fallback.
94087         (segv_handler, overflow_handler, c_stack_action)
94088         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
94089         implementation when libsigsegv is available, but only when using
94090         the library is necessary.
94091         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
94092         comment, explaining why XSI check fails on Linux.
94093         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
94094         * tests/test-c-stack2.sh: Tweak skip message.
94095         * NEWS: Document new link-time requirements.
94097 2008-07-16  Eric Blake  <ebb9@byu.net>
94099         c-stack: Expose false positives when not using libsigsegv.
94100         * modules/c-stack-tests (Files): Expand test.
94101         * tests/test-c-stack.c (main): Add means to conditionally trigger
94102         non-overflow SIGSEGV.
94103         * tests/test-c-stack2.sh: New file.
94105 2008-07-14  Bruno Haible  <bruno@clisp.org>
94107         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
94108         Reported by Eric Blake.
94110 2008-07-14  Sam Steingold  <sds@gnu.org>
94111             Bruno Haible  <bruno@clisp.org>
94113         New module libsigsegv.
94114         * modules/libsigsegv: New file.
94115         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
94116         modifications.
94117         * MODULES.html.sh (Signal handling): New section.
94119 2008-07-14  Bruno Haible  <bruno@clisp.org>
94121         * modules/unictype/ctype-* (Description): Add the word "function".
94122         Improves the resulting doc in MODULES.html.
94124 2008-07-12  Ben Pfaff  <blp@gnu.org>
94126         Add longlong module.
94127         * modules/longlong: New file.
94129 2008-07-12  Bruno Haible  <bruno@clisp.org>
94131         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
94132         to empty.
94134 2008-07-10  Ben Pfaff  <blp@gnu.org>
94136         Add isnan module.
94137         * doc/posix-functions/isnan.texi: Mention new module.
94138         * lib/math.in.h: Define isnan macro if we have decided to replace
94139         it.
94140         * m4/isnan.m4: New file.
94141         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
94142         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
94143         also.
94144         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
94145         redundancy.
94146         * m4/math_h.m4: Initialize and substitute variables for isnan
94147         module.
94148         * modules/isnan: New file.
94149         * modules/isnan-tests: New file.
94150         * modules/math: Add substitutions for new module.
94151         * tests/test-isnan.c: New file.
94152         * MODULES.html.sh: Mention new module.
94154 2008-07-10  Ben Pfaff  <blp@gnu.org>
94156         Add isnanf module.
94157         * lib/isnanf.m4: New file.
94158         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
94159         (gl_HAVE_ISNANF_IN_LIBM): New macro.
94160         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
94161         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
94162         * modules/isnanf: New file.
94163         * modules/isnanf-tests: New file.
94164         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
94165         files.
94166         * tests/test-isnanf-nolibm.c: factored most of its contents into
94167         new file tests/test-isnanf.h.
94168         * tests/test-isnanf.h: New file.
94169         * tests/test-isnanf.c: New file.
94170         * MODULES.html.sh: Mention new module.
94171         * doc/glibc-functions/isnanf.texi: Mention new module.
94173 2008-07-10  Ben Pfaff  <blp@gnu.org>
94175         Add isnand module.
94176         * lib/isnand.h: New file.
94177         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
94178         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
94179         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
94180         functionality also.
94181         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
94182         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
94183         (gl_HAVE_ISNAND_IN_LIBM): New macro.
94184         * modules/isnand: New file.
94185         * modules/isnand-tests: New file.
94186         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
94187         files.
94188         * tests/test-isnand-nolibm.c: factored most of its contents into
94189         new file tests/test-isnand.h.
94190         * tests/test-isnand.h: New file.
94191         * tests/test-isnand.c: New file.
94192         * MODULES.html.sh: Mention new module.
94194 2008-07-10  Ben Pfaff  <blp@gnu.org>
94196         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
94197         * lib/isnand.h: Rename lib/isnand-nolibm.h.
94198         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
94199         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
94200         * modules/isnanf-nolibm: Update references to renamed files.
94201         * modules/isnand-nolibm: Likewise.
94202         * modules/isnanf-nolibm-tests: Likewise.
94203         * modules/isnand-nolibm-tests: Likewise.
94204         * lib/frexp.c: Likewise.
94205         * lib/isfinite.c: Likewise.
94206         * lib/signbitd.c: Likewise.
94207         * lib/signbitf.c: Likewise.
94208         * lib/vasnprintf.c: Likewise.
94209         * tests/test-ceilf1.c: Likewise.
94210         * tests/test-ceilf2.c: Likewise.
94211         * tests/test-floorf1.c: Likewise.
94212         * tests/test-floorf2.c: Likewise.
94213         * tests/test-frexp.c: Likewise.
94214         * tests/test-round1.c: Likewise.
94215         * tests/test-round2.c: Likewise.
94216         * tests/test-roundf1.c: Likewise.
94217         * tests/test-strtod.c: Likewise.
94218         * tests/test-trunc1.c: Likewise.
94219         * tests/test-trunc2.c: Likewise.
94220         * tests/test-truncf1.c: Likewise.
94221         * tests/test-truncf2.c: Likewise.
94222         * NEWS: Mention the renamed header files.
94224 2008-07-11  Jim Meyering  <meyering@redhat.com>
94226         vc-list-files: make the last-resort awk code more portable
94227         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
94228         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
94229         does not support it.
94231 2008-07-10  Eric Blake  <ebb9@byu.net>
94233         Work with tar's bootstrap.
94234         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
94235         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
94236         an m4 comment.
94238 2008-07-09  Jim Meyering  <meyering@redhat.com>
94240         posix-shell.m4: fix typo that made this test malfunction
94241         * m4/posix-shell.m4: Remove capitalization in variable name.
94243 2008-07-08  Bruno Haible  <bruno@clisp.org>
94245         * m4/onceonly.m4: Update comments.
94246         Reported by Ben Pfaff <blp@cs.stanford.edu>.
94248 2008-07-04  Jim Meyering  <meyering@redhat.com>
94250         * users.txt: Add vc-dwim.
94251         (bison, coreutils): Use the gitweb URL.
94253 2008-07-03  Jim Meyering  <meyering@redhat.com>
94255         * users.txt: Add libffcall.  From Sam Steingold.
94257 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
94259         getdate.y: do not ignore TZ with relative day, month or year offset
94260         * lib/getdate.y (get_date): Move the tz-handling block to follow the
94261         relative-date-handling, since otherwise, the latter would clobber the
94262         sole output (an updated Start value) of the tz-handling block.
94263         * tests/test-getdate.c: Tests for the fix
94265 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94267         Recognize 'foo_LIBRARIES += libgnu.a'.
94268         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
94269         makefile snippet has already specified an installation location,
94270         also using '+='.
94272 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
94274         getdate.y: factor out common actions
94275         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
94276         Use them in place of open-coded actions.
94278 2008-07-01  Simon Josefsson  <simon@josefsson.org>
94280         Add self-test for getdate module.
94281         * modules/getdate-tests: New file.
94282         * tests/test-getdate.c: New file.
94284 2008-06-29  Bruno Haible  <bruno@clisp.org>
94286         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
94287         .gitignore.
94288         Reported by Sylvain Beucler <beuc@beuc.net>.
94290 2008-06-29  Bruno Haible  <bruno@clisp.org>
94292         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
94293         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
94295 2008-06-29  Bruno Haible  <bruno@clisp.org>
94297         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
94298         EXTRA_DIST.
94299         Reported by Sylvain Beucler <beuc@beuc.net>.
94301 2008-06-26  Jim Meyering  <meyering@redhat.com>
94303         make several modules depend on the "open" module
94304         This provides slightly increased consistency when opening-for-write
94305         the name of a non-directory spelled with a trailing slash.
94306         * modules/chdir-safer: Likewise.
94307         * modules/chown: Likewise.
94308         * modules/clean-temp: Likewise.
94309         * modules/copy-file: Likewise.
94310         * modules/fchdir: Likewise.
94311         * modules/fcntl-safer: Likewise.
94312         * modules/pipe: Likewise.
94313         * modules/utime: Likewise.
94314         Prompted by Eric Blake and Bruno Haible.
94316 2008-06-24  Andreas Schwab  <schwab@suse.de>
94318         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
94319         literals can be used as initializers for global variables.
94321 2008-06-23  Eric Blake  <ebb9@byu.net>
94323         Make gnulib-cache.m4 easier to diff.
94324         * gnulib-tool (func_import): Allow newlines when reading cached
94325         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
94327 2008-06-23  Bruno Haible  <bruno@clisp.org>
94329         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
94330         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
94331         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
94332         m4/signalblocking.m4.
94333         (gl_PREREQ_SIGACTION): Don't invoke it.
94334         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
94335         gl_PREREQ_SIG_HANDLER_H.
94336         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
94337         Don't check for sigaction here.
94339 2008-06-23  Bruno Haible  <bruno@clisp.org>
94341         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
94342         (install_handlers): Don't set the SA_RESETHAND flag.
94344 2008-06-23  Bruno Haible  <bruno@clisp.org>
94346         * m4/sigaction.m4: Comment fixes.
94347         * lib/signal.in.h: Likewise.
94349 2008-06-23  Eric Blake  <ebb9@byu.net>
94351         Fix typo.
94352         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
94354         Avoid SA_ namespace.
94355         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
94356         Reported by Ralf Wildenhues.
94358         Avoid test failure due to SA_RESTORER.
94359         * tests/test-sigaction.c (SA_MASK): New macro.
94360         (main): Avoid failing due to extension flags being set.
94361         Reported by Jim Meyering.
94363         Revert use of sig-handler.h in sigprocmask.c.
94364         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
94365         it requires the existence of struct sigaction.
94366         * lib/sigprocmask.c (handler_t): Restore typedef.
94367         (rpl_signal, old_handlers): Use local type.
94369 2008-06-22  Bruno Haible  <bruno@clisp.org>
94371         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
94372         conditionally.
94373         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
94375 2008-06-22  Bruno Haible  <bruno@clisp.org>
94377         * doc/posix-functions/siginterrupt.texi: Move note.
94379         * lib/signal.in.h (SA_RESTART): New macro.
94380         * lib/sigaction.c: Update comment.
94382         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
94384         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
94385         (gl_PREREQ_SIGPROCMASK): Invoke it.
94386         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
94388         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
94390         * lib/sigprocmask.c: Update a comment.
94392 2008-06-21  Eric Blake  <ebb9@byu.net>
94394         Use sigaction module rather than signal().
94395         * modules/c-stack (Depends-on): Add sigaction.
94396         * modules/fatal-signal (Depends-on): Likewise.
94397         * modules/nanosleep (Depends-on): Likewise.
94398         * modules/sigprocmask (Files): Add sig-handler.h.
94399         * modules/sigaction (Files): Likewise.
94400         * lib/sig-handler.h (get_handler): New file, suggested by Paul
94401         Eggert.
94402         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
94403         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
94404         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
94405         (init_fatal_signals): Likewise.
94406         * lib/nanosleep.c (rpl_nanosleep): Likewise.
94407         (siginterrupt): Delete fallback.
94408         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
94409         instead.
94410         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
94411         siginterrupt.
94413         New module sigaction, for mingw.
94414         * modules/sigaction: New module...
94415         * modules/sigaction-tests: ...and its test.
94416         * m4/sigaction.m4: New file.
94417         * lib/sigaction.c: Likewise.
94418         * tests/test-sigaction.c: Likewise.
94419         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
94420         * modules/signal (Makefile.am): Likewise.
94421         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
94422         needed.
94423         * doc/posix-headers/signal.texi (signal.h): Mention provided
94424         types.
94425         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
94426         that sigaction is preferable.
94427         * doc/posix-functions/sigaction.texi (sigaction): Mention new
94428         module.
94429         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
94430         sigaction.
94432         Improve robustness of sigprocmask by overriding signal.
94433         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
94434         is in use.
94435         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
94436         (SIGKILL, SIGSTOP): Provide fallbacks.
94437         (rpl_signal): Implement.
94438         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
94439         signal can be called inside handlers.
94441         Fix nanosleep module on mingw.
94442         * modules/nanosleep (Depends-on): Add sys_select.
94443         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
94445         Fix licensing of sigprocmask.
94446         * modules/raise (License): Relicense as LGPL.
94448 2008-06-21  Bruno Haible  <bruno@clisp.org>
94450         * lib/propername.c (proper_name_utf8): Don't use the transliterated
94451         result if it contains question marks.
94452         Reported by Michael Geng <linux@michaelgeng.de>.
94454 2008-06-19  Bruno Haible  <bruno@clisp.org>
94456         Fix CVS-ism.
94457         * doc/gnulib.texi: Include updated-stamp.texi.
94458         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
94459         (updated-stamp.texi): New rule.
94460         (gnulib.info): Depend on it.
94461         * doc/.gitignore: Add updated-stamp.texi.
94462         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
94464 2008-06-19  Bruno Haible  <bruno@clisp.org>
94466         * doc/Makefile (gnulib.info): Update and simplify dependencies.
94467         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
94469 2008-06-19  Eric Blake  <ebb9@byu.net>
94471         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
94472         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
94473         Reported by Stepan Kasal.
94475 2008-06-18  Bruno Haible  <bruno@clisp.org>
94477         * lib/fatal-signal.c (init_fatal_signals): Add comment.
94478         Reported by Eric Blake.
94480 2008-06-18  Eric Blake  <ebb9@byu.net>
94482         Work around cygwin 1.5.25 strsignal bug.
94483         * tests/test-strsignal.c: Allow for const char *.
94484         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
94486 2008-06-18  Simon Josefsson  <simon@josefsson.org>
94488         * users.txt: Update URL to article and add author/date
94489         information.
94491 2008-06-17  Bruno Haible  <bruno@clisp.org>
94493         New macro gl_DISABLE_THREADS.
94494         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
94495         if the user did not pass --enable-threads or --disable-threads option.
94496         (gl_DISABLE_THREADS): New macro.
94497         Reported by Eric Blake <ebb9@byu.net>.
94499 2008-06-17  Bruno Haible  <bruno@clisp.org>
94501         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
94502         when the macro ignores it.
94503         Based on a patch by Eric Blake <ebb9@byu.net>.
94505 2008-06-17  Bruno Haible  <bruno@clisp.org>
94507         * modules/tls (License): Change to LGPLv2+.
94508         Reported by Eric Blake.
94510 2008-06-17  Eric Blake  <ebb9@byu.net>
94512         Simplify c-stack prerequisites.
94513         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
94514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
94515         no longer requires <ucontext.h> to exist.  Optimize setrlimit
94516         check.
94517         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
94518         <sys/resource.h>.
94520         Move c-stack test into testsuite.
94521         * modules/c-stack-tests: New file.
94522         * lib/c-stack.c [DEBUG]: Move test program...
94523         * tests/test-c-stack.c: ...into this new file.  Skip rather than
94524         fail test if sigaltstack is lacking.
94525         * tests/test-c-stack.sh: New driver file.
94527 2008-06-16  Eric Blake  <ebb9@byu.net>
94529         Use raise module consistently.
94530         * modules/fatal-signal (Depends-on): Add raise.
94531         * modules/sigprocmask (Depends-on): Likewise.
94532         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
94533         * lib/sigprocmask.c (sigprocmask): Likewise.
94534         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
94535         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
94537         Fix compliance bug in sigpending.
94538         * lib/sigprocmask.c (sigpending): Return pending array via
94539         parameter, not return value.
94541 2008-06-14  Eric Blake  <ebb9@byu.net>
94543         Improve obstack-printf test code.
94544         * tests/test-obstack-printf.c (test_function): Fix comment, and
94545         simplify usage of obstack_* in macros.  Add a test for coverage.
94546         Reported by Bruno Haible.
94548 2008-06-14  Bruno Haible  <bruno@clisp.org>
94550         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
94551         array size as a constant, not as a const variable.
94552         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
94553         AC_USE_SYSTEM_EXTENSIONS.
94554         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
94555         Test whether the obstack_printf function actually exists.
94556         * modules/obstack-printf (Depends-on): Add extensions.
94557         (Include): Remove obstack.h.
94558         * modules/obstack-printf-posix (Depends-on): Add extensions.
94559         (Include): Remove obstack.h.
94561 2008-06-13  Eric Blake  <ebb9@byu.net>
94563         Add obstack-printf and obstack-printf-posix modules.
94564         * modules/obstack-printf: New file.
94565         * modules/obstack-printf-posix: Likewise.
94566         * MODULES.html.sh (Misc): Mention them.
94567         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
94568         Likewise.
94569         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
94570         Likewise.
94571         * modules/stdio (Makefile.am): Accomodate new modules.
94572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
94573         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
94574         Declare.
94575         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
94576         functions.
94577         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
94578         (gl_REPLACE_OBSTACK_PRINTF): New macros
94579         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
94580         * tests/test-obstack-printf.c: New file.
94581         * modules/obstack-printf-tests: Likewise.
94582         * modules/obstack-printf-posix-tests: Likewise.
94584 2008-06-11  Bruno Haible  <bruno@clisp.org>
94586         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
94587         * lib/open.c: Include errno.h.
94588         (open): Fail when attempting to write to a file that has a trailing
94589         slash.
94590         * tests/test-open.c (main): Test against trailing slash bug.
94591         * doc/posix-functions/open.texi: Mention the trailing slash bug.
94593 2008-06-10  Bruno Haible  <bruno@clisp.org>
94595         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
94596         for $? to work inside the trap command, with various /bin/sh-s.
94597         * tests/test-vc-list-files-cvs.sh: Likewise.
94599 2008-06-10  Bruno Haible  <bruno@clisp.org>
94601         * lib/acl-internal.h: Don't include gettext.h here.
94602         * lib/set-mode-acl.c: Include gettext.h here.
94603         * lib/copy-acl.c: Likewise.
94605 2008-06-10  Bruno Haible  <bruno@clisp.org>
94607         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
94608         * lib/wait-process.c (wait_subprocess): Likewise.
94609         * lib/execute.h (execute): Add termsigp argument.
94610         * lib/execute.c (execute): Likewise.
94611         * lib/csharpcomp.c (compile_csharp_using_pnet,
94612         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
94613         * lib/csharpexec.c (execute_csharp_using_pnet,
94614         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
94615         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
94616         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
94617         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
94618         is_jikes_present): Update.
94619         * lib/javaexec.c (execute_java_class): Update.
94620         * lib/javaversion.c (execute_and_read_line): Update.
94621         * NEWS: Document the changes.
94622         Reported by Eric Blake.
94624 2008-06-10  Eric Blake  <ebb9@byu.net>
94626         Add missing include.
94627         * tests/test-strstr.c (includes): Add <signal.h>.
94628         * tests/test-strcasestr.c (includes): Likewise.
94629         * tests/test-memmem.c (includes): Likewise.
94631 2008-06-10  Bruno Haible  <bruno@clisp.org>
94633         * lib/wait-process.c (wait_subprocess): Add an assertion.
94635 2008-06-10  Bruno Haible  <bruno@clisp.org>
94637         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
94639 2008-06-10  Bruno Haible  <bruno@clisp.org>
94641         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
94642         using alarm().
94643         * tests/test-strcasestr.c (main): Likewise.
94644         * tests/test-strstr.c (main): Likewise.
94646 2008-06-09  Bruno Haible  <bruno@clisp.org>
94648         Work around the Solaris 10 ACE ACLs ABI change.
94649         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
94650         declare if ACL_NO_TRIVIAL is present.
94651         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
94652         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
94653         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
94654         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
94655         define if ACL_NO_TRIVIAL is present.
94656         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
94657         and use the current ABI.
94658         (file_has_acl): Use same #if condition as elsewhere.
94659         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
94660         in use, and use the current ABI.
94661         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
94662         Reported by Jim Meyering.
94664 2008-06-09  Eric Blake  <ebb9@byu.net>
94666         Work around environments that (stupidly) ignore SIGALRM.
94667         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
94668         before using alarm().
94669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94670         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94671         Reported by Ian Beckwith <ianb@erislabs.net>.
94673         Produce autobuild blurb earlier in log.
94674         * modules/autobuild (configure.ac-early): Move AB_INIT here.
94676 2008-06-09  Jim Meyering  <meyering@redhat.com>
94677         and Ondřej Vašík  <ovasik@redhat.com>
94679         utimens.c: correct kernel bug work-around
94680         Ondřej Vašík found that the invalid return value of 280 indicates
94681         failure, not success, and the kernel bug we're trying to work
94682         around affects not just the utimensat call, but also the fallback
94683         futimens call.
94684         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
94685         not success.
94686         [HAVE_FUTIMENS]: Use the same work-around, here.
94688 2008-06-09  Jim Meyering  <meyering@redhat.com>
94690         add more guards around definition of ACE_-related code
94691         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
94692         ALLOW and ACE_OWNER are also defined.
94694 2008-06-08  Bruno Haible  <bruno@clisp.org>
94696         * lib/acl-internal.h: Add me as co-author.
94697         * lib/file-has-acl.c: Likewise.
94698         * lib/set-mode-acl.c: Likewise.
94699         * lib/copy-acl.c: Likewise.
94701 2008-06-08  Bruno Haible  <bruno@clisp.org>
94703         Add support for AIX ACLs.
94704         * lib/acl-internal.h (acl_nontrivial): New declaration.
94705         * lib/file-has-acl.c (acl_nontrivial): New function.
94706         (file_has_acl): Add implementation using AIX 4 ACL API.
94707         * lib/set-mode-acl.c (qset_acl): Likewise.
94708         * lib/copy-acl.c (qcopy_acl): Likewise.
94710 2008-06-08  Bruno Haible  <bruno@clisp.org>
94712         Add support for HP-UX ACLs.
94713         * lib/acl-internal.h (acl_nontrivial): New declaration.
94714         * lib/file-has-acl.c (acl_nontrivial): New function.
94715         (file_has_acl): Add implementation using HP-UX 11 ACL API.
94716         * lib/set-mode-acl.c (qset_acl): Likewise.
94717         * lib/copy-acl.c (qcopy_acl): Likewise.
94719 2008-06-08  Bruno Haible  <bruno@clisp.org>
94721         Add support for Cygwin ACLs.
94722         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
94723         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
94724         the chmod_or_fchmod call.
94725         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
94727 2008-06-08  Bruno Haible  <bruno@clisp.org>
94729         Fix bug with setuid modes in Solaris 10+ code.
94730         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
94731         succeeded, when the mode contains some special bits.
94733 2008-06-08  Bruno Haible  <bruno@clisp.org>
94735         Add support for Solaris 7..10 ACLs.
94736         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
94737         declarations.
94738         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
94739         functions.
94740         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
94741         * lib/set-mode-acl.c (qset_acl): Likewise.
94742         * lib/copy-acl.c (qcopy_acl): Likewise.
94744 2008-06-08  Bruno Haible  <bruno@clisp.org>
94746         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
94747         declaration.
94748         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
94749         (acl_access_nontrivial): Remove MacOS X case.
94750         (file_has_acl): Use acl_extended_nontrivial.
94751         * lib/copy-acl.c (qcopy_acl): Likewise.
94753 2008-06-08  Bruno Haible  <bruno@clisp.org>
94755         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
94757 2008-06-08  Jim Meyering  <meyering@redhat.com>
94759         * modules/acl (Maintainer): Add Bruno Haible.
94761 2008-06-07  Bruno Haible  <bruno@clisp.org>
94763         Improve support for Tru64 ACLs.
94764         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
94765         ACL on OSF/1.
94767 2008-06-07  Bruno Haible  <bruno@clisp.org>
94769         Add support for MacOS X ACLs.
94770         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
94771         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
94772         * lib/set-mode-acl.c (qset_acl): Likewise.
94773         * lib/copy-acl.c (qcopy_acl): Likewise.
94775 2008-06-07  Bruno Haible  <bruno@clisp.org>
94777         Fix memory leak introduced on 2008-05-22.
94778         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
94779         use.
94781 2008-06-07  Bruno Haible  <bruno@clisp.org>
94783         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
94784         to construct an empty ACL.
94786 2008-06-07  Bruno Haible  <bruno@clisp.org>
94788         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
94789         precisely.
94790         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
94792 2008-06-07  Bruno Haible  <bruno@clisp.org>
94794         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
94795         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
94797 2008-06-07  Bruno Haible  <bruno@clisp.org>
94799         * doc/posix-functions/_setjmp.texi: Explain the use of this function
94800         regardless of POSIX.
94801         * doc/posix-functions/_longjmp.texi: Likewise.
94802         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
94803         SystemV platform in this case.
94805 2008-06-06  Eric Blake  <ebb9@byu.net>
94807         Document abort() bugs.
94808         * doc/posix-functions/abort.texi (abort): Mention anomalies.
94810         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
94811         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
94812         sigsetjmp.
94813         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
94814         siglongjmp, but only as a macro.
94815         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
94816         is obsolete.
94817         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
94819         Tweak documentation to cover cygwin argz bugs.
94820         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
94821         argz bug fix; no code change needed since no cygwin releases
94822         occurred between the last fix and the bug being tested.
94823         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
94824         module and recently fixed cygwin bugs.
94825         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
94826         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
94827         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
94828         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
94829         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
94830         Likewise.
94831         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
94832         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
94833         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
94834         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
94835         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
94836         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
94837         Likewise.
94839         Avoid gcc warning on cygwin.
94840         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
94841         !ACL_NO_TRIVIAL]: Avoid unused variable.
94843 2008-06-05  Eric Blake  <ebb9@byu.net>
94845         Be tolerant of UNKNOWN version in gnulib-tool test dir.
94846         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
94847         git-version-gen fails to come up with a version.
94848         Reported by Simon Josefsson.
94850 2008-06-05  Jim Meyering  <meyering@redhat.com>
94851             Paul Eggert  <eggert@cs.ucla.edu>
94853         utimens.c: work around a probable Linux kernel bug
94854         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
94855         appears to be a kernel bug that causes utimensat to return 280
94856         instead of 0, indicating success.
94858 2008-06-04  Bruno Haible  <bruno@clisp.org>
94860         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
94861         2008-06-01 commit.
94863 2008-06-04  Bruno Haible  <bruno@clisp.org>
94865         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
94866         * lib/file-has-acl.c (acl_access_nontrivial): New function.
94867         (file_has_acl): Use it. Save errno afterwards.
94868         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
94870 2008-06-03  Bruno Haible  <bruno@clisp.org>
94872         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
94873         draft code. Simplify #ifs.
94874         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
94875         Put Solaris code after POSIX-draft code. Fix comments regarding
94876         Solaris 10, HP-UX. Mention Cygwin.
94877         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
94879 2008-06-03  Eric Blake  <ebb9@byu.net>
94881         Provide fallback for older kernels.
94882         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
94883         Provide runtime fallback if kernel lacks support.
94884         Reported by Mike Frysinger.
94886 2008-06-02  Bruno Haible  <bruno@clisp.org>
94888         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
94889         it exists.
94891 2008-06-02  Bruno Haible  <bruno@clisp.org>
94893         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
94894         * lib/copy-acl.c (qcopy_acl): Update comment.
94896 2008-06-02  Bruno Haible  <bruno@clisp.org>
94898         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
94899         like ACL APIs.
94901 2008-06-02  Bruno Haible  <bruno@clisp.org>
94903         * tests/test-file-has-acl.sh: Use different code for Cygwin.
94904         * tests/test-set-mode-acl.sh: Likewise.
94905         * tests/test-copy-acl.sh: Likewise.
94906         * tests/test-copy-file.sh: Likewise.
94908 2008-06-02  Bruno Haible  <bruno@clisp.org>
94910         * tests/test-file-has-acl.sh: Remove unused code.
94912 2008-06-01  Bruno Haible  <bruno@clisp.org>
94914         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
94915         (copy_acl): Just a wrapper around qcopy_acl that emits the error
94916         messages.
94917         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
94919 2008-06-01  Bruno Haible  <bruno@clisp.org>
94921         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
94922         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
94923         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
94924         APIs.
94925         * modules/acl-tests (configure.ac): Remove tests now contained in
94926         m4/acl.m4.
94928 2008-06-02  Jim Meyering  <meyering@redhat.com>
94930         announce-gen: use a better key-server host name
94931         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
94932         it may be more consistently reliable.  Suggested by Werner Koch
94933         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
94935 2008-06-01  Bruno Haible  <bruno@clisp.org>
94937         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
94938         Reported by Voroskoi Andras <voroskoi@gmail.com>.
94940 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
94942         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
94944 2008-06-01  Bruno Haible  <bruno@clisp.org>
94946         New ACL tests.
94947         * tests/test-file-has-acl.sh: New file.
94948         * tests/test-file-has-acl.c: New file.
94949         * tests/test-set-mode-acl.sh: New file.
94950         * tests/test-set-mode-acl.c: New file.
94951         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
94952         * tests/test-copy-acl.c: New file.
94953         * modules/acl-tests: New file, based on modules/copy-file-tests.
94954         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
94955         (Depends-on): Add acl-tests.
94956         (configure.ac): Remove checks.
94957         (Makefile.am): Don't create test-sameacls program here any more.
94959 2008-06-01  Bruno Haible  <bruno@clisp.org>
94961         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
94962         * tests/test-sameacls.c: Include progname.h.
94963         (main): Invoke set_program_name. Portability fixes for MacOS X,
94964         Solaris, HP-UX.
94966 2008-06-01  Bruno Haible  <bruno@clisp.org>
94968         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
94969         function.
94970         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
94972 2008-06-01  Bruno Haible  <bruno@clisp.org>
94974         * modules/rpmatch (Depends-on): Add strdup.
94976 2008-06-01  Bruno Haible  <bruno@clisp.org>
94978         * lib/pipe.c: Include unistd-safer.h.
94979         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
94980         * modules/pipe (Depends-on): Add unistd-safer.
94982 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94984         * modules/autobuild (configure.ac): Call AB_INIT.
94986 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94988         * tests/test-getaddrinfo.c: Don't print debug messages by default.
94989         Suggested by Bruno Haible <bruno@clisp.org>.
94991 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94993         * tests/test-base64.c: Cast size_t to unsigned long when invoking
94994         printf.  Use %lu instead of %d.  Reported by Bruno Haible
94995         <bruno@clisp.org>.
94997 2008-05-29  Eric Blake  <ebb9@byu.net>
94999         Prefer new POSIX 200x interfaces over futimesat.
95000         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
95001         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
95002         when available.
95003         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
95005 2008-05-28  Bruno Haible  <bruno@clisp.org>
95007         * modules/stpcpy (License): Change to LGPLv2+.
95008         Requested by David Lutterkort <dlutter@redhat.com>.
95010 2008-05-27  Bruno Haible  <bruno@clisp.org>
95012         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
95013         current mingw.
95014         Reported by Jose E. Marchesi <jemarch@gnu.org>.
95016 2008-05-27  Bruno Haible  <bruno@clisp.org>
95018         * modules/iconv_open (Link): New section, from module 'iconv'.
95019         * modules/striconv (Link): Likewise.
95020         * modules/striconveh (Link): Likewise.
95021         * modules/xstriconv (Link): Likewise.
95022         * modules/unicodeio (Link): Likewise.
95023         * modules/propername (Link): Likewise.
95024         Reported by Jim Meyering.
95026 2008-05-26  Jim Meyering  <meyering@redhat.com>
95028         sha256: do not artificially restrict buffer length to be < 2^32
95029         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
95030         uint32_t to size_t.
95031         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
95032         to match.
95034         avoid unaligned access errors, e.g., on sparc
95035         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
95036         direct access through a possibly-unaligned uint64* pointer.
95037         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
95038         direct access through a possibly-unaligned uint32* pointer.
95039         Prompted by this patch from Tom "spot" Callaway:
95040         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
95042         sha512.c: fix typo in comment
95043         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
95045 2008-05-25  Bruno Haible  <bruno@clisp.org>
95047         * lib/set-mode-acl.c: Renamed from lib/acl.c.
95048         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
95049         (Makefile.am): Update lib_SOURCES.
95051 2008-05-25  Bruno Haible  <bruno@clisp.org>
95053         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
95055 2008-05-25  Jim Meyering  <meyering@redhat.com>
95057         useless-if-before-free: freed expr may have white-space differences
95058         * build-aux/useless-if-before-free: Recognize cases in which the
95059         freed expression differs from the tested one in embedded white
95060         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
95061         $1 was used, so we can't make any regexp shy.  Improved tests now
95062         detect this.
95064         useless-if-before-free: accept white space in the expression.
95065         * build-aux/useless-if-before-free: For now, any white space
95066         in the expression must be identical in the free argument.
95068         useless-if-before-free: efficiency tweak
95069         * build-aux/useless-if-before-free: Make the expression-matching
95070         regexp "shy".
95071         Make the *outer* regexp shy, not the expr-matching one.
95073         update code-in-comment to accept cast of free arg
95074         * build-aux/useless-if-before-free: Update regexp.
95076 2008-05-25  Bruno Haible  <bruno@clisp.org>
95078         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
95079         * modules/copy-file-tests (Files, Makefile.am): Update.
95080         * tests/test-copy-file.c (func_test_copy): Update.
95082 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
95084         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
95086 2008-05-23  Bruno Haible  <bruno@clisp.org>
95088         Improve support for ACLs on OSF/1.
95089         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
95090         Remove fallback for unknown flavors of ACLs.
95092 2008-05-22  Bruno Haible  <bruno@clisp.org>
95094         Add support for ACLs on OSF/1.
95095         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
95096         replacements.
95097         (acl_free_text): New macro fallback.
95098         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
95099         acl_free.
95100         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
95101         acl_free_text function. Require AC_C_INLINE.
95103 2008-05-22  Bruno Haible  <bruno@clisp.org>
95105         Make copy_acl work on MacOS X 10.5.
95106         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
95107         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
95108         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
95109         If MODE_INSIDE_ACL, don't assume that every system has the same text
95110         representation for ACLs as FreeBSD.
95111         * lib/copy-acl.c (copy_acl): Add support for platforms with
95112         !MODE_INSIDE_ACL.
95113         * lib/file-has-acl.c (file_has_acl): Likewise.
95114         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
95115         FreeBSD, MacOS X, or IRIX, respectively.
95117 2008-05-22  Bruno Haible  <bruno@clisp.org>
95119         * lib/acl.h: Don't include <sys/acl.h>.
95120         (GETACLCNT): Move fallback to lib/acl-internal.h.
95121         * lib/acl-internal.h: Include <sys/acl.h> here.
95122         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
95124 2008-05-22  Bruno Haible  <bruno@clisp.org>
95126         Split off copy_acl function to separate file.
95127         * lib/copy-acl.c: New file, extracted from lib/acl.c.
95128         * lib/acl.c (copy_acl): Moved function to separate file.
95129         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
95130         * modules/acl (Files): Add lib/copy-acl.c.
95131         (Makefiles.am): Augment lib_SOURCES.
95133 2008-05-22  Bruno Haible  <bruno@clisp.org>
95135         * modules/copy-file-tests: New file.
95136         * tests/test-copy-file.sh: New file.
95137         * tests/test-copy-file.c: New file.
95138         * tests/test-copy-file-sameacls.c: New file.
95140 2008-05-22  Eric Blake  <ebb9@byu.net>
95142         Avoid gcc warning.
95143         * tests/test-memcmp.c (main): Pass NULL indirectly.
95145 2008-05-21  Bruno Haible  <bruno@clisp.org>
95147         Add reference doc about ACLs.
95148         * doc/acl-resources.txt: New file.
95149         * doc/acl-cygwin.txt: New file.
95151 2008-05-21  Bruno Haible  <bruno@clisp.org>
95153         Avoid one more warning from gcc.
95154         * lib/vasnprintf.c (IF_LINT): Update comments.
95155         (VASNPRINTF): Use it also for the 'prefix' array initializer.
95157 2008-05-21  Jim Meyering  <meyering@redhat.com>
95159         avoid a warning from gcc
95160         * lib/vasnprintf.c (IF_LINT): Define.
95161         (scale10_round_decimal_long_double):
95162         Use it to avoid a "may be used uninitialized" warning.
95163         (scale10_round_decimal_double): Likewise.
95165 2008-05-21  Simon Josefsson  <simon@josefsson.org>
95167         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
95168         declared.
95170 2008-05-20  Bruno Haible  <bruno@clisp.org>
95172         * tests/test-memcmp.c (main): Test also the sign of the result. Test
95173         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
95175 2008-05-20  Simon Josefsson  <simon@josefsson.org>
95177         * modules/memcmp-tests: New file.
95178         * tests/test-memcmp.c: New file.
95180 2008-05-19  Bruno Haible  <bruno@clisp.org>
95182         * modules/propername (Notice, configure.ac): Put quoted "..." into
95183         --keyword option.
95184         * lib/propername.h: Update comments accordingly.
95185         Reported by Eric Blake.
95187 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
95189         * modules/getpass-gnu (Depends-on): Add fseeko.
95191 2008-05-19  Simon Josefsson  <simon@josefsson.org>
95193         * modules/base64-tests: New file.
95195 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
95197         * lib/base64.c (base64_decode_ctx): If a decode context structure
95198         was passed in use it to ignore newlines.  If a context structure
95199         was _not_ passed in, continue to treat newlines as garbage (this
95200         is the historical behavior).  Formerly base64_decode.
95201         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
95202         takes a decode context structure.
95203         * lib/base64.h (base64_decode): Macro for four-argument calls.
95204         (base64_decode_alloc): Likewise.
95205         * lib/base64.c (base64_decode_ctx): If a decode context structure
95206         was passed in use it to ignore newlines.  If a context structure
95207         was _not_ passed in, continue to treat newlines as garbage (this
95208         is the historical behavior).  Formerly base64_decode.
95209         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
95210         takes a decode context structure.
95211         * lib/base64.h (base64_decode): Macro for four-argument calls.
95212         (base64_decode_alloc): Likewise.
95214 2008-05-19  Jim Meyering  <meyering@redhat.com>
95216         avoid a warning from gcc
95217         * lib/trim.c (IF_LINT): Define.
95218         (trim2): Use it to avoid a "may be used uninitialized" warning.
95220         Fix doc typo.
95221         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
95223 2008-05-19  Bruno Haible  <bruno@clisp.org>
95225         * doc/glibc-functions/getpass.texi: Document limits of other
95226         implementations.
95228 2008-05-19  Simon Josefsson  <simon@josefsson.org>
95229             Bruno Haible <bruno@clisp.org>
95231         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
95233 2008-05-18  Bruno Haible  <bruno@clisp.org>
95235         * modules/propername: New file, from GNU gettext.
95236         * lib/propername.h: New file, from GNU gettext.
95237         * lib/propername.c: New file, from GNU gettext.
95238         * MODULES.html.sh (Internationalization functions): Add propername.
95240 2008-05-16  Jim Meyering  <meyering@redhat.com>
95241             Bruno Haible  <bruno@clisp.org>
95243         Avoid some warnings from "gcc -Wshadow".
95244         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
95246 2008-05-15  Eric Blake  <ebb9@byu.net>
95248         Extend previous patch to cygwin 1.7.0.
95249         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
95250         fast implementation in cygwin >= 1.7.0.
95251         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95254 2008-05-15  Bruno Haible  <bruno@clisp.org>
95256         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
95257         implementation in glibc >= 2.9.
95258         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95261 2008-05-15  Bruno Haible  <bruno@clisp.org>
95263         * MODULES.html.sh (Internationalization functions): Remove linebreak.
95264         (Unicode string functions): Add unilbrk/*.
95265         Reported by Karl Berry.
95267 2008-05-15  Eric Blake  <ebb9@byu.net>
95269         Fix violation of <stdbool.h> replacement in regex.
95270         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
95271         * lib/regexec.c (re_search_internal): Likewise.
95272         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
95274 2008-05-15  Jim Meyering  <meyering@redhat.com>
95276         avoid distracting test output when git or cvs is not found
95277         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
95278         * tests/test-vc-list-files-git.sh: Likewise.
95280 2008-05-15  Eric Blake  <ebb9@byu.net>
95282         Glibc finally accepted the memmem speedup code, bugzilla #5514.
95283         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
95284         glibc version.
95285         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
95286         * doc/posix-functions/strstr.texi (strstr): Likewise.
95287         * lib/str-two-way.h (MAX): Sychronize with glibc.
95289 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
95291         * lib/regcomp.c (optimize_utf8): Add a note on why we test
95292         opr.ctx_type.
95293         (calc_first): Initialize constraint field.
95294         (duplicate_node_closure): Use it instead of special casing ANCHORS.
95295         Fix grammar.
95296         (duplicate_node): Merge constraint field for all node types.
95297         (calc_eclosure_iter): Look at constraint field for all node types.
95298         * lib/regex_internal.c (create_cd_newstate): Don't look at
95299         opr.ctx_type.
95301 2008-05-14  Bruno Haible  <bruno@clisp.org>
95303         Help GCC to do better code generation.
95304         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
95305         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
95306         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
95307         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
95308         Declare with attribute 'malloc' if supported.
95310 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
95312         use "echo STR|wc -c" rather than unportable "expr length STR"
95313         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
95314         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
95316 2008-05-14  Jim Meyering  <meyering@redhat.com>
95318         use dd ibs=$n count=1 ... rather than less-portable head -c$n
95319         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
95320         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
95321         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
95322         via Collin Lasse.
95324 2008-05-14  Eric Blake  <ebb9@byu.net>
95326         Avoid quadratic growth in gl_LIBSOURCES.
95327         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
95328         Suggested by Bruno Haible.
95330         Test xmemdup0.
95331         * modules/xmemdup0-tests: New file.
95332         * tests/test-xmemdup0.c: Likewise.
95334 2008-05-13  Eric Blake  <ebb9@byu.net>
95336         Split xmemdup0 into its own module.
95337         * modules/xmemdup0: New file.
95338         * lib/xmemdup0.h: Likewise.
95339         * lib/xmemdup0.c: Likewise.
95340         * MODULES.html.sh (Memory management functions): Add xmemdup0.
95341         * lib/xalloc.h (xmemdup0): Remove.
95342         * lib/xmalloc.c (xmemdup0): Likewise.
95344 2008-05-13  Eric Blake  <ebb9@byu.net>
95345             Bruno Haible  <bruno@clisp.org>
95347         Reduce number of forks required during autoconf.
95348         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
95349         and gl_LIBSOURCES_DIR.
95350         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
95351         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
95352         m4_syscmd per file.
95353         <m4_foreach_w>: Move...
95354         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
95356 2008-05-13  Eric Blake  <ebb9@byu.net>
95358         * gnulib-tool: Fix various comment typos.
95360 2008-05-12  Bruno Haible  <bruno@clisp.org>
95362         Tailor the linebreaking algorithm.
95363         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
95365 2008-05-12  Bruno Haible  <bruno@clisp.org>
95367         Update to Unicode 5.0.0.
95368         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
95369         LBP_JV, LBP_JT. Redistribute values.
95370         (unilbrk_table): Change size.
95371         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
95372         Unicode TR#14 rev. 22.
95373         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
95374         LBP_JV, LBP_JT. Redistribute values.
95375         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
95376         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
95377         Update.
95378         * lib/unilbrk/lbrkprop1.h: Regenerated.
95379         * lib/unilbrk/lbrkprop2.h: Regenerated.
95380         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
95381         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
95382         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
95383         Likewise.
95384         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
95385         Likewise.
95386         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
95387         result.
95388         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
95389         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
95390         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
95391         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
95392         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
95393         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
95395 2008-05-11  Bruno Haible  <bruno@clisp.org>
95397         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
95399 2008-05-11  Bruno Haible  <bruno@clisp.org>
95401         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
95402         * modules/unilbrk/gen-lbrk: New file.
95404 2008-05-11  Bruno Haible  <bruno@clisp.org>
95406         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
95407         * m4/sha512.m4 (gl_SHA512): Likewise.
95409 2008-05-11  Jim Meyering  <meyering@redhat.com>
95411         New modules: crypto/sha256, crypto/sha512 (from coreutils)
95412         * modules/crypto/sha256: New file.
95413         * modules/crypto/sha512: Likewise.
95414         * lib/sha256.c: Likewise.
95415         * lib/sha256.h: Likewise.
95416         * lib/sha512.c: Likewise.
95417         * lib/sha512.h: Likewise.
95418         * lib/u64.h: Likewise.
95419         * m4/sha256.m4: Likewise.
95420         * m4/sha512.m4: Likewise.
95421         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
95423 2008-05-10  Bruno Haible  <bruno@clisp.org>
95425         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
95426         (Input/Output <stdio.h>): Add xprintf.
95427         (Signal handling <signal.h>): Add strsignal.
95428         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
95429         (Core language properties): Add func.
95430         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
95431         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
95432         strings.
95433         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
95434         (Input/output): New section.
95435         (File system functions): Add openat-die, stat-macros.
95436         (Networking functions): Add sockets.
95437         (Unicode string functions): Add unictype/*.
95438         (Support for building libraries and executables): Add gperf.
95439         (Support for building documentation): Add agpl-3.0.
95440         (Misc): Add nocrash.
95442 2008-05-10  Bruno Haible  <bruno@clisp.org>
95444         * modules/unictype/gen-ctype: New file.
95446 2008-05-10  Jim Meyering  <meyering@redhat.com>
95448         Make chdir-safer.c more efficient on a system with no symlinks.
95449         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
95450         also if ELOOP is zero.  Suggested by Bruno Haible.
95452         Make chdir-safer.c slightly safer.
95453         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
95454         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
95456         Avoid compile failure on systems without ELOOP (like mingw).
95457         * lib/chdir-safer.c (ELOOP): Define if not already defined.
95458         Reported by Bruno Haible.
95460 2008-05-10  Bruno Haible  <bruno@clisp.org>
95462         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
95463         (is_utf8_encoding): Use a case-insensitive comparison.
95464         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
95465         streq.
95467 2008-05-10  Bruno Haible  <bruno@clisp.org>
95469         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
95470         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
95471         * lib/unilbrk/ulc-common.h (iconv_string_length,
95472         iconv_string_keeping_offsets): Remove declarations.
95473         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
95474         Don't include <iconv.h>, streq.h, xsize.h.
95475         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
95476         conversion.
95477         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
95478         <iconv.h>, streq.h, xsize.h.
95479         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
95480         conversion.
95481         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
95482         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
95483         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
95484         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
95486 2008-05-10  Bruno Haible  <bruno@clisp.org>
95488         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
95489         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
95491         * modules/unilbrk/u32-width-linebreaks-tests: New file.
95492         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
95494         * modules/unilbrk/u16-width-linebreaks-tests: New file.
95495         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
95497         * modules/unilbrk/u8-width-linebreaks-tests: New file.
95498         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
95500         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
95501         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
95503         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
95504         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
95506         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
95507         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
95509         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
95510         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
95512 2008-05-10  Bruno Haible  <bruno@clisp.org>
95514         Split up 'linebreak' module.
95515         * lib/unilbrk.h: New file, based on lib/linebreak.h.
95516         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
95517         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
95518         modifications.
95519         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
95520         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
95521         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
95522         lib/linebreak.c.
95523         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
95524         lib/linebreak.c.
95525         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
95526         lib/linebreak.c.
95527         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
95528         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
95529         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
95530         lib/linebreak.c.
95531         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
95532         lib/linebreak.c.
95533         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
95534         lib/linebreak.c.
95535         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
95536         lib/linebreak.c.
95537         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
95538         lib/linebreak.c.
95539         * modules/unilbrk/base: New file.
95540         * modules/unilbrk/tables: New file.
95541         * modules/unilbrk/u8-possible-linebreaks: New file.
95542         * modules/unilbrk/u16-possible-linebreaks: New file.
95543         * modules/unilbrk/u32-possible-linebreaks: New file.
95544         * modules/unilbrk/ulc-common: New file.
95545         * modules/unilbrk/ulc-possible-linebreaks: New file.
95546         * modules/unilbrk/u8-width-linebreaks: New file.
95547         * modules/unilbrk/u16-width-linebreaks: New file.
95548         * modules/unilbrk/u32-width-linebreaks: New file.
95549         * modules/unilbrk/ulc-width-linebreaks: New file.
95550         * lib/linebreak.h: Remove file.
95551         * lib/linebreak.c: Remove file.
95552         * m4/linebreak.m4: Remove file.
95553         * modules/linebreak: Remove file.
95554         * NEWS: Mention the changes.
95556 2008-05-09  Eric Blake  <ebb9@byu.net>
95558         Add xmemdup0.
95559         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
95560         implementation.
95561         * lib/xmalloc.c (xmemdup0): New C implementation.
95563 2008-05-08  Bruno Haible  <bruno@clisp.org>
95565         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
95567 2008-05-07  Eric Blake  <ebb9@byu.net>
95569         Support cross-compilation of <wctype.h>.
95570         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
95571         AC_CACHE_CHECK.
95573 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
95575         * build-aux/vc-list-files: Add support for bzr.
95577 2008-05-03  Jim Meyering  <meyering@redhat.com>
95579         avoid failed assertion with tight malloc
95580         * tests/test-getndelim2.c: Correct an off-by-one assertion.
95582 2008-05-03  Simon Josefsson  <simon@josefsson.org>
95584         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
95585         are needed from arpa/inet.h.
95586         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
95587         Reported by Bruno Haible.
95589 2008-05-02  Jim Meyering  <meyering@redhat.com>
95591         avoid compilation error on FreeBSD 6
95592         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
95594 2008-05-01  Jim Meyering  <meyering@redhat.com>
95596         useless-if-before-free: correct --help's exit status description
95597         * build-aux/useless-if-before-free (usage): Like grep, exit 0
95598         for one or more matches, etc.  Reported by Bruno Haible.
95600         vc-list-files: make the stand-alone gnulib test work
95601         * modules/vc-list-files-tests (configure.ac):
95602         Define and AC_SUBST abs_aux_dir.
95603         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
95604         $(abs_top_srcdir) to each script and having each of them
95605         duplicate the work of setting PATH, set PATH here, using
95606         the new variable, abs_aux_dir instead.
95607         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
95608         * tests/test-vc-list-files-git.sh: Likewise.
95609         Reported by Bruno Haible.
95611 2008-05-01  Bruno Haible  <bruno@clisp.org>
95613         * lib/getndelim2.c (getndelim2): Fix newsize computation during
95614         reallocation. Rename 'done' to 'found_delimiter'.
95616 2008-05-01  Jim Meyering  <meyering@redhat.com>
95618         vc-list-files: accommodate /bin/sh like the one from Solaris 10
95619         * build-aux/vc-list-files: Use `...`, not $(...).
95621 2008-04-30  Jim Meyering  <meyering@redhat.com>
95623         add tests for vc-list-files
95624         * modules/vc-list-files-tests: New module.
95625         * tests/test-vc-list-files-cvs.sh: New file.
95626         * tests/test-vc-list-files-git.sh: New file.
95628         avoid a warning from gcc
95629         * lib/getndelim2.c (IF_LINT): Define.
95630         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
95632         vc-list-files: work properly with build-aux/cvsu, too
95633         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
95634         to all cvs-based clauses.
95636         vc-list-files: work properly in the CVS+awk case, too
95637         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
95639         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
95640         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
95641         take more than one file argument, so .  Add quotes, just in case $dir
95642         ever contains a shell meta-character.  Prompted by Soren Hansen in
95643         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
95645 2008-04-29  Eric Blake  <ebb9@byu.net>
95647         Optimize getndelim2 to use block operations when possible.
95648         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
95649         freadseek, and memchr2.
95650         * lib/getndelim2.c (getndelim2): Use them for block reads.
95652 2008-04-29  Bruno Haible  <bruno@clisp.org>
95654         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
95655         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95656         * modules/inet_ntop (Depends-on): Add extensions.
95657         * modules/inet_pton (Depends-on): Likewise.
95658         Reported by Simon Josefsson.
95660 2008-04-29  Jim Meyering  <meyering@redhat.com>
95662         When the is more than one match in a block, match all of them.
95663         * build-aux/useless-if-before-free: Iterate through each block
95664         until there are no more matches.
95666         Fix broken useless-if-before-free script.
95667         * build-aux/useless-if-before-free: Fix typo: missing "?" after
95668         the expression to match cast of argument to free-like function.
95670 2008-04-29  Eric Blake  <ebb9@byu.net>
95672         Use new header.
95673         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
95675 2008-04-29  Jim Meyering  <meyering@redhat.com>
95677         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
95678         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
95679         by gnulib to exist and to declare e.g., inet_ntop.
95680         Don't include "inet_ntop.h", now removed.
95682         * m4/arpa_inet_h.m4: Remove trailing blanks.
95684 2008-04-29  Eric Blake  <ebb9@byu.net>
95686         Silence valgrind on safe reads beyond potential array bounds.
95687         * lib/rawmemchr.valgrind: New file.
95688         * lib/strchrnul.valgrind: Likewise.
95689         * modules/rawmemchr (Files): Distribute new file.
95690         * modules/strchrnul (Files): Likewise.
95691         Suggested by Bruno Haible.
95693 2008-04-29  Bruno Haible  <bruno@clisp.org>
95695         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
95696         (inet_ntop, inet_pton): Change portability warning's wording.
95697         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
95698         Invoke gl_CHECK_NEXT_HEADERS.
95699         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
95700         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
95701         set ARPA_INET_H.
95702         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95703         * modules/arpa_inet (Description): No longer only for systems that
95704         lack it.
95705         (Depends-on): Add include_next.
95706         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
95707         HAVE_ARPA_INET_H.
95709 2008-04-29  Jim Meyering  <meyering@redhat.com>
95711         * modules/mkdir (License): Re-license as LGPLv2+.
95713 2008-04-29  Bruno Haible  <bruno@clisp.org>
95715         * modules/rawmemchr (Maintainer): Set to Eric.
95716         * modules/strchrnul (Maintainer): Likewise.
95718 2008-04-29  Simon Josefsson  <simon@josefsson.org>
95720         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
95721         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
95723         * modules/arpa_inet (arpa/inet.h): Use them.
95725 2008-04-28  Eric Blake  <ebb9@byu.net>
95727         Test getndelim2.
95728         * modules/getndelim2-tests: New file.
95729         * tests/test-getndelim2.c: Likewise.
95730         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
95731         stream.
95732         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
95734         * MODULES.html.sh: Document new module.
95736 2008-04-20  Bruno Haible  <bruno@clisp.org>
95738         * lib/c-stack.c (die): Use raise.
95739         * modules/c-stack (Depends-on): Add raise.
95741 2008-04-28  Bruno Haible  <bruno@clisp.org>
95743         Expect rpmatch to be declared.
95744         * lib/yesno.c (rpmatch): Remove declaration.
95746         Declare rpmatch.
95747         * lib/stdlib.in.h (rpmatch): New declaration.
95748         * lib/rpmatch.c: Include <stdlib.h> first.
95749         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
95750         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
95751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
95752         HAVE_RPMATCH.
95753         * modules/rpmatch (Depends-on): Add stdlib, extensions.
95754         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95755         (Include): Set to <stdlib.h>.
95756         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
95757         HAVE_RPMATCH.
95758         * NEWS: Document the change.
95760 2008-04-28  Bruno Haible  <bruno@clisp.org>
95762         Change rpmatch to use nl_langinfo when appropriate.
95763         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
95764         (N_): New macro.
95765         (localized_pattern): New function/macro.
95766         (try): Remove match, nomatch arguments. Copy the pattern into safe
95767         memory before caching it.
95768         (rpmatch): Use localized_pattern. Add translator comments.
95769         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
95770         Suggested by Eric Blake.
95771         * modules/rpmatch (Depends-on): Add stdbool.
95773 2008-04-28  Eric Blake  <ebb9@byu.net>
95775         Add rawmemchr module, matching glibc.
95776         * modules/string (Makefile.am): New indicator.
95777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
95778         * lib/string.in.h (rawmemchr): Declare when appropriate.
95779         * modules/rawmemchr: New file.
95780         * m4/rawmemchr.m4: Likewise.
95781         * lib/rawmemchr.c: Likewise.
95782         * modules/rawmemchr-tests: Likewise.
95783         * tests/test-rawmemchr.c: Likewise.
95784         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
95785         module.
95786         * modules/strchrnul (Depends-on): Add rawmemchr.
95787         * lib/strchrnul.c (strchrnul): Optimize a corner case.
95789         Whitespace cleanup.
95790         * tests/test-strchrnul.c: Reindent.
95791         * lib/strchrnul.c: Likewise.
95793         Optimize and test strchrnul.
95794         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
95795         * modules/strchrnul-tests: New file.
95796         * tests/test-strchrnul.c: Likewise.
95798         Remove intprops dependency.
95799         * modules/memchr (Depends-on): Remove intprops.
95800         * modules/memrchr (Depends-on): Likewise.
95801         * modules/memchr2 (Depends-on): Likewise.
95802         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
95803         * lib/memrchr.c (__memrchr): Likewise.
95804         * lib/memrchr2.c (memchr2): Likewise.
95805         Reported by Simon Josefsson.
95807 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95809         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
95810         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95812 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95814         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
95816         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
95818         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
95820         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
95821         declarations.
95822         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
95824         * m4/inet_pton.m4: Don't check for header files.
95826         * m4/inet_ntop.m4: Don't check for header files.
95828 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95830         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
95831         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
95832         trigger for cygwin).
95833         Reported by Bruno Haible  <bruno@clisp.org>.
95835 2008-04-28  Bruno Haible  <bruno@clisp.org>
95837         * doc/posix-functions/strdup.texi: Mention mingw problem.
95839 2008-04-27  Bruno Haible  <bruno@clisp.org>
95841         * modules/stat-time-tests (Depends-on): Add sleep.
95842         * tests/test-stat-time.c (force_unlink): New function.
95843         (cleanup): Use it.
95844         (test_mtime): Remove the ctime related tests.
95845         (test_ctime): New function, containing the ctime related tests.
95846         (main): Call test_ctime, except on native Windows platforms.
95848 2008-04-27  Bruno Haible  <bruno@clisp.org>
95850         * lib/rpmatch.c (rpmatch): Add some comments.
95851         Reported by James Youngman <jay@gnu.org>.
95853 2008-04-27  Bruno Haible  <bruno@clisp.org>
95855         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
95856         quiet NaNs.
95858 2008-04-27  Bruno Haible  <bruno@clisp.org>
95860         Make test-yesno.sh work on mingw.
95861         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
95862         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
95863         (main): Set stdin to binary mode.
95864         * modules/yesno-tests (Depends-on): Add binary-io.
95866 2008-04-27  Bruno Haible  <bruno@clisp.org>
95868         Fix 'isfinite' on x86, x86_64, ia64 platforms.
95869         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
95870         argument that lie outside the IEEE 854 domain.
95871         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
95872         (gl_ISFINITE): Use it.
95873         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
95875 2008-04-27  Bruno Haible  <bruno@clisp.org>
95877         Allow local renaming in config.h.
95878         * lib/memrchr.c (memrchr): Don't undefine outside libc.
95880 2008-04-27  Bruno Haible  <bruno@clisp.org>
95882         * lib/memchr.c (__memchr): Change type of 'i'.
95883         * lib/memchr2.c (memchr2): Likewise.
95885 2008-04-26  Eric Blake  <ebb9@byu.net>
95886         and Bruno Haible  <bruno@clisp.org>
95888         Optimize and test memrchr.
95889         * modules/memrchr (Depends-on): Add intprops.
95890         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
95891         * modules/memrchr-tests: New file.
95892         * tests/test-memrchr.c: New file.
95894 2008-04-26  Bruno Haible  <bruno@clisp.org>
95896         Add tentative support for DragonFly BSD.
95897         * lib/stdio-impl.h: Add macros for DragonFly BSD.
95898         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
95899         fp.
95900         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95901         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
95902         * lib/fpurge.c (fpurge): Likewise.
95903         * lib/freadable.c (freaadable): Likewise.
95904         * lib/freadahead.c (freadahead): Likewise.
95905         * lib/freading.c (freading): Likewise.
95906         * lib/freadptr.c (freadptr): Likewise.
95907         * lib/freadseek.c (freadptrinc): Likewise.
95908         * lib/fseeko.c (fseeko): Likewise.
95909         * lib/fseterr.c (fseterr): Likewise.
95910         * lib/fwritable.c (fwritable): Likewise.
95911         * lib/fwriting.c (fwriting): Likewise.
95913 2008-04-26  Bruno Haible  <bruno@clisp.org>
95915         * lib/stdio-impl.h: New file.
95916         * lib/fbufmode.c: Include stdio-impl.h.
95917         (fbufmode): Use fp_, remove redundant #defines.
95918         * lib/fflush.c: Include stdio-impl.h.
95919         (clear_ungetc_buffer): Remove redundant #defines.
95920         * lib/fpurge.c: Include stdio-impl.h.
95921         (fpurge): Remove redundant #defines.
95922         * lib/freadable.c: Include stdio-impl.h.
95923         (freadable): Remove redundant #defines.
95924         * lib/freadahead.c: Include stdio-impl.h.
95925         (freadahead): Remove redundant #defines.
95926         * lib/freading.c: Include stdio-impl.h.
95927         (freading): Remove redundant #defines.
95928         * lib/freadptr.c: Include stdio-impl.h.
95929         (freadptr): Remove redundant #defines.
95930         * lib/freadseek.c: Include stdio-impl.h.
95931         (freadptrinc): Remove redundant #defines.
95932         * lib/fseeko.c: Include stdio-impl.h.
95933         (rpl_fseeko): Remove redundant #defines.
95934         * lib/fseterr.c: Include stdio-impl.h.
95935         (fseterr): Remove redundant #defines.
95936         * lib/fwritable.c: Include stdio-impl.h.
95937         (fwritable: Remove redundant #defines.
95938         * lib/fwriting.c: Include stdio-impl.h.
95939         (fwriting): Remove redundant #defines.
95940         * modules/fbufmode (Files): Add lib/stdio-impl.h.
95941         * modules/fflush (Files): Likewise.
95942         * modules/fpurge (Files): Likewise.
95943         * modules/freadable (Files): Likewise.
95944         * modules/freadahead (Files): Likewise.
95945         * modules/freading (Files): Likewise.
95946         * modules/freadptr (Files): Likewise.
95947         * modules/freadseek (Files): Likewise.
95948         * modules/fseeko (Files): Likewise.
95949         * modules/fseterr (Files): Likewise.
95950         * modules/fwritable (Files): Likewise.
95951         * modules/fwriting (Files): Likewise.
95953 2008-04-26  Bruno Haible  <bruno@clisp.org>
95955         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95956         restore_seek_optimization, update_fpos_cache): New functions, extracted
95957         from rpl_fflush.
95958         (rpl_fflush): Use them.
95959         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
95960         (gl_REPLACE_FFLUSH): Use it.
95962 2008-04-26  Bruno Haible  <bruno@clisp.org>
95964         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
95965         on Solaris.
95966         * tests/test-xstrtoimax.sh: Likewise.
95967         * tests/test-xstrtoumax.sh: Likewise.
95968         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95970 2008-04-26  Bruno Haible  <bruno@clisp.org>
95972         * modules/memchr-tests: New file.
95973         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
95975 2008-04-26  Eric Blake  <ebb9@byu.net>
95976             Bruno Haible  <bruno@clisp.org>
95978         * lib/memchr.c: Include intprops.h.
95979         (__memchr): Optimize parallel detection of matching bytes. Rename local
95980         variables. Add explanatory comments.
95982 2008-04-26  Bruno Haible  <bruno@clisp.org>
95984         Fix module 'memchr', broken since 2000-10-28.
95985         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
95987 2008-04-26  Bruno Haible  <bruno@clisp.org>
95989         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
95990         comments.
95992 2008-04-25  Eric Blake  <ebb9@byu.net>
95994         Use native fstatat on cygwin 1.7.0.
95995         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
95996         first.
95998 2008-04-23  Eric Blake  <ebb9@byu.net>
96000         Improve memchr2 performance.
96001         * lib/memchr2.c (memchr2): Further optimize parallel detection of
96002         NUL bytes.
96003         * modules/memchr2 (Depends-on): Use intprops.h.
96005 2008-04-23  Simon Josefsson  <simon@josefsson.org>
96007         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
96008         an inline function instead of a CPP macro.  Patch by Ben Pfaff
96009         <blp@cs.stanford.edu>.
96011 2008-04-23  Simon Josefsson  <simon@josefsson.org>
96013         * lib/arpa_inet.in.h: New file.
96015         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
96016         (Makefile.am): Sed in substitute header file.
96018         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
96019         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
96021         * modules/inet_ntop (configure.ac): Use
96022         gl_ARPA_INET_MODULE_INDICATOR.
96024         * modules/inet_pton (configure.ac): Use
96025         gl_ARPA_INET_MODULE_INDICATOR.
96027 2008-04-22  Jim Meyering  <meyering@redhat.com>
96029         * modules/verify (License): Re-license as LGPLv2+.
96031 2008-04-22  Simon Josefsson  <simon@josefsson.org>
96033         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
96034         parameter to void* as per POSIX standard (MinGW uses char*).
96036 2008-04-21  Bruno Haible  <bruno@clisp.org>
96038         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
96039         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
96040         Define to replacements if REPLACE_ISWCNTRL is 1.
96041         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
96042         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
96043         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
96044         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
96045         what it fixes.
96046         * doc/posix-functions/iswalpha.texi: Likewise.
96047         * doc/posix-functions/iswblank.texi: Likewise.
96048         * doc/posix-functions/iswcntrl.texi: Likewise.
96049         * doc/posix-functions/iswdigit.texi: Likewise.
96050         * doc/posix-functions/iswgraph.texi: Likewise.
96051         * doc/posix-functions/iswlower.texi: Likewise.
96052         * doc/posix-functions/iswprint.texi: Likewise.
96053         * doc/posix-functions/iswpunct.texi: Likewise.
96054         * doc/posix-functions/iswspace.texi: Likewise.
96055         * doc/posix-functions/iswupper.texi: Likewise.
96056         * doc/posix-functions/iswxdigit.texi: Likewise.
96057         Reported by Alain Guibert.
96059 2008-04-21  Bruno Haible  <bruno@clisp.org>
96061         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
96062         Patch by Alain Guibert.
96064 2008-04-21  Bruno Haible  <bruno@clisp.org>
96066         Fix test failures on mingw.
96067         * tests/test-xstrtol.c (print_no_progname): New function.
96068         (main): Install it in error_print_progname hook.
96069         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
96070         * tests/test-xstrtoimax.sh: Likewise.
96071         * tests/test-xstrtoumax.sh: Likewise.
96073 2008-04-21  Bruno Haible  <bruno@clisp.org>
96075         Fix test failure on mingw.
96076         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
96078 2008-04-21  Bruno Haible  <bruno@clisp.org>
96080         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
96081         Actually assign a value.
96083 2008-04-20  Bruno Haible  <bruno@clisp.org>
96085         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
96086         take 2.
96087         * lib/canonicalize.c (canonicalize_file_name): Elide if the
96088         'canonicalize-lgpl' module is also used.
96089         * lib/canonicalize-lgpl.c: Undo last change.
96090         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
96092 2008-04-20  Bruno Haible  <bruno@clisp.org>
96094         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
96095         config.h. Provide _mkdir based fallback for mingw.
96096         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
96097         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
96098         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
96099         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
96100         rather than defining mkdir in config.h.
96101         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
96102         (gl_SYS_STAT_H_DEFAULTS): New macro.
96103         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
96104         HAVE_IO_H any more.
96105         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
96106         HAVE_DECL_MKDIR and HAVE_IO_H.
96108 2008-04-20  Bruno Haible  <bruno@clisp.org>
96110         * lib/isapipe.c: Port to native Windows platforms.
96112 2008-04-20  Bruno Haible  <bruno@clisp.org>
96114         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
96116 2008-04-21  Eric Blake  <ebb9@byu.net>
96118         Work around preprocessors that don't handle UINTMAX_MAX.
96119         * lib/memchr2.c (memchr2): Avoid embedded #if.
96120         Reported by Alain Guibert, fix suggested by Bruno Haible.
96122 2008-04-21  Simon Josefsson  <simon@josefsson.org>
96124         * doc/posix-functions/strftime.texi (strftime): Explain better
96125         Windows incompatibility.  Suggested by Micah Cowan
96126         <micah@cowan.name>.
96128 2008-04-20  Bruno Haible  <bruno@clisp.org>
96130         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
96131         unistr/u8-mblen.
96133 2008-04-20  Bruno Haible  <bruno@clisp.org>
96135         Fix test failure on platforms with non-GNU iconv.
96136         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
96137         (U_TO_U8): Use it, rather than u16_to_u8.
96138         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
96139         units at the end of the input string.
96140         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
96142 2008-04-20  Bruno Haible  <bruno@clisp.org>
96144         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
96145         when the resulting length is 0.
96146         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
96148 2008-04-20  Bruno Haible  <bruno@clisp.org>
96150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
96151         works.
96152         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
96154 2008-04-20  Bruno Haible  <bruno@clisp.org>
96156         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
96157         * modules/tsearch-tests (configure.ac): Test for initstate function.
96159 2008-04-20  Bruno Haible  <bruno@clisp.org>
96161         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
96162         for nlink_t if missing.
96163         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
96165 2008-04-19  Bruno Haible  <bruno@clisp.org>
96167         Work around snprintf bug on Linux libc5.
96168         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
96169         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96170         gl_SNPRINTF_SIZE1.
96171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96172         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
96173         that test failed.
96174         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
96175         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
96176         * modules/snprintf (Files): Add m4/printf.m4.
96177         * modules/vsnprintf (Files): Likewise.
96178         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
96179         * doc/posix-functions/vsnprintf.texi: Likewise.
96181 2008-04-19  Bruno Haible  <bruno@clisp.org>
96183         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
96184         from 0.0058 to less than 10^-7.
96186 2008-04-19  Bruno Haible  <bruno@clisp.org>
96188         Fix rounding when a precision is given.
96189         * lib/vasnprintf.c (is_borderline): New function.
96190         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
96191         9...9x.
96192         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
96193         %e, %g.
96194         * tests/test-vasprintf-posix.c (test_function): Likewise.
96195         * tests/test-snprintf-posix.h (test_function): Likewise.
96196         * tests/test-sprintf-posix.h (test_function): Likewise.
96197         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
96198         * tests/test-printf-posix.h (test_function): Likewise.
96199         * tests/test-printf-posix.output: Update.
96200         Reported by John Darrington <john@darrington.wattle.id.au> via
96201         Ben Pfaff <blp@cs.stanford.edu>.
96203 2008-04-18  Simon Josefsson  <simon@josefsson.org>
96205         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
96206         Suggested by Bruno Haible <bruno@clisp.org>.
96208 2008-04-17  Bruno Haible  <bruno@clisp.org>
96210         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
96211         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
96212         implementation.
96213         Patch by Bruce Merry <bmerry@gmail.com>.
96215 2008-04-17  Simon Josefsson  <simon@josefsson.org>
96217         * doc/posix-functions/strftime.texi (strftime): Mention that %e
96218         doesn't work under Windows.
96220 2008-04-16  Bruno Haible  <bruno@clisp.org>
96222         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
96223         New macros.
96224         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
96225         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
96226         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
96227         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
96228         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
96229         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
96230         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
96231         macros.
96232         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
96233         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
96234         Northern Sotho, Uighur.
96236 2008-04-16  Bruno Haible  <bruno@clisp.org>
96238         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
96239         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
96240         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
96241         Reported by Daniel Bergström <daniel@octocode.com>.
96243 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
96244             Bruno Haible  <bruno@clisp.org>
96246         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
96247         function.
96248         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
96249         New functions, mostly extracted from gl_locale_name_default.
96250         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
96252 2008-04-16  Eric Blake  <ebb9@byu.net>
96254         Adjust strtod detection to catch glibc 2.7 bug.
96255         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
96256         Reported by John Gatewood Ham.
96258 2008-04-16  Bruno Haible  <bruno@clisp.org>
96260         Add tentative support for Linux libc5.
96261         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
96262         * lib/fpurge.c (fpurge): Likewise.
96263         * lib/freadable.c (freadable): Likewise.
96264         * lib/freadahead.c (freadahead): Likewise.
96265         * lib/freading.c (freading): Likewise.
96266         * lib/freadptr.c (freadptr): Likewise.
96267         * lib/freadseek.c (freadptrinc): Likewise.
96268         * lib/fseeko.c (rpl_fseeko): Likewise.
96269         * lib/fseterr.c (fseterr): Likewise.
96270         * lib/fwritable.c (fwritable): Likewise.
96271         * lib/fwriting.c (fwriting): Likewise.
96272         Reported by Alain Guibert <alguibert+bts@free.fr>.
96274 2008-04-15  Bruno Haible  <bruno@clisp.org>
96276         * modules/mathl (configure.ac): Define module indicator.
96278 2008-04-15  Bruno Haible  <bruno@clisp.org>
96280         * lib/logl.c (logl): Remove unused variables.
96282 2008-04-15  Bruno Haible  <bruno@clisp.org>
96284         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
96285         fails.
96287 2008-04-15  Bruno Haible  <bruno@clisp.org>
96289         * lib/trim.c (trim2): Fix argument of isspace() macro.
96291 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
96293         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
96294         to 0.
96295         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
96297 2008-04-14  Bruno Haible  <bruno@clisp.org>
96299         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
96300         AC_LANG_PROGRAM argument.
96301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
96302         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
96303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
96304         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
96305         * m4/math_h.m4 (gl_MATH_H): Likewise.
96306         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
96307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
96308         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
96309         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
96310         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
96311         * m4/regex.m4 (gl_REGEX): Likewise.
96312         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
96313         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
96314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
96315         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
96316         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
96317         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
96318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
96319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
96321 2008-04-14  Jim Meyering  <meyering@redhat.com>
96323         test-strtod: fix typos: s/abs/fabs/
96324         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
96326 2008-04-13  Bruno Haible  <bruno@clisp.org>
96328         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
96329         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
96330         module is also used and while not building the reloc-wrapper.
96332 2008-04-13  Bruno Haible  <bruno@clisp.org>
96334         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
96336 2008-04-13  Bruno Haible  <bruno@clisp.org>
96338         Fix AIX compilation failure introduced on 2008-04-02.
96339         * tests/test-frexp.c (exp): Undefine before redefining.
96340         * tests/test-frexpl.c (exp): Likewise.
96342 2008-04-13  Bruno Haible  <bruno@clisp.org>
96344         Work around a HP-UX stdio bug.
96345         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
96346         * tests/test-ftello.c (main): Likewise.
96347         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
96348         * doc/posix-functions/ftello.texi: Likewise.
96350 2008-04-13  Bruno Haible  <bruno@clisp.org>
96352         Make test-signbit pass on HP-UX/hppa.
96353         * tests/test-signbit.c (minus_zerol): New variable.
96354         (test_signbitl): Use it.
96356 2008-04-13  Bruno Haible  <bruno@clisp.org>
96358         Make truncl work on OSF/1 4.0.
96359         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
96360         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
96361         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
96362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
96363         HAVE_DECL_TRUNCL.
96364         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
96365         HAVE_DECL_TRUNCL.
96366         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
96368 2008-04-13  Bruno Haible  <bruno@clisp.org>
96370         * lib/unictype.h: Remove trailing comma from enumeration definitions.
96372 2008-04-13  Bruno Haible  <bruno@clisp.org>
96374         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
96375         expression, so as to avoid HP-UX 11 cc compiler bug.
96377 2008-04-13  Bruno Haible  <bruno@clisp.org>
96379         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
96381 2008-04-13  Bruno Haible  <bruno@clisp.org>
96383         * lib/git-merge-changelog.c: Remove empty declaration outside of
96384         functions.
96386 2008-04-13  Bruno Haible  <bruno@clisp.org>
96388         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
96390 2008-04-13  Bruno Haible  <bruno@clisp.org>
96392         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
96393         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
96394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
96395         also if it exists but lacks definitions of the SHUT_* macros.
96396         * modules/sys_socket (Description): Update.
96397         Reported by Elbert Pol <e.pol@chello.nl>.
96399 2008-04-13  Bruno Haible  <bruno@clisp.org>
96401         * lib/localcharset.c (OS2): Don't redefine if already defined.
96402         Reported by Elbert Pol <e.pol@chello.nl>.
96404 2008-04-13  Bruno Haible  <bruno@clisp.org>
96406         * lib/binary-io.h [__EMX__]: Include <io.h>.
96407         Reported by Elbert Pol <e.pol@chello.nl>.
96409 2008-04-12  Bruno Haible  <bruno@clisp.org>
96411         * lib/fpucw.h: Enable the definitions also for x86_64.
96412         Needed for NetBSD/x86_64.
96413         Reported by Thomas Klausner <tk@giga.or.at>.
96415 2008-04-12  Bruno Haible  <bruno@clisp.org>
96417         * tests/test-strtod.c: Include isnand.h.
96418         (main): Use isnand instead of isnan.
96419         Reported by Jim Meyering.
96421 2008-04-12  Bruno Haible  <bruno@clisp.org>
96423         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
96424         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
96426 2008-04-12  Jim Meyering  <meyering@redhat.com>
96428         * m4/math_h.m4 (gl_MATH_H): Fix typos.
96430 2008-04-12  Bruno Haible  <bruno@clisp.org>
96432         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
96433         Reported by Elbert Pol <e.pol@chello.nl>.
96435 2008-04-12  Eric Blake  <ebb9@byu.net>
96437         Work around Solaris 10 math.h bug.
96438         * m4/math_h.m4 (gl_MATH_H): Check for bug.
96439         (gl_MATH_H_DEFAULTS): Set up default.
96440         * modules/math (Makefile.am): Replace new indicators.
96441         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
96442         * tests/test-math.c (main): Test this.
96443         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
96444         * doc/posix-headers/math.texi (math.h): Mention bug.
96445         Reported by Nelson H. F. Beebe and Jim Meyering.
96447 2008-04-11  Bruno Haible  <bruno@clisp.org>
96449         Adapt to future versions of Apple GCC.
96450         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
96451         Reported by Peter O'Gorman <peter@pogma.com>.
96453 2008-04-11  Bruno Haible  <bruno@clisp.org>
96455         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
96457 2008-04-11  Bruno Haible  <bruno@clisp.org>
96459         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
96461         * modules/getaddrinfo-tests (Makefile.am): Define
96462         test_getaddrinfo_LDADD.
96464 2008-04-11  Bruno Haible  <bruno@clisp.org>
96466         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
96467         (init): Fix syntax error.
96468         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
96469         is declared.
96471 2008-04-11  Bruno Haible  <bruno@clisp.org>
96473         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
96474         * modules/glob (Depends-on): Add stdbool.
96476 2008-04-11  Bruno Haible  <bruno@clisp.org>
96478         * lib/trim.c: Include <string.h>.
96480 2008-04-11  Eric Blake  <ebb9@byu.net>
96482         Avoid compile failure on OS/2.
96483         * lib/regex_internal.h (internal_function): Disable optimization
96484         on OS/2 (__EMX__), where it caused compiler error.
96485         Reported by Elbert Pol.
96487 2008-04-11  Bruno Haible  <bruno@clisp.org>
96489         Flush the standard error stream before aborting. Needed on mingw.
96490         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
96491         * tests/test-array_list.c (ASSERT): Likewise.
96492         * tests/test-array_oset.c (ASSERT): Likewise.
96493         * tests/test-avltree_list.c (ASSERT): Likewise.
96494         * tests/test-avltree_oset.c (ASSERT): Likewise.
96495         * tests/test-avltreehash_list.c (ASSERT): Likewise.
96496         * tests/test-binary-io.c (ASSERT): Likewise.
96497         * tests/test-byteswap.c (ASSERT): Likewise.
96498         * tests/test-c-ctype.c (ASSERT): Likewise.
96499         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
96500         * tests/test-c-strcasestr.c (ASSERT): Likewise.
96501         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
96502         * tests/test-c-strstr.c (ASSERT): Likewise.
96503         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
96504         * tests/test-canonicalize.c (ASSERT): Likewise.
96505         * tests/test-carray_list.c (ASSERT): Likewise.
96506         * tests/test-ceilf1.c (ASSERT): Likewise.
96507         * tests/test-ceilf2.c (ASSERT): Likewise.
96508         * tests/test-ceill.c (ASSERT): Likewise.
96509         * tests/test-count-one-bits.c (ASSERT): Likewise.
96510         * tests/test-fbufmode.c (ASSERT): Likewise.
96511         * tests/test-fflush2.c (ASSERT): Likewise.
96512         * tests/test-floorf1.c (ASSERT): Likewise.
96513         * tests/test-floorf2.c (ASSERT): Likewise.
96514         * tests/test-floorl.c (ASSERT): Likewise.
96515         * tests/test-fopen.c (ASSERT): Likewise.
96516         * tests/test-fpending.c (ASSERT): Likewise.
96517         * tests/test-fprintf-posix.c (ASSERT): Likewise.
96518         * tests/test-fpurge.c (ASSERT): Likewise.
96519         * tests/test-freadable.c (ASSERT): Likewise.
96520         * tests/test-freadahead.c (ASSERT): Likewise.
96521         * tests/test-freading.c (ASSERT): Likewise.
96522         * tests/test-freadptr.c (ASSERT): Likewise.
96523         * tests/test-freadptr2.c (ASSERT): Likewise.
96524         * tests/test-freadseek.c (ASSERT): Likewise.
96525         * tests/test-freopen.c (ASSERT): Likewise.
96526         * tests/test-frexp.c (ASSERT): Likewise.
96527         * tests/test-frexpl.c (ASSERT): Likewise.
96528         * tests/test-fseek.c (ASSERT): Likewise.
96529         * tests/test-fseeko.c (ASSERT): Likewise.
96530         * tests/test-fstrcmp.c (ASSERT): Likewise.
96531         * tests/test-ftell.c (ASSERT): Likewise.
96532         * tests/test-ftello.c (ASSERT): Likewise.
96533         * tests/test-func.c (ASSERT): Likewise.
96534         * tests/test-fwritable.c (ASSERT): Likewise.
96535         * tests/test-fwriting.c (ASSERT): Likewise.
96536         * tests/test-getdelim.c (ASSERT): Likewise.
96537         * tests/test-getline.c (ASSERT): Likewise.
96538         * tests/test-i-ring.c (ASSERT): Likewise.
96539         * tests/test-iconv-utf.c (ASSERT): Likewise.
96540         * tests/test-iconv.c (ASSERT): Likewise.
96541         * tests/test-isfinite.c (ASSERT): Likewise.
96542         * tests/test-isnand.c (ASSERT): Likewise.
96543         * tests/test-isnanf.c (ASSERT): Likewise.
96544         * tests/test-isnanl.h (ASSERT): Likewise.
96545         * tests/test-ldexpl.c (ASSERT): Likewise.
96546         * tests/test-linked_list.c (ASSERT): Likewise.
96547         * tests/test-linkedhash_list.c (ASSERT): Likewise.
96548         * tests/test-localename.c (ASSERT): Likewise.
96549         * tests/test-lseek.c (ASSERT): Likewise.
96550         * tests/test-mbscasecmp.c (ASSERT): Likewise.
96551         * tests/test-mbscasestr1.c (ASSERT): Likewise.
96552         * tests/test-mbscasestr2.c (ASSERT): Likewise.
96553         * tests/test-mbscasestr3.c (ASSERT): Likewise.
96554         * tests/test-mbscasestr4.c (ASSERT): Likewise.
96555         * tests/test-mbschr.c (ASSERT): Likewise.
96556         * tests/test-mbscspn.c (ASSERT): Likewise.
96557         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
96558         * tests/test-mbspbrk.c (ASSERT): Likewise.
96559         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
96560         * tests/test-mbsrchr.c (ASSERT): Likewise.
96561         * tests/test-mbsspn.c (ASSERT): Likewise.
96562         * tests/test-mbsstr1.c (ASSERT): Likewise.
96563         * tests/test-mbsstr2.c (ASSERT): Likewise.
96564         * tests/test-mbsstr3.c (ASSERT): Likewise.
96565         * tests/test-memchr2.c (ASSERT): Likewise.
96566         * tests/test-memmem.c (ASSERT): Likewise.
96567         * tests/test-open.c (ASSERT): Likewise.
96568         * tests/test-printf-frexp.c (ASSERT): Likewise.
96569         * tests/test-printf-frexpl.c (ASSERT): Likewise.
96570         * tests/test-printf-posix.c (ASSERT): Likewise.
96571         * tests/test-quotearg.c (ASSERT): Likewise.
96572         * tests/test-rbtree_list.c (ASSERT): Likewise.
96573         * tests/test-rbtree_oset.c (ASSERT): Likewise.
96574         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
96575         * tests/test-round1.c (ASSERT): Likewise.
96576         * tests/test-roundf1.c (ASSERT): Likewise.
96577         * tests/test-roundl.c (ASSERT): Likewise.
96578         * tests/test-signbit.c (ASSERT): Likewise.
96579         * tests/test-sleep.c (ASSERT): Likewise.
96580         * tests/test-snprintf-posix.c (ASSERT): Likewise.
96581         * tests/test-snprintf.c (ASSERT): Likewise.
96582         * tests/test-sprintf-posix.c (ASSERT): Likewise.
96583         * tests/test-stat-time.c (ASSERT): Likewise.
96584         * tests/test-strcasestr.c (ASSERT): Likewise.
96585         * tests/test-strerror.c (ASSERT): Likewise.
96586         * tests/test-striconv.c (ASSERT): Likewise.
96587         * tests/test-striconveh.c (ASSERT): Likewise.
96588         * tests/test-striconveha.c (ASSERT): Likewise.
96589         * tests/test-strsignal.c (ASSERT): Likewise.
96590         * tests/test-strstr.c (ASSERT): Likewise.
96591         * tests/test-strtod.c (ASSERT): Likewise.
96592         * tests/test-trunc1.c (ASSERT): Likewise.
96593         * tests/test-trunc2.c (ASSERT): Likewise.
96594         * tests/test-truncf1.c (ASSERT): Likewise.
96595         * tests/test-truncf2.c (ASSERT): Likewise.
96596         * tests/test-truncl.c (ASSERT): Likewise.
96597         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
96598         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
96599         * tests/test-vasnprintf.c (ASSERT): Likewise.
96600         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
96601         * tests/test-vasprintf.c (ASSERT): Likewise.
96602         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
96603         * tests/test-vprintf-posix.c (ASSERT): Likewise.
96604         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
96605         * tests/test-vsnprintf.c (ASSERT): Likewise.
96606         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
96607         * tests/test-wcwidth.c (ASSERT): Likewise.
96608         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
96609         * tests/test-xprintf-posix.c (ASSERT): Likewise.
96610         * tests/test-xvasprintf.c (ASSERT): Likewise.
96611         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
96612         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
96613         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
96614         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
96615         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
96616         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
96617         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
96618         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
96619         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
96620         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
96621         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
96622         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
96623         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
96624         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
96625         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
96626         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
96627         * tests/unictype/test-block_list.c (ASSERT): Likewise.
96628         * tests/unictype/test-block_of.c (ASSERT): Likewise.
96629         * tests/unictype/test-block_test.c (ASSERT): Likewise.
96630         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
96631         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
96632         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
96633         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
96634         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
96635         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
96636         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
96637         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
96638         * tests/unictype/test-combining.c (ASSERT): Likewise.
96639         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
96640         * tests/unictype/test-digit.c (ASSERT): Likewise.
96641         * tests/unictype/test-mirror.c (ASSERT): Likewise.
96642         * tests/unictype/test-numeric.c (ASSERT): Likewise.
96643         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
96644         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
96645         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
96646         * tests/unictype/test-scripts.c (ASSERT): Likewise.
96647         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
96648         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
96649         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
96650         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
96651         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
96652         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
96653         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
96654         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
96655         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
96656         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
96657         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
96658         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
96659         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
96660         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
96661         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
96662         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
96663         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
96664         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
96665         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
96666         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
96667         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
96668         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
96669         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
96670         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
96671         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
96672         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
96673         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
96674         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
96675         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
96676         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
96677         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
96678         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
96679         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
96680         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
96681         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
96682         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
96683         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
96684         Reported by Eric Blake.
96686 2008-04-11  Bruno Haible  <bruno@clisp.org>
96688         * lib/wchar.in.h: Tweak comment.
96690 2008-04-11  Bruno Haible  <bruno@clisp.org>
96692         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
96693         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
96694         gl_COMMON.
96695         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
96697 2008-04-11  Bruno Haible  <bruno@clisp.org>
96699         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
96701 2008-04-11  Simon Josefsson  <simon@josefsson.org>
96703         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
96704         of attempting to use non-existing /dev/*random.  Based on patch
96705         from Adam Strzelecki <ono@java.pl> in
96706         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
96708 2008-04-08  Bruno Haible  <bruno@clisp.org>
96710         Add tentative support for emx+gcc.
96711         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
96712         * lib/fpurge.c (fpurge): Likewise.
96713         * lib/freadable.c (freadable): Likewise.
96714         * lib/freadahead.c (freadahead): Likewise.
96715         * lib/freading.c (freading): Likewise.
96716         * lib/freadptr.c (freadptr): Likewise.
96717         * lib/freadseek.c (freadptrinc): Likewise.
96718         * lib/fseeko.c (rpl_fseeko): Likewise.
96719         * lib/fseterr.c (fseterr): Likewise.
96720         * lib/fwritable.c (fwritable): Likewise.
96721         * lib/fwriting.c (fwriting): Likewise.
96722         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
96724 2008-04-09  Eric Blake  <ebb9@byu.net>
96726         Avoid some autoconf warnings.
96727         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
96728         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
96729         * m4/afs.m4 (gl_AFS): Likewise.
96730         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
96731         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
96732         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96733         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
96734         (gl_INTEGER_TYPE_SUFFIX): Likewise.
96735         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
96736         (AC_CHECK_DECLS_ONCE): Likewise.
96737         Rename file...
96738         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
96739         gnulib-tool requires autoconf 2.59 or better.
96740         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
96742 2008-04-08  Eric Blake  <ebb9@byu.net>
96744         Use 'git describe --match' if present (added in git 1.5.5).
96745         * build-aux/git-version-gen: Limit result to tags that match 'v*'
96746         if possible.
96748 2008-04-08  Bruno Haible  <bruno@clisp.org>
96750         Add tentative support for OpenServer.
96751         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
96752         _ptr, _cnt.
96753         * lib/fpurge.c (fpurge): Likewise.
96754         * lib/freadable.c (freadable): Likewise.
96755         * lib/freadahead.c (freadahead): Likewise.
96756         * lib/freading.c (freading): Likewise.
96757         * lib/freadptr.c (freadptr): Likewise.
96758         * lib/freadseek.c (freadptrinc): Likewise.
96759         * lib/fseeko.c (rpl_fseeko): Likewise.
96760         * lib/fseterr.c (fseterr): Likewise.
96761         * lib/fwritable.c (fwritable): Likewise.
96762         * lib/fwriting.c (fwriting): Likewise.
96763         Reported by Roger Cornelius <rac@tenzing.org> and
96764         Brian K. White <brian@aljex.com>.
96766 2008-04-06  Jim Meyering  <meyering@redhat.com>
96768         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
96770 2008-04-06  Bruno Haible  <bruno@clisp.org>
96772         Avoid possible error with non-ASCII bytes in UTF-8 locales.
96773         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
96774         * tests/test-printf-posix.sh: Likewise.
96775         * tests/test-vfprintf-posix.sh: Likewise.
96776         * tests/test-vprintf-posix.sh: Likewise.
96777         * tests/test-xprintf-posix.sh: Likewise.
96779 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96781         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
96782         hide error from 'ls', needed on OS/2.
96783         Report by Elbert Pol <elbert.pol@gmail.com>.
96785 2008-04-04  Eric Blake  <ebb9@byu.net>
96787         Make test-fseeko.c failures meaningful.
96788         * tests/test-fseeko.c: Print line number on failure.
96789         * tests/test-fseek.c: Likewise.
96790         Reported by Nelson H. F. Beebe.
96792         Improve strtod bug detection check.
96793         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
96794         required for Solaris 10.
96795         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
96797 2008-04-04  Bruno Haible  <bruno@clisp.org>
96799         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
96800         by m4/setenv.m4.
96802 2008-04-03  Eric Blake  <ebb9@byu.net>
96804         Ensure sane .version contents.
96805         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
96806         version string.
96807         * build-aux/git-version-gen: Improve documentation.
96809         Make GNU make output nicer.
96810         * top/GNUmakefile [!_have-Makefile]: Add dependency on
96811         MAKECMDGOALS to enforce message for all command line targets.  Set
96812         srcdir for use in maint.mk.
96814         Another maintainer tweak.
96815         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
96816         a target that regenerates version.
96818 2008-04-03  Jim Meyering  <meyering@redhat.com>
96820         vc-list-files: don't cause coreutils "make po-check" failure
96821         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
96823 2008-04-03  Eric Blake  <ebb9@byu.net>
96825         Allow VPATH usage of vc-list-files.
96826         * build-aux/vc-list-files (scriptversion): Add timestamp.
96827         (options): Add --help, --version, -C.
96828         (CVS): Support installed cvsu.
96830 2008-04-02  Bruno Haible  <bruno@clisp.org>
96832         Avoid some "statement with no effect" warnings from gcc.
96833         * tests/test-wctype.c (main): Explicitly ignore unused values.
96834         Reported by Jim Meyering.
96836 2008-04-02  Jim Meyering  <meyering@redhat.com>
96838         Avoid some warnings from "gcc -Wshadow".
96839         * tests/test-frexp.c (exp): Define to a different identifier.
96840         * tests/test-frexpl.c (exp): Likewise.
96842 2008-04-03  Jim Meyering  <meyering@redhat.com>
96844         bootstrap: remove dangling *.[ch] symlinks from lib
96845         * build-aux/bootstrap [dangling symlink removal]: Move find's
96846         -depth option to precede all others, to avoid a warning.
96847         Remove *.[ch] files too, and from "$source_base" (usually lib/).
96849 2008-04-02  Bruno Haible  <bruno@clisp.org>
96851         Avoid some warnings from "gcc -Wshadow".
96852         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
96853         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
96854         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
96855         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
96856         Reported by Jim Meyering.
96858 2008-04-01  Bruno Haible  <bruno@clisp.org>
96860         Fix test to work on IRIX 6.5 with cc.
96861         * tests/test-math.c (numeric_equal): New function.
96862         (main): Use it.
96864 2008-04-01  Bruno Haible  <bruno@clisp.org>
96866         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
96868 2008-04-01  Bruno Haible  <bruno@clisp.org>
96870         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
96871         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96872         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
96873         (Depends-on): Remove math.
96875         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
96876         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96877         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
96878         (Depends-on): Remove math.
96880         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
96881         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96882         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
96883         (Depends-on): Remove math.
96884         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
96885         (Depends-on): Remove math.
96887         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
96888         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96889         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
96890         (Depends-on): Remove math.
96891         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
96892         (Depends-on): Remove math.
96894         * tests/test-round1.c: Include nan.h.
96895         (main): Use NaNd instead of NAN.
96896         * modules/round-tests (Files): Add tests/nan.h.
96898         * tests/test-trunc1.c: Include nan.h.
96899         (main): Use NaNd instead of NAN.
96900         * modules/trunc-tests (Files): Add tests/nan.h.
96902         * tests/test-roundf1.c: Include nan.h.
96903         (main): Use NaNf instead of NAN.
96904         * modules/roundf-tests (Files): Add tests/nan.h.
96906         * tests/test-truncf1.c: Include nan.h.
96907         (main): Use NaNf instead of NAN.
96908         * modules/truncf-tests (Files): Add tests/nan.h.
96910         * tests/test-ceilf1.c: Include nan.h.
96911         (main): Use NaNf instead of NAN.
96912         * modules/ceilf-tests (Files): Add tests/nan.h.
96914         * tests/test-floorf1.c: Include nan.h.
96915         (main): Use NaNf instead of NAN.
96916         * modules/floorf-tests (Files): Add tests/nan.h.
96918         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
96919         (main): Use NaNf instead of NAN.
96920         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
96922         * tests/test-isnand.c: Include nan.h instead of <math.h>.
96923         (main): Use NaNd instead of NAN.
96924         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
96926         * tests/test-frexp.c: Include nan.h.
96927         (main): Use NaNd instead of NAN.
96928         * modules/frexp-tests (Files): Add tests/nan.h.
96930         * lib/isnan.c: Don't include <math.h>.
96931         (FUNC): Don't use NAN macro.
96932         * modules/isnand-nolibm (Depends-on): Remove math.
96933         * modules/isnanf-nolibm (Depends-on): Remove math.
96934         * modules/isnanl (Depends-on): Remove math.
96935         * modules/isnanl-nolibm (Depends-on): Remove math.
96937         * tests/nan.h: New file.
96939 2008-04-01  Eric Blake  <ebb9@byu.net>
96941         Fix typos.
96942         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
96943         values to be the right type.
96945         For now, cater to gnulib strtod inaccuracies.
96946         * tests/test-strtod.c (main): Allow 1-ulp error on expected
96947         fractional results.  While not as nice from a QoI perspective, it
96948         is a quicker patch than correctly implementing decimal to binary
96949         rounding.
96951 2008-03-31  Eric Blake  <ebb9@byu.net>
96953         Guarantee a definition of NAN.
96954         * lib/math.in.h (NAN): Define if missing.
96955         * tests/test-math.c (main): Test it.
96956         * doc/posix-headers/math.texi (math.h): Document this.
96957         * lib/isnan.c (rpl_isnand): Use it.
96958         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
96959         * tests/test-floorf1.c (NaN): Likewise.
96960         * tests/test-frexp.c (NaN): Likewise.
96961         * tests/test-isnand.c (NaN): Likewise.
96962         * tests/test-isnanf.c (NaN): Likewise.
96963         * tests/test-round1.c (NaN): Likewise.
96964         * tests/test-roundf1.c (NaN): Likewise.
96965         * tests/test-snprintf-posix.h (NaN): Likewise.
96966         * tests/test-sprintf-posix.h (NaN): Likewise.
96967         * tests/test-trunc1.c (NaN): Likewise.
96968         * tests/test-truncf1.c (NaN): Likewise.
96969         * tests/test-vasnprintf-posix.c (NaN): Likewise.
96970         * tests/test-vasprintf-posix.c (NaN): Likewise.
96971         * modules/isnand-nolibm (Depends-on): Add math.
96972         * modules/isnanf-nolibm (Depends-on): Likewise.
96973         * modules/isnanl (Depends-on): Likewise.
96974         * modules/isnanl-nolibm (Depends-on): Likewise.
96975         * modules/snprintf-posix-tests (Depends-on): Likewise.
96976         * modules/sprintf-posix-tests (Depends-on): Likewise.
96977         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
96978         * modules/vsprintf-posix-tests (Depends-on): Likewise.
96979         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
96980         * modules/vasprintf-posix-tests (Depends-on): Likewise.
96982 2008-03-31  Bruno Haible  <bruno@clisp.org>
96984         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
96985         * doc/posix-functions/strtod.texi: Likewise.
96987 2008-03-31  Bruno Haible  <bruno@clisp.org>
96989         * tests/test-strtod.c (main): Don't use C99 syntax.
96991 2008-03-31  Bruno Haible  <bruno@clisp.org>
96993         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
96994         Reported by Eric Blake.
96996 2008-03-31  Jim Meyering  <meyering@redhat.com>
96998         Don't compare actual signbit return values.
96999         * tests/test-strtod.c (main): Rather, compare only their
97000         zero/non-zero nature.
97002 2008-03-31  Eric Blake  <ebb9@byu.net>
97004         More strtod documentation.
97005         * doc/posix-functions/strtod.texi (strtod): Interpret more test
97006         failures as distinct bugs.
97008 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
97010         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
97011         Problem reported by Erik Benada in
97012         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
97014 2008-03-30  Bruno Haible  <bruno@clisp.org>
97016         * tests/test-strtod.c: Add comments about which assertion fails on which
97017         platform.
97018         * doc/posix-functions/strtod.texi: Add info about many more platforms.
97020 2008-03-30  Eric Blake  <ebb9@byu.net>
97022         Test signbit behavior on zeros.
97023         * tests/test-signbit.c (test_signbitf): Add tests for zero.
97024         (test_signbitd, test_signbitl): Likewise.
97026         More strtod touchups.
97027         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
97028         sign of negative underflow, for now.  Use .5, not .1.
97029         * doc/posix-functions/strtod.texi (strtod): Mention these
97030         limitations.
97031         Reported by Jim Meyering.
97033 2008-03-30  Bruno Haible  <bruno@clisp.org>
97035         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
97036         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
97038 2008-03-30  Bruno Haible  <bruno@clisp.org>
97040         Avoid failure when attempting to return empty iconv results on some
97041         platforms.
97042         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
97043         allocation, don't report ENOMEM when the resulting string is empty.
97045 2008-03-30  Bruno Haible  <bruno@clisp.org>
97047         Fix buffer overrun.
97048         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
97049         Don't consider the width for tmp_length. Check count against tmp_length
97050         before doing the padding. Ensure enough allocation during padding.
97052 2008-03-30  Eric Blake  <ebb9@byu.net>
97054         strtod touchups.
97055         * lib/strtod.c (strtod): Avoid compiler warnings.
97056         Reported by Jim Meyering.
97058 2008-03-30  Bruno Haible  <bruno@clisp.org>
97060         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
97061         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
97062         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
97063         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
97064         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
97065         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
97066         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
97067         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
97069         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
97070         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
97071         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
97072         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
97073         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
97074         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
97075         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
97076         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
97078         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
97079         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
97080         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
97081         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
97082         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
97083         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
97084         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
97085         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
97087         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
97088         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
97090         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
97091         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
97093         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
97094         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
97096         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
97097         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
97098         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
97100         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
97101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
97102         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
97104         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
97105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
97106         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
97108         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
97109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
97110         * modules/vasprintf (Depends-on): Add EOVERFLOW.
97112         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
97113         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
97114         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
97115         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
97116         (Depends-on): Add EOVERFLOW.
97117         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
97118         (Depends-on): Add EOVERFLOW.
97119         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
97120         (Depends-on): Add EOVERFLOW.
97121         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
97122         (Depends-on): Add EOVERFLOW.
97123         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
97124         (Depends-on): Add EOVERFLOW.
97125         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
97126         (Depends-on): Add EOVERFLOW.
97127         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
97128         (Depends-on): Add EOVERFLOW.
97129         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
97130         (Depends-on): Add EOVERFLOW.
97132         * lib/sprintf.c (EOVERFLOW): Remove fallback.
97133         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
97134         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
97136         * lib/snprintf.c (EOVERFLOW): Remove fallback.
97137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
97138         * modules/snprintf (Depends-on): Add EOVERFLOW.
97140         * lib/poll.c (EOVERFLOW): Remove fallback.
97141         * modules/poll (Depends-on): Add EOVERFLOW.
97143         * lib/getugroups.c (EOVERFLOW): Remove fallback.
97144         * modules/getugroups (Depends-on): Add EOVERFLOW.
97146         * lib/getdelim.c (EOVERFLOW): Remove fallback.
97147         * modules/getdelim (Depends-on): Add EOVERFLOW.
97149         * lib/ftell.c (EOVERFLOW): Remove fallback.
97150         * modules/ftell (Depends-on): Add EOVERFLOW.
97152         * lib/fprintf.c (EOVERFLOW): Remove fallback.
97153         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
97154         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
97156         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
97158         * modules/EOVERFLOW-tests: New file.
97159         * tests/test-EOVERFLOW.c: New file.
97161         * modules/EOVERFLOW: New file.
97162         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
97164 2008-03-30  Bruno Haible  <bruno@clisp.org>
97166         Fix bug introduced on 2007-06-10.
97167         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
97168         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
97170 2008-03-30  Bruno Haible  <bruno@clisp.org>
97172         Improve freadseek's efficiency after ungetc.
97173         * lib/freadseek.c: Include freadahead.h.
97174         (freadptrinc): New function, extracted from freadseek.
97175         (freadseek): Use it in a loop. Use freadahead to determine the number
97176         of loop iterations.
97177         * modules/freadseek (Depends-on): Add freadahead.
97178         (configure.ac): Require AC_C_INLINE.
97180 2008-03-30  Bruno Haible  <bruno@clisp.org>
97182         * lib/freadseek.c (freadseek): Don't ignore the return value of
97183         freadptr.
97185 2008-03-29  Eric Blake  <ebb9@byu.net>
97187         Add hex float support.
97188         * modules/strtod (Depends-on): Add c-ctype.
97189         (Link): Mention POW_LIB.
97190         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
97191         whitespace between 'e' and exponent.
97192         * tests/test-strtod.c (main): Enable hex float tests.
97193         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
97194         now provides.
97196         Document various strtod bugs, with some fixes.
97197         * doc/posix-functions/strtod.texi (strtod): Document bugs with
97198         "-0x", "inf", "nan", and hex constants.
97199         * doc/posix-functions/atof.texi (atof): Likewise.
97200         * modules/stdlib (Makefile.am): Support strtod.
97201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
97202         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
97203         detect additional strtod bugs.
97204         * lib/stdlib.in.h (rpl_strtod): Add declarations.
97205         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
97206         bool where appropriate.  Parse 'inf' and 'nan'.
97207         * tests/test-strtod.c: New file.
97208         * modules/strtod (Depends-on): Add stdbool, stdlib.
97209         (configure.ac): Turn on module indicator.
97210         * modules/strtod-tests: New module.
97212 2008-03-29  Eric Blake  <ebb9@byu.net>
97214         Fix ftell on mingw.
97215         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
97216         * modules/ftell-tests (Depends-on): Add binary-io.
97217         * modules/ftello-tests (Depends-on): Likewise.
97218         * tests/test-ftell.c (main): Enhance test to cover behavior after
97219         ungetc.  Enforce binary mode.
97220         * tests/test-ftello.c (main): Likewise.
97222         Pass test-freadseek on cygwin.
97223         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
97224         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
97225         ungetc buffer.
97227         * tests/test-fflush2.c (main): Fix typo.
97229 2008-03-29  Bruno Haible  <bruno@clisp.org>
97231         * tests/test-fflush2.c (main): Temporarily disable the contents of
97232         this test.
97233         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
97234         Reported by Eric Blake.
97236 2008-03-28  Simon Josefsson  <simon@josefsson.org>
97238         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
97239         (GC_SHA224_DIGEST_SIZE): Add.
97241         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
97242         (gc_hash_digest_length): Likewise.
97243         (gc_hash_buffer): Likewise.
97245 2008-03-25  Bruno Haible  <bruno@clisp.org>
97247         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
97248         detail which gettext release to use.
97249         Reported by Simon Josefsson.
97251 2008-03-26  Jim Meyering  <meyering@redhat.com>
97253         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
97254         * modules/gnumakefile (clean-GNUmakefile): Also, use
97255         test ... && ... || : syntax rather than if-then ... fi.
97257         gnumakefile: Don't double-quote-expand $(VPATH) value.
97258         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
97260 2008-03-24  Eric Blake  <ebb9@byu.net>
97262         Alter GNUmakefile to install into top directory.
97263         * modules/maintainer-makefile: Split, and add dependency...
97264         * modules/gnumakefile: to this new module.
97265         * build-aux/GNUmakefile: Move...
97266         * top/GNUmakefile: ...here.
97267         * build-aux/maint.mk: Move...
97268         * top/maint.mk: ...here.
97269         * MODULES.html.sh (Support for maintaining...): Document new
97270         module.
97272 2008-03-23  Bruno Haible  <bruno@clisp.org>
97274         * gnulib-tool: New options --vc-files, --no-vc-files.
97275         (func_usage): Document them.
97276         (vc_files): New variable.
97277         (func_import): Consider vc_files.
97278         (func_create_testdir): Set vc_files to empty.
97279         Suggested by Jim Meyering and Karl Berry.
97281 2008-03-23  Bruno Haible  <bruno@clisp.org>
97283         Fix regex compilation error on HP-UX 11.
97284         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
97285         * modules/regex (Files): Add m4/mbstate_t.m4.
97286         Reported by Ton Voon <ton.voon@altinity.com>.
97288 2008-03-23  Bruno Haible  <bruno@clisp.org>
97290         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
97292 2008-03-23  Eric Blake  <ebb9@byu.net>
97293             Bruno Haible  <bruno@clisp.org>
97295         Install files from top/ in the destination directory.
97296         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97297         augmentation also for the files from top/.
97298         (func_import, func_create_testdir): Rewrite file names:
97299         top/filename -> filename.
97301 2008-03-23  Bruno Haible  <bruno@clisp.org>
97303         Tweak "gnulib --version" output.
97304         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
97306 2008-03-23  Bruno Haible  <bruno@clisp.org>
97308         Tweak "gnulib --version" output.
97309         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
97310         rather than contents of ChangeLog, when possible.
97312 2008-03-21  Eric Blake  <ebb9@byu.net>
97314         More --version tweaks.
97315         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
97316         date of last ChangeLog entry.
97318 2008-03-21  Jim Meyering  <meyering@redhat.com>
97320         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
97322 2008-03-20  Eric Blake  <ebb9@byu.net>
97324         VPATH fix.
97325         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
97327 2008-03-20  Simon Josefsson  <simon@josefsson.org>
97329         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
97330         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
97332 2008-03-20  Eric Blake  <ebb9@byu.net>
97334         Sync GNUmakefile with coreutils.
97335         * build-aux/GNUmakefile (have-Makefile): Rename...
97336         (_have-Makefile): ...to this, for namespace consideration.
97337         (GNUmakefile.cfg): Include, if present.
97338         (_autoreconf): Define a default.
97339         (_is-dist-target): New rule for rebuilds to pick up intra-release
97340         version.
97341         (maint-cfg.mk): Rename...
97342         (cfg.mk): ...to this.
97344 2008-03-18  Jim Meyering  <meyering@redhat.com>
97346         New script and module: mktempd
97347         * MODULES.html.sh (maint+release support): Add mktempd.
97348         * build-aux/mktempd: New file.
97349         * modules/mktempd: New file.
97351 2008-03-15  Jim Meyering  <meyering@redhat.com>
97353         Undo last change.
97354         * lib/sha1.c, lib/md5.c: 63 != ~63.
97355         Reported by Andreas Schwab.
97357         sha1.c, md5.c: Hoist a redundant expression.
97358         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
97359         "ctx->buflen" only once, before calling *_process_block.
97360         * lib/md5.c (md5_process_bytes): Likewise.
97362 2008-03-14  Eric Blake  <ebb9@byu.net>
97364         Bump copyright year in files generated by gnulib-tool.
97365         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
97366         gnulib-tool, rather than hard-coding it.
97368         Fix 'gnulib-tool --version' output to work with git.
97369         * gnulib-tool (func_gnulib_dir): New function, extracted from...
97370         (startup): ...here.
97371         (func_version): Use it to invoke git-version-gen, rather than
97372         relying on CVS keyword expansion.  Modernize wording.
97373         (cvsdatestamp, last_checkin_date, version): Kill unused
97374         variables.
97376 2008-03-12  Jim Meyering  <meyering@redhat.com>
97378         Recognize optional cast of the argument to free.
97379         * build-aux/useless-if-before-free: Update regexps.
97381         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
97383 2008-03-11  Bruno Haible  <bruno@clisp.org>
97385         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
97386         by a single package.
97387         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
97388         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
97389         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
97390         Reported by Sam Steingold <sds@gnu.org>.
97392 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97394         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
97395         repositories.
97397 2008-03-11  Bruno Haible  <bruno@clisp.org>
97399         Avoid conflicts between local macro definitions.
97400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
97401         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
97403 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
97404             Bruno Haible  <bruno@clisp.org>
97406         Make va_copy work with some version of xlc on AIX 5.1.
97407         * lib/stdarg.in.h: New file.
97408         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
97409         On AIX, use a <stdarg.h> file substitute.
97410         * modules/stdarg (Files): Add lib/stdarg.in.h.
97411         (Depends-on): Add include_next.
97412         (Makefile.am): Build a stdarg.h substitute if requested.
97413         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
97415 2008-03-10  Bruno Haible  <bruno@clisp.org>
97417         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
97418         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
97419         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97421 2008-03-10  Bruno Haible  <bruno@clisp.org>
97423         * modules/stdlib (Depends-on): Add include_next, remove
97424         absolute-header.
97426 2008-03-09  Bruno Haible  <bruno@clisp.org>
97428         * lib/freadahead.h (freadahead): Document more precisely.
97429         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
97430         the sum of both buffer sizes.
97431         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
97432         * NEWS: Document the change.
97434 2008-03-09  Bruno Haible  <bruno@clisp.org>
97436         Extend freadptr to return also the buffer size.
97437         * lib/freadptr.h (freadptr): Add sizep argument.
97438         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
97439         (freadptr): Add sizep argument. Determine buffer size like freadahead
97440         does.
97441         * tests/test-freadptr.c: Don't include freadahead.h.
97442         (main): Adapt for new calling convention of freadptr.
97443         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
97444         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
97445         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
97446         tests/test-freadptr2.sh.
97447         (Depends): Remove freadahead.
97448         (TESTS): Add test-freadptr2.sh.
97449         (check_PROGRAMS): Add test-freadptr2.
97451 2008-03-09  Bruno Haible  <bruno@clisp.org>
97453         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
97454         Report and solution by Simon Josefsson.
97456 2008-03-06  Bruno Haible  <bruno@clisp.org>
97458         Make fflush after ungetc work on BSD platforms.
97459         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
97460         * tests/test-fflush2.c: New file.
97461         * tests/test-fflush2.sh: New file.
97462         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
97463         tests/test-fflush2.c.
97464         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
97465         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
97467 2008-03-06  Eric Blake  <ebb9@byu.net>
97469         Likewise for ftello.
97470         * modules/ftello (Dependencies): Add extensions.
97471         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
97473 2008-03-06  Bruno Haible  <bruno@clisp.org>
97475         * modules/fseeko (Dependencies): Add extensions.
97476         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
97477         Needed on glibc systems.
97479 2008-03-06  Bruno Haible  <bruno@clisp.org>
97481         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
97482         email address.
97483         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
97485 2008-03-06  Bruno Haible  <bruno@clisp.org>
97487         * users.txt: Add libgnupdf.
97489 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
97491         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
97492         (Header File Substitutes, Function Substitutes,
97493         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
97494         (Build robot for gnulib): Fix typo.
97496 2008-03-06  Bruno Haible  <bruno@clisp.org>
97498         * doc/gnulib-tool.texi (VCS Issues): Small updates.
97499         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
97501 2008-03-06  Bruno Haible  <bruno@clisp.org>
97503         * doc/func.texi: New file, extracted from doc/gnulib.texi.
97504         * doc/gnulib.texi: Include it.
97506 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97508         * modules/func (License): Change license to unlimited; there was
97509         no LGPL parts in the module anyway.
97511 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97513         * modules/__func__: Renamed to modules/func.
97514         * modules/__func__-tests: Renamed to modules/func-tests.
97515         * tests/test-__func__.c: Renamed to tests/test-func.c.
97516         * m4/__func__.m4: Renamed to m4/func.m4.
97517         * doc/gnulib.texi (__func__): Section renamed to func.
97518         Suggested by Eric Blake <ebb9@byu.net>.
97520 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97522         * doc/gnulib.texi (__func__): Use C99 terminology when talking
97523         about __func__.  Make example self-contained.  Suggested by Eric
97524         Blake <ebb9@byu.net>.
97526         * tests/test-__func__.c (main): Avoid extraneous () around __func.
97527         Suggested by Eric Blake <ebb9@byu.net>.
97529 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97531         * modules/__func__: New file.
97532         * modules/__func__-tests: New file.
97533         * tests/test-__func__.c: New file.
97534         * m4/__func__.m4: New file.
97535         * doc/gnulib.texi (__func__): Document __func__ module.
97537 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97539         * modules/byteswap (License): Re-license as LGPLv2+.
97541 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97543         * doc/Makefile: Add pdf target.
97545 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97547         * modules/inline (License): Use 'unlimited', since there are only
97548         *.m4 files in this module.
97550 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97551             Bruno Haible  <bruno@clisp.org>
97553         Add support for HP C 7.1 on OpenVMS 8.3.
97554         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
97556 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97558         Update VMS specifics.
97559         * lib/getopt.c [VMS]: Remove include of unixlib.h.
97561 2008-03-02  Jim Meyering  <meyering@redhat.com>
97563         Remove the last dependency on the "free" module.
97564         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
97565         Reported by Bob Proulx.
97567         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
97569         Remove useless "if" tests before free.  Deprecate "free" module.
97570         * doc/posix-functions/free.texi: Mention that this
97571         module is no longer useful.
97572         * modules/free (Notice): Say this module is obsolete.
97573         * modules/readutmp (Depends-on): Remove free.
97574         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
97575         * lib/putenv.c (putenv): Likewise.
97576         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
97577         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
97578         * tests/test-c-strcasestr.c (main): Likewise.
97579         * tests/test-c-strstr.c (main): Likewise.
97580         * tests/test-mbscasestr1.c (main): Likewise.
97581         * tests/test-mbscasestr2.c (main): Likewise.
97582         * tests/test-mbsstr1.c (main): Likewise.
97583         * tests/test-mbsstr2.c (main): Likewise.
97584         * tests/test-memmem.c (main): Likewise.
97585         * tests/test-strcasestr.c (main): Likewise.
97586         * tests/test-striconv.c (main): Likewise.
97587         * tests/test-striconveh.c (main): Likewise.
97588         * tests/test-striconveha.c (main): Likewise.
97589         * tests/test-strstr.c (main): Likewise.
97591         * build-aux/git-version-gen: Adjust a comment and the Usage string.
97593         bootstrap: sync from coreutils again
97594         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
97596 2008-03-01  Jim Meyering  <meyering@redhat.com>
97598         bootstrap: sync from coreutils
97599         * build-aux/bootstrap (update_po_files): Copy a .po file into place
97600         also when the target doesn't exist.
97602 2008-03-01  Eric Blake  <ebb9@byu.net>
97604         Fix bugs in last patch.
97605         * lib/memchr2.c (memchr2): Fix typo.
97606         * tests/test-memchr2.c: Test previous bug, and don't use GNU
97607         extension.
97608         Reported by Bruce Korb.
97610         New module 'memchr2'.
97611         * modules/memchr2: New file.
97612         * modules/memchr2-tests: Likewise.
97613         * lib/memchr2.h: Likewise.
97614         * lib/memchr2.c: Likewise, based on memchr.c.
97615         * tests/test-memchr2.c: New test.
97616         * MODULES.html.sh (String handling): Add memchr2.
97618 2008-02-29  Bruno Haible  <bruno@clisp.org>
97620         * modules/freadseek-tests: New file.
97621         * tests/test-freadseek.sh: New file.
97622         * tests/test-freadseek.c: New file.
97624         New module 'freadseek'.
97625         * modules/freadseek: New file.
97626         * lib/freadseek.h: New file.
97627         * lib/freadseek.c: New file.
97628         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
97630 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
97632         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
97633         wydawca.
97635         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
97636         program_invocation_name and program_invocation_short_name are
97637         present.
97639 2008-02-28  Bruno Haible  <bruno@clisp.org>
97641         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
97642         * tests/test-freadptr.sh: Also test non-seekable stdin.
97644 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
97646         * build-aux/bootstrap (source_base, m4_base)
97647         (doc_base, tests_base): New variables.
97648         (gnulib_tool_options): Do not hardcode base directories, use
97649         the above variables instead.
97651 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
97653         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
97655 2008-02-28  Bruno Haible  <bruno@clisp.org>
97657         * modules/freadptr-tests: New file.
97658         * tests/test-freadptr.sh: New file.
97659         * tests/test-freadptr.c: New file.
97661         New module 'freadptr'.
97662         * modules/freadptr: New file.
97663         * lib/freadptr.h: New file.
97664         * lib/freadptr.c: New file.
97665         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
97667 2008-02-26  Karl Berry  <karl@freefriends.org>
97669         Sync from Libtool:
97670         * libltdl/argz.c (argz_add, argz_count): New functions.
97671         * libltdl/argz.in.h: Declare them.
97672         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
97674 2008-02-22  Bruno Haible  <bruno@clisp.org>
97676         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
97677         is a pointer type.  Needed for HP-UX 10.
97678         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
97679         * doc/posix-functions/gmtime_r.texi: Likewise.
97680         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97682 2008-02-24  Bruno Haible  <bruno@clisp.org>
97684         * modules/environ-tests: New file.
97685         * tests/test-environ.c: New file.
97687         New module 'environ'.
97688         * modules/environ: New file.
97689         * lib/unistd.in.h (environ): New declaration.
97690         * m4/environ.m4: New file.
97691         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
97692         after use.
97693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
97694         HAVE_DECL_ENVIRON.
97695         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
97696         HAVE_DECL_ENVIRON.
97697         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
97698         wrong claim that 'environ' is missing on some systems.
97699         * modules/execute (Depends-on): Add environ.
97700         * lib/execute.c (environ): Remove fallback declaration.
97701         * modules/pipe (Depends-on): Add environ.
97702         * lib/pipe.c (environ): Remove fallback declaration.
97703         * modules/setenv (Depends-on): Add environ.
97704         * lib/setenv.c (environ): Remove fallback declaration.
97705         * modules/unsetenv (Depends-on): Add environ.
97706         * lib/unsetenv.c (environ): Remove fallback declaration.
97707         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
97708         m4/environ.m4.
97709         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
97710         (gl_PREREQ_UNSETENV): Likewise.
97712 2008-02-24  Bruno Haible  <bruno@clisp.org>
97714         * doc/posix-functions/environ.texi: Document the MacOS X problem.
97716 2008-02-20  Bob Proulx  <bob@proulx.com>
97718         Enable use of older two part flavor 'git describe'.
97719         * build-aux/git-version-gen: If using the older two part flavor of
97720         git version then recreate the third part now present in the
97721         newer three part flavor of git describe.
97723 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
97725         * lib/fts.c (fts_build): Typo correction to comment.
97727 2008-02-17  Bruno Haible  <bruno@clisp.org>
97729         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
97730         generating no-op conflicts.
97732 2008-02-17  Bruno Haible  <bruno@clisp.org>
97734         Speed up by 10%.
97735         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
97736         result_entries, rather than an index-based loop.
97738 2008-02-17  Bruno Haible  <bruno@clisp.org>
97740         Speed up by 25%.
97741         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
97742         'hashcode_cached'.
97743         (entry_create): New function.
97744         (entry_hashcode): Use the cached hashcode if possible.
97745         (read_changelog_file, try_split_merged_entry): Use entry_create.
97747 2008-02-17  Bruno Haible  <bruno@clisp.org>
97749         Speed up from O(n^2) to O(n) for long ChangeLog files.
97750         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
97751         (read_changelog_file): Change implementation of entries_reversed list
97752         to rbtreehash.
97753         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
97755 2008-02-17  Bruno Haible  <bruno@clisp.org>
97757         New option --split-merged-entry.
97758         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
97759         (find_paragraph_end, try_split_merged_entry): New functions.
97760         (long_options): Add option --split-merged-entry.
97761         (usage): Document option --split-merged-entry.
97762         (main): Implement option --split-merged-entry.
97763         Reported by Eric Blake.
97765 2008-02-17  Bruno Haible  <bruno@clisp.org>
97767         * lib/git-merge-changelog.c: Include c-strstr.h.
97768         (main): Support the "git pull --rebase" situation.
97769         * modules/git-merge-changelog (Depends-on): Add c-strstr.
97770         Reported by Eric Blake.
97772 2008-02-16  Eric Blake  <ebb9@byu.net>
97774         Avoid doubling \ in common case of "c-maybe" quoting style.
97775         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
97776         eliding outer quotes.
97777         * lib/quotearg.h: Document this.
97778         * tests/test-quotearg.c (result_strings, inputs, results_g)
97779         (flag_results, locale_results): Test it by adding a new string to
97780         each test group.
97781         (compare_strings): Test new string.
97783 2008-02-13  Eric Blake  <ebb9@byu.net>
97785         Avoid trigraph quoting in default output.
97786         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
97787         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
97788         unless explicitly requested.
97789         * tests/test-quotearg.c (flag_results, main): Add additional tests.
97791 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
97793         Don't rely on signed integer overflowing to negative value.
97794         * lib/getugroups.c (getugroups): Include <limits.h>.
97795         Instead, compare against INT_MAX, and increment only if the test passes.
97797 2008-02-13  Jim Meyering  <meyering@redhat.com>
97798         and Eric Blake  <ebb9@byu.net>
97800         Avoid shadowing warning and compile errors on Linux.
97801         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
97802         forwarding macros on Linux.
97803         (dcgettext): Define a stub, for Linux.
97804         (results_g, main): Avoid warnings.
97806 2008-02-12  Eric Blake  <ebb9@byu.net>
97808         Silence warning in last patch.
97809         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
97811         Quotearg part 4: add tests, fix c-maybe colon quoting.
97812         * lib/quotearg.h: Improve documentation.
97813         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
97814         escapes when adding outer quotes.  When quoting trigraphs, use
97815         valid C notation.  When quoting NUL, omit extra characters if next
97816         character is not digit.  Alter prototype.
97817         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
97818         callers.
97819         * modules/quotearg-tests: New module.
97820         * tests/test-quotearg.c: New test.
97822 2008-02-07  Eric Blake  <ebb9@byu.net>
97824         Quotearg part 3: add flag to control outer quote elision.
97825         * lib/quotearg.h (c_maybe_quoting_style): New style.
97826         (enum quoting_flags): Better documentation of flags.
97827         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
97828         c-maybe style.
97829         (quotearg_buffer_restyled): Handle new flag to elide outer
97830         quotes.
97832         Quotearg part 2: add flag that can control NUL elision.
97833         * lib/quotearg.h (set_quoting_flags): New prototype.
97834         * lib/quotearg.c (struct quoting_options): Add flag field.
97835         (set_quoting_flags): New function.
97836         (quotearg_buffer_restyled): Add flags parameter.
97837         (quotearg_alloc_mem): Set the flag if length cannot be returned.
97838         (quotearg_n_options): Set the flag, since length cannot be
97839         returned.
97840         (quoting_options_from_style): Default flags correctly.
97842         Quotearg part 1: more wrappers, restore quotearg_char state.
97843         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
97844         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
97845         (quotearg_colon_mem): New wrappers.
97846         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
97847         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
97848         functions.
97849         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
97850         (quotearg_colon_mem): New functions.
97852 2008-02-11  Bruno Haible  <bruno@clisp.org>
97854         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
97855         library in the current directory: it does not work with parallel make.
97856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97858 2008-02-11  Bruno Haible  <bruno@clisp.org>
97860         * .gitattributes: New file.
97862 2008-02-11  Jim Meyering  <meyering@redhat.com>
97864         useless-if-before-free: Fix reversed exit values.
97865         * build-aux/useless-if-before-free: Use correct values
97866         for EXIT_MATCH and EXIT_NO_MATCH.
97868         * build-aux/useless-if-before-free: Close stdout carefully.
97870 2008-02-10  Bruno Haible  <bruno@clisp.org>
97872         New module 'git-merge-changelog'.
97873         * modules/git-merge-changelog: New file.
97874         * lib/git-merge-changelog.c: New file.
97876 2008-02-10  Jim Meyering  <meyering@redhat.com>
97878         useless-if-before-free: New option: --list (-l).
97880         useless-if-before-free: Don't exit immediately upon open failure.
97881         * build-aux/useless-if-before-free: Exit 2 for errors.
97882         Upon failure to open a file, don't exit immediately.
97883         Rather, just warn and continue with any remaining files.
97885 2008-02-10  Bruno Haible  <bruno@clisp.org>
97887         New abstract list operation 'node_set_value'.
97888         * lib/gl_list.h (gl_list_node_set_value): New function.
97889         (struct gl_list_implementation): New field node_set_value.
97890         * lib/gl_list.c (gl_list_node_set_value): New function.
97891         * lib/gl_array_list.c (gl_array_node_set_value): New function.
97892         (gl_array_list_implementation): Update.
97893         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
97894         (gl_carray_list_implementation): Update.
97895         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
97896         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
97897         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
97898         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
97899         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
97900         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
97901         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
97902         Update.
97903         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
97904         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
97905         (gl_sublist_list_implementation): Update.
97907 2008-02-10  Bruno Haible  <bruno@clisp.org>
97909         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
97910         Needed when ELEMENT is #defined to 'some_type *'.
97912 2008-02-10  Jim Meyering  <meyering@redhat.com>
97914         New script and module: useless-if-before-free
97915         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
97916         * build-aux/useless-if-before-free: New file.
97917         * modules/useless-if-before-free: New file.
97919         * build-aux/gitlog-to-changelog: Use committer date, not author date.
97921         xstrtol_error: Fix typo.
97922         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
97923         s/exit_failure/exit_status/.
97925 2008-02-09  Jim Meyering  <meyering@redhat.com>
97927         New script and module: gitlog-to-changelog
97928         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
97929         * modules/gitlog-to-changelog: New file.
97930         * build-aux/gitlog-to-changelog: New file.
97932 2008-02-08  Jim Meyering  <meyering@redhat.com>
97934         Avoid two "parameter unused" warnings.
97935         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
97936         Mark "st" as used.
97938         Use "git COMMAND", not "git-COMMAND".
97939         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
97940         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
97941         * build-aux/git-version-gen: Use "git status", not "git-status".
97943 2008-02-07  Bruno Haible  <bruno@clisp.org>
97945         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
97946         Avoids a crash on Windows Vista.
97947         Reported by Adam Strzelecki <ono@java.pl> via
97948         Simon Josefsson <simon@josefsson.org>.
97950 2008-02-06  Bruno Haible  <bruno@clisp.org>
97952         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
97953         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
97954         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
97955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
97956         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97957         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97958         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
97959         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
97960         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97961         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97962         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97963         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97964         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97965         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97966         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97967         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
97968         left-adjust flag.
97969         * tests/test-snprintf-posix.h (test_function): Likewise.
97970         * tests/test-sprintf-posix.h (test_function): Likewise.
97971         * tests/test-vasprintf-posix.c (test_function): Likewise.
97972         * doc/posix-functions/fprintf.texi: Update.
97973         * doc/posix-functions/printf.texi: Update.
97974         * doc/posix-functions/snprintf.texi: Update.
97975         * doc/posix-functions/sprintf.texi: Update.
97976         * doc/posix-functions/vfprintf.texi: Update.
97977         * doc/posix-functions/vprintf.texi: Update.
97978         * doc/posix-functions/vsnprintf.texi: Update.
97979         * doc/posix-functions/vsprintf.texi: Update.
97980         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97982 2008-02-06  Bruno Haible  <bruno@clisp.org>
97984         Fix bug introduced on 2008-01-26.
97985         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
97987 2008-02-06  Bruno Haible  <bruno@clisp.org>
97989         Fix bug introduced on 2007-06-10.
97990         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
97991         !NEED_PRINTF_FLAG_ZERO.
97993 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
97995         getloadavg: use libperfstat on AIX5
97996         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
97998 2008-02-03  Bruno Haible  <bruno@clisp.org>
98000         * lib/diffseq.h: Add comments about required #includes.
98001         Reported by Michael Biggs <gnulib@doubleplum.net>.
98003 2008-02-01  Bruno Haible  <bruno@clisp.org>
98005         * users.txt: Add gnuit.
98007 2008-01-31  Bruno Haible  <bruno@clisp.org>
98009         * lib/md4.c (set_uint32): Mark as inline.
98010         * lib/md5.c (set_uint32): Likewise.
98011         * lib/sha1.c (set_uint32): Likewise.
98012         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
98013         * m4/md5.m4 (gl_MD5): Likewise.
98014         * m4/sha1.m4 (gl_SHA1): Likewise.
98016 2008-01-31  Jim Meyering  <meyering@redhat.com>
98018         Use "sizeof VAR", rather than a literal "4".
98019         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
98020         * lib/md4.c (md4_read_ctx): Likewise.
98021         * lib/sha1.c (sha1_read_ctx): Likewise.
98023 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98025         * tests/test-sha1.c: New file, based on test-md5.c.
98027         * modules/crypto/sha1-tests: New file.
98029 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98031         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
98033 2008-01-31  Jim Meyering  <meyering@redhat.com>
98035         Prefer "sizeof v" over the equivalent "4".
98036         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
98037         * lib/md5.c (set_uint32): Likewise.
98038         * lib/sha1.c (set_uint32): Likewise.
98040 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98042         * lib/sha1.c (set_uint32): Mark function as static.
98044 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98046         md2: clarify comments to say that alignment is not required.
98047         * lib/md2.h: Remove warning about alignment in comment.
98048         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
98049         never been required.
98051 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98053         md4: adapt alignment constraint fix from sha1.
98054         * lib/md4.c (set_uint32): New function, from sha1.c
98055         (md4_read_ctx): Use it.
98056         (md4_finish_ctx): Doc fix.
98057         * lib/md4.h: Doc fix.
98059 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98061         md5: adapt alignment constraint fix from sha1.
98062         * lib/md5.c (set_uint32): New function, from sha1.c
98063         (md5_read_ctx): Use it.
98064         (md5_finish_ctx): Doc fix.
98065         * lib/md5.h: Doc fix.
98067 2008-01-30  Peter Palfrader  <weasel@debian.org>
98069         sha1: remove the result buffer alignment constraint
98070         * lib/sha1.c (set_uint32): New function.
98071         (sha1_read_ctx): Rewrite to remove the result buffer alignment
98072         constraint.
98073         (sha1_finish_ctx): Remove comment warning about alignment constraint.
98074         * lib/sha1.h: Likewise.
98076 2008-01-30  Andreas Schwab  <schwab@suse.de>
98077             Bruno Haible  <bruno@clisp.org>
98079         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
98080         correct definition of LDBL_MIN_EXP.
98082 2008-01-30  Karl Berry  <karl@gnu.org>
98084         * config/srclist-update: try to preserve x bit on updates.
98085         * config/srclistvars.sh: update for karl.
98087 2008-01-29  Jim Meyering  <meyering@redhat.com>
98089         vasnprintf.c: Avoid warning about unused label
98090         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
98091         "overflow" label definition and associated code with the
98092         same cpp condition that guards the sole use of that label.
98094 2008-01-26  Bruno Haible  <bruno@clisp.org>
98096         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
98097         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
98098         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
98099         * lib/isnanl-nolibm.h (isnanl): Likewise.
98100         Reported by Paul Eggert <eggert@cs.ucla.edu>.
98102 2008-01-26  Bruno Haible  <bruno@clisp.org>
98104         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
98105         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
98107 2008-01-26  Bruno Haible  <bruno@clisp.org>
98109         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
98110         GCC >= 4.0 built-in.
98111         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
98113 2008-01-26  Bruno Haible  <bruno@clisp.org>
98115         Rename isnan, applicable to 'double' only, to isnand.
98116         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
98117         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
98118         (configure.ac): Update.
98119         (Include): Replace "isnan.h" with "isnand.h".
98120         * m4/isnand.m4: Renamed from m4/isnan.m4.
98121         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
98122         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
98123         instead of isnan.c.
98124         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
98125         instead of HAVE_ISNAN_IN_LIBC.
98126         (isnand): Renamed from isnan.
98127         * lib/isnand.c: New file.
98128         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
98129         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
98130         (Makefile.am): Update.
98131         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
98132         Include isnand.h instead of isnan.h.
98133         (main): Test isnand instead of isnan.
98134         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
98135         isnan-nolibm.
98136         * modules/frexp (Depends-on): Likewise.
98137         * modules/frexp-tests (Depends-on): Likewise.
98138         * modules/frexp-nolibm (Depends-on): Likewise.
98139         * modules/frexp-nolibm-tests (Depends-on): Likewise.
98140         * modules/isfinite (Depends-on): Likewise.
98141         * modules/round-tests (Depends-on): Likewise.
98142         * modules/signbit (Depends-on): Likewise.
98143         * modules/signbit-tests (Depends-on): Likewise.
98144         * modules/snprintf-posix (Depends-on): Likewise.
98145         * modules/sprintf-posix (Depends-on): Likewise.
98146         * modules/trunc-tests (Depends-on): Likewise.
98147         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98148         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98149         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98150         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98151         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98152         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98153         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98154         * modules/vasnprintf-posix (Depends-on): Likewise.
98155         * modules/vasprintf-posix (Depends-on): Likewise.
98156         * modules/vfprintf-posix (Depends-on): Likewise.
98157         * modules/vsnprintf-posix (Depends-on): Likewise.
98158         * modules/vsprintf-posix (Depends-on): Likewise.
98159         * lib/frexp.c: Include isnand.h instead of isnan.h.
98160         (ISNAN): Set to isnand instead of isnan.
98161         * lib/isfinite.c: Include isnand.h instead of isnan.h.
98162         (gl_isfinited): Use isnand instead of isnan.
98163         * lib/signbitd.c: Include isnand.h instead of isnan.h.
98164         (gl_signbitd): Use isnand instead of isnan.
98165         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
98166         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
98167         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
98168         (main): Use isnand instead of isnan.
98169         * tests/test-round1.c: Include isnand.h.
98170         (main): Use isnand instead of isnan.
98171         * tests/test-round2.c: Include isnand.h instead of isnan.h.
98172         (ISNAN): Set to isnand instead of isnan.
98173         * tests/test-trunc1.c: Include isnand.h.
98174         (main): Use isnand instead of isnan.
98175         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
98176         (equal): Use isnand instead of isnan.
98177         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
98178         isnand-nolibm.
98179         * NEWS: Mention the change.
98181 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
98182             Bruno Haible  <bruno@clisp.org>
98184         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
98185         the GCC builtins for signbits are present and set
98186         REPLACE_SIGNBIT_USING_GCC if so.
98187         * lib/math.in.h (signbit): Define using GCC builtins if
98188         REPLACE_SIGNBIT_USING_GCC is set.
98189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
98190         REPLACE_SIGNBIT_USING_GCC.
98191         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
98193 2008-01-25  Jim Meyering  <meyering@redhat.com>
98195         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
98196         * lib/poll.c: Include <config.h>, not "config.h".
98197         * tests/test-getaddrinfo.c: Likewise.
98199 2008-01-25  Simon Josefsson  <simon@josefsson.org>
98201         * modules/sockets-tests: New file.
98203 2008-01-24  Simon Josefsson  <simon@josefsson.org>
98205         * modules/sockets: New module, can be used to call WSA_Startup and
98206         WSA_Cleanup when needed.
98208         * lib/sockets.h, lib/sockets.c: New files.
98210         * m4/sockets.m4: New file.
98212         * tests/test-sockets.c: New file.
98214 2008-01-19  Bruno Haible  <bruno@clisp.org>
98216         * doc/posix-headers: Renamed from doc/headers.
98217         * doc/posix-functions: Renamed from doc/functions.
98218         * doc/gnulib.texi: Update.
98220 2008-01-19  Bruno Haible  <bruno@clisp.org>
98222         * doc/glibc-functions/strcasestr.texi: Include contents of
98223         doc/functions/strcasestr.texi, fixing the list of platforms.
98224         * doc/functions/strcasestr.texi: Remove file.
98226 2008-01-19  Bruno Haible  <bruno@clisp.org>
98228         * doc/glibc-functions/memmem.texi: Include contents of
98229         doc/functions/memmem.texi.
98230         * doc/functions/memmem.texi: Remove file.
98232 2008-01-18  Bruno Haible  <bruno@clisp.org>
98234         * doc/glibc-functions/*.texi: New files.
98235         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
98236         to use the new files.
98238 2008-01-17  Bruno Haible  <bruno@clisp.org>
98240         * tests/test-gethostname.c (main): Fix printf statement.
98242 2008-01-17  Simon Josefsson  <simon@josefsson.org>
98244         * modules/gethostname-tests: New file.
98246         * tests/test-gethostname.c: New file.
98248 2008-01-17  Simon Josefsson  <simon@josefsson.org>
98250         * lib/gethostname.c: Include string.h unconditionally, strncpy is
98251         used by the UNAME case.  Reported by Bruno Haible
98252         <bruno@clisp.org>.
98254 2008-01-17  Eric Blake  <ebb9@byu.net>
98256         Convert c-strcasestr to be more efficient.
98257         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
98258         (Depends-on): Add c-strcase, remove malloca, strnlen.
98259         * tests/test-c-strcasestr.c (main): Enhance test.
98260         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
98262 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
98264         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
98265         Use it in creating po/Makevars.
98267 2008-01-15  Simon Josefsson  <simon@josefsson.org>
98269         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
98270         Applications that requires it should initialize libgcrypt
98271         manually.
98273 2008-01-16  Simon Josefsson  <simon@josefsson.org>
98275         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
98277 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
98279         Fix problem with getdate on mingw32 reported by Simon Josefsson
98280         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
98281         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
98282         tzname", when deciding whether to declare tzname.
98283         * lib/strftime.c (tzname): Likewise.
98285 2008-01-15  Bruno Haible  <bruno@clisp.org>
98287         Work around a MacOS X 10.5 bug in frexpl().
98288         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
98289         * doc/functions/frexpl.texi: Document the bug.
98290         Reported by Elias Pipping <pipping@gentoo.org>.
98292 2008-01-14  Eric Blake  <ebb9@byu.net>
98294         Touch up previous patch.
98295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
98296         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
98298         Convert strcasestr module to use Two-Way algorithm.
98299         * modules/strcasestr-simple: New module, based on the old
98300         strcasestr, but with Two-Way rather than KMP.
98301         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
98302         * lib/string.in.h (rpl_strcasestr): Declare.
98303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
98304         performance.
98305         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
98306         * modules/string (Makefile.am): Support strcasestr.
98307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
98308         * modules/strcasestr-tests (Depends-on): Check for alarm.
98309         * tests/test-strcasestr.c: Augment test.
98310         * lib/str-two-way.h: Clean up stray macro.
98311         * NEWS: Document new module.
98312         * MODULES.html.sh (string handling): Likewise.
98313         * doc/functions/strcasestr.texi: New file.
98314         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
98315         here, since it is not a POSIX function.
98317 2008-01-14  Colin Watson  <cjwatson@debian.org>
98318             Bruno Haible  <bruno@clisp.org>
98320         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
98321         works fine; if not, set REPLACE_STRSIGNAL.
98322         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
98323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98324         REPLACE_STRSIGNAL.
98325         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
98326         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
98327         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
98329 2008-01-14  Bruno Haible  <bruno@clisp.org>
98331         * modules/strsignal (Include): Change to <string.h>.
98333 2008-01-14  Colin Watson  <cjwatson@debian.org>
98335         * modules/argp (Notice): Add a notice recommending to change
98336         XGETTEXT_OPTIONS.
98337         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
98339 2008-01-13  Colin Watson  <cjwatson@debian.org>
98341         * modules/strsignal-tests: New file.
98342         * tests/test-strsignal.c: New file.
98344         * lib/strsignal.c: New file, from glibc with modifications.
98345         * lib/siglist.h: New file, from glibc with modifications.
98346         * lib/string.in.h (strsignal): New declaration.
98347         * m4/strsignal.m4: New file.
98348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98349         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
98350         * modules/strsignal: New file.
98351         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
98352         HAVE_DECL_STRSIGNAL.
98354 2008-01-13  Bruno Haible  <bruno@clisp.org>
98356         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
98357         locale encoding is not ASCII. Needed for OpenBSD 4.0.
98358         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
98359         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98361 2008-01-13  Bruno Haible  <bruno@clisp.org>
98363         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
98364         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
98365         * lib/argp.h (__attribute__): Likewise.
98366         * lib/c-stack.c (__attribute__): Likewise.
98367         * lib/error.h (__attribute__): Likewise.
98368         * lib/fts.c (__attribute__): Likewise.
98369         * lib/openat.h (__attribute__): Likewise.
98370         * lib/stdio.in.h (__attribute__): Likewise.
98371         * lib/string.in.h (__attribute__): Likewise.
98372         * lib/utimens.c (__attribute__): Likewise.
98373         * lib/vasnprintf.h (__attribute__): Likewise.
98374         * lib/xalloc.h (__attribute__): Likewise.
98375         * lib/xprintf.h (__attribute__): Likewise.
98376         * lib/xstrtol.h (__attribute__): Likewise.
98377         * lib/xvasprintf.h (__attribute__): Likewise.
98379 2008-01-12  Bruno Haible  <bruno@clisp.org>
98381         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
98382         * doc/glibc-headers/a.out.texi: New file.
98383         * doc/glibc-headers/aliases.texi: New file.
98384         * doc/glibc-headers/alloca.texi: New file.
98385         * doc/glibc-headers/ar.texi: New file.
98386         * doc/glibc-headers/argp.texi: New file.
98387         * doc/glibc-headers/argz.texi: New file.
98388         * doc/glibc-headers/byteswap.texi: New file.
98389         * doc/glibc-headers/crypt.texi: New file.
98390         * doc/glibc-headers/endian.texi: New file.
98391         * doc/glibc-headers/envz.texi: New file.
98392         * doc/glibc-headers/err.texi: New file.
98393         * doc/glibc-headers/error.texi: New file.
98394         * doc/glibc-headers/execinfo.texi: New file.
98395         * doc/glibc-headers/fpu_control.texi: New file.
98396         * doc/glibc-headers/fstab.texi: New file.
98397         * doc/glibc-headers/fts.texi: New file.
98398         * doc/glibc-headers/getopt.texi: New file.
98399         * doc/glibc-headers/ieee754.texi: New file.
98400         * doc/glibc-headers/ifaddrs.texi: New file.
98401         * doc/glibc-headers/libintl.texi: New file.
98402         * doc/glibc-headers/mcheck.texi: New file.
98403         * doc/glibc-headers/mntent.texi: New file.
98404         * doc/glibc-headers/obstack.texi: New file.
98405         * doc/glibc-headers/paths.texi: New file.
98406         * doc/glibc-headers/printf.texi: New file.
98407         * doc/glibc-headers/pty.texi: New file.
98408         * doc/glibc-headers/resolv.texi: New file.
98409         * doc/glibc-headers/shadow.texi: New file.
98410         * doc/glibc-headers/sysexits.texi: New file.
98411         * doc/glibc-headers/ttyent.texi: New file.
98413 2008-01-12  Jim Meyering  <meyering@redhat.com>
98415         announce-gen: emit Gnulib's git-based version string.
98416         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
98417         New option --gnulib-version=V, where V is expected to be
98418         the output of running git describe in the gnulib directory.
98419         (get_tool_versions): Request feedback on xdelta.  I suspect it's
98420         not useful, and plan to stop publishing an xdelta file with each
98421         coreutils release.
98423         * build-aux/announce-gen: Also check for lzma-compressed files.
98425 2008-01-11  Bruno Haible  <bruno@clisp.org>
98427         * tests/test-memmem.c (main): Increase maximum allowed time.
98428         * tests/test-strstr.c (main): Likewise.
98430 2008-01-11  Bruno Haible  <bruno@clisp.org>
98432         * doc/functions/memmem.texi: Add more precisions about platforms.
98433         * doc/functions/strstr.texi: Likewise.
98435 2008-01-10  Eric Blake  <ebb9@byu.net>
98437         * m4/strstr.m4: Delete cruft from copy-n-paste.
98438         Reported by Bruno Haible.
98440 2008-01-10  Bruno Haible  <bruno@clisp.org>
98442         Make c-strstr rely on strstr.
98443         * lib/c-strstr.c: Don't include str-kmp.h.
98444         (c_strstr): Define in terms of strstr.
98445         * modules/c-strstr (Files): Remove lib/str-kmp.h.
98446         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
98448 2008-01-10  Bruno Haible  <bruno@clisp.org>
98450         * doc/gnulib.texi (String Functions in C Locale): New section.
98451         * doc/c-ctype.texi: New file.
98452         * doc/c-strcase.texi: New file.
98453         * doc/c-strcaseeq.texi: New file.
98454         * doc/c-strcasestr.texi: New file.
98455         * doc/c-strstr.texi: New file.
98456         * doc/c-strtod.texi: New file.
98457         * doc/c-strtold.texi: New file.
98459 2008-01-10  Eric Blake  <ebb9@byu.net>
98461         * lib/relocatable.h: Fix a comment.
98463 2008-01-10  Eric Blake  <ebb9@byu.net>
98465         Share two-way algorithm.
98466         * lib/str-two-way.h: New file, merged from...
98467         * lib/memmem.c: ...here...
98468         * lib/strstr.c: ...and here.
98469         * modules/memmem (Files): Use it.
98470         * modules/strstr (Files): Likewise.
98472         Avoid quadratic strstr implementations.
98473         * lib/strstr.c: New file.
98474         * m4/strstr.m4: Likewise.
98475         * modules/strstr: Likewise.
98476         * modules/strstr-tests: Likewise.
98477         * tests/test-strstr.c: Likewise.
98478         * lib/string.in.h (rpl_strstr): Declare.
98479         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
98480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
98481         * modules/string (Makefile.am): Likewise.
98482         * MODULES.html.sh (string handling): Mention new module.
98483         * doc/functions/strstr.texi (strstr): Document the bug.
98485 2008-01-10  Bruno Haible  <bruno@clisp.org>
98487         * lib/relocatable.h (relocate): State whether result is freshly
98488         allocated or not.
98489         * lib/relocatable.c (relocate): Return a freshly allocated string
98490         instead of a pointer to a privately held string.
98491         Reported by Sylvain Beucler <beuc@gnu.org>.
98493 2008-01-10  Colin Watson  <cjwatson@debian.org>
98495         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
98496         s/S_ISNLK/S_ISLNK/.
98498 2008-01-09  Bruno Haible  <bruno@clisp.org>
98500         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
98501         and other files.
98502         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
98503         if it's only a guess.
98504         * modules/memmem: Simplify by depending on memmem-simple.
98506 2008-01-09  Bruno Haible  <bruno@clisp.org>
98508         Work around OpenBSD 4.0 tdelete() bug.
98509         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
98510         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
98511         macros and don't redefine the enum values.
98512         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
98513         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
98514         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
98516 2008-01-09  Bruno Haible  <bruno@clisp.org>
98518         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
98519         (main): Don't perform the tests if setlocale did not install a UTF-8
98520         locale. Needed on OpenBSD 4.0.
98521         * modules/wcwidth-tests (Depends-on): Add localcharset.
98523 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98525         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
98526         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
98527         * NEWS: announce this.
98528         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
98530 2008-01-09  Simon Josefsson  <simon@josefsson.org>
98531         and Eric Blake  <ebb9@byu.net>
98533         Add memmem-simple module.
98534         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
98535         (gl_FUNC_MEMMEM): Separate performance from presence checks.
98536         * modules/memmem-simple: New file.
98537         * modules/memmem (Description): Tweak.
98538         * MODULES.html.sh (string handling): Mention new module.
98539         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
98540         addressed by memmem-simple.
98541         * NEWS: Document the difference.
98543 2008-01-09  Eric Blake  <ebb9@byu.net>
98545         Give gcc some memmem optimization hints.
98546         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
98547         (strcasestr): Declare as pure.
98548         * modules/memmem (Maintainer): Claim my implementation.
98550 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98552         Support AIX 6.1 and higher.
98553         * build-aux/config.libpath: Likewise.
98554         * build-aux/config.rpath: Likewise.
98556 2008-01-08  Jim Meyering  <meyering@redhat.com>
98557             Bruno Haible  <bruno@clisp.org>
98559         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
98560         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
98561         Reported by Peter Fales in
98562         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
98564 2008-01-08  Bruno Haible  <bruno@clisp.org>
98566         * modules/unictype/category-of (Depends-on): Add
98567         unictype/category-none.
98568         * modules/unictype/category-and-tests (Depends-on): Add
98569         unictype/category-{L,N,Lu,Nd}.
98570         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
98571         * modules/unictype/category-or-tests (Depends-on): Add
98572         unictype/category-{L,N}.
98573         * modules/unictype/category-name-tests (Depends-on): Add
98574         unictype/category-{Z,Nl}.
98575         Reported by Simon Josefsson.
98577 2008-01-08  Bruno Haible  <bruno@clisp.org>
98579         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
98580         convention better.
98581         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
98582         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
98583         Reported by Peter Miller <millerp@canb.auug.org.au>.
98585 2008-01-08  Eric Blake  <ebb9@byu.net>
98587         Rewrite memmem to guarantee linear complexity without malloc.
98588         * lib/memmem.c (memmem): Use Two-Way rather than
98589         Knuth-Morris-Pratt, to allow O(1) space usage.
98590         (critical_factorization, two_way_short_needle)
98591         (two_way_long_needle): New functions.
98592         (knuth_morris_pratt): Delete.
98593         * modules/memmem (Depends-on): No longer need malloca or stdbool.
98594         Add stdint.
98595         * tests/test-memmem.c (main): Add tests for periodic needle and
98596         sublinear performance.
98597         * doc/functions/memmem.texi (memmem): Document other deficiencies
98598         in cygwin and older glibc.
98600 2008-01-08  Bruno Haible  <bruno@clisp.org>
98602         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
98603         augmentation.
98605 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
98607         Add a configure time option: --disable-acl.
98608         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
98609         AC_ARG_ENABLE(acl).
98611 2008-01-06  Simon Josefsson  <simon@josefsson.org>
98613         * tests/test-localename.c: Don't include obsolete "setenv.h".
98615         * modules/localename-tests (Depends-on): Need unsetenv.
98617 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98619         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
98621 2008-01-06  Colin Watson  <cjwatson@debian.org>
98623         * users.txt: Add man-db.
98625 2008-01-07  Bruno Haible  <bruno@clisp.org>
98627         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
98628         previous section name.
98630 2008-01-07  Bruno Haible  <bruno@clisp.org>
98632         * lib/progname.c (set_program_name): Don't strip off a leading
98633         "lt-" prefix outside a .libs directory.
98634         Suggested by Paul Eggert.
98636 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
98637             Bruno Haible  <bruno@clisp.org>
98639         Improve memory cleanup in 'relocatable' module.
98640         * lib/relocatable.h (compute_curr_prefix): Change return type to
98641         'char *'.
98642         * lib/relocatable.c (compute_curr_prefix): Change return type to
98643         'char *'. Free curr_installdir after use.
98644         (relocate): Free curr_prefix_better after use.
98645         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
98647 2008-01-01  Bruno Haible  <bruno@clisp.org>
98649         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
98650         failure on older glibc systems.
98651         Reported by Peter Fales <psfales@alcatel-lucent.com>.
98653 2008-01-05  Eric Blake  <ebb9@byu.net>
98655         Avoid quadratic system memmem.
98656         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
98657         Reported by Ralf Wildenhues.
98659         Fix memmem test for mingw.
98660         * modules/memmem-tests (configure.ac): Check for alarm.
98661         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
98662         it.
98663         * doc/functions/memmem.texi: New file.
98664         * doc/gnulib.texi (Function Substitutes): Add memmem.
98665         Reported by Bruno Haible.
98667 2008-01-04  Bruno Haible  <bruno@clisp.org>
98669         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
98670         Require gl_HEADER_STRINGS_H_DEFAULTS, not
98671         gl_HEADER_STRING_H_DEFAULTS.
98673 2008-01-04  Eric Blake  <ebb9@byu.net>
98675         Shorten duration of memmem test.
98676         * tests/test-memmem.c (main): Use alarm to declare failure if test
98677         is taking too long.
98678         Reported by Ralf Wildenhues.
98680 2007-12-21  Simon Josefsson  <simon@josefsson.org>
98682         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
98683         string, needed by strerror.
98685 2008-01-03  Colin Watson  <cjwatson@debian.org>
98686             Bruno Haible  <bruno@clisp.org>
98688         * doc/gnulib-tool.texi (Localization): New section.
98690 2008-01-02  Bruno Haible  <bruno@clisp.org>
98692         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
98693         variables to 'unsigned char *' type.
98694         Reported by Paul Eggert.
98696 2008-01-02  Jim Meyering  <jim@meyering.net>
98698         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
98700 2007-12-31  Jim Meyering  <jim@meyering.net>
98702         Avoid use of private FTS type name.
98703         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
98705 2007-12-30  Karl Berry  <karl@gnu.org>
98707         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
98708         work around defect in Texinfo and/or the standalone Info browser.
98710 2007-12-30  Bruno Haible  <bruno@clisp.org>
98712         Unify 5 copies of the KMP code.
98713         * lib/str-kmp.h: New file.
98714         * lib/c-strcasestr.c: Include str-kmp.h.
98715         (knuth_morris_pratt): Remove function.
98716         (c_strcasestr): Update.
98717         * lib/c-strstr.c: Include str-kmp.h.
98718         (knuth_morris_pratt): Remove function.
98719         (c_strcasestr): Update.
98720         * lib/mbscasestr.c: Include str-kmp.h.
98721         (knuth_morris_pratt_unibyte): Remove function.
98722         * lib/mbsstr.c: Include str-kmp.h.
98723         (knuth_morris_pratt_unibyte): Remove function.
98724         * lib/strcasestr.c: Include str-kmp.h.
98725         (knuth_morris_pratt): Remove function.
98726         (strcasestr): Update.
98727         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
98728         * modules/c-strstr (Files): Likewise.
98729         * modules/mbscasestr (Files): Likewise.
98730         * modules/mbsstr (Files): Likewise.
98731         * modules/strcasestr (Files): Likewise.
98732         Suggested by Paul Eggert.
98734 2007-12-30  Bruno Haible  <bruno@clisp.org>
98736         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
98737         defined.
98739 2007-12-30  Bruno Haible  <bruno@clisp.org>
98741         * lib/xmalloca.h: Include xalloc.h.
98742         (xnmalloca): New macro.
98744 2007-12-30  Bruno Haible  <bruno@clisp.org>
98746         * lib/malloca.h (nmalloca): New macro.
98747         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
98748         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
98749         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
98750         knuth_morris_pratt_multibyte): Likewise.
98751         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
98752         knuth_morris_pratt_multibyte): Likewise.
98753         * lib/memmem.c (knuth_morris_pratt): Likewise.
98754         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
98756 2007-12-25  Bruno Haible  <bruno@clisp.org>
98758         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
98759         * lib/glob.c: Don't include openat.h.
98760         (link_exists2_p): Add back the code that deals with the
98761         !GLOB_ALTDIRFUNC case.
98762         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
98763         let it do the filename concatenation.
98764         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
98765         * modules/glob (Depends-on): Remove openat.
98767 2007-12-31  Bruno Haible  <bruno@clisp.org>
98769         * modules/dirfd (License): Change to LGPLv2+.
98770         Approved by Jim Meyering.
98772 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
98774         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
98775         when multiplying M by sizeof (size_t).
98777 2007-12-10  Martin Lambers  <marlam@marlam.de>
98779         Override getpagesize on mingw.
98780         * lib/getpagesize.c: New file.
98781         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
98782         * modules/getpagesize (Files): Add lib/getpagesize.c.
98783         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
98784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
98785         REPLACE_GETPAGESIZE.
98786         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
98788 2007-12-25  Bruno Haible  <bruno@clisp.org>
98790         * modules/localcharset (Notice): New field.
98791         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
98792         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
98794 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
98795             Bruno Haible  <bruno@clisp.org>
98797         Avoid using the syntax symbol() in formatted documentation.
98798         * MODULES.html.sh (func_module): When replacing symbol() with a
98799         hyperlink, remove the parentheses. Show an error if some remain.
98800         Recognize and render the '...' syntax.
98801         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
98802         Rework. Add paragraph about GCC's inlining.
98803         * doc/alloca.texi: Likewise.
98804         * doc/error.texi: Remove parentheses from symbol reference.
98805         * doc/gnulib-intro.texi: Likewise.
98806         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
98807         * modules/fnmatch (Description): Reword to say "the ... function".
98808         * modules/full-read (Description): Likewise.
98809         * modules/full-write (Description): Likewise.
98810         * modules/safe-read (Description): Likewise.
98811         * modules/safe-write (Description): Likewise.
98812         * modules/strchrnul (Description): Likewise.
98813         * modules/trim (Description): Likewise.
98814         * modules/error (Description): Remove parentheses from symbol
98815         references.
98816         * modules/verror (Description): Likewise.
98817         Reported by Karl Berry.
98819 2007-12-25  Bruno Haible  <bruno@clisp.org>
98821         Fixup after 2007-10-16 commit.
98822         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
98824 2007-12-24  Bruno Haible  <bruno@clisp.org>
98826         Make --enable-relocatable work with DESTDIR.
98827         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
98828         to compute installdir from destprog.
98829         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
98830         also set the RELOC_DESTDIR variable.
98831         Reported by Левашев Иван <octagram@bluebottle.com>.
98833 2007-12-24  Bruno Haible  <bruno@clisp.org>
98835         Fix link error due to xalloc_die().
98836         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
98837         of xreadlink.
98838         * lib/relocwrapper.c: Update comments.
98839         * build-aux/install-reloc: Remove xreadlink.c from file list.
98840         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
98841         xreadlink.c.
98842         Reported by Левашев Иван <octagram@bluebottle.com>.
98844 2007-12-24  Bruno Haible  <bruno@clisp.org>
98846         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
98847         * lib/setenv.h: Remove file.
98848         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
98849         lib/setenv.h.
98850         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
98851         (Depends-on): Add stdlib.
98852         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
98853         gl_FUNC_UNSETENV.
98854         (Include): Replace setenv.h with <stdlib.h>.
98855         * modules/unsetenv: New file.
98856         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
98857         * lib/unsetenv.c: Include <stdlib.h> first.
98858         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
98859         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
98860         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
98861         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
98862         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
98863         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
98865         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98866         * doc/functions/unsetenv.texi: Update.
98867         * modules/xsetenv (Depends-on): Add unsetenv.
98868         * modules/getdate (Depends-on): Likewise.
98869         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
98870         * lib/xsetenv.c: Don't include setenv.h.
98871         * lib/getdate.y: Likewise.
98872         * lib/relocwrapper.c: Likewise.
98873         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
98874         (Depends-on): Add stdlib.
98875         * NEWS: Mention the changes.
98876         Reported by Левашев Иван <octagram@bluebottle.com>.
98878 2007-12-23  Bruno Haible  <bruno@clisp.org>
98880         * lib/memmem.c (memmem): Use lowercase variable names. Tab
98881         indentation.
98883 2007-12-23  Bruno Haible  <bruno@clisp.org>
98885         * lib/c-strcasestr.c: Add more comments.
98886         * lib/c-strstr.c: Likewise.
98887         * lib/mbscasestr.c: Likewise.
98888         * lib/mbsstr.c: Likewise.
98889         * lib/strcasestr.c: Likewise.
98890         * lib/memmem.c: Likewise.
98892 2007-12-23  Bruno Haible  <bruno@clisp.org>
98894         * tests/test-memmem.c: Include <string.h> first.
98896 2007-12-22  Bruno Haible  <bruno@clisp.org>
98898         * gnulib-tool (func_create_testdir): Change $auxdir while generating
98899         the contents of $testsbase.
98900         Reported by Ralf Wildenhues.
98902 2007-12-22  Bruno Haible  <bruno@clisp.org>
98904         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
98905         two variables local_ldadd_before, local_ldadd_last.
98907 2007-12-20  Eric Blake  <ebb9@byu.net>
98909         Work around circular library issue when cross-compiling.
98910         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
98911         that progname.o does not need to pull in rpl_memcmp.
98913 2007-12-19  Eric Blake  <ebb9@byu.net>
98915         Fix memmem to avoid O(n^2) worst-case complexity.
98916         * lib/memmem.c (knuth_morris_pratt): New function.
98917         (memmem): Use it if first few naive iterations fail.
98918         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
98919         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
98920         * modules/memchr (License): Likewise.
98921         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
98922         malloca.
98923         * tests/test-memmem.c: Rewrite, borrowing ideas from
98924         test-mbsstr1.c; the old version wouldn't even compile!
98925         * modules/memmem-tests: New file.
98926         * lib/string.in.h (rpl_memmem): Add declaration.
98927         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
98928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
98929         REPLACE_MEMMEM.
98931 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
98933         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
98934         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
98935         before any system include files, and undef after them all.  This
98936         should fix a problem on VMS reported by John E. Malmberg in
98937         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
98939 2007-12-17  Eric Blake  <ebb9@byu.net>
98941         Revert addition of verify, for BSD/OS.
98942         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
98943         can't handle large files, for the sake of obsolete platforms.
98944         * modules/fseeko (Depends-on): Remove verify.
98945         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
98946         * doc/functions/ftello.texi (ftello): Likewise.
98947         * doc/functions/fgetpos.texi (fgetpos): Likewise.
98948         Reported by Larry Jones.
98950 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
98952         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
98953         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
98955 2007-12-17  Jim Meyering  <meyering@redhat.com>
98957         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
98958         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
98959         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
98960         * modules/getcwd (Depends-on): Add openat.
98961         Reported by Petr Salinger.
98963 2007-12-17  Bruno Haible  <bruno@clisp.org>
98965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
98966         avoid a segmentation fault of the configure test on x86_64 systems.
98968 2007-12-15  Jim Meyering  <meyering@redhat.com>
98970         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
98972 2007-12-13  Eric Blake  <ebb9@byu.net>
98974         Another fseek test.
98975         * tests/test-fseek.c (main): Also test ungetc handling.
98976         * tests/test-fseeko.c (main): Likewise.
98977         * modules/fseeko (Depends-on): Add verify.
98978         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
98979         large.
98980         Reported by Larry Jones.
98982         Fix fseeko on mingw.
98983         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
98984         seek.
98986         Beef up fseek tests.
98987         * tests/test-fseek.c (main): Also test eof handling.
98988         * tests/test-fseeko.c (main): Likewise.
98989         Reported by Larry Jones.
98991 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
98993         Fix fseeko on BSD-based platforms.
98994         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
98995         successful seek.
98997 2007-12-12  Eric Blake  <ebb9@byu.net>
98999         Allow circular dependency of separate libtests.a
99000         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
99001         when use_libtests.
99003 2007-12-11  Eric Blake  <ebb9@byu.net>
99005         Fix bug with -0.0L in previous patch.
99006         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
99007         * tests/test-isnan.c (main): Also test on zeroes.
99008         * tests/test-isnanf.c (main): Likewise.
99009         * tests/test-isnanl.h (main): Likewise.
99011         Detect pseudo-denormals on x86 even when cross-compiling.
99012         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
99013         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
99014         invalid bit patterns that happen to satisfy ==.
99016         Avoid link failures with separate libtests.a.
99017         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
99018         last, to satisfy circular dependencies.
99020 2007-12-11  Eric Blake  <ebb9@byu.net>
99021         and Bruno Haible  <bruno@clisp.org>
99023         Fix OpenBSD 4.0 <float.h> handling of long double.
99024         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
99025         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
99026         * doc/headers/float.texi (float.h): Document OpenBSD bug.
99028 2007-12-11  Jim Meyering  <meyering@redhat.com>
99030         * users.txt: Add libvirt.
99032         Support versions of autoconf prior to 2.59c.
99033         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
99034         if it is not already defined.
99036 2007-12-09  Bruno Haible  <bruno@clisp.org>
99038         Let 'gnulib-tool --import' collect sources needed for the tests in
99039         tests/ rather than in lib/.
99040         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
99041         argument. If true, add rules to generate libtests.a, and put libtests.a
99042         into $(LDADD). Consider source files in subdirectories and set
99043         uses_subdirs.
99044         (func_emit_initmacro_start, func_emit_initmacro_end,
99045         func_emit_initmacro_done): Pass all arguments explicitly.
99046         (func_import): Determine two module lists main_modules,
99047         testsrelated_modules. Determine use_libtests. Determine two variables
99048         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
99049         instead of just sed_transform_lib_file. Determine two variables
99050         main_files and testsrelated_files. Compute 'files' as the union of
99051         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
99052         func_add_or_update. In the generated gnulib-comp.m4, collect the
99053         object files for tests/ in different variables than those for lib/.
99054         Substitute LIBTESTS_LIBDEPS.
99055         (func_create_testdir): Combine the uses_subdirs results from
99056         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
99058 2007-12-09  Bruno Haible  <bruno@clisp.org>
99060         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
99061         the build-aux directory.
99063 2007-12-09  Bruno Haible  <bruno@clisp.org>
99065         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
99066         introduced on 2006-09-09.
99068 2007-12-07  Jim Meyering  <meyering@redhat.com>
99070         Let these macros work also with autoconf-2.59.
99071         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
99072         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
99073         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
99075 2007-12-06  Jim Meyering  <meyering@redhat.com>
99077         Avoid a configure-time syntax error in gl_FUNC_ACL.
99078         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
99079         function in each branch, before testing the cache variable.
99081 2007-12-04  Eric Blake  <ebb9@byu.net>
99083         Make scripts executable.
99084         * build-aux/config.guess: Add execute permissions.
99085         * build-aux/config.sub: Likewise.
99086         * build-aux/gendocs.sh: Likewise.
99088         Fix frexp on mingw.
99089         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
99090         cross-compiling.
99091         * doc/functions/frexp.texi (frexp): Document the bug.
99093         Make cygwin fseeko check more reliable.
99094         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
99095         version numbers, rather than unrelated feature check.
99096         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
99097         * doc/functions/ftello.texi (ftello): Likewise.
99098         Reported by Bruno Haible.
99100         * m4/strerror.m4: Bump version number.
99102 2007-12-03  Bruno Haible  <bruno@clisp.org>
99104         * doc/functions/mprotect.texi: Mention the mingw problem.
99106 2007-12-03  Eric Blake  <ebb9@byu.net>
99108         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
99109         REPLACE_STRERROR is initialized before this macro.
99111 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
99113         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
99114         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
99115         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
99116         put -lsec in even for programs other than 'ls'.  This fixes a problem
99117         for gettext reported by Bruno Haible in
99118         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
99119         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
99120         Add support for Solaris 10.  This isn't efficient, but should get the
99121         job done for now.
99123 2007-12-03  James Youngman  <jay@gnu.org>
99125         * doc/regexprops-generic.texi: change "an close-group" to "a
99126         close-group" and "illegal" to "not allowed".
99128 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99130         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
99131         pr_byname.h. Needed for the rare case when the maintainer has done
99132         "make maintainer-clean" in the source directory and then attempts a
99133         build outside the source directory.
99134         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
99135         scripts_byname.h.
99137 2007-12-02  Martin Lambers  <marlam@marlam.de>
99138             Bruno Haible  <bruno@clisp.org>
99140         * lib/getpagesize.h: Remove file.
99141         * lib/unistd.in.h: Include declaration of getpagesize here.
99142         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
99143         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
99144         HAVE_SYS_PARAM_H.
99145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
99146         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
99147         * modules/getpagesize (Files): Remove lib/getpagesize.h.
99148         (Depends-on): Add unistd.
99149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99150         (Include): Use <unistd.h> instead of getpagesize.h.
99151         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
99152         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
99153         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
99154         gl_GETPAGESIZE invocation, already handled by module dependency.
99155         * lib/pagealign_alloc.c: Don't include getpagesize.h.
99157 2007-12-02  Bruno Haible  <bruno@clisp.org>
99159         * modules/strings-tests: New file.
99160         * tests/test-strings.c: New file.
99162         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
99163         * lib/strings.in.h: New file.
99164         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
99165         * m4/strings_h.m4: New file.
99166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
99167         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
99168         * modules/strings: New file.
99169         * modules/string (Makefile.am): Update.
99170         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
99171         Reported by Karl Berry.
99173 2007-12-01  Eric Blake  <ebb9@byu.net>
99175         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
99176         accommodate fix in cygwin 1.5.25.
99178 2007-12-01  Jim Meyering  <meyering@redhat.com>
99180         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
99181         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
99182         that would inhibit utf8-optimization of a regexp containing line-
99183         or buffer-anchors, e.g., `^', `$'.
99185 2007-11-30  Bruno Haible  <bruno@clisp.org>
99187         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
99188         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
99189         glthread_recursive_lock_init.
99190         * lib/lock.c (glthread_recursive_lock_init)
99191         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
99192         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99194 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
99196         New function qset_acl, like set_acl but with syscall semantics.
99197         * lib/acl.h (qset_acl): New decl.
99198         * lib/acl.c (qset_acl): New function.
99199         (set_acl): Use new function.  Use more-consistent diagnostics.
99201 2007-11-28  Jim Meyering  <meyering@redhat.com>
99203         * modules/physmem (License): Change from GPL to LGPLv2+.
99205 2007-11-26  Bruno Haible  <bruno@clisp.org>
99207         * lib/vasnprintf.c (decode_long_double): Don't abort if the
99208         'long double' type has excess precision.
99209         Reported by Jim Meyering in
99210         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
99212 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99214         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
99215         Sync from <http://gnu.org/licenses>.
99216         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
99217         with license text from same location.
99218         * doc/maintain.texi, doc/standards.texi:  Sync from
99219         <http://savannah.gnu.org/projects/gnustandards>.
99221 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
99222         and Jim Meyering  <meyering@redhat.com>
99224         Adjust getdate' grammar to accept a slightly more regular language.
99225         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
99226         Before, the former was rejected.
99227         * lib/getdate.y (digits_to_date_time): New function, factored
99228         out of ...
99229         (number): ...here.  Just call digits_to_date_time.
99230         (hybrid): New non-terminal to handle an <unsigned number,
99231         signed relative offset> sequence consistently.
99233 2007-11-18  Jim Meyering  <meyering@redhat.com>
99235         Pull my changes from coreutils:
99236         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
99237         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
99238         use of $gnulib_tool_option_extras, so that it's separated from the
99239         preceding argument.
99241         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
99242         * build-aux/bootstrap (cp_mark_as_generated): Create any required
99243         parent destination directories before copying a file into place.
99245 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
99247         bootstrap: work also with 4-argument variant of AC_INIT
99248         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
99250 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
99252         Port test-getaddrinfo to Solaris.
99253         Problem reported by Bruno Haible in
99254         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
99255         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
99256         explanation of setting 'hints'.
99257         Don't reject an implementation merely because it returns EAI_SERVICE.
99258         (EAI_SERVICE): Define to 0 if not defined.
99260 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
99262         The license of gnu-make and posix-shell is now "GPLed build tool".
99263         * modules/gnu-make (License): Likewise.
99264         * modules/posix-shell (License): Likewise.
99266         New module posix-shell, for determining a POSIX shell
99267         or perhaps something that is close enough to a POSIX shell.
99268         * m4/posix-shell.m4: New file.
99269         * modules/posix-shell: New file.
99271         * MODULES.html.sh: Mention new module.
99273         New module gnu-make, for determining whether we're using GNU Make.
99274         * m4/gnu-make.m4: New file.
99275         * modules/gnu-make: New file.
99276         * MODULES.html.sh: Mention new module.
99278 2007-11-14  Jim Meyering  <meyering@redhat.com>
99280         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
99281         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
99282         use this macro to create a function _definition_.
99283         Remove useless "#undef ARGMATCH_DIE".
99285 2007-11-14  Bruno Haible  <bruno@clisp.org>
99287         * lib/config.charset: Update for OpenBSD 4.1.
99288         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
99290 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
99292         Document 64-bit #if problems in stdint.texi.
99293         * doc/headers/stdint.texi (stdint.h): Mention problems with
99294         64-bit-#if, and how to work around them.
99296         Don't insist on 'long long int' support in the preprocessor.  It
99297         breaks too many things.  For example, PRIdMAX still uses a 'long
99298         long int' format with the latest Sun compiler, even though
99299         HAVE_LONG_LONG_INT isn't defined due to that compiler's
99300         preprocessor problem.  This causes the latest coreutils to dump
99301         core on Solaris 10 sparc with the Sun C compiler.
99302         Instead, fix the 2007-10-16 problem in a different way, by evaluating
99303         the troublesome expressions at configure-time, not at #if-time.
99304         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
99305         preprocessor.
99306         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
99307         compile-time C checks, done at 'configure'-time.
99308         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
99309         * modules/inttypes (Makefile): Substitute the new symbols that
99310         gl_INTTYPES_H now generates.
99311         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
99313 2007-11-12  Bruno Haible  <bruno@clisp.org>
99315         Tests for Unicode character classification functions.
99317         * modules/unictype/bidicategory-byname-tests: New file.
99318         * modules/unictype/bidicategory-name-tests: New file.
99319         * modules/unictype/bidicategory-of-tests: New file.
99320         * modules/unictype/bidicategory-test-tests: New file.
99321         * modules/unictype/block-list-tests: New file.
99322         * modules/unictype/block-of-tests: New file.
99323         * modules/unictype/block-test-tests: New file.
99324         * modules/unictype/category-C-tests: New file.
99325         * modules/unictype/category-Cc-tests: New file.
99326         * modules/unictype/category-Cf-tests: New file.
99327         * modules/unictype/category-Cn-tests: New file.
99328         * modules/unictype/category-Co-tests: New file.
99329         * modules/unictype/category-Cs-tests: New file.
99330         * modules/unictype/category-L-tests: New file.
99331         * modules/unictype/category-Ll-tests: New file.
99332         * modules/unictype/category-Lm-tests: New file.
99333         * modules/unictype/category-Lo-tests: New file.
99334         * modules/unictype/category-Lt-tests: New file.
99335         * modules/unictype/category-Lu-tests: New file.
99336         * modules/unictype/category-M-tests: New file.
99337         * modules/unictype/category-Mc-tests: New file.
99338         * modules/unictype/category-Me-tests: New file.
99339         * modules/unictype/category-Mn-tests: New file.
99340         * modules/unictype/category-N-tests: New file.
99341         * modules/unictype/category-Nd-tests: New file.
99342         * modules/unictype/category-Nl-tests: New file.
99343         * modules/unictype/category-No-tests: New file.
99344         * modules/unictype/category-P-tests: New file.
99345         * modules/unictype/category-Pc-tests: New file.
99346         * modules/unictype/category-Pd-tests: New file.
99347         * modules/unictype/category-Pe-tests: New file.
99348         * modules/unictype/category-Pf-tests: New file.
99349         * modules/unictype/category-Pi-tests: New file.
99350         * modules/unictype/category-Po-tests: New file.
99351         * modules/unictype/category-Ps-tests: New file.
99352         * modules/unictype/category-S-tests: New file.
99353         * modules/unictype/category-Sc-tests: New file.
99354         * modules/unictype/category-Sk-tests: New file.
99355         * modules/unictype/category-Sm-tests: New file.
99356         * modules/unictype/category-So-tests: New file.
99357         * modules/unictype/category-Z-tests: New file.
99358         * modules/unictype/category-Zl-tests: New file.
99359         * modules/unictype/category-Zp-tests: New file.
99360         * modules/unictype/category-Zs-tests: New file.
99361         * modules/unictype/category-and-not-tests: New file.
99362         * modules/unictype/category-and-tests: New file.
99363         * modules/unictype/category-byname-tests: New file.
99364         * modules/unictype/category-name-tests: New file.
99365         * modules/unictype/category-none-tests: New file.
99366         * modules/unictype/category-of-tests: New file.
99367         * modules/unictype/category-or-tests: New file.
99368         * modules/unictype/category-test-withtable-tests: New file.
99369         * modules/unictype/combining-class-tests: New file.
99370         * modules/unictype/ctype-alnum-tests: New file.
99371         * modules/unictype/ctype-alpha-tests: New file.
99372         * modules/unictype/ctype-blank-tests: New file.
99373         * modules/unictype/ctype-cntrl-tests: New file.
99374         * modules/unictype/ctype-digit-tests: New file.
99375         * modules/unictype/ctype-graph-tests: New file.
99376         * modules/unictype/ctype-lower-tests: New file.
99377         * modules/unictype/ctype-print-tests: New file.
99378         * modules/unictype/ctype-punct-tests: New file.
99379         * modules/unictype/ctype-space-tests: New file.
99380         * modules/unictype/ctype-upper-tests: New file.
99381         * modules/unictype/ctype-xdigit-tests: New file.
99382         * modules/unictype/decimal-digit-tests: New file.
99383         * modules/unictype/digit-tests: New file.
99384         * modules/unictype/mirror-tests: New file.
99385         * modules/unictype/numeric-tests: New file.
99386         * modules/unictype/property-alphabetic-tests: New file.
99387         * modules/unictype/property-ascii-hex-digit-tests: New file.
99388         * modules/unictype/property-bidi-arabic-digit-tests: New file.
99389         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
99390         * modules/unictype/property-bidi-block-separator-tests: New file.
99391         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
99392         * modules/unictype/property-bidi-common-separator-tests: New file.
99393         * modules/unictype/property-bidi-control-tests: New file.
99394         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
99395         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
99396         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
99397         * modules/unictype/property-bidi-european-digit-tests: New file.
99398         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
99399         * modules/unictype/property-bidi-left-to-right-tests: New file.
99400         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
99401         * modules/unictype/property-bidi-other-neutral-tests: New file.
99402         * modules/unictype/property-bidi-pdf-tests: New file.
99403         * modules/unictype/property-bidi-segment-separator-tests: New file.
99404         * modules/unictype/property-bidi-whitespace-tests: New file.
99405         * modules/unictype/property-byname-tests: New file.
99406         * modules/unictype/property-combining-tests: New file.
99407         * modules/unictype/property-composite-tests: New file.
99408         * modules/unictype/property-currency-symbol-tests: New file.
99409         * modules/unictype/property-dash-tests: New file.
99410         * modules/unictype/property-decimal-digit-tests: New file.
99411         * modules/unictype/property-default-ignorable-code-point-tests: New file.
99412         * modules/unictype/property-deprecated-tests: New file.
99413         * modules/unictype/property-diacritic-tests: New file.
99414         * modules/unictype/property-extender-tests: New file.
99415         * modules/unictype/property-format-control-tests: New file.
99416         * modules/unictype/property-grapheme-base-tests: New file.
99417         * modules/unictype/property-grapheme-extend-tests: New file.
99418         * modules/unictype/property-grapheme-link-tests: New file.
99419         * modules/unictype/property-hex-digit-tests: New file.
99420         * modules/unictype/property-hyphen-tests: New file.
99421         * modules/unictype/property-id-continue-tests: New file.
99422         * modules/unictype/property-id-start-tests: New file.
99423         * modules/unictype/property-ideographic-tests: New file.
99424         * modules/unictype/property-ids-binary-operator-tests: New file.
99425         * modules/unictype/property-ids-trinary-operator-tests: New file.
99426         * modules/unictype/property-ignorable-control-tests: New file.
99427         * modules/unictype/property-iso-control-tests: New file.
99428         * modules/unictype/property-join-control-tests: New file.
99429         * modules/unictype/property-left-of-pair-tests: New file.
99430         * modules/unictype/property-line-separator-tests: New file.
99431         * modules/unictype/property-logical-order-exception-tests: New file.
99432         * modules/unictype/property-lowercase-tests: New file.
99433         * modules/unictype/property-math-tests: New file.
99434         * modules/unictype/property-non-break-tests: New file.
99435         * modules/unictype/property-not-a-character-tests: New file.
99436         * modules/unictype/property-numeric-tests: New file.
99437         * modules/unictype/property-other-alphabetic-tests: New file.
99438         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
99439         * modules/unictype/property-other-grapheme-extend-tests: New file.
99440         * modules/unictype/property-other-id-continue-tests: New file.
99441         * modules/unictype/property-other-id-start-tests: New file.
99442         * modules/unictype/property-other-lowercase-tests: New file.
99443         * modules/unictype/property-other-math-tests: New file.
99444         * modules/unictype/property-other-uppercase-tests: New file.
99445         * modules/unictype/property-paired-punctuation-tests: New file.
99446         * modules/unictype/property-paragraph-separator-tests: New file.
99447         * modules/unictype/property-pattern-syntax-tests: New file.
99448         * modules/unictype/property-pattern-white-space-tests: New file.
99449         * modules/unictype/property-private-use-tests: New file.
99450         * modules/unictype/property-punctuation-tests: New file.
99451         * modules/unictype/property-quotation-mark-tests: New file.
99452         * modules/unictype/property-radical-tests: New file.
99453         * modules/unictype/property-sentence-terminal-tests: New file.
99454         * modules/unictype/property-soft-dotted-tests: New file.
99455         * modules/unictype/property-space-tests: New file.
99456         * modules/unictype/property-terminal-punctuation-tests: New file.
99457         * modules/unictype/property-test-tests: New file.
99458         * modules/unictype/property-titlecase-tests: New file.
99459         * modules/unictype/property-unassigned-code-value-tests: New file.
99460         * modules/unictype/property-unified-ideograph-tests: New file.
99461         * modules/unictype/property-uppercase-tests: New file.
99462         * modules/unictype/property-variation-selector-tests: New file.
99463         * modules/unictype/property-white-space-tests: New file.
99464         * modules/unictype/property-xid-continue-tests: New file.
99465         * modules/unictype/property-xid-start-tests: New file.
99466         * modules/unictype/property-zero-width-tests: New file.
99467         * modules/unictype/scripts-tests: New file.
99468         * modules/unictype/syntax-c-ident-tests: New file.
99469         * modules/unictype/syntax-c-whitespace-tests: New file.
99470         * modules/unictype/syntax-java-ident-tests: New file.
99471         * modules/unictype/syntax-java-whitespace-tests: New file.
99472         * tests/unictype/test-bidi_byname.c: New file.
99473         * tests/unictype/test-bidi_name.c: New file.
99474         * tests/unictype/test-bidi_of.c: New file.
99475         * tests/unictype/test-bidi_test.c: New file.
99476         * tests/unictype/test-block_list.c: New file.
99477         * tests/unictype/test-block_of.c: New file.
99478         * tests/unictype/test-block_test.c: New file.
99479         * tests/unictype/test-categ_and.c: New file.
99480         * tests/unictype/test-categ_and_not.c: New file.
99481         * tests/unictype/test-categ_byname.c: New file.
99482         * tests/unictype/test-categ_name.c: New file.
99483         * tests/unictype/test-categ_none.c: New file.
99484         * tests/unictype/test-categ_of.c: New file.
99485         * tests/unictype/test-categ_or.c: New file.
99486         * tests/unictype/test-categ_test_withtable.c: New file.
99487         * tests/unictype/test-combining.c: New file.
99488         * tests/unictype/test-decdigit.c: New file.
99489         * tests/unictype/test-digit.c: New file.
99490         * tests/unictype/test-mirror.c: New file.
99491         * tests/unictype/test-numeric.c: New file.
99492         * tests/unictype/test-pr_byname.c: New file.
99493         * tests/unictype/test-pr_test.c: New file.
99494         * tests/unictype/test-predicate-part1.h: New file.
99495         * tests/unictype/test-predicate-part2.h: New file.
99496         * tests/unictype/test-scripts.c: New file.
99497         * tests/unictype/test-sy_c_ident.c: New file.
99498         * tests/unictype/test-sy_java_ident.c: New file.
99500         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
99501         for Unicode 5.0.0.
99502         * tests/unictype/test-categ_Cc.c: Likewise.
99503         * tests/unictype/test-categ_Cf.c: Likewise.
99504         * tests/unictype/test-categ_Cn.c: Likewise.
99505         * tests/unictype/test-categ_Co.c: Likewise.
99506         * tests/unictype/test-categ_Cs.c: Likewise.
99507         * tests/unictype/test-categ_L.c: Likewise.
99508         * tests/unictype/test-categ_Ll.c: Likewise.
99509         * tests/unictype/test-categ_Lm.c: Likewise.
99510         * tests/unictype/test-categ_Lo.c: Likewise.
99511         * tests/unictype/test-categ_Lt.c: Likewise.
99512         * tests/unictype/test-categ_Lu.c: Likewise.
99513         * tests/unictype/test-categ_M.c: Likewise.
99514         * tests/unictype/test-categ_Mc.c: Likewise.
99515         * tests/unictype/test-categ_Me.c: Likewise.
99516         * tests/unictype/test-categ_Mn.c: Likewise.
99517         * tests/unictype/test-categ_N.c: Likewise.
99518         * tests/unictype/test-categ_Nd.c: Likewise.
99519         * tests/unictype/test-categ_Nl.c: Likewise.
99520         * tests/unictype/test-categ_No.c: Likewise.
99521         * tests/unictype/test-categ_P.c: Likewise.
99522         * tests/unictype/test-categ_Pc.c: Likewise.
99523         * tests/unictype/test-categ_Pd.c: Likewise.
99524         * tests/unictype/test-categ_Pe.c: Likewise.
99525         * tests/unictype/test-categ_Pf.c: Likewise.
99526         * tests/unictype/test-categ_Pi.c: Likewise.
99527         * tests/unictype/test-categ_Po.c: Likewise.
99528         * tests/unictype/test-categ_Ps.c: Likewise.
99529         * tests/unictype/test-categ_S.c: Likewise.
99530         * tests/unictype/test-categ_Sc.c: Likewise.
99531         * tests/unictype/test-categ_Sk.c: Likewise.
99532         * tests/unictype/test-categ_Sm.c: Likewise.
99533         * tests/unictype/test-categ_So.c: Likewise.
99534         * tests/unictype/test-categ_Z.c: Likewise.
99535         * tests/unictype/test-categ_Zl.c: Likewise.
99536         * tests/unictype/test-categ_Zp.c: Likewise.
99537         * tests/unictype/test-categ_Zs.c: Likewise.
99538         * tests/unictype/test-ctype_alnum.c: Likewise.
99539         * tests/unictype/test-ctype_alpha.c: Likewise.
99540         * tests/unictype/test-ctype_blank.c: Likewise.
99541         * tests/unictype/test-ctype_cntrl.c: Likewise.
99542         * tests/unictype/test-ctype_digit.c: Likewise.
99543         * tests/unictype/test-ctype_graph.c: Likewise.
99544         * tests/unictype/test-ctype_lower.c: Likewise.
99545         * tests/unictype/test-ctype_print.c: Likewise.
99546         * tests/unictype/test-ctype_punct.c: Likewise.
99547         * tests/unictype/test-ctype_space.c: Likewise.
99548         * tests/unictype/test-ctype_upper.c: Likewise.
99549         * tests/unictype/test-ctype_xdigit.c: Likewise.
99550         * tests/unictype/test-decdigit.h: Likewise.
99551         * tests/unictype/test-digit.h: Likewise.
99552         * tests/unictype/test-numeric.h: Likewise.
99553         * tests/unictype/test-pr_alphabetic.c: Likewise.
99554         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
99555         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
99556         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
99557         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
99558         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
99559         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
99560         * tests/unictype/test-pr_bidi_control.c: Likewise.
99561         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
99562         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
99563         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
99564         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
99565         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
99566         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
99567         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
99568         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
99569         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
99570         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
99571         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
99572         * tests/unictype/test-pr_combining.c: Likewise.
99573         * tests/unictype/test-pr_composite.c: Likewise.
99574         * tests/unictype/test-pr_currency_symbol.c: Likewise.
99575         * tests/unictype/test-pr_dash.c: Likewise.
99576         * tests/unictype/test-pr_decimal_digit.c: Likewise.
99577         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
99578         * tests/unictype/test-pr_deprecated.c: Likewise.
99579         * tests/unictype/test-pr_diacritic.c: Likewise.
99580         * tests/unictype/test-pr_extender.c: Likewise.
99581         * tests/unictype/test-pr_format_control.c: Likewise.
99582         * tests/unictype/test-pr_grapheme_base.c: Likewise.
99583         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
99584         * tests/unictype/test-pr_grapheme_link.c: Likewise.
99585         * tests/unictype/test-pr_hex_digit.c: Likewise.
99586         * tests/unictype/test-pr_hyphen.c: Likewise.
99587         * tests/unictype/test-pr_id_continue.c: Likewise.
99588         * tests/unictype/test-pr_id_start.c: Likewise.
99589         * tests/unictype/test-pr_ideographic.c: Likewise.
99590         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
99591         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
99592         * tests/unictype/test-pr_ignorable_control.c: Likewise.
99593         * tests/unictype/test-pr_iso_control.c: Likewise.
99594         * tests/unictype/test-pr_join_control.c: Likewise.
99595         * tests/unictype/test-pr_left_of_pair.c: Likewise.
99596         * tests/unictype/test-pr_line_separator.c: Likewise.
99597         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
99598         * tests/unictype/test-pr_lowercase.c: Likewise.
99599         * tests/unictype/test-pr_math.c: Likewise.
99600         * tests/unictype/test-pr_non_break.c: Likewise.
99601         * tests/unictype/test-pr_not_a_character.c: Likewise.
99602         * tests/unictype/test-pr_numeric.c: Likewise.
99603         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
99604         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
99605         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
99606         * tests/unictype/test-pr_other_id_continue.c: Likewise.
99607         * tests/unictype/test-pr_other_id_start.c: Likewise.
99608         * tests/unictype/test-pr_other_lowercase.c: Likewise.
99609         * tests/unictype/test-pr_other_math.c: Likewise.
99610         * tests/unictype/test-pr_other_uppercase.c: Likewise.
99611         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
99612         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
99613         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
99614         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
99615         * tests/unictype/test-pr_private_use.c: Likewise.
99616         * tests/unictype/test-pr_punctuation.c: Likewise.
99617         * tests/unictype/test-pr_quotation_mark.c: Likewise.
99618         * tests/unictype/test-pr_radical.c: Likewise.
99619         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
99620         * tests/unictype/test-pr_soft_dotted.c: Likewise.
99621         * tests/unictype/test-pr_space.c: Likewise.
99622         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
99623         * tests/unictype/test-pr_titlecase.c: Likewise.
99624         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
99625         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
99626         * tests/unictype/test-pr_uppercase.c: Likewise.
99627         * tests/unictype/test-pr_variation_selector.c: Likewise.
99628         * tests/unictype/test-pr_white_space.c: Likewise.
99629         * tests/unictype/test-pr_xid_continue.c: Likewise.
99630         * tests/unictype/test-pr_xid_start.c: Likewise.
99631         * tests/unictype/test-pr_zero_width.c: Likewise.
99632         * tests/unictype/test-sy_c_whitespace.c: Likewise.
99633         * tests/unictype/test-sy_java_whitespace.c: Likewise.
99635 2007-11-12  Bruno Haible  <bruno@clisp.org>
99637         Unicode character classification functions.
99638         * lib/unictype.h: New file.
99639         * modules/unictype/base: New file.
99640         * modules/unictype/category-L: New file.
99641         * modules/unictype/category-Lu: New file.
99642         * modules/unictype/category-Ll: New file.
99643         * modules/unictype/category-Lt: New file.
99644         * modules/unictype/category-Lm: New file.
99645         * modules/unictype/category-Lo: New file.
99646         * modules/unictype/category-M: New file.
99647         * modules/unictype/category-Mn: New file.
99648         * modules/unictype/category-Mc: New file.
99649         * modules/unictype/category-Me: New file.
99650         * modules/unictype/category-N: New file.
99651         * modules/unictype/category-Nd: New file.
99652         * modules/unictype/category-Nl: New file.
99653         * modules/unictype/category-No: New file.
99654         * modules/unictype/category-P: New file.
99655         * modules/unictype/category-Pc: New file.
99656         * modules/unictype/category-Pd: New file.
99657         * modules/unictype/category-Ps: New file.
99658         * modules/unictype/category-Pe: New file.
99659         * modules/unictype/category-Pi: New file.
99660         * modules/unictype/category-Pf: New file.
99661         * modules/unictype/category-Po: New file.
99662         * modules/unictype/category-S: New file.
99663         * modules/unictype/category-Sm: New file.
99664         * modules/unictype/category-Sc: New file.
99665         * modules/unictype/category-Sk: New file.
99666         * modules/unictype/category-So: New file.
99667         * modules/unictype/category-Z: New file.
99668         * modules/unictype/category-Zs: New file.
99669         * modules/unictype/category-Zl: New file.
99670         * modules/unictype/category-Zp: New file.
99671         * modules/unictype/category-C: New file.
99672         * modules/unictype/category-Cc: New file.
99673         * modules/unictype/category-Cf: New file.
99674         * modules/unictype/category-Cs: New file.
99675         * modules/unictype/category-Co: New file.
99676         * modules/unictype/category-Cn: New file.
99677         * modules/unictype/category-or: New file.
99678         * modules/unictype/category-of: New file.
99679         * modules/unictype/category-test: New file.
99680         * modules/unictype/category-test-withtable: New file.
99681         * modules/unictype/category-byname: New file.
99682         * modules/unictype/category-none: New file.
99683         * modules/unictype/category-and: New file.
99684         * modules/unictype/category-and-not: New file.
99685         * modules/unictype/category-name: New file.
99686         * modules/unictype/combining-class: New file.
99687         * modules/unictype/category-all: New file.
99688         * modules/unictype/bidicategory-all: New file.
99689         * modules/unictype/bidicategory-byname: New file.
99690         * modules/unictype/bidicategory-name: New file.
99691         * modules/unictype/bidicategory-of: New file.
99692         * modules/unictype/bidicategory-test: New file.
99693         * modules/unictype/decimal-digit: New file.
99694         * modules/unictype/digit: New file.
99695         * modules/unictype/numeric: New file.
99696         * modules/unictype/mirror: New file.
99697         * modules/unictype/property-white-space: New file.
99698         * modules/unictype/property-alphabetic: New file.
99699         * modules/unictype/property-other-alphabetic: New file.
99700         * modules/unictype/property-not-a-character: New file.
99701         * modules/unictype/property-default-ignorable-code-point: New file.
99702         * modules/unictype/property-other-default-ignorable-code-point: New
99703         file.
99704         * modules/unictype/property-deprecated: New file.
99705         * modules/unictype/property-logical-order-exception: New file.
99706         * modules/unictype/property-variation-selector: New file.
99707         * modules/unictype/property-private-use: New file.
99708         * modules/unictype/property-unassigned-code-value: New file.
99709         * modules/unictype/property-uppercase: New file.
99710         * modules/unictype/property-other-uppercase: New file.
99711         * modules/unictype/property-lowercase: New file.
99712         * modules/unictype/property-other-lowercase: New file.
99713         * modules/unictype/property-titlecase: New file.
99714         * modules/unictype/property-soft-dotted: New file.
99715         * modules/unictype/property-id-start: New file.
99716         * modules/unictype/property-other-id-start: New file.
99717         * modules/unictype/property-id-continue: New file.
99718         * modules/unictype/property-other-id-continue: New file.
99719         * modules/unictype/property-xid-start: New file.
99720         * modules/unictype/property-xid-continue: New file.
99721         * modules/unictype/property-pattern-white-space: New file.
99722         * modules/unictype/property-pattern-syntax: New file.
99723         * modules/unictype/property-join-control: New file.
99724         * modules/unictype/property-grapheme-base: New file.
99725         * modules/unictype/property-grapheme-extend: New file.
99726         * modules/unictype/property-other-grapheme-extend: New file.
99727         * modules/unictype/property-grapheme-link: New file.
99728         * modules/unictype/property-bidi-control: New file.
99729         * modules/unictype/property-bidi-left-to-right: New file.
99730         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
99731         * modules/unictype/property-bidi-arabic-right-to-left: New file.
99732         * modules/unictype/property-bidi-european-digit: New file.
99733         * modules/unictype/property-bidi-eur-num-separator: New file.
99734         * modules/unictype/property-bidi-eur-num-terminator: New file.
99735         * modules/unictype/property-bidi-arabic-digit: New file.
99736         * modules/unictype/property-bidi-common-separator: New file.
99737         * modules/unictype/property-bidi-block-separator: New file.
99738         * modules/unictype/property-bidi-segment-separator: New file.
99739         * modules/unictype/property-bidi-whitespace: New file.
99740         * modules/unictype/property-bidi-non-spacing-mark: New file.
99741         * modules/unictype/property-bidi-boundary-neutral: New file.
99742         * modules/unictype/property-bidi-pdf: New file.
99743         * modules/unictype/property-bidi-embedding-or-override: New file.
99744         * modules/unictype/property-bidi-other-neutral: New file.
99745         * modules/unictype/property-hex-digit: New file.
99746         * modules/unictype/property-ascii-hex-digit: New file.
99747         * modules/unictype/property-ideographic: New file.
99748         * modules/unictype/property-unified-ideograph: New file.
99749         * modules/unictype/property-radical: New file.
99750         * modules/unictype/property-ids-binary-operator: New file.
99751         * modules/unictype/property-ids-trinary-operator: New file.
99752         * modules/unictype/property-zero-width: New file.
99753         * modules/unictype/property-space: New file.
99754         * modules/unictype/property-non-break: New file.
99755         * modules/unictype/property-iso-control: New file.
99756         * modules/unictype/property-format-control: New file.
99757         * modules/unictype/property-dash: New file.
99758         * modules/unictype/property-hyphen: New file.
99759         * modules/unictype/property-punctuation: New file.
99760         * modules/unictype/property-line-separator: New file.
99761         * modules/unictype/property-paragraph-separator: New file.
99762         * modules/unictype/property-quotation-mark: New file.
99763         * modules/unictype/property-sentence-terminal: New file.
99764         * modules/unictype/property-terminal-punctuation: New file.
99765         * modules/unictype/property-currency-symbol: New file.
99766         * modules/unictype/property-math: New file.
99767         * modules/unictype/property-other-math: New file.
99768         * modules/unictype/property-paired-punctuation: New file.
99769         * modules/unictype/property-left-of-pair: New file.
99770         * modules/unictype/property-combining: New file.
99771         * modules/unictype/property-composite: New file.
99772         * modules/unictype/property-decimal-digit: New file.
99773         * modules/unictype/property-numeric: New file.
99774         * modules/unictype/property-diacritic: New file.
99775         * modules/unictype/property-extender: New file.
99776         * modules/unictype/property-ignorable-control: New file.
99777         * modules/unictype/property-test: New file.
99778         * modules/unictype/property-byname: New file.
99779         * modules/unictype/property-all: New file.
99780         * modules/unictype/scripts: New file.
99781         * modules/unictype/scripts-all: New file.
99782         * modules/unictype/block-of: New file.
99783         * modules/unictype/block-test: New file.
99784         * modules/unictype/block-list: New file.
99785         * modules/unictype/block-all: New file.
99786         * modules/unictype/syntax-c-whitespace: New file.
99787         * modules/unictype/syntax-java-whitespace: New file.
99788         * modules/unictype/syntax-c-ident: New file.
99789         * modules/unictype/syntax-java-ident: New file.
99790         * modules/unictype/ctype-alnum: New file.
99791         * modules/unictype/ctype-alpha: New file.
99792         * modules/unictype/ctype-cntrl: New file.
99793         * modules/unictype/ctype-digit: New file.
99794         * modules/unictype/ctype-graph: New file.
99795         * modules/unictype/ctype-lower: New file.
99796         * modules/unictype/ctype-print: New file.
99797         * modules/unictype/ctype-punct: New file.
99798         * modules/unictype/ctype-space: New file.
99799         * modules/unictype/ctype-upper: New file.
99800         * modules/unictype/ctype-xdigit: New file.
99801         * modules/unictype/ctype-blank: New file.
99802         * lib/unictype/bidi_byname.c: New file.
99803         * lib/unictype/bidi_name.c: New file.
99804         * lib/unictype/bidi_of.c: New file.
99805         * lib/unictype/bidi_test.c: New file.
99806         * lib/unictype/bitmap.h: New file.
99807         * lib/unictype/block_test.c: New file.
99808         * lib/unictype/blocks.c: New file.
99809         * lib/unictype/categ_C.c: New file.
99810         * lib/unictype/categ_Cc.c: New file.
99811         * lib/unictype/categ_Cf.c: New file.
99812         * lib/unictype/categ_Cn.c: New file.
99813         * lib/unictype/categ_Co.c: New file.
99814         * lib/unictype/categ_Cs.c: New file.
99815         * lib/unictype/categ_L.c: New file.
99816         * lib/unictype/categ_Ll.c: New file.
99817         * lib/unictype/categ_Lm.c: New file.
99818         * lib/unictype/categ_Lo.c: New file.
99819         * lib/unictype/categ_Lt.c: New file.
99820         * lib/unictype/categ_Lu.c: New file.
99821         * lib/unictype/categ_M.c: New file.
99822         * lib/unictype/categ_Mc.c: New file.
99823         * lib/unictype/categ_Me.c: New file.
99824         * lib/unictype/categ_Mn.c: New file.
99825         * lib/unictype/categ_N.c: New file.
99826         * lib/unictype/categ_Nd.c: New file.
99827         * lib/unictype/categ_Nl.c: New file.
99828         * lib/unictype/categ_No.c: New file.
99829         * lib/unictype/categ_P.c: New file.
99830         * lib/unictype/categ_Pc.c: New file.
99831         * lib/unictype/categ_Pd.c: New file.
99832         * lib/unictype/categ_Pe.c: New file.
99833         * lib/unictype/categ_Pf.c: New file.
99834         * lib/unictype/categ_Pi.c: New file.
99835         * lib/unictype/categ_Po.c: New file.
99836         * lib/unictype/categ_Ps.c: New file.
99837         * lib/unictype/categ_S.c: New file.
99838         * lib/unictype/categ_Sc.c: New file.
99839         * lib/unictype/categ_Sk.c: New file.
99840         * lib/unictype/categ_Sm.c: New file.
99841         * lib/unictype/categ_So.c: New file.
99842         * lib/unictype/categ_Z.c: New file.
99843         * lib/unictype/categ_Zl.c: New file.
99844         * lib/unictype/categ_Zp.c: New file.
99845         * lib/unictype/categ_Zs.c: New file.
99846         * lib/unictype/categ_and.c: New file.
99847         * lib/unictype/categ_and_not.c: New file.
99848         * lib/unictype/categ_byname.c: New file.
99849         * lib/unictype/categ_name.c: New file.
99850         * lib/unictype/categ_none.c: New file.
99851         * lib/unictype/categ_of.c: New file.
99852         * lib/unictype/categ_or.c: New file.
99853         * lib/unictype/categ_test.c: New file.
99854         * lib/unictype/combining.c: New file.
99855         * lib/unictype/ctype_alnum.c: New file.
99856         * lib/unictype/ctype_alpha.c: New file.
99857         * lib/unictype/ctype_blank.c: New file.
99858         * lib/unictype/ctype_cntrl.c: New file.
99859         * lib/unictype/ctype_digit.c: New file.
99860         * lib/unictype/ctype_graph.c: New file.
99861         * lib/unictype/ctype_lower.c: New file.
99862         * lib/unictype/ctype_print.c: New file.
99863         * lib/unictype/ctype_punct.c: New file.
99864         * lib/unictype/ctype_space.c: New file.
99865         * lib/unictype/ctype_upper.c: New file.
99866         * lib/unictype/ctype_xdigit.c: New file.
99867         * lib/unictype/decdigit.c: New file.
99868         * lib/unictype/digit.c: New file.
99869         * lib/unictype/identsyntaxmap.h: New file.
99870         * lib/unictype/mirror.c: New file.
99871         * lib/unictype/numeric.c: New file.
99872         * lib/unictype/pr_alphabetic.c: New file.
99873         * lib/unictype/pr_ascii_hex_digit.c: New file.
99874         * lib/unictype/pr_bidi_arabic_digit.c: New file.
99875         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
99876         * lib/unictype/pr_bidi_block_separator.c: New file.
99877         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
99878         * lib/unictype/pr_bidi_common_separator.c: New file.
99879         * lib/unictype/pr_bidi_control.c: New file.
99880         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
99881         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
99882         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
99883         * lib/unictype/pr_bidi_european_digit.c: New file.
99884         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
99885         * lib/unictype/pr_bidi_left_to_right.c: New file.
99886         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
99887         * lib/unictype/pr_bidi_other_neutral.c: New file.
99888         * lib/unictype/pr_bidi_pdf.c: New file.
99889         * lib/unictype/pr_bidi_segment_separator.c: New file.
99890         * lib/unictype/pr_bidi_whitespace.c: New file.
99891         * lib/unictype/pr_byname.c: New file.
99892         * lib/unictype/pr_byname.gperf: New file.
99893         * lib/unictype/pr_combining.c: New file.
99894         * lib/unictype/pr_composite.c: New file.
99895         * lib/unictype/pr_currency_symbol.c: New file.
99896         * lib/unictype/pr_dash.c: New file.
99897         * lib/unictype/pr_decimal_digit.c: New file.
99898         * lib/unictype/pr_default_ignorable_code_point.c: New file.
99899         * lib/unictype/pr_deprecated.c: New file.
99900         * lib/unictype/pr_diacritic.c: New file.
99901         * lib/unictype/pr_extender.c: New file.
99902         * lib/unictype/pr_format_control.c: New file.
99903         * lib/unictype/pr_grapheme_base.c: New file.
99904         * lib/unictype/pr_grapheme_extend.c: New file.
99905         * lib/unictype/pr_grapheme_link.c: New file.
99906         * lib/unictype/pr_hex_digit.c: New file.
99907         * lib/unictype/pr_hyphen.c: New file.
99908         * lib/unictype/pr_id_continue.c: New file.
99909         * lib/unictype/pr_id_start.c: New file.
99910         * lib/unictype/pr_ideographic.c: New file.
99911         * lib/unictype/pr_ids_binary_operator.c: New file.
99912         * lib/unictype/pr_ids_trinary_operator.c: New file.
99913         * lib/unictype/pr_ignorable_control.c: New file.
99914         * lib/unictype/pr_iso_control.c: New file.
99915         * lib/unictype/pr_join_control.c: New file.
99916         * lib/unictype/pr_left_of_pair.c: New file.
99917         * lib/unictype/pr_line_separator.c: New file.
99918         * lib/unictype/pr_logical_order_exception.c: New file.
99919         * lib/unictype/pr_lowercase.c: New file.
99920         * lib/unictype/pr_math.c: New file.
99921         * lib/unictype/pr_non_break.c: New file.
99922         * lib/unictype/pr_not_a_character.c: New file.
99923         * lib/unictype/pr_numeric.c: New file.
99924         * lib/unictype/pr_other_alphabetic.c: New file.
99925         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
99926         * lib/unictype/pr_other_grapheme_extend.c: New file.
99927         * lib/unictype/pr_other_id_continue.c: New file.
99928         * lib/unictype/pr_other_id_start.c: New file.
99929         * lib/unictype/pr_other_lowercase.c: New file.
99930         * lib/unictype/pr_other_math.c: New file.
99931         * lib/unictype/pr_other_uppercase.c: New file.
99932         * lib/unictype/pr_paired_punctuation.c: New file.
99933         * lib/unictype/pr_paragraph_separator.c: New file.
99934         * lib/unictype/pr_pattern_syntax.c: New file.
99935         * lib/unictype/pr_pattern_white_space.c: New file.
99936         * lib/unictype/pr_private_use.c: New file.
99937         * lib/unictype/pr_punctuation.c: New file.
99938         * lib/unictype/pr_quotation_mark.c: New file.
99939         * lib/unictype/pr_radical.c: New file.
99940         * lib/unictype/pr_sentence_terminal.c: New file.
99941         * lib/unictype/pr_soft_dotted.c: New file.
99942         * lib/unictype/pr_space.c: New file.
99943         * lib/unictype/pr_terminal_punctuation.c: New file.
99944         * lib/unictype/pr_test.c: New file.
99945         * lib/unictype/pr_titlecase.c: New file.
99946         * lib/unictype/pr_unassigned_code_value.c: New file.
99947         * lib/unictype/pr_unified_ideograph.c: New file.
99948         * lib/unictype/pr_uppercase.c: New file.
99949         * lib/unictype/pr_variation_selector.c: New file.
99950         * lib/unictype/pr_white_space.c: New file.
99951         * lib/unictype/pr_xid_continue.c: New file.
99952         * lib/unictype/pr_xid_start.c: New file.
99953         * lib/unictype/pr_zero_width.c: New file.
99954         * lib/unictype/scripts.c: New file.
99955         * lib/unictype/sy_c_ident.c: New file.
99956         * lib/unictype/sy_c_whitespace.c: New file.
99957         * lib/unictype/sy_java_ident.c: New file.
99958         * lib/unictype/sy_java_whitespace.c: New file.
99960         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
99961         Unicode 5.0.0.
99962         * lib/unictype/blocks.h: Likewise.
99963         * lib/unictype/categ_C.h: Likewise.
99964         * lib/unictype/categ_Cc.h: Likewise.
99965         * lib/unictype/categ_Cf.h: Likewise.
99966         * lib/unictype/categ_Cn.h: Likewise.
99967         * lib/unictype/categ_Co.h: Likewise.
99968         * lib/unictype/categ_Cs.h: Likewise.
99969         * lib/unictype/categ_L.h: Likewise.
99970         * lib/unictype/categ_Ll.h: Likewise.
99971         * lib/unictype/categ_Lm.h: Likewise.
99972         * lib/unictype/categ_Lo.h: Likewise.
99973         * lib/unictype/categ_Lt.h: Likewise.
99974         * lib/unictype/categ_Lu.h: Likewise.
99975         * lib/unictype/categ_M.h: Likewise.
99976         * lib/unictype/categ_Mc.h: Likewise.
99977         * lib/unictype/categ_Me.h: Likewise.
99978         * lib/unictype/categ_Mn.h: Likewise.
99979         * lib/unictype/categ_N.h: Likewise.
99980         * lib/unictype/categ_Nd.h: Likewise.
99981         * lib/unictype/categ_Nl.h: Likewise.
99982         * lib/unictype/categ_No.h: Likewise.
99983         * lib/unictype/categ_P.h: Likewise.
99984         * lib/unictype/categ_Pc.h: Likewise.
99985         * lib/unictype/categ_Pd.h: Likewise.
99986         * lib/unictype/categ_Pe.h: Likewise.
99987         * lib/unictype/categ_Pf.h: Likewise.
99988         * lib/unictype/categ_Pi.h: Likewise.
99989         * lib/unictype/categ_Po.h: Likewise.
99990         * lib/unictype/categ_Ps.h: Likewise.
99991         * lib/unictype/categ_S.h: Likewise.
99992         * lib/unictype/categ_Sc.h: Likewise.
99993         * lib/unictype/categ_Sk.h: Likewise.
99994         * lib/unictype/categ_Sm.h: Likewise.
99995         * lib/unictype/categ_So.h: Likewise.
99996         * lib/unictype/categ_Z.h: Likewise.
99997         * lib/unictype/categ_Zl.h: Likewise.
99998         * lib/unictype/categ_Zp.h: Likewise.
99999         * lib/unictype/categ_Zs.h: Likewise.
100000         * lib/unictype/categ_of.h: Likewise.
100001         * lib/unictype/combining.h: Likewise.
100002         * lib/unictype/ctype_alnum.h: Likewise.
100003         * lib/unictype/ctype_alpha.h: Likewise.
100004         * lib/unictype/ctype_blank.h: Likewise.
100005         * lib/unictype/ctype_cntrl.h: Likewise.
100006         * lib/unictype/ctype_digit.h: Likewise.
100007         * lib/unictype/ctype_graph.h: Likewise.
100008         * lib/unictype/ctype_lower.h: Likewise.
100009         * lib/unictype/ctype_print.h: Likewise.
100010         * lib/unictype/ctype_punct.h: Likewise.
100011         * lib/unictype/ctype_space.h: Likewise.
100012         * lib/unictype/ctype_upper.h: Likewise.
100013         * lib/unictype/ctype_xdigit.h: Likewise.
100014         * lib/unictype/decdigit.h: Likewise.
100015         * lib/unictype/digit.h: Likewise.
100016         * lib/unictype/mirror.h: Likewise.
100017         * lib/unictype/numeric.h: Likewise.
100018         * lib/unictype/pr_alphabetic.h: Likewise.
100019         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
100020         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
100021         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
100022         * lib/unictype/pr_bidi_block_separator.h: Likewise.
100023         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
100024         * lib/unictype/pr_bidi_common_separator.h: Likewise.
100025         * lib/unictype/pr_bidi_control.h: Likewise.
100026         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
100027         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
100028         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
100029         * lib/unictype/pr_bidi_european_digit.h: Likewise.
100030         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
100031         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
100032         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
100033         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
100034         * lib/unictype/pr_bidi_pdf.h: Likewise.
100035         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
100036         * lib/unictype/pr_bidi_whitespace.h: Likewise.
100037         * lib/unictype/pr_combining.h: Likewise.
100038         * lib/unictype/pr_composite.h: Likewise.
100039         * lib/unictype/pr_currency_symbol.h: Likewise.
100040         * lib/unictype/pr_dash.h: Likewise.
100041         * lib/unictype/pr_decimal_digit.h: Likewise.
100042         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
100043         * lib/unictype/pr_deprecated.h: Likewise.
100044         * lib/unictype/pr_diacritic.h: Likewise.
100045         * lib/unictype/pr_extender.h: Likewise.
100046         * lib/unictype/pr_format_control.h: Likewise.
100047         * lib/unictype/pr_grapheme_base.h: Likewise.
100048         * lib/unictype/pr_grapheme_extend.h: Likewise.
100049         * lib/unictype/pr_grapheme_link.h: Likewise.
100050         * lib/unictype/pr_hex_digit.h: Likewise.
100051         * lib/unictype/pr_hyphen.h: Likewise.
100052         * lib/unictype/pr_id_continue.h: Likewise.
100053         * lib/unictype/pr_id_start.h: Likewise.
100054         * lib/unictype/pr_ideographic.h: Likewise.
100055         * lib/unictype/pr_ids_binary_operator.h: Likewise.
100056         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
100057         * lib/unictype/pr_ignorable_control.h: Likewise.
100058         * lib/unictype/pr_iso_control.h: Likewise.
100059         * lib/unictype/pr_join_control.h: Likewise.
100060         * lib/unictype/pr_left_of_pair.h: Likewise.
100061         * lib/unictype/pr_line_separator.h: Likewise.
100062         * lib/unictype/pr_logical_order_exception.h: Likewise.
100063         * lib/unictype/pr_lowercase.h: Likewise.
100064         * lib/unictype/pr_math.h: Likewise.
100065         * lib/unictype/pr_non_break.h: Likewise.
100066         * lib/unictype/pr_not_a_character.h: Likewise.
100067         * lib/unictype/pr_numeric.h: Likewise.
100068         * lib/unictype/pr_other_alphabetic.h: Likewise.
100069         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
100070         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
100071         * lib/unictype/pr_other_id_continue.h: Likewise.
100072         * lib/unictype/pr_other_id_start.h: Likewise.
100073         * lib/unictype/pr_other_lowercase.h: Likewise.
100074         * lib/unictype/pr_other_math.h: Likewise.
100075         * lib/unictype/pr_other_uppercase.h: Likewise.
100076         * lib/unictype/pr_paired_punctuation.h: Likewise.
100077         * lib/unictype/pr_paragraph_separator.h: Likewise.
100078         * lib/unictype/pr_pattern_syntax.h: Likewise.
100079         * lib/unictype/pr_pattern_white_space.h: Likewise.
100080         * lib/unictype/pr_private_use.h: Likewise.
100081         * lib/unictype/pr_punctuation.h: Likewise.
100082         * lib/unictype/pr_quotation_mark.h: Likewise.
100083         * lib/unictype/pr_radical.h: Likewise.
100084         * lib/unictype/pr_sentence_terminal.h: Likewise.
100085         * lib/unictype/pr_soft_dotted.h: Likewise.
100086         * lib/unictype/pr_space.h: Likewise.
100087         * lib/unictype/pr_terminal_punctuation.h: Likewise.
100088         * lib/unictype/pr_titlecase.h: Likewise.
100089         * lib/unictype/pr_unassigned_code_value.h: Likewise.
100090         * lib/unictype/pr_unified_ideograph.h: Likewise.
100091         * lib/unictype/pr_uppercase.h: Likewise.
100092         * lib/unictype/pr_variation_selector.h: Likewise.
100093         * lib/unictype/pr_white_space.h: Likewise.
100094         * lib/unictype/pr_xid_continue.h: Likewise.
100095         * lib/unictype/pr_xid_start.h: Likewise.
100096         * lib/unictype/pr_zero_width.h: Likewise.
100097         * lib/unictype/scripts.h: Likewise.
100098         * lib/unictype/scripts_byname.gperf: Likewise.
100099         * lib/unictype/sy_c_ident.h: Likewise.
100100         * lib/unictype/sy_c_whitespace.h: Likewise.
100101         * lib/unictype/sy_java_ident.h: Likewise.
100102         * lib/unictype/sy_java_whitespace.h: Likewise.
100104         * lib/unictype/Makefile: New file.
100105         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
100106         glibc.
100107         * lib/unictype/3level.h: New file, copied from glibc.
100108         * lib/unictype/3levelbit.h: New file.
100110 2007-11-11  Bruno Haible  <bruno@clisp.org>
100112         * modules/gperf: New file.
100113         * modules/iconv_open (Depends-on): Add it.
100114         (Makefile.am): Remove the GPERF definition.
100116 2007-11-11  Bruno Haible  <bruno@clisp.org>
100118         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
100119         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
100121 2007-11-11  Bruno Haible  <bruno@clisp.org>
100123         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
100124         (usage): Remove function.
100126 2007-11-11  Bruno Haible  <bruno@clisp.org>
100128         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
100129         gl_FUNC_CEILF_LIBS.
100130         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
100131         gl_FUNC_CEIL_LIBS.
100132         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
100133         gl_FUNC_CEILL_LIBS.
100134         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
100135         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
100136         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
100138 2007-11-11  Bruno Haible  <bruno@clisp.org>
100140         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
100141         roundf were declared but do not exist on functions.
100142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
100143         roundl were declared but do not exist on functions.
100144         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
100145         HAVE_FLOORL_AND_CEILL, respectively.
100146         Needed for Sun C on Solaris 10.
100148 2007-11-11  Bruno Haible  <bruno@clisp.org>
100150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
100151         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
100152         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
100153         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
100154         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
100155         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
100156         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
100157         HAVE_DECL_ROUNDF.
100158         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
100159         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
100160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
100161         of HAVE_DECL_ROUND*.
100162         * modules/math (Makefile.am): Update.
100164 2007-11-10  Bruno Haible  <bruno@clisp.org>
100166         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
100167         ptrdiff_t as m4/intl.m4.
100169 2007-11-10  Jim Meyering  <meyering@redhat.com>
100171         Avoid link failure for the argmatch test.
100172         * tests/test-argmatch.c (usage): Define function to avoid a link
100173         failure: argmatch_die requires a usage function.
100175 2007-11-09  Bruno Haible  <bruno@clisp.org>
100177         * doc/functions/snprintf.texi: Mention BeOS deficiency.
100178         * doc/functions/vsnprintf.texi: Likewise.
100179         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
100180         with a size argument < 2.
100182 2007-11-09  Bruno Haible  <bruno@clisp.org>
100184         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
100185         buffer. Fixes an inefficiency introduced on 2007-11-03.
100187 2007-11-09  Bruno Haible  <bruno@clisp.org>
100189         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
100190         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
100192 2007-11-08  Jim Meyering  <meyering@redhat.com>
100194         Change cache variable name prefix "jm_" to "gl_" everywhere.
100195         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
100196         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
100197         * m4/uptime.m4: s/gl_/jm_/
100199 2007-11-07  Bruno Haible  <bruno@clisp.org>
100201         Update to GNU gettext 0.17.
100202         * m4/intl.m4: Update to GNU gettext 0.17.
100203         * m4/po.m4: Likewise.
100204         * modules/gettext (Files): Remove m4/ulonglong.m4.
100205         (configure.ac): Require gettext infrastructure from version 0.17.
100207 2007-11-06  Bruno Haible  <bruno@clisp.org>
100209         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
100210         symbolic values are not defined in a public header.
100211         * lib/freadable.c (freadable) [QNX]: Likewise.
100212         * lib/freadahead.c (freadahead) [QNX]: Likewise.
100213         * lib/freading.c (freading) [QNX]: Likewise.
100214         * lib/fseterr.c (fseterr) [QNX]: Likewise.
100215         * lib/fwritable.c (fwritable) [QNX]: Likewise.
100216         * lib/fwriting.c (fwriting) [QNX]: Likewise.
100217         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
100218         Reported by Alain Magloire.
100220         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
100222 2007-11-05  Bruno Haible  <bruno@clisp.org>
100224         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
100225         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
100226         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
100227         Reported by Eric Blake.
100229 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100230             Bruno Haible  <bruno@clisp.org>
100232         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
100233         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
100234         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
100235         (malloc): Undefine also before including <stdlib.h>.
100236         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
100237         Needed on OSF/1 4.0.
100239 2007-11-05  Jim Meyering  <meyering@redhat.com>
100241         git-version-gen: sync from coreutils.
100242         * build-aux/git-version-gen: Add comments.
100243         Change the first '-' to '.' in the snapshot version string,
100244         e.g., 6.9-377-08144 -> 6.9.377-08144
100245         Remove first parameter.
100246         Don't declare a version "-dirty" merely because a time
100247         stamp has changed.
100249 2007-11-04  Bruno Haible  <bruno@clisp.org>
100251         * lib/lock.h: Protect all macro definitions containing an 'if'
100252         statement through a "do { ... } while (0)".
100253         * lib/tls.h: Likewise.
100255 2007-11-04  Bruno Haible  <bruno@clisp.org>
100257         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
100259 2007-11-04  Bruno Haible  <bruno@clisp.org>
100261         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
100262         * modules/fprintf-posix (Depends-on): Add nocrash.
100263         * modules/snprintf-posix (Depends-on): Likewise.
100264         * modules/sprintf-posix (Depends-on): Likewise.
100265         * modules/vasnprintf-posix (Depends-on): Likewise.
100266         * modules/vasprintf-posix (Depends-on): Likewise.
100267         * modules/vfprintf-posix (Depends-on): Likewise.
100268         * modules/vsnprintf-posix (Depends-on): Likewise.
100269         * modules/vsprintf-posix (Depends-on): Likewise.
100270         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
100271         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
100272         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
100273         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
100274         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
100275         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
100276         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
100278 2007-11-04  Bruno Haible  <bruno@clisp.org>
100280         * modules/nocrash: New file.
100281         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
100282         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
100284 2007-11-04  Bruno Haible  <bruno@clisp.org>
100286         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
100287         precision handling.
100288         * tests/test-vasprintf-posix.c (test_function): Likewise.
100289         * tests/test-snprintf-posix.h (test_function): Likewise.
100290         * tests/test-sprintf-posix.h (test_function): Likewise.
100292         Fix *printf behaviour for large precisions on mingw and BeOS.
100293         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
100294         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
100295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
100296         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
100297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100298         gl_PRINTF_PRECISION and test its result. Invoke
100299         gl_PREREQ_VASNPRINTF_PRECISION.
100300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100301         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100304         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100306         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100307         * doc/functions/fprintf.texi: Update.
100308         * doc/functions/printf.texi: Update.
100309         * doc/functions/snprintf.texi: Update.
100310         * doc/functions/sprintf.texi: Update.
100311         * doc/functions/vfprintf.texi: Update.
100312         * doc/functions/vprintf.texi: Update.
100313         * doc/functions/vsnprintf.texi: Update.
100314         * doc/functions/vsprintf.texi: Update.
100316 2007-11-04  Bruno Haible  <bruno@clisp.org>
100318         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
100320 2007-11-04  Bruno Haible  <bruno@clisp.org>
100322         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
100323         Reported by Sylvain Beucler <beuc@gnu.org>.
100325 2007-11-03  Bruno Haible  <bruno@clisp.org>
100327         * tests/test-fprintf-posix2.sh: New file.
100328         * tests/test-fprintf-posix2.c: New file.
100329         * modules/fprintf-posix-tests (Files): Add them.
100330         (TESTS): Add test-fprintf-posix2.sh.
100331         (configure.ac): Check for getrlimit and setrlimit.
100332         (check_PROGRAMS): Add test-fprintf-posix2.
100334         * tests/test-printf-posix2.sh: New file.
100335         * tests/test-printf-posix2.c: New file.
100336         * modules/printf-posix-tests (Files): Add them.
100337         (TESTS): Add test-printf-posix2.sh.
100338         (configure.ac): Check for getrlimit and setrlimit.
100339         (check_PROGRAMS): Add test-printf-posix2.
100341         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
100342         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
100343         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
100344         (decode_double): New function, copied from decode_long_double.
100345         (scale10_round_decimal_decoded): New function, extracted from
100346         scale10_round_decimal_long_double.
100347         (scale10_round_decimal_long_double): Use it.
100348         (scale10_round_decimal_double): New function.
100349         (floorlog10): New function.
100350         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
100351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
100352         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
100353         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100354         gl_PRINTF_ENOMEM and test its result. Invoke
100355         gl_PREREQ_VASNPRINTF_ENOMEM.
100356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100361         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100362         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100363         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
100364         * modules/snprintf-posix (Depends-on): Likewise.
100365         * modules/sprintf-posix (Depends-on): Likewise.
100366         * modules/vasnprintf-posix (Depends-on): Likewise.
100367         * modules/vasprintf-posix (Depends-on): Likewise.
100368         * modules/vfprintf-posix (Depends-on): Likewise.
100369         * modules/vsnprintf-posix (Depends-on): Likewise.
100370         * modules/vsprintf-posix (Depends-on): Likewise.
100371         * doc/functions/fprintf.texi: Update.
100372         * doc/functions/printf.texi: Update.
100373         * doc/functions/snprintf.texi: Update.
100374         * doc/functions/sprintf.texi: Update.
100375         * doc/functions/vfprintf.texi: Update.
100376         * doc/functions/vprintf.texi: Update.
100377         * doc/functions/vsnprintf.texi: Update.
100378         * doc/functions/vsprintf.texi: Update.
100380 2007-11-03  Bruno Haible  <bruno@clisp.org>
100382         * modules/frexp-nolibm-tests: New file.
100384         * modules/frexp-nolibm: New file.
100385         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
100387 2007-11-03  Bruno Haible  <bruno@clisp.org>
100389         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
100390         value is C99 compliant.
100391         Needed for OSF/1 5.1.
100393 2007-11-03  Bruno Haible  <bruno@clisp.org>
100395         Fix out-of-memory handling of vasnprintf.
100396         * lib/printf-parse.c: Include <errno.h>.
100397         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
100398         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
100399         is already set.
100401 2007-11-02  Eric Blake  <ebb9@byu.net>
100403         Fix tests on cygwin.
100404         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
100406 2007-11-01  Bruno Haible  <bruno@clisp.org>
100408         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
100409         warning.
100410         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
100411         needed for POSIX compatibility.
100413 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
100415         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
100416         for compatibility with GNU.
100418 2007-11-01  Bruno Haible  <bruno@clisp.org>
100420         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
100421         (putenv): Renamed from rpl_putenv. Change argument type from
100422         'const char *' to 'char *'.
100423         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
100424         of defining putenv in config.h, just set REPLACE_PUTENV.
100425         * modules/putenv (Depends-on): Add stdlib.
100426         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
100427         (Include): Use <stdlib.h>.
100428         * lib/stdlib.in.h (putenv): New declaration.
100429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
100430         REPLACE_PUTENV.
100431         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
100432         REPLACE_PUTENV.
100433         Needed for MacOS X 10.5.0.
100434         Reported by Peter O'Gorman <peter@pogma.com>.
100436 2007-11-01  Jim Meyering  <meyering@redhat.com>
100438         Treat an empty date string exactly like "0".
100439         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
100440         if the remaining date string (to be parsed) is empty, use "0".
100441         Reported by Mischa Molhoek and discussed in this thread:
100442         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
100444 2007-10-31  Bruno Haible  <bruno@clisp.org>
100446         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
100447         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
100448         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
100449         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
100450         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
100451         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
100453 2007-10-31  Bruno Haible  <bruno@clisp.org>
100455         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
100456         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
100457         (AC_TYPE_LONG_LONG_INT): Use it.
100458         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
100459         it as well.
100460         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
100461         to m4/longlong.m4.
100462         * modules/stdint (Files): Remove m4/ulonglong.m4.
100463         * modules/strtoull (Files): Use m4/longlong.m4 instead of
100464         m4/ulonglong.m4.
100465         * modules/strtoumax (Files): Likewise.
100467 2007-10-30  Bruno Haible  <bruno@clisp.org>
100469         * modules/xvasprintf-posix: New file.
100470         Suggested by Eric Blake.
100472 2007-10-30  Bruno Haible  <bruno@clisp.org>
100474         * modules/xprintf-posix-tests: New file.
100475         * tests/test-xprintf-posix.sh: New file.
100476         * tests/test-xprintf-posix.c: New file.
100477         * tests/test-xfprintf-posix.c: New file.
100479         * modules/xprintf-posix: New file.
100481 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100483         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
100484         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
100485         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
100487 2007-10-29  Bruno Haible  <bruno@clisp.org>
100489         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
100490         contain the special marker '_cv_'.
100491         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
100492         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
100493         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
100494         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
100495         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
100496         Reported by Ralf Wildenhues.
100498 2007-10-29  Bruno Haible  <bruno@clisp.org>
100500         * gnulib-tool (func_import): When --lgpl is not specified, set
100501         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
100502         GPLv3.
100503         Reported by Simon Josefsson.
100505 2007-10-28  Bruno Haible  <bruno@clisp.org>
100507         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
100508         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
100509         HAVE_DECL_ISFINITE.
100510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
100511         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
100512         HAVE_DECL_ISFINITE.
100514 2007-10-28  Bruno Haible  <bruno@clisp.org>
100516         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
100517         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
100519 2007-10-28  Bruno Haible  <bruno@clisp.org>
100521         Fix link errors with Sun C 5.0 on Solaris 10.
100522         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
100523         function is declared but not present in the compiler's libm.
100524         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
100525         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
100526         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
100527         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
100528         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
100529         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
100530         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
100531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
100532         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
100533         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
100534         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
100535         HAVE_DECL_FLOORL.
100537 2007-10-28  Bruno Haible  <bruno@clisp.org>
100539         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
100540         gl_FUNC_FLOORL. Cache the result.
100541         (gl_FUNC_FLOORL): Use it.
100542         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
100543         gl_FUNC_CEILL. Cache the result.
100544         (gl_FUNC_CEILL): Use it.
100546         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
100547         gl_FUNC_FLOOR. Cache the result.
100548         (gl_FUNC_FLOOR): Use it.
100549         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
100550         gl_FUNC_CEIL. Cache the result.
100551         (gl_FUNC_CEIL): Use it.
100553         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
100554         gl_FUNC_FLOORF. Cache the result.
100555         (gl_FUNC_FLOORF): Use it.
100556         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
100557         gl_FUNC_CEILF. Cache the result.
100558         (gl_FUNC_CEILF): Use it.
100560 2007-10-28  Bruno Haible  <bruno@clisp.org>
100562         * gnulib-tool: Allow specifying the LGPL version number through
100563         --lgpl=2 or --lgpl=3.
100564         (func_usage): Document --lgpl with argument.
100565         Handle --lgpl=... arguments.
100566         (func_import): Recognize also gl_LGPL calls with an argument. When
100567         --lgpl=2 is used and the module's license is just LGPL, report an
100568         error. Set sed_transform_lib_file according to the lgpl variable. In
100569         the generated files, use --lgpl or gl_LGPL invocations with argument,
100570         if necessary.
100571         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
100572         an LGPv2+ license.
100573         * doc/gnulib-tool.texi (Modified imports): Update explanation of
100574         gl_LGPL macro.
100576 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100577             Bruno Haible  <bruno@clisp.org>
100579         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
100580         (u16_uctomb_aux): Likewise.
100581         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
100582         !HAVE_INLINE.
100583         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
100585 2007-10-28  Bruno Haible  <bruno@clisp.org>
100587         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
100588         Invoke AM_GETTEXT_OPTION if it exists.
100589         * modules/vasprintf: Likewise.
100590         * modules/verror: Likewise.
100591         * modules/xprintf: Likewise.
100592         * modules/xvasprintf: Likewise.
100594 2007-10-27  Ben Pfaff  <blp@gnu.org>
100596         * lib/math.in.h: Define isfinite macro and prototypes for
100597         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
100598         implementations.
100599         * m4/math_h.m4: New substitutions for isfinite module.
100600         * lib/isfinite.c: New file.
100601         * m4/isfinite.m4: New file.
100602         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
100603         * modules/isfinite: New file.
100604         * modules/isfinite-tests: New file.
100605         * tests/tests-isfinite.c: New file.
100606         * doc/functions/isfinite.texi: Mention isfinite module.
100607         * MODULES.html.sh: Mention new module.
100609 2007-10-27  Ben Pfaff  <blp@gnu.org>
100611         Ralf Wildenhues reported that Tru64 4.0D declares the round
100612         functions but does not have definitions.
100613         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
100614         cannot be found in any library, set the output variable to
100615         "missing" instead of "".
100616         * m4/round.m4: Also use our substitute if we cannot find round in
100617         any library, even if it is declared.
100618         * m4/roundf.m4: Likewise for roundf.
100619         * m4/roundl.m4: Likewise for roundl.
100620         * lib/math.in.h: Undefine roundf, round, roundl before defining
100621         their replacements, to allow for hypothetical systems where these
100622         may be defined as macros but not available in libraries.
100624 2007-10-27  Bruno Haible  <bruno@clisp.org>
100626         * doc/gnulib.texi: Invoke @firstparagraphindent.
100627         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
100628         changes in gnulib.
100629         (Source changes): New section.
100631 2007-10-26  Bruno Haible  <bruno@clisp.org>
100633         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
100634         borrowed from autoconf.
100636 2007-10-26  Bruno Haible  <bruno@clisp.org>
100638         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
100639         strerror returned the empty string. Needed on HP-UX 11.00.
100641 2007-10-24  Micah Cowan  <micah@cowan.name>
100643         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
100644         * build-aux/bootstrap: Remove support for now-unnecessary option,
100645         --cvs-user, and envvars CVS_USER, CVS_RSH.
100647 2007-10-24  Jim Meyering  <meyering@redhat.com>
100649         Avoid diagnostics from sha1sum when there is no cached checksum.
100650         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
100651         if the po.s1 file hasn't been created yet.
100653         * build-aux/bootstrap: Sync from coreutils:
100654         2007-10-24  Jim Meyering  <meyering@redhat.com>
100655         Get gnulib from the git repository, not from an obsolete cvs one.
100656         * build-aux/bootstrap: Suggestion from Micah Cowan.
100657         2007-10-04  Jim Meyering  <jim@meyering.net>
100658         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
100659         (update_po_files): Work also when there are no .po files in po/.
100661 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100663         * README: Append ".git" to git and cg examples.
100664         Problem reported by Benoit Sigoure.
100666 2007-10-23  Micah Cowan  <micah@cowan.name>
100668         * users.txt: Add wget.
100670 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100672         Fix linking of some unistdio tests on FreeBSD.
100673         * modules/unistdio/u16-vsnprintf-tests
100674         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
100675         * modules/unistdio/u16-vsprintf-tests
100676         (test_u16_vsnprintf1_LDADD): Likewise.
100677         * modules/unistdio/u32-vsnprintf-tests
100678         (test_u32_vsnprintf1_LDADD): Likewise.
100679         * modules/unistdio/u32-vsprintf-tests
100680         (test_u32_vsprintf1_LDADD): Likewise.
100681         * modules/unistdio/u8-vsnprintf-tests
100682         (test_u8_vsnprintf1_LDADD): Likewise.
100683         * modules/unistdio/u8-vsprintf-tests
100684         (test_u8_vsprintf1_LDADD): Likewise.
100685         * modules/unistdio/ulc-vsnprintf-tests
100686         (test_ulc_vsnprintf1_LDADD): Likewise.
100687         * modules/unistdio/ulc-vsprintf-tests
100688         (test_ulc_vsprintf1_LDADD): Likewise.
100690         Fix linking of some uniconv tests on FreeBSD.
100691         * modules/uniconv/u16-conv-from-enc-tests
100692         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
100693         * modules/uniconv/u16-conv-to-enc-tests
100694         (test_u16_conv_to_enc_LDADD): Likewise.
100695         * modules/uniconv/u16-strconv-from-enc-tests
100696         (test_u16_strconv_from_enc_LDADD): Likewise.
100697         * modules/uniconv/u16-strconv-to-enc-tests
100698         (test_u16_strconv_to_enc_LDADD): Likewise.
100699         * modules/uniconv/u32-conv-from-enc-tests
100700         (test_u32_conv_from_enc_LDADD): Likewise.
100701         * modules/uniconv/u32-conv-to-enc-tests
100702         (test_u32_conv_to_enc_LDADD): Likewise.
100703         * modules/uniconv/u32-strconv-from-enc-tests
100704         (test_u32_strconv_from_enc_LDADD): Likewise.
100705         * modules/uniconv/u32-strconv-to-enc-tests
100706         (test_u32_strconv_to_enc_LDADD): Likewise.
100707         * modules/uniconv/u8-conv-from-enc-tests
100708         (test_u8_conv_from_enc_LDADD): Likewise.
100709         * modules/uniconv/u8-conv-to-enc-tests
100710         (test_u8_conv_to_enc_LDADD): Likewise.
100711         * modules/uniconv/u8-strconv-from-enc-tests
100712         (test_u8_strconv_from_enc_LDADD): Likewise.
100713         * modules/uniconv/u8-strconv-to-enc-tests
100714         (test_u8_strconv_to_enc_LDADD): Likewise.
100716 2007-10-22  Bruno Haible  <bruno@clisp.org>
100718         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
100719         size.
100721 2007-10-22  Eric Blake  <ebb9@byu.net>
100723         Tweak x*printf documentation.
100724         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
100725         variable name and comments.
100726         Suggested by Bruno Haible.
100728 2007-10-22  Bruno Haible  <bruno@clisp.org>
100730         * lib/acl.c (copy_acl): Fix file name in comment.
100732 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100734         Fix Tru64 problem with stdbool.h.
100735         * lib/stdbool.in.h (false, true):
100736         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
100737         Don't declare as an enum in this situation; it runs afoul of Tru64.
100738         Problem reported by Steven M. Schweda in
100739         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
100741 2007-10-22  Eric Blake  <ebb9@byu.net>
100743         Also wrap vf?printf.
100744         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
100745         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
100746         (xvprintf, xvfprintf): New functions.
100748 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100750         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
100751         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
100753         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
100754         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
100756 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100758         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
100759         by Bruno Haible.
100761 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100763         * lib/getloadavg.c
100764         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
100765         Undef `sys' after including sys/table.h, for Tru64 4.0D.
100767         * tests/test-i-ring.c: Work for C89.
100769 2007-10-22  Bruno Haible  <bruno@clisp.org>
100771         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
100772         -1u, in preprocessor expression, so that we don't test for the bug
100773         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
100774         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
100776 2007-10-22  Eric Blake  <ebb9@byu.net>
100778         * tests/test-yesno.sh: Silence stderr during test.
100780 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100782         * modules/crypto/gc-camellia: New file.
100784         * m4/gc-camellia.m4: New file.
100786         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
100788         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
100790 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100792         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
100793         --help to stdout.  Reported by sms@antinode.org (Steven
100794         M. Schweda).
100796 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100798         * users.txt: Fix link to libksba.
100800 2007-10-21  Ben Pfaff  <blp@gnu.org>
100802         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
100803         round.c roundf implementation that depends on floorf and ceilf to
100804         be tested unconditionally.
100806 2007-10-21  Ben Pfaff  <blp@gnu.org>
100808         * m4/check-libm-func.m4: Removed.
100809         * m4/check-math-lib.m4: New file.
100810         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
100811         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
100812         definition and lack of AC_LIBOBJ([roundf]).
100813         * m4/roundl.m4: Ditto, and similarly for roundl.
100814         * modules/round: Reference new m4 file.
100815         * modules/roundf: Ditto.
100816         * modules/roundl: Ditto.
100817         * tests/test-round2.c (main): Use ROUND instead of round.
100818         Bug report from Bruno Haible.
100820 2007-10-21  Bruno Haible  <bruno@clisp.org>
100822         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
100823         context.
100825 2007-10-21  Bruno Haible  <bruno@clisp.org>
100827         * tests/test-wcwidth.c (main): Allow negative result for some control
100828         characters.
100830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
100831         Needed on OSF/1 5.1.
100833 2007-10-21  Bruno Haible  <bruno@clisp.org>
100835         * tests/test-floorf1.c: Include isnanf.h.
100836         (main): Use isnanf() instead of isnan().
100837         * tests/test-ceilf1.c: Include isnanf.h.
100838         (main): Use isnanf() instead of isnan().
100839         * tests/test-truncf1.c: Include isnanf.h.
100840         (main): Use isnanf() instead of isnan().
100841         * tests/test-roundf1.c: Include isnanf.h.
100842         (main): Use isnanf() instead of isnan().
100844 2007-10-21  Eric Blake  <ebb9@byu.net>
100846         * users.txt: Update URL for m4.
100848 2007-10-21  Bruno Haible  <bruno@clisp.org>
100850         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
100852 2007-10-21  Bruno Haible  <bruno@clisp.org>
100854         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
100855         Git's management files if the CVS files are not present.
100857 2007-10-20  Bruno Haible  <bruno@clisp.org>
100859         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
100860         gcc-3.4.x.
100862 2007-10-20  Ben Pfaff  <blp@gnu.org>
100864         * lib/math.in.h: Declare round, roundf, roundl if we are providing
100865         implementations.
100866         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
100867         * lib/round.c: New file.
100868         * lib/roundf.c: New file.
100869         * lib/roundl.c: New file.
100870         * m4/round.m4: New file.
100871         * m4/roundf.m4: New file.
100872         * m4/roundl.m4: New file.
100873         * m4/check-libm-func-m4: New file.
100874         * modules/math: Replace round, roundf, roundl related @VARS@ in
100875         math.in.h.
100876         * modules/round: New file.
100877         * modules/round-tests: New file.
100878         * modules/roundf: New file.
100879         * modules/roundf-tests: New file.
100880         * modules/roundl: New file.
100881         * modules/roundl-tests: New file.
100882         * tests/test-round1.c: New file.
100883         * tests/test-round2.c: New file.
100884         * tests/test-roundf1.c: New file.
100885         * tests/test-roundf2.c: New file.
100886         * tests/test-roundl.c: New file.
100887         * doc/functions/round.texi: Mention round module.
100888         * doc/functions/roundf.texi: Mention roundf module.
100889         * doc/functions/roundl.texi: Mention roundl module.
100890         * MODULES.html.sh: Mention new modules.
100891         Thanks to Bruno Haible for suggestions.
100893 2007-10-20  Jim Meyering  <meyering@redhat.com>
100895         * lib/xprintf.c: Include <config.h> unconditionally.
100897         Change xprintf's license to GPL.
100898         * modules/xprintf (License): s/LGPL/GPL/, since this module
100899         depends on modules (exit and exitfail) which are GPL.
100900         Suggestion from Bruno Haible.
100902         xprintf fixes.
100903         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
100904         Use a clearer diagnostic.
100905         Patch from Bruno Haible.
100907 2007-10-20  Bruno Haible  <bruno@clisp.org>
100909         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
100910         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
100911         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100913 2007-10-20  Bruno Haible  <bruno@clisp.org>
100915         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
100916         precision in the comparison result > x - 1 or similar.
100917         * tests/test-ceilf2.c (correct_result_p): Likewise.
100918         * tests/test-truncf2.c (correct_result_p): Likewise.
100919         * tests/test-trunc2.c (correct_result_p): Likewise.
100920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100922 2007-10-20  Bruno Haible  <bruno@clisp.org>
100924         * modules/ceil: New file.
100925         * m4/ceil.m4: New file.
100926         * doc/functions/ceil.texi: Mention the 'ceil' module.
100928 2007-10-20  Bruno Haible  <bruno@clisp.org>
100930         * modules/floor: New file.
100931         * m4/floor.m4: New file.
100932         * doc/functions/floor.texi: Mention the 'floor' module.
100934 2007-10-20  Bruno Haible  <bruno@clisp.org>
100936         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
100937         of %a.
100938         * modules/floorf-tests (Depends-on): Likewise.
100939         * modules/truncf-tests (Depends-on): Likewise.
100940         * modules/trunc-tests (Depends-on): Likewise.
100941         Reported by Ben Pfaff.
100943 2007-10-19  Jim Meyering  <meyering@redhat.com>
100945         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
100946         Don't bother testing specific errno values.  Just test ferror.
100948         New module: xprintf
100949         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
100951 2007-10-19  Bruno Haible  <bruno@clisp.org>
100953         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
100954         syntax.
100955         * modules/javaexec (Makefile.am): Likewise.
100956         * modules/relocatable-prog (Makefile.am): Likewise.
100957         Suggested by Jim Meyering.
100959 2007-10-18  Bruno Haible  <bruno@clisp.org>
100961         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
100962         Reported by Jim Meyering.
100964 2007-10-18  Eric Blake  <ebb9@byu.net>
100966         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
100968 2007-10-18  Bruno Haible  <bruno@clisp.org>
100970         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
100971         the format string into writable memory. Needed in Fortify conditions.
100973 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
100974             Bruno Haible  <bruno@clisp.org>
100976         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
100977         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
100978         * modules/trim (Depends-on): Add mbchar.
100979         (configure.ac): Add gl_FUNC_MBRTOWC.
100980         (Makefile.am): Augment lib_SOURCES.
100982 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100984         Modify glob.c to use fstatat and dirfd, to simplify it.
100985         Suggested by Eric Blake.
100986         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
100987         Don't include <stdbool.h>; not used.
100988         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
100989         (link_exists_p): Simplify implementation, since we can now assume
100990         dirfd and fstatat.
100991         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
100993 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100995         * gnulib-tool (func_get_dependencies): Fix sed script to
100996         match only tests.
100998 2007-10-17  Bruno Haible  <bruno@clisp.org>
101000         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
101001         allow locale names without encoding suffix.
101002         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
101003         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
101005 2007-10-16  Bruno Haible  <bruno@clisp.org>
101007         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
101008         * lib/getgroups.c (getgroups): Likewise.
101009         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
101011 2007-10-16  Bruno Haible  <bruno@clisp.org>
101013         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
101014         * modules/malloc-posix (License): Likewise.
101015         * modules/realloc-posix (License): Likewise.
101016         * modules/calloc-posix (License): Likewise.
101017         * modules/intprops (License): Change from GPL to LGPL, with
101018         Paul Eggert's approval.
101020 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
101022         Merge glibc changes into lib/glob.c.
101024         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
101025         2007-10-15 04:59:03 UTC.  Here are the changes:
101027         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
101029         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
101031         * lib/glob.c: Add some branch prediction throughout.
101033         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
101035         [BZ #5103]
101036         * lib/glob.c (glob): Recognize patterns starting \/.
101038         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
101040         [BZ #3996]
101041         * lib/glob.c (attribute_hidden): Define if not defined.
101042         (glob): Unescape dirname, filename or username when needed and not
101043         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
101044         is NULL.  Handle unescaped [ in pattern without closing ].
101045         Don't pass GLOB_CHECK down to recursive glob for directories.
101046         (__glob_pattern_type): New function.
101047         (__glob_pattern_p): Implement using __glob_pattern_type.
101048         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
101049         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
101050         Remove unreachable code.
101052         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
101054         * lib/glob.c (glob_in_dir): Add some comments and asserts to
101055         explain why there are no leaks.
101057         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
101059         [BZ #3253]
101060         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
101061         time, rather allocate increasingly bigger arrays of pointers, if
101062         possible with alloca, if too large with malloc.
101064 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
101066         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
101067         Problem reported by H.Merijn Brand in
101068         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
101069         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
101070         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
101072 2007-10-15  Bruno Haible  <bruno@clisp.org>
101074         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
101075         with explicit rpl_ prefix.
101076         * lib/fopen.c (fopen): Likewise.
101077         * lib/freopen.c (freopen): Likewise.
101078         * lib/iconv.c (iconv): Likewise.
101079         * lib/iconv_close.c (iconv_close): Likewise.
101081 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101083         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
101085 2007-10-15  Bruno Haible  <bruno@clisp.org>
101087         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
101088         <stddef.h> instead of <stdlib.h> since we only need NULL.
101089         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101091 2007-10-15  Bruno Haible  <bruno@clisp.org>
101093         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
101094         Replace paragraph talking about LIBOBJS.
101095         Reported by Colin Watson <cjwatson@debian.org>.
101097 2007-10-15  Bruno Haible  <bruno@clisp.org>
101099         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
101100         <stdlib.h> before using NULL.
101102 2007-10-15  Simon Josefsson  <simon@josefsson.org>
101104         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
101105         Reported by Albert Chin <china@thewrittenword.com>.
101107 2007-10-14  Bruno Haible  <bruno@clisp.org>
101109         * modules/iconv_open-utf-tests: New file.
101110         * tests/test-iconv-utf.c: New file.
101112         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
101113         * modules/iconv_open-utf: New file.
101114         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
101115         (iconv, iconv_close): New declarations.
101116         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
101117         be defined.
101118         (iconv_open): Add special handling of conversion between UTF-8 and
101119         UTF-{16,32}{BE,LE}.
101120         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
101121         * lib/iconv_close.c: New file.
101122         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
101123         gl_FUNC_ICONV_OPEN.
101124         (gl_FUNC_ICONV_OPEN): Use it.
101125         (gl_FUNC_ICONV_OPEN_UTF): New macro.
101126         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
101127         and REPLACE_ICONV_UTF.
101128         * modules/iconv_open (Depends-on): Add c-strcase.
101129         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
101130         ICONV_CONST.
101131         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
101133 2007-10-13  Albert Chin  <china@thewrittenword.com>
101134             Bruno Haible  <bruno@clisp.org>
101136         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
101137         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
101139 2007-10-13  Bruno Haible  <bruno@clisp.org>
101141         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
101142         defined, use the ISO C99 inline semantics.
101143         * lib/argp.h (ARGP_EI): Likewise.
101145 2007-10-13  Bruno Haible  <bruno@clisp.org>
101147         Handle 'inline' change in gcc 4.3.0.
101148         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
101149         argp_fmtstream_write, argp_fmtstream_set_lmargin,
101150         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
101151         argp_fmtstream_point): Disable 'extern' declaration if the function
101152         definition is going to be provided inline.
101153         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
101154         semantics, not the ISO C99 inline semantics.
101155         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
101156         'extern' declaration if the function definition is going to be provided
101157         inline.
101158         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
101159         the GNU C inline semantics, not the ISO C99 inline semantics. With
101160         GCC 4.2, avoid a warning.
101162 2007-10-13  Bruno Haible  <bruno@clisp.org>
101164         * lib/freading.h (freading): Enable the use of __freading for
101165         glibc >= 2.7.
101166         * lib/freading.c (freading): Likewise.
101168 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
101170         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
101171         "warning: C99 inline functions are not supported; using GNU89".
101173 2007-10-12  Bruno Haible  <bruno@clisp.org>
101175         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
101176         of 2.
101177         * tests/test-ceilf2.c: New file.
101178         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
101180         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
101181         * modules/ceilf-tests: Update.
101183 2007-10-12  Bruno Haible  <bruno@clisp.org>
101185         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
101186         of 2.
101187         * tests/test-floorf2.c: New file.
101188         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
101190         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
101191         * modules/floorf-tests: Update.
101193 2007-10-12  Bruno Haible  <bruno@clisp.org>
101195         * tests/test-trunc2.c: New file.
101196         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
101198         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
101199         * modules/trunc-tests: Update.
101201 2007-10-12  Bruno Haible  <bruno@clisp.org>
101203         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
101204         of 2.
101205         * tests/test-truncf2.c: New file.
101206         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
101208         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
101209         * modules/truncf-tests: Update.
101211 2007-10-11  Eric Blake  <ebb9@byu.net>
101213         Don't claim strerror is broken on Interix.
101214         * doc/functions/strerror.texi (strerror): Known broken systems are
101215         now Solaris 8, and not Interix.
101216         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
101217         Interix on cross-compile.
101218         Reported by Martin Koeppe in
101219         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
101221 2007-10-11  Bruno Haible  <bruno@clisp.org>
101223         * modules/i-ring-tests: New file.
101224         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
101225         instead of assert.
101227 2007-10-11  Bruno Haible  <bruno@clisp.org>
101229         * modules/filenamecat-tests: New file.
101230         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
101231         * lib/filenamecat.c: Remove test code.
101233 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
101235         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
101237         * lib/strerror.c: Include <string.h> always, to test interface,
101238         and to remove the need for the dummy.
101239         Include intprops.h to compute width instead of doing it ourselves
101240         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
101241         (strerror): Define it to return NULL if there's no system strerror.
101242         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
101243         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
101244         ancient pre-strerror Unix systems well any more.  Saying "unknown
101245         system error" is enough.
101246         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
101247         simpler strerror.c implementation.
101248         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
101249         Simplify the tests to reflect the simpler strerror implementation.
101250         * modules/strerror (Depends-on): Add intprops.
101252 2007-10-09  Eric Blake  <ebb9@byu.net>
101254         Silence test-fpending.
101255         * modules/fpending-tests (Files): Add wrapper script.
101256         * tests/test-fpending.sh: New file.
101258 2007-10-09  Bruno Haible  <bruno@clisp.org>
101260         * MODULES.html.sh (func_module): Don't create a hyperlink for
101261         function names like 'printf_frexp'.
101262         (Misc): Add crc, memxor.
101263         (Characteristics of floating types): New section.
101264         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
101265         isnanf-nolibm, signbit, trunc, truncf, truncl.
101266         (Enhancements for ISO C 99 functions): New subsection Input/output.
101267         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
101268         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
101269         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
101270         (Compatibility checks for POSIX:2001 functions): Add clock-time.
101271         (Enhancements for POSIX:2001 functions): Add chdir-long.
101272         (File system functions): Add areadlink, chdir-safer, read-file.
101273         Remove cycle-check.
101274         (File system as inode set): New section.
101275         (Date and time): Add gethrxtime.
101276         (Multithreading): Add openmp.
101277         (Internationalization functions): Add localename.
101278         (Unicode string functions): Add unistr/u*-mbsnlen.
101279         (Support for maintaining and releasing projects): Add git-version-gen.
101280         (Lone files): Remove directories.
101282 2007-10-08  Ben Pfaff  <blp@gnu.org>
101284         * lib/xmalloca.h: Fix typo in comment.
101286 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
101288         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
101289         when avoiding problems with integer overflow.  Use a portable test
101290         instead.
101292 2007-10-08  Simon Josefsson  <simon@josefsson.org>
101294         * modules/dummy (License): Change to LGPLv2+.
101295         * modules/float (License): Likewise
101296         * modules/realloc (License): Likewise
101297         * modules/stdlib (License): Likewise
101299 2007-10-07  Bruno Haible  <bruno@clisp.org>
101301         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
101302         * floor.c (TWO_MANT_DIG): Likewise.
101303         * ceil.c (TWO_MANT_DIG): Likewise.
101304         Reported by Ben Pfaff.
101306 2007-10-07  Bruno Haible  <bruno@clisp.org>
101308         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
101309         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
101310         * lib/frexp.c (FUNC): Likewise.
101311         * lib/printf-frexp.h (printf_frexp): Likewise.
101312         * lib/printf-frexpl.h (printf_frexpl): Likewise.
101313         * lib/printf-frexp.c (FUNC): Likewise.
101314         Suggested by Jim Meyering.
101316 2007-10-07  Jim Meyering  <meyering@redhat.com>
101318         Make xnanosleep's integer overflow test more robust.
101319         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
101320         so that gcc-4.3.0 doesn't optimize away this test for overflow.
101322 2007-10-07  Bruno Haible  <bruno@clisp.org>
101324         * NEWS: Mention the license change.
101326         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
101327         abbreviations in the modules files.
101329         Change copyright notice from GPLv2+ to GPLv3+.
101330         * README: Change copyright notice.
101331         * MODULES.html.sh: Likewise.
101332         * build-aux/bootstrap.conf: Likewise.
101333         * build-aux/config.libpath: Likewise.
101334         * build-aux/csharpcomp.sh.in: Likewise.
101335         * build-aux/csharpexec.sh.in: Likewise.
101336         * build-aux/install-reloc: Likewise.
101337         * build-aux/javacomp.sh.in: Likewise.
101338         * build-aux/javaexec.sh.in: Likewise.
101339         * build-aux/ldd.sh.in: Likewise.
101340         * build-aux/reloc-ldflags: Likewise.
101341         * build-aux/relocatable.sh.in: Likewise.
101342         * build-aux/x-to-1.in: Likewise.
101343         * check-module: Likewise.
101344         * config/srclistvars.sh: Likewise.
101345         * gnulib-tool: Likewise.
101346         * lib/acl-internal.h: Likewise.
101347         * lib/acl.c: Likewise.
101348         * lib/acl.h: Likewise.
101349         * lib/acl_entries.c: Likewise.
101350         * lib/areadlink-with-size.c: Likewise.
101351         * lib/areadlink.c: Likewise.
101352         * lib/areadlink.h: Likewise.
101353         * lib/argmatch.c: Likewise.
101354         * lib/argmatch.h: Likewise.
101355         * lib/argp-ba.c: Likewise.
101356         * lib/argp-eexst.c: Likewise.
101357         * lib/argp-fmtstream.c: Likewise.
101358         * lib/argp-fmtstream.h: Likewise.
101359         * lib/argp-fs-xinl.c: Likewise.
101360         * lib/argp-help.c: Likewise.
101361         * lib/argp-namefrob.h: Likewise.
101362         * lib/argp-parse.c: Likewise.
101363         * lib/argp-pin.c: Likewise.
101364         * lib/argp-pv.c: Likewise.
101365         * lib/argp-pvh.c: Likewise.
101366         * lib/argp-xinl.c: Likewise.
101367         * lib/argp.h: Likewise.
101368         * lib/at-func.c: Likewise.
101369         * lib/atanl.c: Likewise.
101370         * lib/backupfile.c: Likewise.
101371         * lib/backupfile.h: Likewise.
101372         * lib/basename.c: Likewise.
101373         * lib/binary-io.h: Likewise.
101374         * lib/byteswap.in.h: Likewise.
101375         * lib/c-stack.c: Likewise.
101376         * lib/c-stack.h: Likewise.
101377         * lib/c-strcasestr.c: Likewise.
101378         * lib/c-strcasestr.h: Likewise.
101379         * lib/c-strstr.c: Likewise.
101380         * lib/c-strstr.h: Likewise.
101381         * lib/c-strtod.c: Likewise.
101382         * lib/calloc.c: Likewise.
101383         * lib/canon-host.c: Likewise.
101384         * lib/canon-host.h: Likewise.
101385         * lib/canonicalize-lgpl.c: Likewise.
101386         * lib/canonicalize.c: Likewise.
101387         * lib/canonicalize.h: Likewise.
101388         * lib/ceil.c: Likewise.
101389         * lib/ceilf.c: Likewise.
101390         * lib/ceill.c: Likewise.
101391         * lib/chdir-long.c: Likewise.
101392         * lib/chdir-long.h: Likewise.
101393         * lib/chdir-safer.c: Likewise.
101394         * lib/chdir-safer.h: Likewise.
101395         * lib/chown.c: Likewise.
101396         * lib/classpath.c: Likewise.
101397         * lib/classpath.h: Likewise.
101398         * lib/clean-temp.c: Likewise.
101399         * lib/clean-temp.h: Likewise.
101400         * lib/cloexec.c: Likewise.
101401         * lib/close-stream.c: Likewise.
101402         * lib/closein.c: Likewise.
101403         * lib/closein.h: Likewise.
101404         * lib/closeout.c: Likewise.
101405         * lib/closeout.h: Likewise.
101406         * lib/concat-filename.c: Likewise.
101407         * lib/copy-file.c: Likewise.
101408         * lib/copy-file.h: Likewise.
101409         * lib/count-one-bits.h: Likewise.
101410         * lib/crc.c: Likewise.
101411         * lib/crc.h: Likewise.
101412         * lib/creat-safer.c: Likewise.
101413         * lib/csharpcomp.c: Likewise.
101414         * lib/csharpcomp.h: Likewise.
101415         * lib/csharpexec.c: Likewise.
101416         * lib/csharpexec.h: Likewise.
101417         * lib/cycle-check.c: Likewise.
101418         * lib/cycle-check.h: Likewise.
101419         * lib/diacrit.c: Likewise.
101420         * lib/diacrit.h: Likewise.
101421         * lib/diffseq.h: Likewise.
101422         * lib/dirchownmod.c: Likewise.
101423         * lib/dirent.in.h: Likewise.
101424         * lib/dirfd.c: Likewise.
101425         * lib/dirfd.h: Likewise.
101426         * lib/dirname.c: Likewise.
101427         * lib/dirname.h: Likewise.
101428         * lib/dummy.c: Likewise.
101429         * lib/dup-safer.c: Likewise.
101430         * lib/dup2.c: Likewise.
101431         * lib/eealloc.h: Likewise.
101432         * lib/error.c: Likewise.
101433         * lib/error.h: Likewise.
101434         * lib/euidaccess.c: Likewise.
101435         * lib/exclude.c: Likewise.
101436         * lib/exclude.h: Likewise.
101437         * lib/execute.c: Likewise.
101438         * lib/execute.h: Likewise.
101439         * lib/exitfail.c: Likewise.
101440         * lib/exitfail.h: Likewise.
101441         * lib/expl.c: Likewise.
101442         * lib/fatal-signal.c: Likewise.
101443         * lib/fatal-signal.h: Likewise.
101444         * lib/fbufmode.c: Likewise.
101445         * lib/fbufmode.h: Likewise.
101446         * lib/fchdir.c: Likewise.
101447         * lib/fchmodat.c: Likewise.
101448         * lib/fchownat.c: Likewise.
101449         * lib/fcntl--.h: Likewise.
101450         * lib/fcntl-safer.h: Likewise.
101451         * lib/fcntl.in.h: Likewise.
101452         * lib/fd-safer.c: Likewise.
101453         * lib/fflush.c: Likewise.
101454         * lib/file-has-acl.c: Likewise.
101455         * lib/file-set.c: Likewise.
101456         * lib/file-type.c: Likewise.
101457         * lib/file-type.h: Likewise.
101458         * lib/fileblocks.c: Likewise.
101459         * lib/filemode.c: Likewise.
101460         * lib/filemode.h: Likewise.
101461         * lib/filename.h: Likewise.
101462         * lib/filenamecat.c: Likewise.
101463         * lib/filenamecat.h: Likewise.
101464         * lib/findprog.c: Likewise.
101465         * lib/findprog.h: Likewise.
101466         * lib/float.in.h: Likewise.
101467         * lib/floor.c: Likewise.
101468         * lib/floorf.c: Likewise.
101469         * lib/floorl.c: Likewise.
101470         * lib/fopen-safer.c: Likewise.
101471         * lib/fopen.c: Likewise.
101472         * lib/fpending.c: Likewise.
101473         * lib/fpending.h: Likewise.
101474         * lib/fprintf.c: Likewise.
101475         * lib/fprintftime.h: Likewise.
101476         * lib/fpucw.h: Likewise.
101477         * lib/fpurge.c: Likewise.
101478         * lib/fpurge.h: Likewise.
101479         * lib/freadable.c: Likewise.
101480         * lib/freadable.h: Likewise.
101481         * lib/freadahead.c: Likewise.
101482         * lib/freadahead.h: Likewise.
101483         * lib/freading.c: Likewise.
101484         * lib/freading.h: Likewise.
101485         * lib/free.c: Likewise.
101486         * lib/freopen.c: Likewise.
101487         * lib/frexp.c: Likewise.
101488         * lib/frexpl.c: Likewise.
101489         * lib/fseek.c: Likewise.
101490         * lib/fseterr.c: Likewise.
101491         * lib/fseterr.h: Likewise.
101492         * lib/fstatat.c: Likewise.
101493         * lib/fstrcmp.c: Likewise.
101494         * lib/fstrcmp.h: Likewise.
101495         * lib/fsusage.c: Likewise.
101496         * lib/fsusage.h: Likewise.
101497         * lib/ftell.c: Likewise.
101498         * lib/ftello.c: Likewise.
101499         * lib/fts-cycle.c: Likewise.
101500         * lib/fts.c: Likewise.
101501         * lib/fts_.h: Likewise.
101502         * lib/full-read.c: Likewise.
101503         * lib/full-read.h: Likewise.
101504         * lib/full-write.c: Likewise.
101505         * lib/full-write.h: Likewise.
101506         * lib/fwritable.c: Likewise.
101507         * lib/fwritable.h: Likewise.
101508         * lib/fwriteerror.c: Likewise.
101509         * lib/fwriteerror.h: Likewise.
101510         * lib/fwriting.c: Likewise.
101511         * lib/fwriting.h: Likewise.
101512         * lib/gcd.c: Likewise.
101513         * lib/gcd.h: Likewise.
101514         * lib/getcwd.c: Likewise.
101515         * lib/getdate.h: Likewise.
101516         * lib/getdate.y: Likewise.
101517         * lib/getdomainname.c: Likewise.
101518         * lib/getdomainname.h: Likewise.
101519         * lib/getgroups.c: Likewise.
101520         * lib/gethostname.c: Likewise.
101521         * lib/gethrxtime.c: Likewise.
101522         * lib/gethrxtime.h: Likewise.
101523         * lib/getloadavg.c: Likewise.
101524         * lib/getndelim2.c: Likewise.
101525         * lib/getndelim2.h: Likewise.
101526         * lib/getnline.c: Likewise.
101527         * lib/getnline.h: Likewise.
101528         * lib/getopt.c: Likewise.
101529         * lib/getopt.in.h: Likewise.
101530         * lib/getopt1.c: Likewise.
101531         * lib/getopt_int.h: Likewise.
101532         * lib/getpagesize.h: Likewise.
101533         * lib/getsubopt.c: Likewise.
101534         * lib/gettime.c: Likewise.
101535         * lib/getugroups.c: Likewise.
101536         * lib/getugroups.h: Likewise.
101537         * lib/getusershell.c: Likewise.
101538         * lib/gl_anyavltree_list1.h: Likewise.
101539         * lib/gl_anyavltree_list2.h: Likewise.
101540         * lib/gl_anyhash_list1.h: Likewise.
101541         * lib/gl_anyhash_list2.h: Likewise.
101542         * lib/gl_anylinked_list1.h: Likewise.
101543         * lib/gl_anylinked_list2.h: Likewise.
101544         * lib/gl_anyrbtree_list1.h: Likewise.
101545         * lib/gl_anyrbtree_list2.h: Likewise.
101546         * lib/gl_anytree_list1.h: Likewise.
101547         * lib/gl_anytree_list2.h: Likewise.
101548         * lib/gl_anytree_oset.h: Likewise.
101549         * lib/gl_anytreehash_list1.h: Likewise.
101550         * lib/gl_anytreehash_list2.h: Likewise.
101551         * lib/gl_array_list.c: Likewise.
101552         * lib/gl_array_list.h: Likewise.
101553         * lib/gl_array_oset.c: Likewise.
101554         * lib/gl_array_oset.h: Likewise.
101555         * lib/gl_avltree_list.c: Likewise.
101556         * lib/gl_avltree_list.h: Likewise.
101557         * lib/gl_avltree_oset.c: Likewise.
101558         * lib/gl_avltree_oset.h: Likewise.
101559         * lib/gl_avltreehash_list.c: Likewise.
101560         * lib/gl_avltreehash_list.h: Likewise.
101561         * lib/gl_carray_list.c: Likewise.
101562         * lib/gl_carray_list.h: Likewise.
101563         * lib/gl_linked_list.c: Likewise.
101564         * lib/gl_linked_list.h: Likewise.
101565         * lib/gl_linkedhash_list.c: Likewise.
101566         * lib/gl_linkedhash_list.h: Likewise.
101567         * lib/gl_list.c: Likewise.
101568         * lib/gl_list.h: Likewise.
101569         * lib/gl_oset.c: Likewise.
101570         * lib/gl_oset.h: Likewise.
101571         * lib/gl_rbtree_list.c: Likewise.
101572         * lib/gl_rbtree_list.h: Likewise.
101573         * lib/gl_rbtree_oset.c: Likewise.
101574         * lib/gl_rbtree_oset.h: Likewise.
101575         * lib/gl_rbtreehash_list.c: Likewise.
101576         * lib/gl_rbtreehash_list.h: Likewise.
101577         * lib/gl_sublist.c: Likewise.
101578         * lib/gl_sublist.h: Likewise.
101579         * lib/group-member.c: Likewise.
101580         * lib/group-member.h: Likewise.
101581         * lib/hard-locale.c: Likewise.
101582         * lib/hard-locale.h: Likewise.
101583         * lib/hash-pjw.c: Likewise.
101584         * lib/hash-pjw.h: Likewise.
101585         * lib/hash-triple.c: Likewise.
101586         * lib/hash.c: Likewise.
101587         * lib/hash.h: Likewise.
101588         * lib/human.c: Likewise.
101589         * lib/human.h: Likewise.
101590         * lib/i-ring.c: Likewise.
101591         * lib/i-ring.h: Likewise.
101592         * lib/idcache.c: Likewise.
101593         * lib/imaxabs.c: Likewise.
101594         * lib/imaxdiv.c: Likewise.
101595         * lib/inet_pton.c: Likewise.
101596         * lib/inet_pton.h: Likewise.
101597         * lib/intprops.h: Likewise.
101598         * lib/inttostr.c: Likewise.
101599         * lib/inttostr.h: Likewise.
101600         * lib/inttypes.in.h: Likewise.
101601         * lib/isapipe.c: Likewise.
101602         * lib/isdir.c: Likewise.
101603         * lib/isnan.c: Likewise.
101604         * lib/isnan.h: Likewise.
101605         * lib/isnanf.c: Likewise.
101606         * lib/isnanf.h: Likewise.
101607         * lib/isnanl-nolibm.h: Likewise.
101608         * lib/isnanl.c: Likewise.
101609         * lib/isnanl.h: Likewise.
101610         * lib/javacomp.c: Likewise.
101611         * lib/javacomp.h: Likewise.
101612         * lib/javaexec.c: Likewise.
101613         * lib/javaexec.h: Likewise.
101614         * lib/javaversion.c: Likewise.
101615         * lib/javaversion.h: Likewise.
101616         * lib/javaversion.java: Likewise.
101617         * lib/lbrkprop.h: Likewise.
101618         * lib/lchmod.h: Likewise.
101619         * lib/lchown.c: Likewise.
101620         * lib/ldexpl.c: Likewise.
101621         * lib/linebreak.c: Likewise.
101622         * lib/linebreak.h: Likewise.
101623         * lib/linebuffer.c: Likewise.
101624         * lib/linebuffer.h: Likewise.
101625         * lib/locale.in.h: Likewise.
101626         * lib/logl.c: Likewise.
101627         * lib/long-options.c: Likewise.
101628         * lib/long-options.h: Likewise.
101629         * lib/lstat.c: Likewise.
101630         * lib/lstat.h: Likewise.
101631         * lib/math.in.h: Likewise.
101632         * lib/mbchar.c: Likewise.
101633         * lib/mbchar.h: Likewise.
101634         * lib/mbfile.h: Likewise.
101635         * lib/mbiter.h: Likewise.
101636         * lib/mbscasecmp.c: Likewise.
101637         * lib/mbscasestr.c: Likewise.
101638         * lib/mbschr.c: Likewise.
101639         * lib/mbscspn.c: Likewise.
101640         * lib/mbslen.c: Likewise.
101641         * lib/mbsncasecmp.c: Likewise.
101642         * lib/mbsnlen.c: Likewise.
101643         * lib/mbspbrk.c: Likewise.
101644         * lib/mbspcasecmp.c: Likewise.
101645         * lib/mbsrchr.c: Likewise.
101646         * lib/mbssep.c: Likewise.
101647         * lib/mbsspn.c: Likewise.
101648         * lib/mbsstr.c: Likewise.
101649         * lib/mbstok_r.c: Likewise.
101650         * lib/mbswidth.c: Likewise.
101651         * lib/mbswidth.h: Likewise.
101652         * lib/mbuiter.h: Likewise.
101653         * lib/memcasecmp.c: Likewise.
101654         * lib/memcasecmp.h: Likewise.
101655         * lib/memchr.c: Likewise.
101656         * lib/memcmp.c: Likewise.
101657         * lib/memcoll.c: Likewise.
101658         * lib/memcoll.h: Likewise.
101659         * lib/memcpy.c: Likewise.
101660         * lib/memrchr.c: Likewise.
101661         * lib/mkancesdirs.c: Likewise.
101662         * lib/mkdir-p.c: Likewise.
101663         * lib/mkdir-p.h: Likewise.
101664         * lib/mkdir.c: Likewise.
101665         * lib/mkdirat.c: Likewise.
101666         * lib/mkdtemp.c: Likewise.
101667         * lib/mkstemp-safer.c: Likewise.
101668         * lib/mkstemp.c: Likewise.
101669         * lib/modechange.c: Likewise.
101670         * lib/modechange.h: Likewise.
101671         * lib/mountlist.c: Likewise.
101672         * lib/mountlist.h: Likewise.
101673         * lib/mpsort.c: Likewise.
101674         * lib/nanosleep.c: Likewise.
101675         * lib/obstack.c: Likewise.
101676         * lib/obstack.h: Likewise.
101677         * lib/open-safer.c: Likewise.
101678         * lib/open.c: Likewise.
101679         * lib/openat-die.c: Likewise.
101680         * lib/openat-priv.h: Likewise.
101681         * lib/openat-proc.c: Likewise.
101682         * lib/openat.c: Likewise.
101683         * lib/openat.h: Likewise.
101684         * lib/pagealign_alloc.c: Likewise.
101685         * lib/pagealign_alloc.h: Likewise.
101686         * lib/physmem.c: Likewise.
101687         * lib/physmem.h: Likewise.
101688         * lib/pipe-safer.c: Likewise.
101689         * lib/pipe.c: Likewise.
101690         * lib/pipe.h: Likewise.
101691         * lib/posixtm.c: Likewise.
101692         * lib/posixtm.h: Likewise.
101693         * lib/posixver.c: Likewise.
101694         * lib/printf-frexp.c: Likewise.
101695         * lib/printf-frexp.h: Likewise.
101696         * lib/printf-frexpl.c: Likewise.
101697         * lib/printf-frexpl.h: Likewise.
101698         * lib/printf.c: Likewise.
101699         * lib/progname.c: Likewise.
101700         * lib/progname.h: Likewise.
101701         * lib/progreloc.c: Likewise.
101702         * lib/putenv.c: Likewise.
101703         * lib/quote.c: Likewise.
101704         * lib/quote.h: Likewise.
101705         * lib/quotearg.c: Likewise.
101706         * lib/quotearg.h: Likewise.
101707         * lib/raise.c: Likewise.
101708         * lib/readline.c: Likewise.
101709         * lib/readline.h: Likewise.
101710         * lib/readlink.c: Likewise.
101711         * lib/readtokens.c: Likewise.
101712         * lib/readtokens.h: Likewise.
101713         * lib/readtokens0.c: Likewise.
101714         * lib/readtokens0.h: Likewise.
101715         * lib/readutmp.c: Likewise.
101716         * lib/readutmp.h: Likewise.
101717         * lib/realloc.c: Likewise.
101718         * lib/relocwrapper.c: Likewise.
101719         * lib/rename-dest-slash.c: Likewise.
101720         * lib/rename.c: Likewise.
101721         * lib/rmdir.c: Likewise.
101722         * lib/rpmatch.c: Likewise.
101723         * lib/safe-read.c: Likewise.
101724         * lib/safe-read.h: Likewise.
101725         * lib/safe-write.c: Likewise.
101726         * lib/safe-write.h: Likewise.
101727         * lib/same-inode.h: Likewise.
101728         * lib/same.c: Likewise.
101729         * lib/same.h: Likewise.
101730         * lib/save-cwd.c: Likewise.
101731         * lib/save-cwd.h: Likewise.
101732         * lib/savedir.c: Likewise.
101733         * lib/savedir.h: Likewise.
101734         * lib/savewd.c: Likewise.
101735         * lib/savewd.h: Likewise.
101736         * lib/search.in.h: Likewise.
101737         * lib/setenv.c: Likewise.
101738         * lib/setenv.h: Likewise.
101739         * lib/settime.c: Likewise.
101740         * lib/sh-quote.c: Likewise.
101741         * lib/sh-quote.h: Likewise.
101742         * lib/sig2str.c: Likewise.
101743         * lib/sig2str.h: Likewise.
101744         * lib/signal.in.h: Likewise.
101745         * lib/signbitd.c: Likewise.
101746         * lib/signbitf.c: Likewise.
101747         * lib/signbitl.c: Likewise.
101748         * lib/sigprocmask.c: Likewise.
101749         * lib/sincosl.c: Likewise.
101750         * lib/sleep.c: Likewise.
101751         * lib/sprintf.c: Likewise.
101752         * lib/sqrtl.c: Likewise.
101753         * lib/stat-time.h: Likewise.
101754         * lib/stdio--.h: Likewise.
101755         * lib/stdio-safer.h: Likewise.
101756         * lib/stdlib--.h: Likewise.
101757         * lib/stdlib-safer.h: Likewise.
101758         * lib/stdlib.in.h: Likewise.
101759         * lib/stpcpy.c: Likewise.
101760         * lib/stpncpy.c: Likewise.
101761         * lib/strchrnul.c: Likewise.
101762         * lib/strcspn.c: Likewise.
101763         * lib/strerror.c: Likewise.
101764         * lib/strftime.c: Likewise.
101765         * lib/strftime.h: Likewise.
101766         * lib/striconveh.c: Likewise.
101767         * lib/striconveh.h: Likewise.
101768         * lib/striconveha.c: Likewise.
101769         * lib/striconveha.h: Likewise.
101770         * lib/stripslash.c: Likewise.
101771         * lib/strnlen1.c: Likewise.
101772         * lib/strnlen1.h: Likewise.
101773         * lib/strtod.c: Likewise.
101774         * lib/strtoimax.c: Likewise.
101775         * lib/strtok_r.c: Likewise.
101776         * lib/strtol.c: Likewise.
101777         * lib/strtoll.c: Likewise.
101778         * lib/strtoul.c: Likewise.
101779         * lib/strtoull.c: Likewise.
101780         * lib/sysexits.in.h: Likewise.
101781         * lib/tempname.c: Likewise.
101782         * lib/tempname.h: Likewise.
101783         * lib/timespec.h: Likewise.
101784         * lib/tls.c: Likewise.
101785         * lib/tls.h: Likewise.
101786         * lib/tmpdir.c: Likewise.
101787         * lib/tmpdir.h: Likewise.
101788         * lib/tmpfile-safer.c: Likewise.
101789         * lib/tmpfile.c: Likewise.
101790         * lib/trigl.c: Likewise.
101791         * lib/trigl.h: Likewise.
101792         * lib/trim.c: Likewise.
101793         * lib/trim.h: Likewise.
101794         * lib/trunc.c: Likewise.
101795         * lib/truncf.c: Likewise.
101796         * lib/truncl.c: Likewise.
101797         * lib/tsearch.c: Likewise.
101798         * lib/unicodeio.c: Likewise.
101799         * lib/unicodeio.h: Likewise.
101800         * lib/unistd--.h: Likewise.
101801         * lib/unistd-safer.h: Likewise.
101802         * lib/unistdio/ulc-fprintf.c: Likewise.
101803         * lib/unistdio/ulc-vfprintf.c: Likewise.
101804         * lib/unlinkdir.c: Likewise.
101805         * lib/unlinkdir.h: Likewise.
101806         * lib/unlocked-io.h: Likewise.
101807         * lib/unsetenv.c: Likewise.
101808         * lib/userspec.c: Likewise.
101809         * lib/utime.c: Likewise.
101810         * lib/utimecmp.c: Likewise.
101811         * lib/utimecmp.h: Likewise.
101812         * lib/utimens.c: Likewise.
101813         * lib/verify.h: Likewise.
101814         * lib/verror.c: Likewise.
101815         * lib/verror.h: Likewise.
101816         * lib/version-etc-fsf.c: Likewise.
101817         * lib/version-etc.c: Likewise.
101818         * lib/version-etc.h: Likewise.
101819         * lib/vfprintf.c: Likewise.
101820         * lib/vprintf.c: Likewise.
101821         * lib/vsprintf.c: Likewise.
101822         * lib/w32spawn.h: Likewise.
101823         * lib/wait-process.c: Likewise.
101824         * lib/wait-process.h: Likewise.
101825         * lib/wcwidth.c: Likewise.
101826         * lib/write-any-file.c: Likewise.
101827         * lib/xalloc-die.c: Likewise.
101828         * lib/xalloc.h: Likewise.
101829         * lib/xasprintf.c: Likewise.
101830         * lib/xgetcwd.c: Likewise.
101831         * lib/xgetcwd.h: Likewise.
101832         * lib/xgetdomainname.c: Likewise.
101833         * lib/xgetdomainname.h: Likewise.
101834         * lib/xgethostname.c: Likewise.
101835         * lib/xmalloc.c: Likewise.
101836         * lib/xmalloca.c: Likewise.
101837         * lib/xmalloca.h: Likewise.
101838         * lib/xmemcoll.c: Likewise.
101839         * lib/xnanosleep.c: Likewise.
101840         * lib/xreadlink.c: Likewise.
101841         * lib/xreadlink.h: Likewise.
101842         * lib/xsetenv.c: Likewise.
101843         * lib/xsetenv.h: Likewise.
101844         * lib/xstriconv.c: Likewise.
101845         * lib/xstriconv.h: Likewise.
101846         * lib/xstrndup.c: Likewise.
101847         * lib/xstrndup.h: Likewise.
101848         * lib/xstrtod.c: Likewise.
101849         * lib/xstrtod.h: Likewise.
101850         * lib/xstrtol-error.c: Likewise.
101851         * lib/xstrtol.c: Likewise.
101852         * lib/xstrtol.h: Likewise.
101853         * lib/xtime.h: Likewise.
101854         * lib/xvasprintf.c: Likewise.
101855         * lib/xvasprintf.h: Likewise.
101856         * lib/yesno.c: Likewise.
101857         * lib/yesno.h: Likewise.
101858         * posix-modules: Likewise.
101859         * tests/test-alloca-opt.c: Likewise.
101860         * tests/test-arcfour.c: Likewise.
101861         * tests/test-arctwo.c: Likewise.
101862         * tests/test-argmatch.c: Likewise.
101863         * tests/test-argp-2.sh: Likewise.
101864         * tests/test-argp.c: Likewise.
101865         * tests/test-arpa_inet.c: Likewise.
101866         * tests/test-array_list.c: Likewise.
101867         * tests/test-array_oset.c: Likewise.
101868         * tests/test-atexit.c: Likewise.
101869         * tests/test-avltree_list.c: Likewise.
101870         * tests/test-avltree_oset.c: Likewise.
101871         * tests/test-avltreehash_list.c: Likewise.
101872         * tests/test-base64.c: Likewise.
101873         * tests/test-binary-io.c: Likewise.
101874         * tests/test-byteswap.c: Likewise.
101875         * tests/test-c-ctype.c: Likewise.
101876         * tests/test-c-strcasecmp.c: Likewise.
101877         * tests/test-c-strcasestr.c: Likewise.
101878         * tests/test-c-strncasecmp.c: Likewise.
101879         * tests/test-c-strstr.c: Likewise.
101880         * tests/test-canonicalize-lgpl.c: Likewise.
101881         * tests/test-canonicalize.c: Likewise.
101882         * tests/test-carray_list.c: Likewise.
101883         * tests/test-ceilf.c: Likewise.
101884         * tests/test-ceill.c: Likewise.
101885         * tests/test-count-one-bits.c: Likewise.
101886         * tests/test-crc.c: Likewise.
101887         * tests/test-dirname.c: Likewise.
101888         * tests/test-fbufmode.c: Likewise.
101889         * tests/test-fcntl.c: Likewise.
101890         * tests/test-fflush.c: Likewise.
101891         * tests/test-floorf.c: Likewise.
101892         * tests/test-floorl.c: Likewise.
101893         * tests/test-fopen.c: Likewise.
101894         * tests/test-fprintf-posix.c: Likewise.
101895         * tests/test-fprintf-posix.h: Likewise.
101896         * tests/test-fpurge.c: Likewise.
101897         * tests/test-freadable.c: Likewise.
101898         * tests/test-freadahead.c: Likewise.
101899         * tests/test-freading.c: Likewise.
101900         * tests/test-freopen.c: Likewise.
101901         * tests/test-frexp.c: Likewise.
101902         * tests/test-frexpl.c: Likewise.
101903         * tests/test-fseek.c: Likewise.
101904         * tests/test-fseeko.c: Likewise.
101905         * tests/test-fseterr.c: Likewise.
101906         * tests/test-fstrcmp.c: Likewise.
101907         * tests/test-ftell.c: Likewise.
101908         * tests/test-ftello.c: Likewise.
101909         * tests/test-fwritable.c: Likewise.
101910         * tests/test-fwriting.c: Likewise.
101911         * tests/test-getaddrinfo.c: Likewise.
101912         * tests/test-getpass.c: Likewise.
101913         * tests/test-gettimeofday.c: Likewise.
101914         * tests/test-hmac-md5.c: Likewise.
101915         * tests/test-hmac-sha1.c: Likewise.
101916         * tests/test-iconv.c: Likewise.
101917         * tests/test-iconvme.c: Likewise.
101918         * tests/test-inttypes.c: Likewise.
101919         * tests/test-isnan.c: Likewise.
101920         * tests/test-isnanf.c: Likewise.
101921         * tests/test-isnanl-nolibm.c: Likewise.
101922         * tests/test-isnanl.c: Likewise.
101923         * tests/test-isnanl.h: Likewise.
101924         * tests/test-ldexpl.c: Likewise.
101925         * tests/test-linked_list.c: Likewise.
101926         * tests/test-linkedhash_list.c: Likewise.
101927         * tests/test-locale.c: Likewise.
101928         * tests/test-localename.c: Likewise.
101929         * tests/test-lock.c: Likewise.
101930         * tests/test-lseek.c: Likewise.
101931         * tests/test-malloca.c: Likewise.
101932         * tests/test-math.c: Likewise.
101933         * tests/test-mbscasecmp.c: Likewise.
101934         * tests/test-mbscasestr1.c: Likewise.
101935         * tests/test-mbscasestr2.c: Likewise.
101936         * tests/test-mbscasestr3.c: Likewise.
101937         * tests/test-mbscasestr4.c: Likewise.
101938         * tests/test-mbschr.c: Likewise.
101939         * tests/test-mbscspn.c: Likewise.
101940         * tests/test-mbsncasecmp.c: Likewise.
101941         * tests/test-mbspbrk.c: Likewise.
101942         * tests/test-mbspcasecmp.c: Likewise.
101943         * tests/test-mbsrchr.c: Likewise.
101944         * tests/test-mbsspn.c: Likewise.
101945         * tests/test-mbsstr1.c: Likewise.
101946         * tests/test-mbsstr2.c: Likewise.
101947         * tests/test-mbsstr3.c: Likewise.
101948         * tests/test-md5.c: Likewise.
101949         * tests/test-memmem.c: Likewise.
101950         * tests/test-netinet_in.c: Likewise.
101951         * tests/test-open.c: Likewise.
101952         * tests/test-printf-frexp.c: Likewise.
101953         * tests/test-printf-frexpl.c: Likewise.
101954         * tests/test-printf-posix.c: Likewise.
101955         * tests/test-printf-posix.h: Likewise.
101956         * tests/test-rbtree_list.c: Likewise.
101957         * tests/test-rbtree_oset.c: Likewise.
101958         * tests/test-rbtreehash_list.c: Likewise.
101959         * tests/test-read-file.c: Likewise.
101960         * tests/test-rijndael.c: Likewise.
101961         * tests/test-search.c: Likewise.
101962         * tests/test-signbit.c: Likewise.
101963         * tests/test-sleep.c: Likewise.
101964         * tests/test-snprintf-posix.c: Likewise.
101965         * tests/test-snprintf-posix.h: Likewise.
101966         * tests/test-snprintf.c: Likewise.
101967         * tests/test-sprintf-posix.c: Likewise.
101968         * tests/test-sprintf-posix.h: Likewise.
101969         * tests/test-stat-time.c: Likewise.
101970         * tests/test-stdbool.c: Likewise.
101971         * tests/test-stdint.c: Likewise.
101972         * tests/test-stdio.c: Likewise.
101973         * tests/test-stdlib.c: Likewise.
101974         * tests/test-stpncpy.c: Likewise.
101975         * tests/test-strcasestr.c: Likewise.
101976         * tests/test-striconv.c: Likewise.
101977         * tests/test-striconveh.c: Likewise.
101978         * tests/test-striconveha.c: Likewise.
101979         * tests/test-string.c: Likewise.
101980         * tests/test-sys_select.c: Likewise.
101981         * tests/test-sys_socket.c: Likewise.
101982         * tests/test-sys_stat.c: Likewise.
101983         * tests/test-sys_time.c: Likewise.
101984         * tests/test-sysexits.c: Likewise.
101985         * tests/test-time.c: Likewise.
101986         * tests/test-tls.c: Likewise.
101987         * tests/test-trunc.c: Likewise.
101988         * tests/test-truncf.c: Likewise.
101989         * tests/test-truncl.c: Likewise.
101990         * tests/test-unistd.c: Likewise.
101991         * tests/test-vasnprintf-posix.c: Likewise.
101992         * tests/test-vasnprintf-posix2.c: Likewise.
101993         * tests/test-vasnprintf.c: Likewise.
101994         * tests/test-vasprintf-posix.c: Likewise.
101995         * tests/test-vasprintf.c: Likewise.
101996         * tests/test-verify.c: Likewise.
101997         * tests/test-vfprintf-posix.c: Likewise.
101998         * tests/test-vprintf-posix.c: Likewise.
101999         * tests/test-vsnprintf-posix.c: Likewise.
102000         * tests/test-vsnprintf.c: Likewise.
102001         * tests/test-vsprintf-posix.c: Likewise.
102002         * tests/test-wchar.c: Likewise.
102003         * tests/test-wctype.c: Likewise.
102004         * tests/test-wcwidth.c: Likewise.
102005         * tests/test-xstrtol.c: Likewise.
102006         * tests/test-xvasprintf.c: Likewise.
102007         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
102008         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
102009         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
102010         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
102011         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
102012         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
102013         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
102014         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
102015         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
102016         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
102017         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
102018         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
102019         * tests/uniname/test-uninames.c: Likewise.
102020         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
102021         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
102022         * tests/unistdio/test-u16-printf1.h: Likewise.
102023         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
102024         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
102025         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
102026         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
102027         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
102028         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
102029         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
102030         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
102031         * tests/unistdio/test-u32-printf1.h: Likewise.
102032         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
102033         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
102034         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
102035         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
102036         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
102037         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
102038         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
102039         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
102040         * tests/unistdio/test-u8-printf1.h: Likewise.
102041         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
102042         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
102043         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
102044         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
102045         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
102046         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
102047         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
102048         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
102049         * tests/unistdio/test-ulc-printf1.h: Likewise.
102050         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
102051         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
102052         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
102053         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
102054         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
102055         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
102056         * tests/uniwidth/test-u16-strwidth.c: Likewise.
102057         * tests/uniwidth/test-u16-width.c: Likewise.
102058         * tests/uniwidth/test-u32-strwidth.c: Likewise.
102059         * tests/uniwidth/test-u32-width.c: Likewise.
102060         * tests/uniwidth/test-u8-strwidth.c: Likewise.
102061         * tests/uniwidth/test-u8-width.c: Likewise.
102062         * tests/uniwidth/test-uc_width.c: Likewise.
102063         * config/srclist-update: Likewise.
102064         (fixlicense): Update to GPLv3+.
102066         Change copyright notice from LGPLv2.1+ to LGPLv3+.
102067         * tests/test-tsearch.c: Change copyright notice.
102069         Change copyright notice from LGPLv2.0+ to LGPLv3+.
102070         * lib/c-strcaseeq.h: Change copyright notice.
102071         * lib/streq.h: Likewise.
102072         * lib/uniconv.h: Likewise.
102073         * lib/uniconv/u-conv-from-enc.h: Likewise.
102074         * lib/uniconv/u-conv-to-enc.h: Likewise.
102075         * lib/uniconv/u-strconv-from-enc.h: Likewise.
102076         * lib/uniconv/u-strconv-to-enc.h: Likewise.
102077         * lib/uniconv/u16-conv-from-enc.c: Likewise.
102078         * lib/uniconv/u16-conv-to-enc.c: Likewise.
102079         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
102080         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
102081         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
102082         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
102083         * lib/uniconv/u32-conv-from-enc.c: Likewise.
102084         * lib/uniconv/u32-conv-to-enc.c: Likewise.
102085         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
102086         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
102087         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
102088         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
102089         * lib/uniconv/u8-conv-from-enc.c: Likewise.
102090         * lib/uniconv/u8-conv-to-enc.c: Likewise.
102091         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
102092         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
102093         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
102094         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
102095         * lib/uniname.h: Likewise.
102096         * lib/uniname/uniname.c: Likewise.
102097         * lib/unistdio.h: Likewise.
102098         * lib/unistdio/u-asnprintf.h: Likewise.
102099         * lib/unistdio/u-asprintf.h: Likewise.
102100         * lib/unistdio/u-printf-args.c: Likewise.
102101         * lib/unistdio/u-printf-args.h: Likewise.
102102         * lib/unistdio/u-printf-parse.h: Likewise.
102103         * lib/unistdio/u-snprintf.h: Likewise.
102104         * lib/unistdio/u-sprintf.h: Likewise.
102105         * lib/unistdio/u-vasprintf.h: Likewise.
102106         * lib/unistdio/u-vsnprintf.h: Likewise.
102107         * lib/unistdio/u-vsprintf.h: Likewise.
102108         * lib/unistdio/u16-asnprintf.c: Likewise.
102109         * lib/unistdio/u16-asprintf.c: Likewise.
102110         * lib/unistdio/u16-printf-parse.c: Likewise.
102111         * lib/unistdio/u16-snprintf.c: Likewise.
102112         * lib/unistdio/u16-sprintf.c: Likewise.
102113         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
102114         * lib/unistdio/u16-u16-asprintf.c: Likewise.
102115         * lib/unistdio/u16-u16-snprintf.c: Likewise.
102116         * lib/unistdio/u16-u16-sprintf.c: Likewise.
102117         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
102118         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
102119         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
102120         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
102121         * lib/unistdio/u16-vasnprintf.c: Likewise.
102122         * lib/unistdio/u16-vasprintf.c: Likewise.
102123         * lib/unistdio/u16-vsnprintf.c: Likewise.
102124         * lib/unistdio/u16-vsprintf.c: Likewise.
102125         * lib/unistdio/u32-asnprintf.c: Likewise.
102126         * lib/unistdio/u32-asprintf.c: Likewise.
102127         * lib/unistdio/u32-printf-parse.c: Likewise.
102128         * lib/unistdio/u32-snprintf.c: Likewise.
102129         * lib/unistdio/u32-sprintf.c: Likewise.
102130         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
102131         * lib/unistdio/u32-u32-asprintf.c: Likewise.
102132         * lib/unistdio/u32-u32-snprintf.c: Likewise.
102133         * lib/unistdio/u32-u32-sprintf.c: Likewise.
102134         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
102135         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
102136         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
102137         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
102138         * lib/unistdio/u32-vasnprintf.c: Likewise.
102139         * lib/unistdio/u32-vasprintf.c: Likewise.
102140         * lib/unistdio/u32-vsnprintf.c: Likewise.
102141         * lib/unistdio/u32-vsprintf.c: Likewise.
102142         * lib/unistdio/u8-asnprintf.c: Likewise.
102143         * lib/unistdio/u8-asprintf.c: Likewise.
102144         * lib/unistdio/u8-printf-parse.c: Likewise.
102145         * lib/unistdio/u8-snprintf.c: Likewise.
102146         * lib/unistdio/u8-sprintf.c: Likewise.
102147         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
102148         * lib/unistdio/u8-u8-asprintf.c: Likewise.
102149         * lib/unistdio/u8-u8-snprintf.c: Likewise.
102150         * lib/unistdio/u8-u8-sprintf.c: Likewise.
102151         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
102152         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
102153         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
102154         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
102155         * lib/unistdio/u8-vasnprintf.c: Likewise.
102156         * lib/unistdio/u8-vasprintf.c: Likewise.
102157         * lib/unistdio/u8-vsnprintf.c: Likewise.
102158         * lib/unistdio/u8-vsprintf.c: Likewise.
102159         * lib/unistdio/ulc-asnprintf.c: Likewise.
102160         * lib/unistdio/ulc-asprintf.c: Likewise.
102161         * lib/unistdio/ulc-printf-parse.c: Likewise.
102162         * lib/unistdio/ulc-snprintf.c: Likewise.
102163         * lib/unistdio/ulc-sprintf.c: Likewise.
102164         * lib/unistdio/ulc-vasnprintf.c: Likewise.
102165         * lib/unistdio/ulc-vasprintf.c: Likewise.
102166         * lib/unistdio/ulc-vsnprintf.c: Likewise.
102167         * lib/unistdio/ulc-vsprintf.c: Likewise.
102168         * lib/unistr.h: Likewise.
102169         * lib/unistr/u-cpy-alloc.h: Likewise.
102170         * lib/unistr/u-cpy.h: Likewise.
102171         * lib/unistr/u-endswith.h: Likewise.
102172         * lib/unistr/u-move.h: Likewise.
102173         * lib/unistr/u-set.h: Likewise.
102174         * lib/unistr/u-startswith.h: Likewise.
102175         * lib/unistr/u-stpcpy.h: Likewise.
102176         * lib/unistr/u-stpncpy.h: Likewise.
102177         * lib/unistr/u-strcat.h: Likewise.
102178         * lib/unistr/u-strcpy.h: Likewise.
102179         * lib/unistr/u-strcspn.h: Likewise.
102180         * lib/unistr/u-strdup.h: Likewise.
102181         * lib/unistr/u-strlen.h: Likewise.
102182         * lib/unistr/u-strncat.h: Likewise.
102183         * lib/unistr/u-strncpy.h: Likewise.
102184         * lib/unistr/u-strnlen.h: Likewise.
102185         * lib/unistr/u-strpbrk.h: Likewise.
102186         * lib/unistr/u-strspn.h: Likewise.
102187         * lib/unistr/u-strstr.h: Likewise.
102188         * lib/unistr/u-strtok.h: Likewise.
102189         * lib/unistr/u16-check.c: Likewise.
102190         * lib/unistr/u16-chr.c: Likewise.
102191         * lib/unistr/u16-cmp.c: Likewise.
102192         * lib/unistr/u16-cpy-alloc.c: Likewise.
102193         * lib/unistr/u16-cpy.c: Likewise.
102194         * lib/unistr/u16-endswith.c: Likewise.
102195         * lib/unistr/u16-mblen.c: Likewise.
102196         * lib/unistr/u16-mbsnlen.c: Likewise.
102197         * lib/unistr/u16-mbtouc-aux.c: Likewise.
102198         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
102199         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
102200         * lib/unistr/u16-mbtouc.c: Likewise.
102201         * lib/unistr/u16-mbtoucr.c: Likewise.
102202         * lib/unistr/u16-move.c: Likewise.
102203         * lib/unistr/u16-next.c: Likewise.
102204         * lib/unistr/u16-prev.c: Likewise.
102205         * lib/unistr/u16-set.c: Likewise.
102206         * lib/unistr/u16-startswith.c: Likewise.
102207         * lib/unistr/u16-stpcpy.c: Likewise.
102208         * lib/unistr/u16-stpncpy.c: Likewise.
102209         * lib/unistr/u16-strcat.c: Likewise.
102210         * lib/unistr/u16-strchr.c: Likewise.
102211         * lib/unistr/u16-strcmp.c: Likewise.
102212         * lib/unistr/u16-strcpy.c: Likewise.
102213         * lib/unistr/u16-strcspn.c: Likewise.
102214         * lib/unistr/u16-strdup.c: Likewise.
102215         * lib/unistr/u16-strlen.c: Likewise.
102216         * lib/unistr/u16-strmblen.c: Likewise.
102217         * lib/unistr/u16-strmbtouc.c: Likewise.
102218         * lib/unistr/u16-strncat.c: Likewise.
102219         * lib/unistr/u16-strncmp.c: Likewise.
102220         * lib/unistr/u16-strncpy.c: Likewise.
102221         * lib/unistr/u16-strnlen.c: Likewise.
102222         * lib/unistr/u16-strpbrk.c: Likewise.
102223         * lib/unistr/u16-strrchr.c: Likewise.
102224         * lib/unistr/u16-strspn.c: Likewise.
102225         * lib/unistr/u16-strstr.c: Likewise.
102226         * lib/unistr/u16-strtok.c: Likewise.
102227         * lib/unistr/u16-to-u32.c: Likewise.
102228         * lib/unistr/u16-to-u8.c: Likewise.
102229         * lib/unistr/u16-uctomb-aux.c: Likewise.
102230         * lib/unistr/u16-uctomb.c: Likewise.
102231         * lib/unistr/u32-check.c: Likewise.
102232         * lib/unistr/u32-chr.c: Likewise.
102233         * lib/unistr/u32-cmp.c: Likewise.
102234         * lib/unistr/u32-cpy-alloc.c: Likewise.
102235         * lib/unistr/u32-cpy.c: Likewise.
102236         * lib/unistr/u32-endswith.c: Likewise.
102237         * lib/unistr/u32-mblen.c: Likewise.
102238         * lib/unistr/u32-mbsnlen.c: Likewise.
102239         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
102240         * lib/unistr/u32-mbtouc.c: Likewise.
102241         * lib/unistr/u32-mbtoucr.c: Likewise.
102242         * lib/unistr/u32-move.c: Likewise.
102243         * lib/unistr/u32-next.c: Likewise.
102244         * lib/unistr/u32-prev.c: Likewise.
102245         * lib/unistr/u32-set.c: Likewise.
102246         * lib/unistr/u32-startswith.c: Likewise.
102247         * lib/unistr/u32-stpcpy.c: Likewise.
102248         * lib/unistr/u32-stpncpy.c: Likewise.
102249         * lib/unistr/u32-strcat.c: Likewise.
102250         * lib/unistr/u32-strchr.c: Likewise.
102251         * lib/unistr/u32-strcmp.c: Likewise.
102252         * lib/unistr/u32-strcpy.c: Likewise.
102253         * lib/unistr/u32-strcspn.c: Likewise.
102254         * lib/unistr/u32-strdup.c: Likewise.
102255         * lib/unistr/u32-strlen.c: Likewise.
102256         * lib/unistr/u32-strmblen.c: Likewise.
102257         * lib/unistr/u32-strmbtouc.c: Likewise.
102258         * lib/unistr/u32-strncat.c: Likewise.
102259         * lib/unistr/u32-strncmp.c: Likewise.
102260         * lib/unistr/u32-strncpy.c: Likewise.
102261         * lib/unistr/u32-strnlen.c: Likewise.
102262         * lib/unistr/u32-strpbrk.c: Likewise.
102263         * lib/unistr/u32-strrchr.c: Likewise.
102264         * lib/unistr/u32-strspn.c: Likewise.
102265         * lib/unistr/u32-strstr.c: Likewise.
102266         * lib/unistr/u32-strtok.c: Likewise.
102267         * lib/unistr/u32-to-u16.c: Likewise.
102268         * lib/unistr/u32-to-u8.c: Likewise.
102269         * lib/unistr/u32-uctomb.c: Likewise.
102270         * lib/unistr/u8-check.c: Likewise.
102271         * lib/unistr/u8-chr.c: Likewise.
102272         * lib/unistr/u8-cmp.c: Likewise.
102273         * lib/unistr/u8-cpy-alloc.c: Likewise.
102274         * lib/unistr/u8-cpy.c: Likewise.
102275         * lib/unistr/u8-endswith.c: Likewise.
102276         * lib/unistr/u8-mblen.c: Likewise.
102277         * lib/unistr/u8-mbsnlen.c: Likewise.
102278         * lib/unistr/u8-mbtouc-aux.c: Likewise.
102279         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
102280         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
102281         * lib/unistr/u8-mbtouc.c: Likewise.
102282         * lib/unistr/u8-mbtoucr.c: Likewise.
102283         * lib/unistr/u8-move.c: Likewise.
102284         * lib/unistr/u8-next.c: Likewise.
102285         * lib/unistr/u8-prev.c: Likewise.
102286         * lib/unistr/u8-set.c: Likewise.
102287         * lib/unistr/u8-startswith.c: Likewise.
102288         * lib/unistr/u8-stpcpy.c: Likewise.
102289         * lib/unistr/u8-stpncpy.c: Likewise.
102290         * lib/unistr/u8-strcat.c: Likewise.
102291         * lib/unistr/u8-strchr.c: Likewise.
102292         * lib/unistr/u8-strcmp.c: Likewise.
102293         * lib/unistr/u8-strcpy.c: Likewise.
102294         * lib/unistr/u8-strcspn.c: Likewise.
102295         * lib/unistr/u8-strdup.c: Likewise.
102296         * lib/unistr/u8-strlen.c: Likewise.
102297         * lib/unistr/u8-strmblen.c: Likewise.
102298         * lib/unistr/u8-strmbtouc.c: Likewise.
102299         * lib/unistr/u8-strncat.c: Likewise.
102300         * lib/unistr/u8-strncmp.c: Likewise.
102301         * lib/unistr/u8-strncpy.c: Likewise.
102302         * lib/unistr/u8-strnlen.c: Likewise.
102303         * lib/unistr/u8-strpbrk.c: Likewise.
102304         * lib/unistr/u8-strrchr.c: Likewise.
102305         * lib/unistr/u8-strspn.c: Likewise.
102306         * lib/unistr/u8-strstr.c: Likewise.
102307         * lib/unistr/u8-strtok.c: Likewise.
102308         * lib/unistr/u8-to-u16.c: Likewise.
102309         * lib/unistr/u8-to-u32.c: Likewise.
102310         * lib/unistr/u8-uctomb-aux.c: Likewise.
102311         * lib/unistr/u8-uctomb.c: Likewise.
102312         * lib/unitypes.h: Likewise.
102313         * lib/uniwidth.h: Likewise.
102314         * lib/uniwidth/cjk.h: Likewise.
102315         * lib/uniwidth/u16-strwidth.c: Likewise.
102316         * lib/uniwidth/u16-width.c: Likewise.
102317         * lib/uniwidth/u32-strwidth.c: Likewise.
102318         * lib/uniwidth/u32-width.c: Likewise.
102319         * lib/uniwidth/u8-strwidth.c: Likewise.
102320         * lib/uniwidth/u8-width.c: Likewise.
102321         * lib/uniwidth/width.c: Likewise.
102323 2007-10-07  Bruno Haible  <bruno@clisp.org>
102325         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
102326         The file is still under LGPL (see modules/inttypes).
102328 2007-10-06  Bruno Haible  <bruno@clisp.org>
102330         * modules/trunc (Dependencies): Add 'extensions'.
102331         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
102332         Reported by Ben Pfaff <blp@gnu.org>.
102334 2007-10-06  Bruno Haible  <bruno@clisp.org>
102336         * modules/freopen-tests: New file.
102337         * tests/test-freopen.c: New file.
102339         * modules/fopen-tests: New file.
102340         * tests/test-fopen.c: New file.
102342         * modules/fopen: New file.
102343         * lib/fopen.c: New file.
102344         * m4/fopen.m4: New file.
102345         * modules/freopen: New file.
102346         * lib/freopen.c: New file.
102347         * m4/freopen.m4: New file.
102348         * lib/stdio.in.h (fopen, freopen): New declarations.
102349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
102350         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
102351         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
102352         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
102353         * doc/functions/fopen.texi: Mention the 'fopen' module.
102354         * doc/functions/freopen.texi: Mention the 'freopen' module.
102356 2007-10-06  Bruno Haible  <bruno@clisp.org>
102358         * modules/open-tests: New file.
102359         * tests/test-open.c: New file.
102361         * modules/open: New file.
102362         * lib/open.c: New file.
102363         * m4/open.m4: New file.
102364         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
102365         lib/open.c does.
102366         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
102367         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
102368         macros.
102369         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
102370         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
102371         REPLACE_OPEN.
102372         * doc/functions/open.texi: Mention the 'open' module.
102374 2007-10-04  Bruno Haible  <bruno@clisp.org>
102376         * modules/ceill-tests: New file.
102377         * tests/test-ceill.c: New file.
102379         * modules/ceill: New file.
102380         * lib/ceill.c: Replace entire file.
102381         * m4/ceill.m4: New file.
102382         * lib/math.in.h (ceill): Replace declaration.
102383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
102384         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
102385         * doc/functions/ceill.texi: Mention the 'ceill' module.
102386         * modules/mathl (Files): Remove lib/ceill.c.
102387         (Depends-on): Add ceill.
102389 2007-10-04  Bruno Haible  <bruno@clisp.org>
102391         * modules/ceilf-tests: New file.
102392         * tests/test-ceilf.c: New file.
102394         * modules/ceilf: New file.
102395         * lib/ceil.c: New file.
102396         * lib/ceilf.c: New file.
102397         * m4/ceilf.m4: New file.
102398         * lib/math.in.h (ceilf): New declaration.
102399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
102400         HAVE_DECL_CEILF.
102401         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
102402         HAVE_DECL_CEILF.
102403         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
102405 2007-10-04  Bruno Haible  <bruno@clisp.org>
102407         * modules/floorl-tests: New file.
102408         * tests/test-floorl.c: New file.
102410         * modules/floorl: New file.
102411         * lib/floorl.c: Replace entire file.
102412         * m4/floorl.m4: New file.
102413         * lib/math.in.h (floorl): Replace declaration.
102414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
102415         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
102416         * doc/functions/floorl.texi: Mention the 'floorl' module.
102417         * modules/mathl (Files): Remove lib/floorl.c.
102418         (Depends-on): Add floorl.
102420 2007-10-04  Bruno Haible  <bruno@clisp.org>
102422         * modules/floorf-tests: New file.
102423         * tests/test-floorf.c: New file.
102425         * modules/floorf: New file.
102426         * lib/floor.c: New file.
102427         * lib/floorf.c: New file.
102428         * m4/floorf.m4: New file.
102429         * lib/math.in.h (floorf): New declaration.
102430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
102431         HAVE_DECL_FLOORF.
102432         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
102433         HAVE_DECL_FLOORF.
102434         * doc/functions/floorf.texi: Mention the 'floorf' module.
102436 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
102437             Bruno Haible  <bruno@clisp.org>
102439         Advertise for the Git server instead of the CVS server.
102440         * doc/gnulib-intro.texi (Steady Development): Mention the Git
102441         repository instead of the CVS one.
102442         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
102443         about all VCS systems generically.
102444         * doc/gnulib.texi (Introduction): Capitalize `Git'.
102446 2007-10-04  Bruno Haible  <bruno@clisp.org>
102448         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
102449         means.
102450         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
102452 2007-10-04  Bruno Haible  <bruno@clisp.org>
102454         * modules/truncl-tests: New file.
102455         * tests/test-truncl.c: New file.
102457         * modules/truncl: New file.
102458         * lib/truncl.c: New file.
102459         * m4/truncl.m4: New file.
102460         * lib/math.in.h (truncl): New declaration.
102461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
102462         HAVE_DECL_TRUNCL.
102463         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
102464         HAVE_DECL_TRUNCL.
102465         * doc/functions/truncl.texi: Mention the 'truncl' module.
102467 2007-10-04  Bruno Haible  <bruno@clisp.org>
102469         * modules/truncf-tests: New file.
102470         * tests/test-truncf.c: New file.
102472         * modules/truncf: New file.
102473         * lib/trunc.c: Make paramerizable through USE_* macros.
102474         * lib/truncf.c: New file.
102475         * m4/truncf.m4: New file.
102476         * lib/math.in.h (truncf): New declaration.
102477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
102478         HAVE_DECL_TRUNCF.
102479         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
102480         HAVE_DECL_TRUNCF.
102481         * doc/functions/truncf.texi: Mention the 'truncf' module.
102483 2007-10-03  Bruno Haible  <bruno@clisp.org>
102485         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
102486         augmentation also for tests modules.
102487         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
102488         * modules/atexit-tests (Makefile.am): Likewise.
102489         * modules/binary-io-tests (Makefile.am): Likewise.
102490         * modules/c-strcase-tests (Makefile.am): Likewise.
102491         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
102492         * modules/canonicalize-tests (Makefile.am): Likewise.
102493         * modules/closein-tests (Makefile.am): Likewise.
102494         * modules/fprintf-posix-tests (Makefile.am): Likewise.
102495         * modules/freadahead-tests (Makefile.am): Likewise.
102496         * modules/fseek-tests (Makefile.am): Likewise.
102497         * modules/fseeko-tests (Makefile.am): Likewise.
102498         * modules/ftell-tests (Makefile.am): Likewise.
102499         * modules/ftello-tests (Makefile.am): Likewise.
102500         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
102501         * modules/isnanl-tests (Makefile.am): Likewise.
102502         * modules/lseek-tests (Makefile.am): Likewise.
102503         * modules/mbscasecmp-tests (Makefile.am): Likewise.
102504         * modules/mbscasestr-tests (Makefile.am): Likewise.
102505         * modules/mbschr-tests (Makefile.am): Likewise.
102506         * modules/mbscspn-tests (Makefile.am): Likewise.
102507         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
102508         * modules/mbspbrk-tests (Makefile.am): Likewise.
102509         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
102510         * modules/mbsrchr-tests (Makefile.am): Likewise.
102511         * modules/mbsspn-tests (Makefile.am): Likewise.
102512         * modules/mbsstr-tests (Makefile.am): Likewise.
102513         * modules/printf-posix-tests (Makefile.am): Likewise.
102514         * modules/snprintf-posix-tests (Makefile.am): Likewise.
102515         * modules/sprintf-posix-tests (Makefile.am): Likewise.
102516         * modules/tsearch-tests (Makefile.am): Likewise.
102517         * modules/uniname/uniname-tests (Makefile.am): Likewise.
102518         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
102519         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
102520         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
102521         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
102522         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
102523         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
102524         * modules/vprintf-posix-tests (Makefile.am): Likewise.
102525         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
102526         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
102527         * modules/xstrtoimax-tests (Makefile.am): Likewise.
102528         * modules/xstrtol-tests (Makefile.am): Likewise.
102529         * modules/xstrtoumax-tests (Makefile.am): Likewise.
102530         * modules/yesno-tests (Makefile.am): Likewise.
102532 2007-10-03  Bruno Haible  <bruno@clisp.org>
102534         * modules/trunc-tests: New file.
102535         * tests/test-trunc.c: New file.
102537         * modules/trunc: New file.
102538         * lib/trunc.c: New file.
102539         * m4/trunc.m4: New file.
102540         * lib/math.in.h (trunc): New declaration.
102541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
102542         HAVE_DECL_TRUNC.
102543         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
102544         HAVE_DECL_TRUNC.
102545         * doc/functions/trunc.texi: Mention the 'trunc' module.
102547 2007-10-03  Bruno Haible  <bruno@clisp.org>
102549         * tests/test-fpending.c: New file, mostly copied
102550         from coreutils/lib/t-fpending.c.
102551         * modules/fpending-tests: New file.
102553 2007-10-03  Bruno Haible  <bruno@clisp.org>
102555         Port the stdio extensions to QNX (untested).
102556         * lib/fseterr.c (fseterr): Add support for QNX.
102557         * lib/fbufmode.c (fbufmode): Likewise.
102558         * lib/freadable.c (freadable): Likewise.
102559         * lib/fwritable.c (fwritable): Likewise.
102560         * lib/freading.c (freading): Likewise.
102561         * lib/fwriting.c (fwriting): Likewise.
102562         * lib/freadahead.c (freadahed): Likewise.
102563         * lib/fpurge.c (fpurge): Likewise.
102564         * lib/fseeko.c (rpl_fseeko): Likewise.
102566 2007-10-03  Bruno Haible  <bruno@clisp.org>
102567             Jim Meyering  <jim@meyering.net>
102568             Eric Blake  <ebb9@byu.net>
102570         * doc/relocatable.texi: Use @command instead of @program.
102572 2007-10-02  Jim Meyering  <jim@meyering.net>
102574         Perform one more "_.h" -> ".in.h" substitution.
102575         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
102576         instead of unistd_.h here, too.
102578 2007-10-01  Bruno Haible  <bruno@clisp.org>
102580         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
102581         Needed for the alloca-opt module.
102583 2007-09-30  Bruno Haible  <bruno@clisp.org>
102585         * lib/alloca.in.h: Renamed from lib/alloca_.h.
102586         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
102587         alloca_.h.
102588         * lib/argz.in.h: Renamed from lib/argz_.h.
102589         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
102590         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
102591         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
102592         byteswap_.h.
102593         * lib/dirent.in.h: Renamed from lib/dirent_.h.
102594         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
102595         dirent_.h.
102596         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
102597         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
102598         fcntl_.h.
102599         * lib/float.in.h: Renamed from lib/float_.h.
102600         * modules/float (Files, Makefile.am): Use float.in.h instead of
102601         float_.h.
102602         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
102603         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
102604         fnmatch_.h.
102605         * lib/getopt.in.h: Renamed from lib/getopt_.h.
102606         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
102607         getopt_.h.
102608         * lib/glob.in.h: Renamed from lib/glob_.h.
102609         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
102610         * lib/iconv.in.h: Renamed from lib/iconv_.h.
102611         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
102612         iconv_.h.
102613         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
102614         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
102615         inttypes_.h.
102616         * lib/locale.in.h: Renamed from lib/locale_.h.
102617         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
102618         locale_.h.
102619         * lib/math.in.h: Renamed from lib/math_.h.
102620         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
102621         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
102622         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
102623         of netinet_in_.h. Add dependency.
102624         * lib/poll.in.h: Renamed from lib/poll_.h.
102625         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
102626         * lib/search.in.h: Renamed from lib/search_.h.
102627         * modules/search (Files, Makefile.am): Use search.in.h instead of
102628         search_.h.
102629         * lib/signal.in.h: Renamed from lib/signal_.h.
102630         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
102631         _signal.h.
102632         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
102633         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
102634         stdbool_.h.
102635         * lib/stdint.in.h: Renamed from lib/stdint_.h.
102636         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
102637         stdint_.h.
102638         * lib/stdio.in.h: Renamed from lib/stdio_.h.
102639         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
102640         stdio_.h.
102641         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
102642         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
102643         stdlib_.h.
102644         * lib/string.in.h: Renamed from lib/string_.h.
102645         * modules/string (Files, Makefile.am): Use string.in.h instead of
102646         string_.h.
102647         * doc/gnulib-tool.texi (Initial import): Update.
102648         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
102649         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
102650         of sys_select_.h. Add dependency.
102651         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
102652         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
102653         of sys_socket_.h.
102654         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
102655         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
102656         sys_stat_.h.
102657         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
102658         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
102659         sys_time_.h.
102660         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
102661         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
102662         sysexits_.h.
102663         * lib/time.in.h: Renamed from lib/time_.h.
102664         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
102665         * lib/unistd.in.h: Renamed from lib/unistd_.h.
102666         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
102667         unistd_.h.
102668         * lib/wchar.in.h: Renamed from lib/wchar_.h.
102669         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
102670         wchar_.h.
102671         * lib/wctype.in.h: Renamed from lib/wctype_.h.
102672         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
102673         wctype_.h.
102674         * build-aux/bootstrap (slurp): Update.
102675         * lib/.cppi-disable: Update.
102677 2007-09-30  Bruno Haible  <bruno@clisp.org>
102679         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
102680         Needed on BeOS.
102682 2007-09-30  Bruno Haible  <bruno@clisp.org>
102684         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
102686 2007-09-29  Bruno Haible  <bruno@clisp.org>
102688         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
102690 2007-09-29  Bruno Haible  <bruno@clisp.org>
102692         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
102693         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
102694         * build-aux/install-reloc: Compile also areadlink.c.
102695         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
102697 2007-09-29  Bruno Haible  <bruno@clisp.org>
102699         * gnulib-tool (func_emit_initmacro_done): Indentation.
102701 2007-09-29  Bruno Haible  <bruno@clisp.org>
102703         * README: Add CVS checkout update instructions.
102704         Info from Bob Proulx <bob@proulx.com>.
102706 2007-09-28  Eric Blake  <ebb9@byu.net>
102708         Provide move-if-change.
102709         * build-aux/move-if-change: New file, based on best practice
102710         rather than any canonical upstream location.
102712 2007-09-28  Jim Meyering  <jim@meyering.net>
102714         Fix canonicalize loop-detection corner case.
102715         Do not attempt to stat the symlink values stored via seen_triple.
102716         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
102717         on linux-2.6.18, (but not 2.6.22).
102718         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
102719         triple_compare.  The former compares dev,ino,filename, while the latter
102720         would actually stat dirname(filename) when dev and ino were equal.
102721         * lib/hash-triple.c: Install <string.h>.
102722         (STREQ): Define.
102723         (triple_compare_ino_str): New function.
102724         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
102726 2007-09-28  Eric Blake  <ebb9@byu.net>
102728         Enforce that AC_REPLACE_FUNCS files exist.
102729         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
102730         override check for typos.
102732         Fix test-closein on Solaris 10.
102733         * tests/test-closein.c (main): Don't assume stdin can be inherited
102734         closed on all systems.
102735         * tests/test-closein.sh: Likewise.
102736         Reported by Piotr Tarnowski.
102738 2007-09-28  Jim Meyering  <jim@meyering.net>
102740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
102742 2007-09-27  Jim Meyering  <jim@meyering.net>
102744         canonicalize: Avoid a false-positive cycle failure.
102745         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
102746         Sort.  Remove cycle-check.
102747         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
102748         not cycle-check.h.
102749         (seen_triple): New function.
102750         (canonicalize_filename_mode): Use it instead of cycle-check.
102751         * tests/test-canonicalize.c: Add a test for this bug.
102752         * tests/test-canonicalize.sh: Set up and run the test.
102754         New module, file-set, from coreutils.
102755         * modules/file-set: Define it.
102756         * lib/file-set.c, lib/file-set.h: Implement.
102758         New module, hash-triple, from coreutils.
102759         * modules/hash-triple: Define it.
102760         * lib/hash-triple.c, lib/hash-triple.h: Implement.
102762 2007-09-25  Eric Blake  <ebb9@byu.net>
102764         Fix strerror on Interix.
102765         * lib/string_.h (strerror): Declare replacement.
102766         * doc/functions/strerror.texi (strerror): Document the Interix
102767         shortcoming.
102768         * modules/string (Makefile.am): Support new hooks.
102769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
102770         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
102771         gl_FUNC_STRERROR_SEPARATE.
102772         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
102773         * lib/strerror.c (rpl_strerror): Provide replacement.
102774         * modules/strerror (Depends-on): Add string.
102775         (configure.ac): Detect use of module.
102776         * tests/test-strerror.c: New file.
102777         * modules/strerror-tests: New test module.
102778         * modules/argp (Depends-on): Add strerror.
102779         * modules/error (Depends-on): Likewise.
102780         Reported by Martin Koeppe.
102782 2007-09-24  Bruno Haible  <bruno@clisp.org>
102784         * README: Update git instructions.
102786 2007-09-24  Eric Blake  <ebb9@byu.net>
102788         Revert fpending breakage from 2007-09-08.
102789         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
102790         __fpending.c.
102792 2007-09-24  Jim Meyering  <jim@meyering.net>
102794         filenamecat.c: Add a test.
102795         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
102796         showing how the function works when DIR is the empty string.
102798 2007-09-21  Simon Josefsson  <simon@josefsson.org>
102800         * tests/test-canonicalize.sh: Turn on executable bit.
102802 2007-09-19  Eric Blake  <ebb9@byu.net>
102804         * README: Update CVS instructions.
102806 2007-09-18  Bruno Haible  <bruno@clisp.org>
102808         * modules/areadlink: New file.
102809         * lib/areadlink.h (areadlink): New declaration.
102810         * lib/areadlink.c: New file, based on lib/xreadlink.c.
102812 2007-09-17  Jim Meyering  <jim@meyering.net>
102814         * lib/savewd.c (ESTALE) [!defined]: Define.
102815         Reported to be required on Interix by Martin Koeppe.
102817 2007-09-17  Bruno Haible  <bruno@clisp.org>
102819         * gnulib-tool (func_version): Use $version.
102821 2007-09-16  Bruno Haible  <bruno@clisp.org>
102823         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
102824         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
102825         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
102826         Reported by Greg Schafer <gschafer@zip.com.au>.
102828 2007-09-15  Bruno Haible  <bruno@clisp.org>
102830         * gnulib-tool (sed): Try a little harder to make bash understand the
102831         alias.
102832         Reported by Bruce Korb <bruce.korb@gmail.com>.
102834 2007-09-13  Eric Blake  <ebb9@byu.net>
102836         * ChangeLog: Remove conflict markers.
102838 2007-09-13  Simon Josefsson  <simon@josefsson.org>
102840         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
102841         Reported by Bruno Haible <bruno@clisp.org>.
102843 2007-09-12  Bruno Haible  <bruno@clisp.org>
102845         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
102846         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
102847         is not defined.
102849 2007-09-12  Eric Blake  <ebb9@byu.net>
102851         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
102852         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
102853         Autoconf definition.
102854         * modules/euidaccess (Depends-on): Add extensions, for
102855         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
102856         * modules/fnmatch (Depends-on): Likewise.
102857         * modules/getaddrinfo (Depends-on): Likewise.
102858         * modules/getdelim (Depends-on): Likewise.
102859         * modules/getline (Depends-on): Likewise.
102860         * modules/getsubopt (Depends-on): Likewise.
102861         * modules/gettext (Depends-on): Likewise.
102862         * modules/group-member (Depends-on): Likewise.
102863         * modules/mbchar (Depends-on): Likewise.
102864         * modules/memmem (Depends-on): Likewise.
102865         * modules/mempcpy (Depends-on): Likewise.
102866         * modules/memrchr (Depends-on): Likewise.
102867         * modules/pagealign_alloc (Depends-on): Likewise.
102868         * modules/readutmp (Depends-on): Likewise.
102869         * modules/stpcpy (Depends-on): Likewise.
102870         * modules/stpncpy (Depends-on): Likewise.
102871         * modules/strchrnul (Depends-on): Likewise.
102872         * modules/strndup (Depends-on): Likewise.
102873         * modules/strsep (Depends-on): Likewise.
102874         * modules/strverscmp (Depends-on): Likewise.
102875         * modules/vasprintf (Depends-on): Likewise.
102876         * modules/wcwidth (Depends-on): Likewise.
102877         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
102878         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
102879         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
102880         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
102881         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
102882         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102883         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
102884         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
102885         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
102886         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
102887         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
102888         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
102889         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
102890         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
102891         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
102892         * m4/readutmp.m4 (gl_READUTMP): Likewise.
102893         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102894         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
102895         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
102896         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
102897         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
102898         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
102899         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
102900         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
102901         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
102902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102903         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
102904         so that lock.m4 can be used in gettext without extensions module.
102906 2007-09-11  Bruno Haible  <bruno@clisp.org>
102908         * m4/isc-posix.m4: Remove file.
102909         Suggested by Eric Blake.
102911 2007-09-11  Eric Blake  <ebb9@byu.net>
102913         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
102915 2007-09-10  Bruno Haible  <bruno@clisp.org>
102917         * posix-modules: Fix typo in error message.
102918         Reported by Matt <mkraai@beckman.com>.
102920 2007-09-09  Bruno Haible  <bruno@clisp.org>
102922         * doc/functions/getdelim.texi: Update list of platforms lacking the
102923         function.
102924         * doc/functions/getline.texi: Likewise.
102926 2007-09-09  Jim Meyering  <jim@meyering.net>
102928         * lib/hash.c (hash_initialize): Detect calloc failure.
102929         Reported by Bruno Haible.
102931 2007-09-09  Bruno Haible  <bruno@clisp.org>
102933         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
102934         malloc or realloc fails.
102936 2007-09-09  Bruno Haible  <bruno@clisp.org>
102938         * modules/getcwd (Depends-on): Add malloc-posix.
102939         * modules/glob (Depends-on): Likewise.
102940         * modules/putenv (Depends-on): Likewise.
102941         * modules/strdup (Depends-on): Likewise.
102942         * modules/getdelim (Depends-on): Add realloc-posix.
102943         * modules/read-file (Depends-on): Likewise.
102945 2007-09-09  Bruno Haible  <bruno@clisp.org>
102947         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
102948         (gl_FUNC_MALLOC_POSIX): Require it.
102949         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
102950         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
102951         * modules/realloc (Files): Add m4/malloc.m4.
102952         * modules/calloc (Files): Likewise.
102954 2007-09-09  Bruno Haible  <bruno@clisp.org>
102956         * modules/malloc-posix: New file.
102957         * modules/malloc (Depends-on): Add malloc-posix.
102958         * lib/malloc.c: Include errno.h.
102959         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
102960         and a POSIX-compatible malloc into a single function. Set ENOMEM
102961         when returning NULL.
102962         * m4/malloc.m4: New file.
102963         * doc/functions/malloc.texi: Mention the malloc-posix module.
102964         * lib/stdlib_.h (malloc): New declaration.
102965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102966         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
102967         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
102968         and HAVE_MALLOC_POSIX.
102970 2007-09-09  Bruno Haible  <bruno@clisp.org>
102972         * modules/realloc-posix: New file.
102973         * modules/realloc (Depends-on): Add realloc-posix.
102974         * lib/realloc.c: Include errno.h.
102975         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
102976         and a POSIX-compatible realloc into a single function. Set ENOMEM
102977         when returning NULL.
102978         * m4/realloc.m4: New file.
102979         * doc/functions/realloc.texi: Mention the realloc-posix module.
102980         * lib/stdlib_.h (realloc): New declaration.
102981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102982         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
102983         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
102984         and HAVE_REALLOC_POSIX.
102986 2007-09-09  Bruno Haible  <bruno@clisp.org>
102988         * modules/calloc-posix: New file.
102989         * modules/calloc (Depends-on): Add calloc-posix.
102990         * lib/calloc.c: Include errno.h.
102991         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
102992         and a POSIX-compatible calloc into a single function. Set ENOMEM
102993         when returning NULL.
102994         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
102995         * doc/functions/calloc.texi: Mention the calloc-posix module.
102996         * lib/stdlib_.h (calloc): New declaration.
102997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102998         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
102999         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
103000         and HAVE_CALLOC_POSIX.
103002 2007-09-09  Bruno Haible  <bruno@clisp.org>
103004         Allow for modules to show an arbitrary notice.
103005         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
103006         * gnulib-tool: New option --extract-notice.
103007         (func_usage): Document it.
103008         (sed_extract_prog): Update.
103009         (func_get_notice): New function.
103010         (func_modules_notice): New function.
103011         (func_import, func_create_testdir): Invoke it.
103012         Suggested by Jim Meyering.
103014 2007-09-09  Bruno Haible  <bruno@clisp.org>
103016         * gnulib-tool: New options --verbose, --quiet.
103017         (func_usage): Document them.
103018         (verbose): New variable.
103019         (func_execute_command): New function.
103020         (func_import): Don't show the module list and the file list if
103021         $verbose < 0.
103022         (func_create_testdir): Likewise. Use func_execute_command.
103023         (func_create_megatestdir): Use func_execute_command.
103025 2007-09-08  Bruno Haible  <bruno@clisp.org>
103027         * gnulib-tool (func_import): Prefer rsync over wget when available,
103028         for fetching the PO files.
103030 2007-09-08  Bruno Haible  <bruno@clisp.org>
103032         * posix-modules: New file. Portions copied from gnulib-tool.
103033         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
103035 2007-09-08  Jim Meyering  <jim@meyering.net>
103037         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
103038         * lib/fpending.h: Rename from __fpending.h.
103039         * lib/fpending.c: Rename from __fpending.c.
103040         Include "fpending.h", not "__fpending.h".
103041         * lib/__fpending.h, lib/__fpending.c: Remove files.
103042         * modules/fpending (Files): Reflect new file names.
103043         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
103045 2007-09-08  Bruno Haible  <bruno@clisp.org>
103047         * m4/inttypes-h.m4: Remove stub file.
103049 2007-09-07  Simon Josefsson  <simon@josefsson.org>
103051         * doc/headers/stdint.texi: Discuss #include_next issue.
103053 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103055         * build-aux/bootstrap: Remove obsolete comment about wget --help.
103057 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103059         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
103060         in variable name.
103062 2007-09-03  Jim Meyering  <jim@meyering.net>
103064         New module: git-version-gen.
103065         * modules/git-version-gen: New file.
103067         Import changes from coreutils for bootstrap script.
103069         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
103071         bootstrap: uses rsync to download the .po files
103072         * build-aux/bootstrap (po_download_command_format): New global.
103073         (download_po_files): Use rsync.
103074         (update_po_files): Don't remove .po files after download,
103075         so future rsync runs can take advantage of the copies.
103077         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
103079         Solve the unnecessary-.po-file-regeneration problem once and for all.
103080         * build-aux/bootstrap (download_po_files): New function, renamed from
103081         get_translations.  Now, downloads, but doesn't update LINGUAS.
103082         (update_po_files): New function.
103084         bootstrap: Ignore more.
103085         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
103086         uniwidth to e.g., lib/.gitignore.
103087         (slurp): Handle the sys_stat_.h -> sys mapping, too.
103089         * build-aux/bootstrap: New setting: vc_ignore.
103090         (insert_sorted_if_absent): Create $file if absent.
103091         Adapt to new, possibly empty, list: $vc_ignore.
103093         bootstrap: generate more ignorable names
103094         * build-aux/bootstrap (slurp): When generating ignorable names,
103095         also map .sin to .sed, .gperf to .c, and .y to .c.
103097 2007-09-03  Jim Meyering  <jim@meyering.net>
103099         * build-aux/git-version-gen: New file, from coreutils.  For details, see
103100         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
103102 2007-09-02  Bruno Haible  <bruno@clisp.org>
103104         Fix mis-recognition of 'mcs' on QNX 6.
103105         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
103106         output contains the string "Mono".
103107         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
103108         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
103110 2007-09-01  Bruno Haible  <bruno@clisp.org>
103112         Fix collision between uniwidth/* and linebreak modules.
103113         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
103114         u32_width): Remove declarations.
103115         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
103116         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
103117         streq3, streq2, streq1, streq0): Remove functions.
103118         (STREQ): Remove macro.
103119         (is_cjk_encoding): Remove function.
103120         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
103121         (uc_width, u8_width, u16_width, u32_width): Remove functions.
103122         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
103123         * NEWS: Document the change.
103125 2007-09-01  Bruno Haible  <bruno@clisp.org>
103127         * lib/streq.h: Add double-inclusion guard.
103129 2007-09-01  Karl Berry  <karl@gnu.org>
103131         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
103133 2007-08-28  Jim Meyering  <jim@meyering.net>
103135         Rename mreadlink_with_size to areadlink_with_size.
103136         * NEWS: Document the change.
103137         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
103138         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
103139         * lib/mreadlink.h: Rename this to...
103140         * lib/areadlink.h: ...this.
103141         * modules/mreadlink-with-size: Rename this to...
103142         * modules/areadlink-with-size: ...this.
103143         * lib/canonicalize.c: Reflect the renaming.
103144         * modules/canonicalize: Likewise.
103146 2007-08-26  Bruno Haible  <bruno@clisp.org>
103148         * gnulib-tool (func_import): When deciding which files to remove,
103149         consider also dangling symbolic links.
103150         Reported by Eric Blake.
103152 2007-08-26  Bruno Haible  <bruno@clisp.org>
103154         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
103156 2007-08-23  Simon Josefsson  <simon@josefsson.org>
103158         * lib/readline.c: Don't include getline.h, the prototype is now
103159         found in stdio.h.
103161 2007-08-23  Jim Meyering  <jim@meyering.net>
103163         Getdelim touchup.
103164         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
103165         around the funlockfile call, since funlockfile never sets errno.
103166         Don't set errno upon failed realloc.
103168 2007-08-22  Eric Blake  <ebb9@byu.net>
103170         Getline touchups.
103171         * lib/getdelim.c (getdelim): Revert regression that required *n to
103172         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
103173         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
103174         getdelim, rather than whether implementation is missing.
103175         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
103176         * lib/stdio_.h (getline): Also declare if replacement is
103177         required.
103178         * doc/functions/getdelim.texi: New file.
103179         * doc/functions/getline.texi: Likewise.
103180         * doc/gnulib.texi (Function Substitutes): Add new files.
103181         Reported by Bruno Haible.
103183 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
103185         * users.txt: Add Guile.
103187 2007-08-22  Eric Blake  <ebb9@byu.net>
103189         * tests/test-getdelim.c (main): Use remove, not unlink.
103190         * tests/test-getline.c (main): Likewise.
103192         Move getline and getdelim into stdio.h, per POSIX 200x.
103193         * modules/getline (Files): Remove getline.h.
103194         (Depends-on): Add stdio.
103195         (configure.ac): Add module indicator.
103196         * modules/getdelim (Files): Remove getdelim.h.
103197         (Depends-on): Add stdio.
103198         (configure.ac): Add module indicator.
103199         * modules/stdio (Makefile.am): Work with new indicators.
103200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
103201         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
103202         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
103203         * lib/getdelim.h: Delete.
103204         * lib/getline.h: Delete.
103205         * lib/stdio_.h (getdelim, getline): Declare.
103206         * modules/getdelim-tests: New module.
103207         * modules/getline-tests: Likewise.
103208         * tests/test-getdelim.c: New file.
103209         * tests/test-getline.c: Likewise.
103210         * NEWS: Document the change.
103211         * lib/getline.c: Update choice of header.
103212         * lib/csharpcomp.c: Likewise.
103213         * lib/getpass.c: Likewise.
103214         * lib/javacomp.c: Likewise.
103215         * lib/javaversion.c: Likewise.
103216         * lib/yesno.c: Likewise.
103217         * lib/getdelim.c: Likewise.
103218         (getdelim): Set errno on failure, and avoid memory leak.
103220 2007-08-19  Bruno Haible  <bruno@clisp.org>
103222         * modules/closein (Depends-on): Add freadahead.
103223         * lib/closein.c: Include freadahead.h.
103224         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
103225         is zero.
103227 2007-08-19  Bruno Haible  <bruno@clisp.org>
103229         * modules/freadahead-tests: New file.
103230         * tests/test-freadahead.sh: New file.
103231         * tests/test-freadahead.c: New file.
103233         * modules/freadahead: New file.
103234         * lib/freadahead.h: New file.
103235         * lib/freadahead.c: New file.
103236         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
103237         fbufmode, fpurge, freadable, fwritable.
103239 2007-08-19  Eric Blake  <ebb9@byu.net>
103241         Test yesno in combination with closein.
103242         * lib/yesno.c (yesno): Document use of stdin.
103243         * modules/yesno-tests (Files): New module.
103244         * tests/test-yesno.c (main): New file.
103245         * tests/test-yesno.sh: Likewise.
103247 2007-08-19  Bruno Haible  <bruno@clisp.org>
103249         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
103250         * lib/fseeko.c (rpl_fseeko): Likewise.
103251         * lib/fseterr.c (fseterr): Likewise.
103253 2007-08-19  Bruno Haible  <bruno@clisp.org>
103255         * tests/test-lseek.c (main): Disable a test for BeOS.
103256         * doc/functions/lseek.texi: Document the BeOS bug.
103258 2007-08-19  Bruno Haible  <bruno@clisp.org>
103259             Eric Blake  <ebb9@byu.net>
103261         * lib/lseek.c: Include <sys/stat.h>.
103262         (rpl_lseek): Add workaround code also for Unix platforms.
103263         Needed for BeOS.
103264         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
103265         * doc/functions/lseek.texi: Document BeOS definiency.
103267 2007-08-18  Bruno Haible  <bruno@clisp.org>
103269         * modules/fstrcmp-tests: New file.
103270         * tests/test-fstrcmp.c: New file.
103272 2007-08-18  Bruno Haible  <bruno@clisp.org>
103274         * modules/fstrcmp: New file, from GNU gettext with modifications.
103275         * lib/fstrcmp.h: New file, from GNU gettext.
103276         * lib/fstrcmp.c: New file, from GNU gettext.
103277         * MODULES.html.sh (String handling): Add fstrcmp.
103279 2007-08-18  Bruno Haible  <bruno@clisp.org>
103281         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
103282         'bool'.
103283         (diag, compareseq): Remove const from the ctxt argument.
103284         (USE_HEURISTIC): Undefine at the end.
103286 2007-08-18  Jim Meyering  <jim@meyering.net>
103288         New file: lib/idcache.h
103289         * NEWS: Mention the addition.
103290         * modules/idcache (Files): Add lib/idcache.h
103291         * lib/idcache.c: Include "idcache.h".
103292         Don't include <sys/types.h>.
103293         Add a FIXME comment.
103294         Move file-scoped "static" declarations to the top.
103295         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
103297 2007-08-17  Bruno Haible  <bruno@clisp.org>
103298         and Paul Eggert  <eggert@cs.ucla.edu>
103300         * MODULES.html.sh: Add diffseq.
103301         * modules/diffseq: New file.
103302         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
103303         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
103305 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103307         Import changes from coreutils for bootstrap script.
103309         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
103311         * build-aux/bootstrap (slurp): Work even in environments where
103312         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
103313         current code does not slurp files whose names start with ".", and
103314         this looks like it might be a troublesome area.
103316         2007-07-11  Jim Meyering  <jim@meyering.net>
103318         If there's a GPL vN copyright comment, require that N == 3.
103320         2007-07-08  Jim Meyering  <jim@meyering.net>
103322         Run the coreutils-specific code only if tests/Makefile.am.in exists.
103323         * build-aux/bootstrap (mam_template): Move definition out of loop.
103325         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
103327         * build-aux/bootstrap (symlink_to_dir): Rename function from
103328         symlink_to_gnulib.  Add a directory parameter.  Update all
103329         callers.
103330         (cp_mark_as_generated): Also check for -- and link to -- files in
103331         gl/.
103333         2007-07-08  Jim Meyering  <jim@meyering.net>
103335         Adapt to deeper hierarchy in gnulib.
103336         * build-aux/bootstrap (symlink_to_dir): If the destination
103337         directory doesn't exist, create it. This is required at least for
103338         "lib/uniwidth/cjk.h".
103340         2007-05-15  Jim Meyering  <jim@meyering.net>
103342         * build-aux/bootstrap: Now that generated Makefile.am files
103343         are no longer under version control, they must be created at
103344         bootstrap time.
103346 2007-08-14  Ben Pfaff  <blp@gnu.org>
103348         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
103350 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103352         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
103353         given the changes below.
103354         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
103355         even on hosts that have padding bits beyond the supported 64.
103357 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
103359         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
103360         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
103361         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
103362         depends on it.
103363         (xstrtol_error): Remove.
103364         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
103365         but with a different signature.
103366         (ATTRIBUTE_NORETURN, __attribute__): New macros.
103367         * lib/xstrtol-error.c: Include exitfail.h.
103368         (xstrtol_fatal): New function, with a different signature from the
103369         old xstrtol_error, so that the caller need not worry about passing
103370         in an exit status, or about storage management of the option argument.
103371         (xstrtol_error): Now a static function.  Redo signature to
103372         implement xstrtol_fatal.  Output the correct number of hyphens in
103373         front of the option so that the caller need not worry about
103374         storage management.
103375         (N_): New macro.
103376         (_): Remove; not used now.
103377         * modules/xstrtol: Depend on getopt.
103378         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
103379         of old STRTOL_FATAL_ERROR macro.
103380         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
103381         of test program.
103382         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
103383         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
103385 2007-08-08  Eric Blake  <ebb9@byu.net>
103387         * lib/xstrtol-error.c: Add missing include.
103389         Move xstrtol messages into gnulib domain, when --pobase is used.
103390         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
103391         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
103392         * modules/xstrtol (Files): Distribute new file.
103393         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
103394         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
103395         * tests/test-xstrtol.c: ...into new file.
103396         * tests/test-xstrtoul.c: Also test xstrtoul.
103397         * tests/test-xstrtoimax.c: Also test xstrtoimax.
103398         * tests/test-xstrtoumax.c: Also test xstrtoumax.
103399         * tests/test-xstrtol.sh: Drive the tests.
103400         * tests/test-xstrtoimax.sh: Likewise.
103401         * tests/test-xstrtoumax.sh: Likewise.
103402         * modules/xstrtol-tests: New module.
103403         * modules/xstrtoimax-tests: Likewise.
103404         * modules/xstrtoumax-tests: Likewise.
103406 2007-08-08  Jim Meyering  <jim@meyering.net>
103408         New function: mfile_name_concat.
103409         * lib/filenamecat.c (mfile_name_concat): New function, just like
103410         file_name_concat, but return NULL upon failure rather than exiting
103411         with a diagnostic.
103412         * lib/filenamecat.h: Declare it.
103414 2007-08-07  Bruno Haible  <bruno@clisp.org>
103416         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
103417         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
103418         warning from gcc.
103419         Reported by Eric Blake.
103421 2007-08-07  Simon Josefsson  <simon@josefsson.org>
103423         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
103424         * modules/crypto/arcfour (License): Likewise.
103425         * modules/crypto/des-tests (License): Likewise.
103426         * modules/crypto/gc-arctwo-tests (License): Likewise.
103427         * modules/crypto/gc-des-tests (License): Likewise.
103428         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
103429         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
103430         * modules/crypto/gc-md2-tests (License): Likewise.
103431         * modules/crypto/gc-md4-tests (License): Likewise.
103432         * modules/crypto/gc-md5-tests (License): Likewise.
103433         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
103434         * modules/crypto/gc-rijndael-tests (License): Likewise.
103435         * modules/crypto/gc-sha1-tests (License): Likewise.
103436         * modules/crypto/gc-tests (License): Likewise.
103437         * modules/crypto/hmac-md5 (License): Likewise.
103438         * modules/crypto/hmac-sha1 (License): Likewise.
103439         * modules/crypto/md2-tests (License): Likewise.
103440         * modules/crypto/md4-tests (License): Likewise.
103441         * modules/crypto/md5 (License): Likewise.
103442         * modules/crypto/rijndael (License): Likewise.
103443         * modules/crypto/sha1 (License): Likewise.
103444         * modules/memxor (License): Likewise.
103446 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103447         and Bruno Haible  <bruno@clisp.org>
103449         * NEWS: Describe interface changes to human, xstrtol.
103450         * lib/human.h: Include <xstrtol.h>.
103451         (human_options): Return enum strtol_error, not int.  Remove
103452         bool arg; take int * instead.
103453         * lib/human.c: Don't include "gettext.h".
103454         (_): Remove; no longer used.
103455         Don't include <xstrtol.h>, since human.h does it.
103456         (human_options): Adjust to abovementioned interface changes.
103457         Do not report error to stderr; that's now the caller's
103458         responsibility.
103459         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
103460         interface change.
103461         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
103462         Str, Argument_type_string.  All uses changed.  Put " argument"
103463         in diagnostics to make them clearer.  Change wording of suffix
103464         message for clarity.
103465         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
103466         Argument_type_string.
103467         (STRTOL_FATAL_WARN): Remove; no longer used.
103468         * modules/human (Depends-on): Remove gettext-h.
103470 2007-08-06  Simon Josefsson  <simon@josefsson.org>
103472         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
103474 2007-07-31  Bruno Haible  <bruno@clisp.org>
103476         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
103477         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
103478         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
103480 2007-07-31  Bruno Haible  <bruno@clisp.org>
103482         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
103483         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
103485 2007-07-30  Bruno Haible  <bruno@clisp.org>
103487         * modules/base64 (License): Use the synonymous term "LGPLv2+".
103488         * modules/c-ctype (License): Likewise.
103489         * modules/c-strcase (License): Likewise.
103490         * modules/check-version (License): Likewise.
103491         * modules/iconv (License): Likewise.
103492         * modules/iconv_open (License): Likewise.
103493         * modules/read-file (License): Likewise.
103494         * modules/striconv (License): Likewise.
103495         * modules/strverscmp (License): Likewise.
103496         * modules/vasprintf (License): Likewise.
103497         * modules/crypto/des (License): Likewise.
103498         * modules/crypto/gc (License): Likewise.
103499         * modules/crypto/gc-arcfour (License): Likewise.
103500         * modules/crypto/gc-arctwo (License): Likewise.
103501         * modules/crypto/gc-des (License): Likewise.
103502         * modules/crypto/gc-hmac-md5 (License): Likewise.
103503         * modules/crypto/gc-hmac-sha1 (License): Likewise.
103504         * modules/crypto/gc-md2 (License): Likewise.
103505         * modules/crypto/gc-md4 (License): Likewise.
103506         * modules/crypto/gc-md5 (License): Likewise.
103507         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
103508         * modules/crypto/gc-random (License): Likewise.
103509         * modules/crypto/gc-rijndael (License): Likewise.
103510         * modules/crypto/gc-sha1 (License): Likewise.
103511         * modules/crypto/md2 (License): Likewise.
103512         * modules/crypto/md4 (License): Likewise.
103514 2007-07-30  Jim Meyering  <jim@meyering.net>
103516         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
103517         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
103518         it has valid stat data.  This bug would cause du not to count the
103519         sizes of inaccessible directories.
103520         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
103521         in <http://bugzilla.redhat.com/250077>.
103523 2007-07-25  Peter O'Gorman  <peter@pogma.com>
103524             Bruno Haible  <bruno@clisp.org>
103526         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
103527         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
103528         #include_next, gives a diagnostic about it, but reports no error in
103529         the exit code.
103530         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
103532 2007-07-24  Ben Pfaff  <blp@gnu.org>
103534         Improve name: "count-one-bits" is better than "popcount".
103535         * MODULES.html.sh: Update name.
103536         * lib/popcount.h: Renamed lib/count-one-bits.h.
103537         (popcount): Renamed count_one_bits.
103538         (popcountl): Renamed count_one_bits_l.
103539         (popcountll): Renamed count_one_bits_ll.
103540         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
103541         * modules/popcount: Renamed module/count-one-bits.
103542         * modules/popcount-tests: Renamed module/count-one-bits-tests.
103543         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
103545 2007-07-23  Ben Pfaff  <blp@gnu.org>
103547         * lib/popcount.h (popcount32): Reduce size of constants, to allow
103548         better code generation, and add U to large constants to avoid
103549         warnings, in non-GCC case.
103550         Suggested by Bruno Haible.
103552 2007-07-23  Ben Pfaff  <blp@gnu.org>
103554         * lib/popcount.h: Use verify_true instead of if...abort.
103555         * modules/popcount: Depend on verify module.
103556         Suggested by Jim Meyering.
103558 2007-07-23  Bruno Haible  <bruno@clisp.org>
103560         * gnulib-tool (func_import): Create a .cvsignore file also when the
103561         directory is not yet in CVS but the toplevel directory is. When
103562         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
103563         Reported by Karl Berry.
103565 2007-07-22  Ben Pfaff  <blp@gnu.org>
103567         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
103568         case.
103569         Suggested by Eric Blake.
103571 2007-07-22  Ben Pfaff  <blp@gnu.org>
103573         New module: popcount.
103574         * MODULES.html.sh: Add popcount.
103575         * modules/popcount: New file.
103576         * modules/popcount-tests: New file.
103577         * tests/test-popcount.c: New file.
103578         * lib/popcount.h: New file.
103579         * m4/popcount.m4: New file.
103581 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
103583         * build-aux/announce-gen: Update to GPLv3.
103585         * build-aux/config.guess: Update from config.
103587 2007-07-21  Bruno Haible  <bruno@clisp.org>
103589         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
103590         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
103592 2007-07-20  Jim Meyering  <jim@meyering.net>
103594         * check-module: Diagnose a self-dependency.
103596 2007-07-19  Bruno Haible  <bruno@clisp.org>
103598         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
103599         empty.
103600         Reported by Eric Blake.
103602 2007-07-18  Bruno Haible  <bruno@clisp.org>
103604         * gnulib-tool: New options --po-base, --po-domain.
103605         (func_usage): Document them.
103606         (pobase, po_domain): New variables.
103607         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
103608         DEFAULT_TEXT_DOMAIN.
103609         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
103610         (func_import): Consider pobase and po_domain. Create a po/ directory.
103611         (func_create_testdir): Set pobase and po_domain to empty.
103612         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
103613         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
103615 2007-07-18  Bruno Haible  <bruno@clisp.org>
103617         * gnulib-tool (func_get_automake_snippet): Synthesize also an
103618         EXTRA_DIST augmentation for files in build-aux/.
103620 2007-07-16  Bruno Haible  <bruno@clisp.org>
103622         * modules/lseek (License): Use the synonymous term "LGPLv2+".
103623         * modules/getdelim (License): Likewise.
103625 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103627         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
103628         * modules/d-type (License): Likewise.
103629         * modules/extensions (License): Likewise.
103630         * modules/fnmatch (License): Likewise.
103631         * modules/fseeko (License): Likewise.
103632         * modules/getaddrinfo (License): Likewise.
103633         * modules/getline (License): Likewise.
103634         * modules/getlogin_r (License): Likewise.
103635         * modules/getpass (License): Likewise.
103636         * modules/gettimeofday (License): Likewise.
103637         * modules/glob (License): Likewise.
103638         * modules/inet_ntop (License): Likewise.
103639         * modules/malloc (License): Likewise.
103640         * modules/malloca (License): Likewise.
103641         * modules/memmem (License): Likewise.
103642         * modules/mempcpy (License): Likewise.
103643         * modules/memset (License): Likewise.
103644         * modules/minmax (License): Likewise.
103645         * modules/mktime (License): Likewise.
103646         * modules/netinet_in (License): Likewise.
103647         * modules/pathmax (License): Likewise.
103648         * modules/poll (License): Likewise.
103649         * modules/regex (License): Likewise.
103650         * modules/snprintf (License): Likewise.
103651         * modules/stdbool (License): Likewise.
103652         * modules/stdint (License): Likewise.
103653         * modules/stdio (License): Likewise.
103654         * modules/strcase (License): Likewise.
103655         * modules/strcasestr (License): Likewise.
103656         * modules/strdup (License): Likewise.
103657         * modules/string (License): Likewise.
103658         * modules/strndup (License): Likewise.
103659         * modules/strnlen (License): Likewise.
103660         * modules/strpbrk (License): Likewise.
103661         * modules/strptime (License): Likewise.
103662         * modules/strsep (License): Likewise.
103663         * modules/sys_select (License): Likewise.
103664         * modules/sys_socket (License): Likewise.
103665         * modules/sys_stat (License): Likewise.
103666         * modules/sys_time (License): Likewise.
103667         * modules/time (License): Likewise.
103668         * modules/time_r (License): Likewise.
103669         * modules/timegm (License): Likewise.
103670         * modules/unistd (License): Likewise.
103671         * modules/vsnprintf (License): Likewise.
103672         * modules/wctype (License): Likewise.
103674 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103676         * modules/argz (License): LGPLv2+.
103678 2007-07-15  Karl Berry  <karl@gnu.org>
103680         * doc/gnulib.texi: revise node structure per new fdl.texi.
103682 2007-07-14  Bruno Haible  <bruno@clisp.org>
103684         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
103685         the output file.
103686         * lib/uniname/uninames.h: Regenerated.
103688 2007-07-14  Karl Berry  <karl@gnu.org>
103690         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
103691         omitting sectioning and index commands.
103693 2007-07-13  Bruno Haible  <bruno@clisp.org>
103695         New gnulib-tool option --more-symlinks.
103696         * gnulib-tool (func_usage): Document --more-symlinks.
103697         (do_copyrights): New variable.
103698         Recognize option --more-symlinks.
103699         (func_import): Don't add a copyright notice transform to
103700         sed_transform_lib_file if do_copyrights is empty.
103702 2007-07-13  Bruno Haible  <bruno@clisp.org>
103704         * lib/vasnprintf.c (decimal_point_char): Define also if
103705         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
103706         && !NEED_PRINTF_DIRECTIVE_A.
103707         Reported by Clemens Koller <clemens.koller@anagramm.de> via
103708         Gary V. Vaughan <gary@gnu.org>.
103710 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
103712         * lib/inttypes_.h: Undo previous change, since it was fixed
103713         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
103715 2007-07-13  Bruno Haible  <bruno@clisp.org>
103717         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
103718         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
103720 2007-07-13  Jim Meyering  <jim@meyering.net>
103722         df: Don't fail for Tru64's "file-on-file mount".
103723         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
103724         so we fall through and use statfs instead.  Details here:
103725         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
103726         Reported by Albert Chin.
103728 2007-07-13  Bruno Haible  <bruno@clisp.org>
103730         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
103731         * modules/configmake (License): Likewise.
103732         * modules/gettext (License): Likewise.
103733         * modules/gettext-h (License): Likewise.
103734         * modules/include_next (License): Likewise.
103735         * modules/link-warning (License): Likewise.
103736         * modules/localcharset (License): Likewise.
103737         * modules/localename (License): Likewise.
103738         * modules/lock (License): Likewise.
103739         * modules/relocatable-lib-lgpl (License): Likewise.
103740         * modules/size_max (License): Likewise.
103741         * modules/vasnprintf (License): Likewise.
103742         * modules/wchar (License): Likewise.
103743         * modules/xsize (License): Likewise.
103745 2007-07-13  Bruno Haible  <bruno@clisp.org>
103747         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
103748         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
103750 2007-07-12  Bruno Haible  <bruno@clisp.org>
103752         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
103753         in the modules files.
103755 2007-07-11  Karl Berry  <karl@gnu.org>
103757         * MODULES.html.sh (func_module): use
103758          sed -e '\|^'"${includefile}"'$|d'
103759          instead of /.../d, to avoid errors on $includefile's containing /.
103761 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
103763         * gnulib-tool (func_import): Avoid duplication of --avoid
103764         statements
103765         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
103766         names to `_' in variable names.
103768 2007-07-10  Eric Blake  <ebb9@byu.net>
103770         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
103771         * NEWS: Document this change.
103773 2007-07-08  Bruno Haible  <bruno@clisp.org>
103775         Update to Unicode 5.0.
103776         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
103777         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
103778         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
103779         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
103780         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
103781         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
103782         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
103783         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
103784         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
103785         U+10A3F, U+1D242..U+1D244.
103786         (nonspacing_table_ind): Update.
103787         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
103788         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
103790 2007-07-08  Bruno Haible  <bruno@clisp.org>
103792         Update to Unicode 5.0.
103793         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
103794         code transform. Extend the name index field of unicode_name_to_code and
103795         unicode_code_to_name from 16 to 24 bits.
103796         * lib/uniname/uniname.c (unicode_character_name,
103797         unicode_name_character): Add the range 0x12xxx to the code transform.
103798         * lib/uniname/uninames.h: Regenerated.
103799         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
103801 2007-07-07  Bruno Haible  <bruno@clisp.org>
103803         * modules/wcwidth-tests: New file.
103804         * tests/test-wcwidth.c: New file.
103806         Work around MacOS X wcwidth() bug.
103807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
103808         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
103809         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
103810         original wcwidth in non-UTF-8 locales.
103811         * modules/wcwidth (Depends-on): Add localcharset, streq,
103812         uniwidth/width.
103813         * doc/functions/wcwidth.texi: Update.
103815 2007-07-07  Bruno Haible  <bruno@clisp.org>
103817         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
103818         (wcwidth): New declaration.
103819         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
103820         macros.
103821         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
103822         here. Prepare for creating <wchar.h> unconditionally.
103823         * modules/wchar (Depends-on): Add link-warning.
103824         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
103825         REPLACE_WCWIDTH, and GL_LINK_WARNING.
103826         * lib/wcwidth.h: Remove file.
103827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
103828         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
103829         * modules/wcwidth (Files): Remove lib/wcwidth.h.
103830         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
103831         (Include): Replace wcwidth.h with <wchar.h>.
103832         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
103833         * lib/mbchar.h: Don't include wcwidth.h.
103834         * lib/mbswidth.c: Likewise.
103835         * NEWS: Mention the change.
103837 2007-07-07  Bruno Haible  <bruno@clisp.org>
103839         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
103840         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
103841         definition with an external declaration.
103842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
103843         defined as a function. Remove AC_C_INLINE requirement.
103844         * modules/wcwidth (Files): Add lib/wcwidth.c.
103845         (Makefile.am): Remove redundant statement.
103847 2007-07-07  Bruno Haible  <bruno@clisp.org>
103849         * MODULES.html.sh (Unicode string functions): Add the new modules.
103851         * tests/uniwidth/test-u32-strwidth.c: New file.
103852         * modules/uniwidth/u32-strwidth-tests: New file.
103854         * lib/uniwidth/u32-strwidth.c: New file.
103855         * modules/uniwidth/u32-strwidth: New file.
103857         * tests/uniwidth/test-u16-strwidth.c: New file.
103858         * modules/uniwidth/u16-strwidth-tests: New file.
103860         * lib/uniwidth/u16-strwidth.c: New file.
103861         * modules/uniwidth/u16-strwidth: New file.
103863         * tests/uniwidth/test-u8-strwidth.c: New file.
103864         * modules/uniwidth/u8-strwidth-tests: New file.
103866         * lib/uniwidth/u8-strwidth.c: New file.
103867         * modules/uniwidth/u8-strwidth: New file.
103869         * tests/uniwidth/test-u32-width.c: New file.
103870         * modules/uniwidth/u32-width-tests: New file.
103872         * lib/uniwidth/u32-width.c: New file.
103873         * modules/uniwidth/u32-width: New file.
103875         * tests/uniwidth/test-u16-width.c: New file.
103876         * modules/uniwidth/u16-width-tests: New file.
103878         * lib/uniwidth/u16-width.c: New file.
103879         * modules/uniwidth/u16-width: New file.
103881         * tests/uniwidth/test-u8-width.c: New file.
103882         * modules/uniwidth/u8-width-tests: New file.
103884         * lib/uniwidth/u8-width.c: New file.
103885         * modules/uniwidth/u8-width: New file.
103887         * tests/uniwidth/test-uc_width.c: New file.
103888         * modules/uniwidth/width-tests: New file.
103890         * lib/uniwidth/width.c: New file, from GNU libiconv.
103891         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
103892         * modules/uniwidth/width: New file.
103894         * lib/uniwidth.h: New file, from GNU libiconv.
103895         * modules/uniwidth/base: New file.
103897 2007-07-07  Bruno Haible  <bruno@clisp.org>
103899         * lib/uniname.h: New file, from GNU gettext.
103900         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
103901         * lib/uniname/uninames.h: New file, from GNU gettext.
103902         * lib/uniname/uniname.c: New file, from GNU gettext.
103903         * tests/uniname/test-uninames.sh: New file.
103904         * tests/uniname/test-uninames.c: New file, from GNU gettext.
103905         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
103906         * modules/uniname/base: New file.
103907         * modules/uniname/uniname: New file.
103908         * modules/uniname/uniname-tests: New file.
103909         * MODULES.html.sh (Unicode string functions): Add the new modules.
103911 2007-07-06  Bruno Haible  <bruno@clisp.org>
103913         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
103915 2007-07-06  Bruno Haible  <bruno@clisp.org>
103917         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
103918         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
103919         includes <cygwin/sys_time.h> which includes <sys/select.h> which
103920         include <sys/time.h>.
103921         Reported by Eric Blake.
103923 2007-07-06  Eric Blake  <ebb9@byu.net>
103925         Fix testing canonicalize on cygwin.
103926         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103927         Revert patch from 2007-06-19.
103928         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
103929         canonicalize module is also in use.
103930         * tests/test-canonicalize.c: New file.
103931         * tests/test-canonicalize.sh: Likewise.
103932         * modules/canonicalize-tests: Likewise.
103934 2007-07-06  Jim Meyering  <jim@meyering.net>
103936         * lib/getugroups.c (getugroups): Detect getgrent failure.
103937         Adjust comment to reflect reality: this function may return -1.
103939 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
103941         * build-aux/bootstrap (TP_URL,get_translations): Update to use
103942         the new TP address.
103943         (usage): Fix typo
103944         (gnulib_mk): New variable.
103946 2007-07-05  Jim Meyering  <jim@meyering.net>
103948         Don't let endgrent clobber errno, no matter how improbable.
103949         * lib/getugroups.c (getugroups): Save and restore errno around
103950         endgrent call.
103952         Close the group DB even when failing with 2^31 or more members.
103953         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
103955 2007-07-04  Jim Meyering  <jim@meyering.net>
103957         * lib/getugroups.h: New file.
103958         * lib/getugroups.c: Include "getugroups.h".
103959         Remove uses of "register" keyword.
103960         Move local variable, "cp", down into scope where used.
103961         Give "username" parameter the "const" attribute.
103962         * modules/getugroups (Files): Add lib/getugroups.h
103964 2007-07-04  Karl Berry  <karl@gnu.org>
103966         * MODULES.html.sh (func_all_modules): Complete rename of
103967         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
103969 2007-07-02  Bruno Haible  <bruno@clisp.org>
103971         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
103972         mode, when inttypes.h comes from gnulib.
103973         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103975 2007-07-02  Simon Josefsson  <simon@josefsson.org>
103977         * NEWS: Mention lgpl module name change.
103979         * modules/lgpl-2.1: Renamed from lgpl.
103981         * NEWS: Mention gpl module name change.
103983         * modules/gpl-3.0: New file, based on gpl-2.0.
103985         * modules/gpl-2.0: Renamed from gpl.
103987         * modules/gpl: Fix filename, doc/gpl.texi is now found at
103988         doc/gpl-2.0.texi.
103990 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
103992         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
103993         #define __STDC_LIMIT_MACROS temporarily while including
103994         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
103995         Problem reported by Joel E. Denny in
103996         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
103998 2007-07-01  Bruno Haible  <bruno@clisp.org>
104000         * lib/unistdio.h: New file.
104001         * lib/unistdio/u-asnprintf.h: New file.
104002         * lib/unistdio/u-asprintf.h: New file.
104003         * lib/unistdio/u-printf-args.c: New file.
104004         * lib/unistdio/u-printf-args.h: New file.
104005         * lib/unistdio/u-printf-parse.h: New file.
104006         * lib/unistdio/u-snprintf.h: New file.
104007         * lib/unistdio/u-sprintf.h: New file.
104008         * lib/unistdio/u-vasprintf.h: New file.
104009         * lib/unistdio/u-vsnprintf.h: New file.
104010         * lib/unistdio/u-vsprintf.h: New file.
104011         * lib/unistdio/ulc-asnprintf.c: New file.
104012         * lib/unistdio/ulc-asprintf.c: New file.
104013         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
104014         * lib/unistdio/ulc-printf-parse.c: New file.
104015         * lib/unistdio/ulc-snprintf.c: New file.
104016         * lib/unistdio/ulc-sprintf.c: New file.
104017         * lib/unistdio/ulc-vasnprintf.c: New file.
104018         * lib/unistdio/ulc-vasprintf.c: New file.
104019         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
104020         * lib/unistdio/ulc-vsnprintf.c: New file.
104021         * lib/unistdio/ulc-vsprintf.c: New file.
104022         * lib/unistdio/u8-asnprintf.c: New file.
104023         * lib/unistdio/u8-asprintf.c: New file.
104024         * lib/unistdio/u8-printf-parse.c: New file.
104025         * lib/unistdio/u8-snprintf.c: New file.
104026         * lib/unistdio/u8-sprintf.c: New file.
104027         * lib/unistdio/u8-vasnprintf.c: New file.
104028         * lib/unistdio/u8-vasprintf.c: New file.
104029         * lib/unistdio/u8-vsnprintf.c: New file.
104030         * lib/unistdio/u8-vsprintf.c: New file.
104031         * lib/unistdio/u8-u8-asnprintf.c: New file.
104032         * lib/unistdio/u8-u8-asprintf.c: New file.
104033         * lib/unistdio/u8-u8-snprintf.c: New file.
104034         * lib/unistdio/u8-u8-sprintf.c: New file.
104035         * lib/unistdio/u8-u8-vasnprintf.c: New file.
104036         * lib/unistdio/u8-u8-vasprintf.c: New file.
104037         * lib/unistdio/u8-u8-vsnprintf.c: New file.
104038         * lib/unistdio/u8-u8-vsprintf.c: New file.
104039         * lib/unistdio/u16-asnprintf.c: New file.
104040         * lib/unistdio/u16-asprintf.c: New file.
104041         * lib/unistdio/u16-printf-parse.c: New file.
104042         * lib/unistdio/u16-snprintf.c: New file.
104043         * lib/unistdio/u16-sprintf.c: New file.
104044         * lib/unistdio/u16-vasnprintf.c: New file.
104045         * lib/unistdio/u16-vasprintf.c: New file.
104046         * lib/unistdio/u16-vsnprintf.c: New file.
104047         * lib/unistdio/u16-vsprintf.c: New file.
104048         * lib/unistdio/u16-u16-asnprintf.c: New file.
104049         * lib/unistdio/u16-u16-asprintf.c: New file.
104050         * lib/unistdio/u16-u16-snprintf.c: New file.
104051         * lib/unistdio/u16-u16-sprintf.c: New file.
104052         * lib/unistdio/u16-u16-vasnprintf.c: New file.
104053         * lib/unistdio/u16-u16-vasprintf.c: New file.
104054         * lib/unistdio/u16-u16-vsnprintf.c: New file.
104055         * lib/unistdio/u16-u16-vsprintf.c: New file.
104056         * lib/unistdio/u32-asnprintf.c: New file.
104057         * lib/unistdio/u32-asprintf.c: New file.
104058         * lib/unistdio/u32-printf-parse.c: New file.
104059         * lib/unistdio/u32-snprintf.c: New file.
104060         * lib/unistdio/u32-sprintf.c: New file.
104061         * lib/unistdio/u32-vasnprintf.c: New file.
104062         * lib/unistdio/u32-vasprintf.c: New file.
104063         * lib/unistdio/u32-vsnprintf.c: New file.
104064         * lib/unistdio/u32-vsprintf.c: New file.
104065         * lib/unistdio/u32-u32-asnprintf.c: New file.
104066         * lib/unistdio/u32-u32-asprintf.c: New file.
104067         * lib/unistdio/u32-u32-snprintf.c: New file.
104068         * lib/unistdio/u32-u32-sprintf.c: New file.
104069         * lib/unistdio/u32-u32-vasnprintf.c: New file.
104070         * lib/unistdio/u32-u32-vasprintf.c: New file.
104071         * lib/unistdio/u32-u32-vsnprintf.c: New file.
104072         * lib/unistdio/u32-u32-vsprintf.c: New file.
104073         * tests/unistdio/test-ulc-asnprintf1.c: New file.
104074         * tests/unistdio/test-ulc-asnprintf1.h: New file.
104075         * tests/unistdio/test-ulc-printf1.h: New file.
104076         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
104077         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
104078         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
104079         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
104080         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
104081         * tests/unistdio/test-ulc-vasprintf1.c: New file.
104082         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
104083         * tests/unistdio/test-ulc-vsprintf1.c: New file.
104084         * tests/unistdio/test-u8-asnprintf1.c: New file.
104085         * tests/unistdio/test-u8-asnprintf1.h: New file.
104086         * tests/unistdio/test-u8-printf1.h: New file.
104087         * tests/unistdio/test-u8-vasnprintf1.c: New file.
104088         * tests/unistdio/test-u8-vasnprintf2.c: New file.
104089         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
104090         * tests/unistdio/test-u8-vasnprintf3.c: New file.
104091         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
104092         * tests/unistdio/test-u8-vasprintf1.c: New file.
104093         * tests/unistdio/test-u8-vsnprintf1.c: New file.
104094         * tests/unistdio/test-u8-vsprintf1.c: New file.
104095         * tests/unistdio/test-u16-asnprintf1.c: New file.
104096         * tests/unistdio/test-u16-asnprintf1.h: New file.
104097         * tests/unistdio/test-u16-printf1.h: New file.
104098         * tests/unistdio/test-u16-vasnprintf1.c: New file.
104099         * tests/unistdio/test-u16-vasnprintf2.c: New file.
104100         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
104101         * tests/unistdio/test-u16-vasnprintf3.c: New file.
104102         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
104103         * tests/unistdio/test-u16-vasprintf1.c: New file.
104104         * tests/unistdio/test-u16-vsnprintf1.c: New file.
104105         * tests/unistdio/test-u16-vsprintf1.c: New file.
104106         * tests/unistdio/test-u32-asnprintf1.c: New file.
104107         * tests/unistdio/test-u32-asnprintf1.h: New file.
104108         * tests/unistdio/test-u32-printf1.h: New file.
104109         * tests/unistdio/test-u32-vasnprintf1.c: New file.
104110         * tests/unistdio/test-u32-vasnprintf2.c: New file.
104111         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
104112         * tests/unistdio/test-u32-vasnprintf3.c: New file.
104113         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
104114         * tests/unistdio/test-u32-vasprintf1.c: New file.
104115         * tests/unistdio/test-u32-vsnprintf1.c: New file.
104116         * tests/unistdio/test-u32-vsprintf1.c: New file.
104117         * modules/unistdio/base: New file.
104118         * modules/unistdio/u-printf-args: New file.
104119         * modules/unistdio/ulc-asnprintf: New file.
104120         * modules/unistdio/ulc-asprintf: New file.
104121         * modules/unistdio/ulc-fprintf: New file.
104122         * modules/unistdio/ulc-printf-parse: New file.
104123         * modules/unistdio/ulc-snprintf: New file.
104124         * modules/unistdio/ulc-sprintf: New file.
104125         * modules/unistdio/ulc-vasnprintf: New file.
104126         * modules/unistdio/ulc-vasprintf: New file.
104127         * modules/unistdio/ulc-vfprintf: New file.
104128         * modules/unistdio/ulc-vsnprintf: New file.
104129         * modules/unistdio/ulc-vsprintf: New file.
104130         * modules/unistdio/u8-asnprintf: New file.
104131         * modules/unistdio/u8-asprintf: New file.
104132         * modules/unistdio/u8-printf-parse: New file.
104133         * modules/unistdio/u8-snprintf: New file.
104134         * modules/unistdio/u8-sprintf: New file.
104135         * modules/unistdio/u8-vasnprintf: New file.
104136         * modules/unistdio/u8-vasprintf: New file.
104137         * modules/unistdio/u8-vsnprintf: New file.
104138         * modules/unistdio/u8-vsprintf: New file.
104139         * modules/unistdio/u8-u8-asnprintf: New file.
104140         * modules/unistdio/u8-u8-asprintf: New file.
104141         * modules/unistdio/u8-u8-snprintf: New file.
104142         * modules/unistdio/u8-u8-sprintf: New file.
104143         * modules/unistdio/u8-u8-vasnprintf: New file.
104144         * modules/unistdio/u8-u8-vasprintf: New file.
104145         * modules/unistdio/u8-u8-vsnprintf: New file.
104146         * modules/unistdio/u8-u8-vsprintf: New file.
104147         * modules/unistdio/u16-asnprintf: New file.
104148         * modules/unistdio/u16-asprintf: New file.
104149         * modules/unistdio/u16-printf-parse: New file.
104150         * modules/unistdio/u16-snprintf: New file.
104151         * modules/unistdio/u16-sprintf: New file.
104152         * modules/unistdio/u16-vasnprintf: New file.
104153         * modules/unistdio/u16-vasprintf: New file.
104154         * modules/unistdio/u16-vsnprintf: New file.
104155         * modules/unistdio/u16-vsprintf: New file.
104156         * modules/unistdio/u16-u16-asnprintf: New file.
104157         * modules/unistdio/u16-u16-asprintf: New file.
104158         * modules/unistdio/u16-u16-snprintf: New file.
104159         * modules/unistdio/u16-u16-sprintf: New file.
104160         * modules/unistdio/u16-u16-vasnprintf: New file.
104161         * modules/unistdio/u16-u16-vasprintf: New file.
104162         * modules/unistdio/u16-u16-vsnprintf: New file.
104163         * modules/unistdio/u16-u16-vsprintf: New file.
104164         * modules/unistdio/u32-asnprintf: New file.
104165         * modules/unistdio/u32-asprintf: New file.
104166         * modules/unistdio/u32-printf-parse: New file.
104167         * modules/unistdio/u32-snprintf: New file.
104168         * modules/unistdio/u32-sprintf: New file.
104169         * modules/unistdio/u32-vasnprintf: New file.
104170         * modules/unistdio/u32-vasprintf: New file.
104171         * modules/unistdio/u32-vsnprintf: New file.
104172         * modules/unistdio/u32-vsprintf: New file.
104173         * modules/unistdio/u32-u32-asnprintf: New file.
104174         * modules/unistdio/u32-u32-asprintf: New file.
104175         * modules/unistdio/u32-u32-snprintf: New file.
104176         * modules/unistdio/u32-u32-sprintf: New file.
104177         * modules/unistdio/u32-u32-vasnprintf: New file.
104178         * modules/unistdio/u32-u32-vasprintf: New file.
104179         * modules/unistdio/u32-u32-vsnprintf: New file.
104180         * modules/unistdio/u32-u32-vsprintf: New file.
104181         * modules/unistdio/ulc-asnprintf-tests: New file.
104182         * modules/unistdio/ulc-vasnprintf-tests: New file.
104183         * modules/unistdio/ulc-vasprintf-tests: New file.
104184         * modules/unistdio/ulc-vsnprintf-tests: New file.
104185         * modules/unistdio/ulc-vsprintf-tests: New file.
104186         * modules/unistdio/u8-asnprintf-tests: New file.
104187         * modules/unistdio/u8-vasnprintf-tests: New file.
104188         * modules/unistdio/u8-vasprintf-tests: New file.
104189         * modules/unistdio/u8-vsnprintf-tests: New file.
104190         * modules/unistdio/u8-vsprintf-tests: New file.
104191         * modules/unistdio/u16-asnprintf-tests: New file.
104192         * modules/unistdio/u16-vasnprintf-tests: New file.
104193         * modules/unistdio/u16-vasprintf-tests: New file.
104194         * modules/unistdio/u16-vsnprintf-tests: New file.
104195         * modules/unistdio/u16-vsprintf-tests: New file.
104196         * modules/unistdio/u32-asnprintf-tests: New file.
104197         * modules/unistdio/u32-vasnprintf-tests: New file.
104198         * modules/unistdio/u32-vasprintf-tests: New file.
104199         * modules/unistdio/u32-vsnprintf-tests: New file.
104200         * modules/unistdio/u32-vsprintf-tests: New file.
104201         * MODULES.html.sh (Unicode string functions): Add the new modules.
104203 2007-07-01  Bruno Haible  <bruno@clisp.org>
104205         * lib/sprintf.c (sprintf): Limit the available length estimation,
104206         to avoid address wraparound.
104207         * lib/vsprintf.c (vsprintf): Likewise.
104208         * modules/sprintf-posix (Dependencies): Add stdint.
104209         * modules/vsprintf-posix (Dependencies): Likewise.
104211 2007-07-01  Bruno Haible  <bruno@clisp.org>
104213         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
104214         Windows PATH as well. Conservative double-quoting. Comments.
104216 2007-07-01  Bruno Haible  <bruno@clisp.org>
104217             Eric Blake  <ebb9@byu.net>
104218             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104220         * gnulib-tool (self_abspathname): Fix algorithm to cope with
104221         empty components in $PATH, denoting '.'.
104223 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104225         * gnulib-tool: Fix indentation.
104226         (func_create_megatestdir): Likewise.
104227         Report by Bruno Haible.
104229 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104231         Sync from Automake.
104232         * build-aux/gnupload: Fix shell portability issues with for loops.
104233         Report by Karl Berry.
104235 2007-06-29  Simon Josefsson  <simon@josefsson.org>
104237         * build-aux/maint.mk (POURL): Use translationproject.org.
104239 2007-06-27  Simon Josefsson  <simon@josefsson.org>
104240             Bruno Haible  <bruno@clisp.org>
104242         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
104243         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
104244         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
104245         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
104246         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
104248 2007-06-27  Bruno Haible  <bruno@clisp.org>
104250         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
104251         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
104253 2007-06-26  Karl Berry  <karl@gnu.org>
104255         * MODULES.html.sh: remove xreadlink-with-size.
104257 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
104259         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
104260         method that I hope also handles the double-include problem noted
104261         by Bruno Haible in
104262         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
104264 2007-06-23  Bruno Haible  <bruno@clisp.org>
104266         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104267         Don't let the 'mostlyclean' target fail if the last subdirectory could
104268         not be removed.
104269         Reported by Karl Berry.
104271 2007-06-23  Bruno Haible  <bruno@clisp.org>
104273         * gnulib-tool (echo): Add a speedier workaround for ksh.
104274         * tests/test-echo.sh: Likewise.
104276 2007-06-23  Bruno Haible  <bruno@clisp.org>
104278         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
104279         * tests/test-echo.sh: Likewise.
104281 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104283         * gnulib-tool (IFS): Initialize early, so we don't set it to
104284         empty later.
104285         (self_abspathname): Rewrite algorithm to set it, reindent.
104286         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
104287         (func_create_megatestdir): Merge some sed scripts.
104289 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
104291         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
104292         exposed by Sun Studio 11 cc on Solaris 8.
104294 2007-06-22  Bruno Haible  <bruno@clisp.org>
104296         * gnulib-tool (echo): Ensure the echo primitive does not interpret
104297         backslashes.
104298         * tests/test-echo.sh: New file.
104300 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104302         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
104303         simplify `sed_replace_build_aux' scripts, they are portable but
104304         echoing them with `echo' is not.
104305         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
104307 2007-06-21  Karl Berry  <karl@gnu.org>
104309         * config/srclist.txt: guess we can't handle the licenses via
104310         srclist at the moment.
104312 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
104314         * MODULES.html.sh: Add include_next.
104315         * modules/include_next: New file.
104317 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
104319         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
104320         INCLUDE_NEXT.
104321         (gl_CHECK_NEXT_HEADERS): New macro.
104322         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
104323         the obsolescent gl_ABSOLUTE_HEADER.
104324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
104325         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
104326         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
104327         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
104328         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
104329         * m4/math_h.m4 (gl_MATH_H): Likewise.
104330         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
104331         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
104332         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
104333         * m4/stdint.m4 (gl_STDINT_H): Likewise.
104334         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
104335         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
104336         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
104337         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
104338         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
104339         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
104340         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
104341         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
104342         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
104343         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
104344         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
104345         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
104346         * m4/inttypes.m4 (gl_INTTYPES_H): Define
104347         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
104348         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
104349         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
104350         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
104351         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
104352         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
104353         * lib/float_.h: Likewise.
104354         * lib/inttypes_.h: Likewise.
104355         * lib/math_.h: Likewise.
104356         * lib/search_.h: Likewise.
104357         * lib/signal_.h: Likewise.
104358         * lib/stdint_.h: Likewise.
104359         * lib/stdio_.h: Likewise.
104360         * lib/stdlib_.h: Likewise.
104361         * lib/string_.h: Likewise.
104362         * lib/sys_stat_.h: Likewise.
104363         * lib/sys_time_.h: Likewise.
104364         * lib/time_.h: Likewise.
104365         * lib/unistd_.h: Likewise.
104366         * lib/wchar_.h: Likewise.
104367         * lib/wctype_.h: Likewise.
104368         * lib/dirent_.h: Likewise.
104369         * lib/iconv_.h: Likewise.
104370         * lib/locale_.h: Likewise.
104371         * lib/netinet_in_.h: Likewise.
104372         * lib/sys_select_.h: Likewise.
104373         * lib/sys_socket_.h: Likewise.
104374         * lib/sysexits_.h: Likewise.
104375         * modules/fcntl (Depends-on): Depend on include_next, not
104376         absolute_header.
104377         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
104378         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
104379         * modules/fchdir: Likewise.
104380         * modules/float: Likewise.
104381         * modules/iconv_open: Likewise.
104382         * modules/inttypes: Likewise.
104383         * modules/locale: Likewise.
104384         * modules/math: Likewise.
104385         * modules/netinet_in: Likewise.
104386         * modules/search: Likewise.
104387         * modules/signal: Likewise.
104388         * modules/stdint: Likewise.
104389         * modules/stdio: Likewise.
104390         * modules/stdlib: Likewise.
104391         * modules/string: Likewise.
104392         * modules/sys_select: Likewise.
104393         * modules/sys_socket: Likewise.
104394         * modules/sys_stat: Likewise.
104395         * modules/sys_time: Likewise.
104396         * modules/sysexits: Likewise.
104397         * modules/time: Likewise.
104398         * modules/unistd: Likewise.
104399         * modules/wchar: Likewise.
104400         * modules/wctype: Likewise.
104401         * modules/sys_stat: Change maintainer to "all".
104402         * modules/unistd: Likewise.
104404 2007-06-20  Karl Berry  <karl@gnu.org>
104406         * config/srclist.txt: track www changes in license files.
104408 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
104410         * build-aux/bootstrap: Remove stray dot.
104411         Make sure build_aux settings are honored when linking
104412         gnulib_extra_files.
104414 2007-06-19  Eric Blake  <ebb9@byu.net>
104416         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
104417         Allow compilation on cygwin.
104419 2007-06-19  Jim Meyering  <jim@meyering.net>
104421         xreadlink-with-size: Remove module.  No longer used.
104422         Ex-callers now use xreadlink or mreadlink-with-size.
104423         * modules/xreadlink-with-size: Remove module.
104424         * lib/xreadlink-with-size.c: Remove file.
104425         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
104426         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
104427         just before the function definition *is* accurate.
104429         Eliminate one way canonicalize_filename_mode could exit.
104430         * lib/canonicalize.c (canonicalize_filename_mode):
104431         Use mreadlink_with_size, not xreadlink_with_size.
104433 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
104435         Detect porting problems to FreeBSD/arm, which has time_t wider than
104436         long int.  Original problem reported for GNU diff by Xin Li in
104437         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
104438         * modules/getdate (Depends-on): Add intprops, verify.
104439         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
104440         is an integer type no wider than long int.
104442 2007-06-18  Jim Meyering  <jim@meyering.net>
104444         New module: mreadlink-with-size.
104445         * MODULES.html.sh: Add mreadlink-with-size.
104446         * modules/mreadlink-with-size: New module
104447         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
104448         not xreadlink-with-size.
104449         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
104451 2007-06-16  Bruno Haible  <bruno@clisp.org>
104453         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
104454         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
104455         Reported by Gary V. Vaughan <gary@gnu.org>.
104457 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
104459         Revamp lchown so that it lives in unistd.h where it belongs.
104460         * lib/lchown.h: Remove.
104461         * lib/dirchownmod.c: Don't include lib/lchown.h.
104462         * lib/fchownat.c: Likewise.
104463         * lib/openat.c: Likewise.
104464         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
104465         does not follow symlinks.
104466         (EOPNOTSUPP): Define if not defined.
104467         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
104468         is defined to 0.
104469         (lchown): New decl.
104470         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
104471         Do not check for lchown decl.
104472         Set REPLACE_LCHOWN.
104473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
104474         REPLACE_LCHOWN.
104475         * modules/chown: Make it clear it follows symlinks.
104476         * modules/lchown: Make it clear it doesn't follow symlinks.
104477         (Files): Remove lib/lchown.h
104478         (Depends-on): Add unistd.
104479         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
104480         (Include): Include <unistd.h>, not "lchown.h".
104481         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
104482         REPLACE_LCHOWN.
104484 2007-06-15  Jim Meyering  <jim@meyering.net>
104486         Change license (GPL to LGPL) of fsusage and dependents.
104487         * modules/fsusage (License): Change to LGPL.
104488         * modules/full-read (License): Likewise.
104489         * modules/full-write (License): Likewise.
104490         * modules/safe-read (License): Likewise.
104491         * modules/safe-write (License): Likewise.
104493 2007-06-14  Ben Pfaff  <blp@gnu.org>
104495         Missing part of allocsa -> malloca transition.
104496         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
104497         gl_MALLOCA.
104499 2007-06-12  Bruno Haible  <bruno@clisp.org>
104501         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
104502         to ia64, x86_64, i386.
104503         Reported by Eric Blake.
104505 2007-06-12  Bruno Haible  <bruno@clisp.org>
104507         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
104508         cross-compiling to x86_64.
104510 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
104512         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
104513         glitch reported by Ralf Wildenhues in
104514         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
104516         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
104517         Vin Shelton.
104519 2007-06-11  Bruno Haible  <bruno@clisp.org>
104521         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
104522         replacement string.
104523         Reported by Eric Blake.
104525 2007-06-10  Bruno Haible  <bruno@clisp.org>
104527         Prepare vasnprintf code for use with Unicode strings.
104528         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
104529         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
104530         TYPE_U32_STRING.
104531         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
104532         a_u32_string variants.
104533         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104534         * lib/printf-args.c: Don't include config.h and the specification
104535         header if PRINTF_FETCHARGS is already defined.
104536         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104537         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
104538         TYPE_U16_STRING, TYPE_U32_STRING.
104539         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
104540         u16_directive, u16_directives, u32_directive, u32_directives): New
104541         types.
104542         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
104543         New declarations.
104544         * lib/printf-parse.c: Don't include config.h and the specification
104545         header if PRINTF_PARSE is already defined. Eliminate the set of
104546         parameters for WIDE_CHAR_VERSION; the user of this file must provide
104547         them now. Include c-ctype.h.
104548         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
104549         directive and CHAR_T_ONLY_ASCII.
104550         * lib/vasnprintf.c: Don't include config.h and the specification header
104551         if VASNPRINTF is already defined.
104552         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
104553         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
104554         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
104555         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
104556         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
104557         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
104558         code accordingly.
104559         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
104560         pad_ourselves also in this case, with the 'c' and 's' directives, and
104561         with a different notion of "width".
104562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
104564 2007-06-10  Bruno Haible  <bruno@clisp.org>
104566         * modules/unistr/u32-mbsnlen: New file.
104567         * lib/unistr/u32-mbsnlen.c: New file.
104569         * modules/unistr/u16-mbsnlen: New file.
104570         * lib/unistr/u16-mbsnlen.c: New file.
104572         * modules/unistr/u8-mbsnlen: New file.
104573         * lib/unistr/u8-mbsnlen.c: New file.
104575         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
104576         declarations.
104578 2007-06-10  Bruno Haible  <bruno@clisp.org>
104580         * lib/string_.h (mbsnlen): New declaration.
104581         * lib/mbsnlen.c: New file.
104582         * m4/mbsnlen.m4: New file.
104583         * modules/mbsnlen: New file.
104584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
104585         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
104586         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
104588 2007-06-10  Bruno Haible  <bruno@clisp.org>
104590         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
104592 2007-06-10  Bruno Haible  <bruno@clisp.org>
104594         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
104595         * lib/mbuiter.h: Likewise.
104597 2007-06-10  Bruno Haible  <bruno@clisp.org>
104599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
104600         declaration.
104602 2007-06-10  Karl Berry  <karl@gnu.org>
104604         * config/srclist.txt: remove gettext entries, Bruno prefers
104605         to update individually.
104607 2007-06-10  Bruno Haible  <bruno@clisp.org>
104609         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
104610         'maxlen'. Ensure only length + width bytes are allocated, not
104611         length + 1 + width.
104613 2007-06-09  Bruno Haible  <bruno@clisp.org>
104615         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
104616         (CHAR_T): Remove macro.
104617         (VASNPRINTF): Update.
104619 2007-06-09  Bruno Haible  <bruno@clisp.org>
104621         * MODULES.html.sh (Unicode string functions): Add the new modules.
104623         * modules/uniconv/u32-conv-to-enc: New file.
104624         * lib/uniconv/u32-conv-to-enc.c: New file.
104625         * modules/uniconv/u32-conv-to-enc-tests: New file.
104626         * tests/uniconv/test-u32-conv-to-enc.c: New file.
104628         * modules/uniconv/u16-conv-to-enc: New file.
104629         * lib/uniconv/u16-conv-to-enc.c: New file.
104630         * lib/uniconv/u-conv-to-enc.h: New file.
104631         * modules/uniconv/u16-conv-to-enc-tests: New file.
104632         * tests/uniconv/test-u16-conv-to-enc.c: New file.
104634         * modules/uniconv/u8-conv-to-enc: New file.
104635         * lib/uniconv/u8-conv-to-enc.c: New file.
104636         * modules/uniconv/u8-conv-to-enc-tests: New file.
104637         * tests/uniconv/test-u8-conv-to-enc.c: New file.
104639         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
104640         u32_conv_to_encoding): New declarations.
104642 2007-06-09  Bruno Haible  <bruno@clisp.org>
104644         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
104646 2007-06-09  Bruno Haible  <bruno@clisp.org>
104648         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
104649         * modules/malloca: Renamed from modules/allocsa, updated.
104650         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
104651         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
104652         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
104653         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
104654         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
104655         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
104656         * modules/xmalloca: Renamed from modules/xallocsa, updated.
104657         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
104658         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
104659         * modules/c-strcasestr (Depends-on): Update.
104660         * lib/c-strcasestr.c: Update.
104661         * modules/c-strstr (Depends-on): Update.
104662         * lib/c-strstr.c: Update.
104663         * modules/canonicalize-lgpl (Depends-on): Update.
104664         * lib/canonicalize-lgpl.c: Update.
104665         * modules/clean-temp (Depends-on): Update.
104666         * lib/clean-temp.c: Update.
104667         * modules/csharpcomp (Depends-on): Update.
104668         * lib/csharpcomp.c: Update.
104669         * modules/csharpexec (Depends-on): Update.
104670         * lib/csharpexec.c: Update.
104671         * modules/javacomp (Depends-on): Update.
104672         * lib/javacomp.c: Update.
104673         * modules/javaexec (Depends-on): Update.
104674         * lib/javaexec.c: Update.
104675         * modules/mbscasestr (Depends-on): Update.
104676         * lib/mbscasestr.c: Update.
104677         * modules/mbsstr (Depends-on): Update.
104678         * lib/mbsstr.c: Update.
104679         * modules/setenv (Depends-on): Update.
104680         * lib/setenv.c: Update.
104681         * modules/strcasestr (Depends-on): Update.
104682         * lib/strcasestr.c: Update.
104683         * modules/striconveha (Depends-on): Update.
104684         * lib/striconveha.c: Update.
104685         * modules/relocatable-prog-wrapper (Files): Update.
104686         * lib/relocwrapper.c: Update.
104687         * build-aux/install-reloc: Update.
104688         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
104690 2007-06-08  Bruno Haible  <bruno@clisp.org>
104692         Port to uClibc.
104693         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
104694         * lib/fpurge.c (fpurge): Likewise.
104695         * lib/freading.c (freading): Likewise.
104696         * lib/fseeko.c (rpl_fseeko): Likewise.
104697         * lib/fseterr.c (fseterr): Likewise.
104698         * lib/fwriting.c (fwriting): Likewise.
104699         * tests/test-fflush.c (main): Avoid a failure on uClibc.
104701 2007-06-08  Bruno Haible  <bruno@clisp.org>
104703         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
104704         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
104705         * modules/gettext (Files): Add m4/intlmacosx.m4.
104707 2007-06-07  Bruno Haible  <bruno@clisp.org>
104709         * modules/localename-tests: New file.
104710         * tests/test-localename.c: New file.
104712         New module 'localename'.
104713         * lib/localename.h: New file.
104714         * lib/localename.c: New file, from GNU gettext.
104715         * m4/localename.m4: New file.
104716         * modules/localename: New file.
104718 2007-06-07  Bruno Haible  <bruno@clisp.org>
104720         Work around the lack of <wchar.h> on some builds of uClibc.
104721         * doc/headers/wchar.texi: Update.
104722         * lib/wchar_.h: Include <wchar.h> only if it exists.
104723         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
104724         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
104725         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
104726         doesn't exist.
104727         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
104728         * modules/mbfile (Depends-on): Add wchar.
104729         * modules/mbiter (Depends-on): Likewise.
104730         * modules/mbuiter (Depends-on): Likewise.
104731         Reported by Simon Josefsson.
104733 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
104735         Work around problem reported by Steven M. Schweda in
104736         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
104737         Tru64 5.1B with the Compaq compiler environment installed declares
104738         an 'isblank' function but does not define it in the C library.
104739         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
104740         * lib/regex_internal.h (isblank): Likewise.
104741         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
104742         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
104744 2007-06-05  Bruno Haible  <bruno@clisp.org>
104746         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
104747         ia64.
104748         * modules/printf-safe: New file.
104749         * modules/fprintf-posix (Depends-on): Add printf-safe.
104750         * modules/printf-posix (Depends-on): Likewise.
104751         * modules/snprintf-posix (Depends-on): Likewise.
104752         * modules/sprintf-posix (Depends-on): Likewise.
104753         * modules/vasnprintf-posix (Depends-on): Likewise.
104754         * modules/vasprintf-posix (Depends-on): Likewise.
104755         * modules/vfprintf-posix (Depends-on): Likewise.
104756         * modules/vprintf-posix (Depends-on): Likewise.
104757         * modules/vsnprintf-posix (Depends-on): Likewise.
104758         * modules/vsprintf-posix (Depends-on): Likewise.
104759         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
104760         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
104761         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
104762         "no" on i386, x86_64, ia64.
104763         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
104764         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104765         on i386, x86_64, ia64.
104766         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
104767         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104768         on i386, x86_64, ia64.
104769         * tests/test-vasnprintf-posix.c: Include float.h.
104770         (LDBL80_WORDS): New macro.
104771         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104772         on i386, x86_64, ia64.
104773         * tests/test-vasprintf-posix.c: Include float.h.
104774         (LDBL80_WORDS): New macro.
104775         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104776         on i386, x86_64, ia64.
104777         * tests/test-snprintf-posix.c: Include float.h.
104778         * tests/test-sprintf-posix.c: Likewise.
104779         * tests/test-vsnprintf-posix.c: Likewise.
104780         * tests/test-vsprintf-posix.c: Likewise.
104782 2007-06-05  Bruno Haible  <bruno@clisp.org>
104784         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
104785         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
104786         non-IEEE numbers on i386, x86_64, ia64.
104787         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
104788         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
104789         * tests/test-isnanl.h: Include float.h.
104790         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
104792 2007-06-05  Bruno Haible  <bruno@clisp.org>
104794         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
104795         also the %a / %A. Handle the %a / %A code before this extra handling.
104797 2007-06-05  Bruno Haible  <bruno@clisp.org>
104799         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
104800         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
104802 2007-06-05  Bruno Haible  <bruno@clisp.org>
104804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
104805         typo in variable name.
104807 2007-06-05  Eric Blake  <ebb9@byu.net>
104809         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
104810         Reported by Simon Josefsson.
104812 2007-06-04  Bruno Haible  <bruno@clisp.org>
104814         Avoid test failures on some PowerPC platforms.
104815         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
104816         Define differently for PowerPC.
104817         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
104818         Reported by Gary V. Vaughan <gary@gnu.org>.
104820 2007-06-02  Bruno Haible  <bruno@clisp.org>
104822         Fix test-stdint failure on FreeBSD/ia64.
104823         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
104824         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
104825         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
104826         * doc/headers/stdint.texi: Update.
104828 2007-06-01  Bruno Haible  <bruno@clisp.org>
104830         * tests/test-binary-io.c (main): Pass a third argument to open().
104831         Reported by Gary V. Vaughan <gary@gnu.org>.
104833 2007-06-01  Bruno Haible  <bruno@clisp.org>
104835         * doc/functions/frexpl.texi: Update for mingw.
104837 2007-06-01  Bruno Haible  <bruno@clisp.org>
104839         * tests/test-lseek.c (main): Disable test of errno for invalid third
104840         argument.
104841         * doc/functions/lseek.texi: Update.
104842         Reported by Gary V. Vaughan <gary@gnu.org>.
104844 2007-05-28  Bruno Haible  <bruno@clisp.org>
104846         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
104848 2007-05-31  Eric Blake  <ebb9@byu.net>
104850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
104851         cross compiling.
104853 2007-05-30  Eric Blake  <ebb9@byu.net>
104854         and Bruno Haible  <bruno@clisp.org>
104856         Work around mingw test failures exposed by m4-1.4.9b.
104857         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
104858         * tests/test-unistd.c: Disable uid_t and git_t tests for the
104859         moment.
104861 2007-05-30  Bruno Haible  <bruno@clisp.org>
104863         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
104864         assuming that they are closed. Needed on HP-UX 11.
104866 2007-05-29  Bruno Haible  <bruno@clisp.org>
104868         Fix a problem with #include_next.
104869         * lib/dirent_.h: Split the double-inclusion guard.
104870         * lib/fcntl_.h: Likewise.
104871         * lib/float_.h: Likewise.
104872         * lib/iconv_.h: Likewise.
104873         * lib/inttypes_.h: Likewise.
104874         * lib/locale_.h: Likewise.
104875         * lib/math_.h: Likewise.
104876         * lib/netinet_in_.h: Likewise.
104877         * lib/search_.h: Likewise.
104878         * lib/signal_.h: Likewise.
104879         * lib/stdint_.h: Likewise.
104880         * lib/stdio_.h: Likewise.
104881         * lib/stdlib_.h: Likewise.
104882         * lib/string_.h: Likewise.
104883         * lib/sys_select_.h: Likewise.
104884         * lib/sys_socket_.h: Likewise.
104885         * lib/sys_stat_.h: Likewise.
104886         * lib/sys_time_.h: Likewise.
104887         * lib/sysexits_.h: Likewise.
104888         * lib/time_.h: Likewise.
104889         * lib/unistd_.h: Likewise.
104890         * lib/wchar_.h: Likewise.
104891         * lib/wctype_.h: Likewise.
104893 2007-05-29  Bruno Haible  <bruno@clisp.org>
104895         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
104896         for the moment.
104898 2007-05-29  Bruno Haible  <bruno@clisp.org>
104900         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
104901         invocation.
104902         Reported by Eric Blake.
104904 2007-05-29  Bruno Haible  <bruno@clisp.org>
104906         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
104907         compiling case.
104909 2007-05-29  Eric Blake  <ebb9@byu.net>
104910             Bruno Haible  <bruno@clisp.org>
104912         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
104913         cross compiles.
104915 2007-05-28  Eric Blake  <ebb9@byu.net>
104917         * modules/closein-tests (test_closein_LDADD): Support test on
104918         cygwin with libtool.
104920 2007-05-28  Bruno Haible  <bruno@clisp.org>
104922         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
104923         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
104924         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
104925         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
104926         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
104927         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
104928         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
104929         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
104930         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
104932 2007-05-28  Eric Blake  <ebb9@byu.net>
104934         Unconditionally include <config.h> in unit tests.
104935         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
104936         * tests/test-allocsa.c, tests/test-arcfour.c,
104937         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
104938         tests/test-array_list.c, tests/test-array_oset.c,
104939         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
104940         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
104941         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
104942         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
104943         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
104944         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
104945         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
104946         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
104947         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
104948         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
104949         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
104950         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
104951         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
104952         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
104953         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
104954         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
104955         test-md5.c, test-memmem.c, test-printf-posix.c,
104956         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
104957         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
104958         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
104959         test-strcasestr.c, test-striconv.c, test-striconveh.c,
104960         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
104961         test-vasnprintf-posix2.c, test-vasnprintf.c,
104962         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
104963         test-vfprintf-posix.c, test-vprintf-posix.c,
104964         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
104965         test-xvasprintf.c: Likewise.
104967 2007-05-28  Bruno Haible  <bruno@clisp.org>
104969         * gnulib-tool (func_import): Remember the --with-tests command-line
104970         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
104971         Reported by Eric Blake.
104973 2007-05-28  Bruno Haible  <bruno@clisp.org>
104975         * modules/ftell-tests: New file.
104976         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
104977         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
104979         * lib/ftell.c: New file.
104980         * modules/ftell: New file.
104981         * m4/ftell.m4: New file.
104982         * doc/functions/ftell.texi: Update.
104983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
104984         REPLACE_FTELL.
104985         * lib/stdio_.h (rpl_ftell): New declaration.
104986         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
104987         REPLACE_FTELL.
104989 2007-05-28  Eric Blake  <ebb9@byu.net>
104991         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
104993 2007-05-28  Bruno Haible  <bruno@clisp.org>
104995         * modules/fseek-tests: New file.
104996         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
104997         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
104999         * lib/fseek.c: New file.
105000         * modules/fseek: New file.
105001         * m4/fseek.m4: New file.
105002         * doc/functions/fseek.texi: Update.
105003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
105004         REPLACE_FSEEK.
105005         * lib/stdio_.h (rpl_fseek): New declaration.
105006         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
105007         REPLACE_FSEEK.
105009 2007-05-28  Bruno Haible  <bruno@clisp.org>
105011         * lib/stdio_.h (fflush): More comments.
105013 2007-05-28  Bruno Haible  <bruno@clisp.org>
105015         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
105016         runtime test.
105018 2007-05-28  Eric Blake  <ebb9@byu.net>
105020         Improve lseek module.
105021         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
105022         * lib/unistd_.h (lseek): Scale back link warning message.
105023         * tests/test-lseek.c: Beef up test.
105024         * tests/test-lseek.sh: Exercise more facets of lseek.
105025         Reported by Bruno Haible.
105027 2007-05-28  Bruno Haible  <bruno@clisp.org>
105029         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
105030         to define.
105032 2007-05-27  Bruno Haible  <bruno@clisp.org>
105034         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
105036 2007-05-27  Bruno Haible  <bruno@clisp.org>
105038         * modules/openmp: New file.
105039         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
105040         Noah Misch.
105042 2007-05-26  Bruno Haible  <bruno@clisp.org>
105044         * modules/chdir-long (Depends-on): Add fchdir.
105045         * modules/chdir-safer (Depends-on): Likewise.
105046         * modules/fts (Depends-on): Likewise.
105047         * modules/fts-lgpl (Depends-on): Likewise.
105048         * modules/openat (Depends-on): Likewise.
105049         * modules/savewd (Depends-on): Likewise.
105051 2007-05-24  Eric Blake  <ebb9@byu.net>
105053         Fix lseek on mingw.
105054         * modules/lseek: New module.
105055         * m4/lseek.m4: New file.
105056         * lib/lseek.c: New file.
105057         * modules/lseek-tests: New file.
105058         * tests/test-lseek.c: New file.
105059         * tests/test-lseek.sh: New file.
105060         * MODULES.html.sh: Document lseek module.
105061         * modules/fflush (Depends-on): Add lseek, fseeko.
105062         * modules/fseeko (Depends-on): Likewise.
105063         * modules/ftello (Depends-on): Likewise.
105064         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
105065         broken.
105066         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
105067         broken.
105068         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
105069         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
105070         * lib/ftello.c (rpl_ftello): Likewise.
105071         * tests/test-fseeko.c (main): Test this.
105072         * tests/test-fseeko.sh: Likewise.
105073         * tests/test-ftello.c (main): Likewise.
105074         * tests/test-ftello.sh: Likewise.
105075         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
105076         implies replacing fseek.
105077         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
105078         HAVE_FTELLO.
105079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
105080         * modules/unistd (Makefile.am): Likewise.
105081         * lib/unistd_.h (lseek): Declare a replacement.
105082         * doc/functions/lseek.texi (lseek): Document this fix.
105083         * doc/functions/fseek.texi (fseek): Likewise.
105084         * doc/functions/ftell.texi (ftell): Likewise.
105086 2007-05-24  Bruno Haible  <bruno@clisp.org>
105088         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
105089         in the printed representation of a NaN.
105090         * tests/test-vasprintf-posix.c (test_function): Likewise.
105091         * tests/test-snprintf-posix.h (test_function): Likewise.
105092         * tests/test-sprintf-posix.h (test_function): Likewise.
105093         Reported by Eric Blake.
105095 2007-05-23  Eric Blake  <ebb9@byu.net>
105097         Fix fseeko/ftello on cygwin 1.5.24.
105098         * doc/functions/fseeko.texi (fseeko): Document the fix.
105099         * doc/functions/ftello.texi (ftello): Document the fix.
105100         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
105101         * doc/functions/stdout.text (stdout): New file.
105102         * doc/functions/stderr.text (stderr): New file.
105103         * doc/gnulib.texi (Function Substitutes): Use new files.
105104         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
105105         prior to 1.7.0.
105106         * tests/test-ftello.c (main): Likewise for ftello.
105107         * tests/test-fseeko.sh: New file.
105108         * tests/test-ftello.sh: New file.
105109         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
105110         with seekable stdin.
105111         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
105112         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
105113         (gl_REPLACE_FSEEKO): New macro.
105114         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
105115         * modules/fseeko (Files): Distribute fseeko.c.
105116         * modules/ftello (Files): Distribute ftello.c.
105117         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
105118         mode.
105119         * lib/ftello.c (rpl_ftello): New file.
105120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
105121         fseeko, ftello.
105122         (gl_STDIN_LARGE_OFFSET): New macro.
105123         * modules/stdio (Makefile.am): Perform the replacement.
105124         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
105126 2007-05-23  Bruno Haible  <bruno@clisp.org>
105128         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
105129         GNULIB_POSIXCHECK is defined.
105131 2007-05-21  Bruno Haible  <bruno@clisp.org>
105133         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
105134         Check also the output for NaN arguments. When cross-compiling, guess
105135         no on IRIX.
105136         * lib/vasnprintf.c: Update comments.
105137         * tests/test-vasnprintf-posix.c (strisnan): New function.
105138         (test_function): Use it.
105139         * tests/test-vasprintf-posix.c (strisnan): New function.
105140         (test_function): Use it.
105141         * tests/test-snprintf-posix.h (strisnan): New function.
105142         (test_function): Use it.
105143         * tests/test-sprintf-posix.h (strisnan): New function.
105144         (test_function): Use it.
105145         Reported by Eric Blake.
105147 2007-05-20  Bruno Haible  <bruno@clisp.org>
105149         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
105150         numbers that fails on BeOS.
105151         * doc/functions/frexpl.texi: Update.
105153 2007-05-20  Jim Meyering  <jim@meyering.net>
105155         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
105156         forced upon us by glibc-2.6.
105158 2007-05-20  Bruno Haible  <bruno@clisp.org>
105160         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
105161         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
105162         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
105163         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
105164         NEED_PRINTF_INFINITE.
105165         (is_infinitel): New function.
105166         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
105167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
105168         gl_PREREQ_VASNPRINTF_INFINITE.
105169         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
105170         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105171         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
105172         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
105173         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
105174         gl_PREREQ_VASNPRINTF_INFINITE.
105175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105176         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105177         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105179         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105182         * doc/functions/fprintf.texi: Update.
105183         * doc/functions/printf.texi: Update.
105184         * doc/functions/snprintf.texi: Update.
105185         * doc/functions/sprintf.texi: Update.
105186         * doc/functions/vfprintf.texi: Update.
105187         * doc/functions/vprintf.texi: Update.
105188         * doc/functions/vsnprintf.texi: Update.
105189         * doc/functions/vsprintf.texi: Update.
105191 2007-05-20  Bruno Haible  <bruno@clisp.org>
105193         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
105194         was not found in libc.
105195         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
105197 2007-05-20  Bruno Haible  <bruno@clisp.org>
105199         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
105200         printed as "-nan" instead of "nan".
105201         * tests/test-vasprintf-posix.c (test_function): Likewise.
105202         * tests/test-snprintf-posix.h (test_function): Likewise.
105203         * tests/test-sprintf-posix.h (test_function): Likewise.
105204         Needed for HP-UX 11.
105206 2007-05-20  Jim Meyering  <jim@meyering.net>
105208         Fix buggy test for the fchownat-deref bug.
105209         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
105210         symlink required for the run-test.  Without it, this test would
105211         always declare that fchownat doesn't work, and client code would
105212         unnecessarily use the replacement function with fixed libc.
105213         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
105214         Reported by Greg Schafer.
105216 2007-05-19  Bruno Haible  <bruno@clisp.org>
105218         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
105219         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
105220         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
105221         Needed for IRIX 6.5 and Solaris 2.5.1.
105223 2007-05-19  Bruno Haible  <bruno@clisp.org>
105225         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
105226         (test_function): Skip tests involving -0.0 on platforms where
105227         -0.0 = 0.0.
105228         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
105229         (test_function): Skip tests involving -0.0 on platforms where
105230         -0.0 = 0.0.
105231         * tests/test-snprintf-posix.h (have_minus_zero): New function.
105232         (test_function): Skip tests involving -0.0 on platforms where
105233         -0.0 = 0.0.
105234         * tests/test-sprintf-posix.h (have_minus_zero): New function.
105235         (test_function): Skip tests involving -0.0 on platforms where
105236         -0.0 = 0.0.
105237         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
105238         tests.
105239         * tests/test-printf-posix.h (test_function): Likewise.
105240         * tests/test-printf-posix.output: Remove all -0.0 related results.
105241         Needed for IRIX 6.5.
105243 2007-05-19  Bruno Haible  <bruno@clisp.org>
105245         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
105246         printed as "nan0x7fffffff" instead of "nan".
105247         * tests/test-vasprintf-posix.c (test_function): Likewise.
105248         * tests/test-snprintf-posix.h (test_function): Likewise.
105249         * tests/test-sprintf-posix.h (test_function): Likewise.
105250         * tests/test-fprintf-posix.h (NaN): Remove macro.
105251         (test_function): Remove all NaN related tests.
105252         * tests/test-printf-posix.h (NaN): Remove macro.
105253         (test_function): Remove all NaN related tests.
105254         * tests/test-printf-posix.output: Remove all NaN related results.
105255         Needed for IRIX 6.5.
105257 2007-05-19  Bruno Haible  <bruno@clisp.org>
105259         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
105260         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
105262 2007-05-19  Bruno Haible  <bruno@clisp.org>
105264         * lib/float_.h: New file.
105265         * m4/float_h.m4: New file.
105266         * modules/float: New file.
105267         * modules/isnanl (Dependencies): Add float.
105268         * modules/isnanl-nolibm (Dependencies): Likewise.
105269         * modules/mathl (Dependencies): Likewise.
105270         * modules/printf-frexpl (Dependencies): Likewise.
105271         * modules/signbit (Dependencies): Likewise.
105272         * modules/vasnprintf (Dependencies): Likewise.
105273         * doc/headers/float.texi: Update.
105275 2007-05-19  Jim Meyering  <jim@meyering.net>
105277         * lib/utimens.c (gl_futimens): Rename from futimens,
105278         now that glibc-2.6 declares futimens.
105279         * lib/utimens.h: Likewise.
105281 2007-05-19  Bruno Haible  <bruno@clisp.org>
105283         Avoid test failures on mingw.
105284         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
105285         * tests/test-printf-posix.sh: Likewise.
105286         * tests/test-vfprintf-posix.sh: Likewise.
105287         * tests/test-vprintf-posix.sh: Likewise.
105289 2007-05-19  Bruno Haible  <bruno@clisp.org>
105291         Fix *printf result for NaN, Inf, -0.0 on mingw.
105292         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
105293         * lib/vasnprintf.c: Include math.h and isnan.h.
105294         (is_infinite_or_zero): New function.
105295         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
105296         values in the %f, %F, %e, %E, %g, %G directives.
105297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
105298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105299         gl_PRINTF_INFINITE and test its result. Invoke
105300         gl_PREREQ_VASNPRINTF_INFINITE.
105301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105302         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105304         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105305         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105306         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105307         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105308         * doc/functions/fprintf.texi: Update.
105309         * doc/functions/printf.texi: Update.
105310         * doc/functions/snprintf.texi: Update.
105311         * doc/functions/sprintf.texi: Update.
105312         * doc/functions/vfprintf.texi: Update.
105313         * doc/functions/vprintf.texi: Update.
105314         * doc/functions/vsnprintf.texi: Update.
105315         * doc/functions/vsprintf.texi: Update.
105317 2007-05-19  Bruno Haible  <bruno@clisp.org>
105319         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
105320         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
105321         Instead of multiplying with 10^k, set extra_zeroes to k.
105322         (scale10_round_long_double): Remove function.
105324 2007-05-18  Bruno Haible  <bruno@clisp.org>
105326         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
105327         introduced on 2007-05-06.
105329 2007-05-18  Bruno Haible  <bruno@clisp.org>
105331         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
105332         %g directives.
105333         * tests/test-vasprintf-posix.c (test_function): Likewise.
105334         * tests/test-snprintf-posix.h (test_function): Likewise.
105335         * tests/test-sprintf-posix.h (test_function): Likewise.
105337 2007-05-18  Bruno Haible  <bruno@clisp.org>
105339         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
105340         (strmatch): New function.
105341         (test_function): Test the %f directive on numbers of various exponents.
105342         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
105343         (strmatch): New function.
105344         (test_function): Test the %f directive on numbers of various exponents.
105345         * tests/test-snprintf-posix.h (strmatch): New function.
105346         (test_function): Test the %f directive on numbers of various exponents.
105347         * tests/test-sprintf-posix.h (strmatch): New function.
105348         (test_function): Test the %f directive on numbers of various exponents.
105349         * tests/test-snprintf-posix.c (SIZEOF): New macro.
105350         * tests/test-sprintf-posix.c (SIZEOF): New macro.
105351         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
105352         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
105354 2007-05-18  Bruno Haible  <bruno@clisp.org>
105356         Add support for 'long double' number output.
105357         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
105358         * lib/vasnprintf.c: Include math.h and float+.h.
105359         (mp_limb_t): New type.
105360         (GMP_LIMB_BITS): New macro.
105361         (mp_twolimb_t): New type.
105362         (GMP_TWOLIMB_BITS): New macro.
105363         (mpn_t): New type.
105364         (multiply, divide, convert_to_decimal, decode_long_double,
105365         scale10_round_long_double, scale10_round_decimal_long_double,
105366         floorlog10l): New functions.
105367         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
105368         for the %f, %F, %e, %E, %g, %G directives.
105369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
105370         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105371         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
105372         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
105373         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105374         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105377         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105379         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105380         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
105381         * modules/snprintf-posix (Depends-on): Likewise.
105382         * modules/sprintf-posix (Depends-on): Likewise.
105383         * modules/vasnprintf-posix (Depends-on): Likewise.
105384         * modules/vasprintf-posix (Depends-on): Likewise.
105385         * modules/vfprintf-posix (Depends-on): Likewise.
105386         * modules/vsnprintf-posix (Depends-on): Likewise.
105387         * modules/vsprintf-posix (Depends-on): Likewise.
105388         * modules/vasnprintf (Files): Add lib/float+.h.
105389         * doc/functions/fprintf.texi: Update.
105390         * doc/functions/printf.texi: Update.
105391         * doc/functions/snprintf.texi: Update.
105392         * doc/functions/sprintf.texi: Update.
105393         * doc/functions/vfprintf.texi: Update.
105394         * doc/functions/vprintf.texi: Update.
105395         * doc/functions/vsnprintf.texi: Update.
105396         * doc/functions/vsprintf.texi: Update.
105398 2007-05-18  Bruno Haible  <bruno@clisp.org>
105400         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
105402 2007-05-18  Bruno Haible  <bruno@clisp.org>
105404         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
105405         for printing 64-bit integers. Needed for mingw.
105407 2007-05-18  Bruno Haible  <bruno@clisp.org>
105409         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105410         gl_FUNC_FREXPL_WORKS.
105411         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
105413 2007-05-18  Bruno Haible  <bruno@clisp.org>
105415         * modules/frexpl-nolibm-tests: New file.
105417         * modules/frexpl-nolibm: New file.
105418         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
105420 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105422         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
105423         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
105424         GCC 4.2, which otherwise issues a lot of warnings.
105425         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
105426         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
105427         Likewise.
105428         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
105429         * modules/iconv_open (iconv.h): Likewise.
105430         * modules/locale (locale.h): Likewise.
105431         * modules/netinet_in (netinet/in.h): Likewise.
105432         * modules/sys_select (sys_select.h): Likewise.
105433         * modules/sys_socket (sys/socket.h): Likewise.
105434         * modules/sys_stat (sys/stat.h): Likewise.
105435         * modules/sysexits (sysexits.h): Likewise.
105436         * modules/unistd (unistd.h): Likewise.
105438 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105440         * modules/closein-tests (Makefile.am): Distribute
105441         `test-closein.sh'.
105443 2007-05-17  Bruno Haible  <bruno@clisp.org>
105445         * tests/test-printf-posix.output: Renamed from
105446         tests/test-fprintf-posix.out.
105447         * modules/fprintf-posix-tests: Update.
105448         * modules/printf-posix-tests: Update.
105449         * modules/vfprintf-posix-tests: Update.
105450         * modules/vprintf-posix-tests: Update.
105451         * tests/test-fprintf-posix.sh: Update.
105452         * tests/test-printf-posix.sh: Update.
105453         * tests/test-vfprintf-posix.sh: Update.
105454         * tests/test-vprintf-posix.sh: Update.
105455         Reported by Ralf Wildenhues.
105457 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105459         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
105460         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
105461         GCC 4.2, which otherwise issues a lot of warnings.
105462         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
105463         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
105464         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
105465         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
105466         it should no longer be needed.
105467         * lib/string_.h: Likewise.
105468         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
105469         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
105470         * modules/inttypes (inttypes.h): Likewise.
105471         * modules/math (math.h): Likewise.
105472         * modules/search (search.h): Likewise.
105473         * modules/signal (signal.h): Likewise.
105474         * modules/stdint (stdint.h): Likewise.
105475         * modules/stdio (stdio.h): Likewise.
105476         * modules/stdlib (stdlib.h): Likewise.
105477         * modules/string (string.h): Likewise.
105478         * modules/sys_time (sys/time.h): Likewise.
105479         * modules/time (time.h): Likewise.
105480         * modules/wchar (wchar.h): Likewise.
105481         * modules/wctype (wtype.h): Likewise.
105483 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
105485         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
105487 2007-05-13  Bruno Haible  <bruno@clisp.org>
105489         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
105490         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105491         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
105492         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105493         (gl_PREREQ_STRTOK_R): Don't require it here.
105495 2007-05-13  Bruno Haible  <bruno@clisp.org>
105497         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
105498         when used in C++ mode.
105500 2007-05-12  Bruno Haible  <bruno@clisp.org>
105502         * lib/linebuffer.h: Tweak doc.
105503         * lib/linebuffer.c: Likewise.
105505 2007-05-12  James Youngman  <jay@gnu.org>
105507         * lib/linebuffer.c (readlinebuffer_delim): New function,
105508         like readlinebuffer, but use a caller-specified delimiter.
105509         (readlinebuffer): Just call readlinebuffer_delim with '\n'
105510         as the delimiter.
105511         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
105513 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
105515         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
105516         * modules/openat (Files): Remove openat-die.c.
105517         (Depends-on): Add openat-die.
105518         * modules/openat-die: New module.
105520 2007-05-06  Bruno Haible  <bruno@clisp.org>
105522         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
105523         Update with info about Cygwin.
105524         * doc/functions/fprintf.texi: Update.
105525         * doc/functions/printf.texi: Update.
105526         * doc/functions/snprintf.texi: Update.
105527         * doc/functions/sprintf.texi: Update.
105528         * doc/functions/vfprintf.texi: Update.
105529         * doc/functions/vprintf.texi: Update.
105530         * doc/functions/vsnprintf.texi: Update.
105531         * doc/functions/vsprintf.texi: Update.
105532         Reported by Eric Blake.
105534 2007-05-06  Bruno Haible  <bruno@clisp.org>
105536         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
105537         padding ourselves for the floating-point directives.
105538         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
105539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
105540         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105541         gl_PRINTF_FLAG_ZERO and test its result. Invoke
105542         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
105543         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105544         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105550         * tests/test-snprintf-posix.h (test_function): Also check the width
105551         and some flags in the %f directive.
105552         * tests/test-sprintf-posix.h (test_function): Likewise.
105553         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105554         * tests/test-vasprintf-posix.c (test_function): Likewise.
105555         * doc/functions/fprintf.texi: Update.
105556         * doc/functions/printf.texi: Update.
105557         * doc/functions/snprintf.texi: Update.
105558         * doc/functions/sprintf.texi: Update.
105559         * doc/functions/vfprintf.texi: Update.
105560         * doc/functions/vprintf.texi: Update.
105561         * doc/functions/vsnprintf.texi: Update.
105562         * doc/functions/vsprintf.texi: Update.
105564 2007-05-06  Bruno Haible  <bruno@clisp.org>
105566         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
105567         pass the ' flag character to sprintf or snprintf.
105568         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
105569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
105570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105571         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
105572         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
105573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105580         * tests/test-snprintf-posix.h (test_function): Also check the grouping
105581         flag.
105582         * tests/test-sprintf-posix.h (test_function): Likewise.
105583         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105584         * tests/test-vasprintf-posix.c (test_function): Likewise.
105585         * doc/functions/fprintf.texi: Update.
105586         * doc/functions/printf.texi: Update.
105587         * doc/functions/snprintf.texi: Update.
105588         * doc/functions/sprintf.texi: Update.
105589         * doc/functions/vfprintf.texi: Update.
105590         * doc/functions/vprintf.texi: Update.
105591         * doc/functions/vsnprintf.texi: Update.
105592         * doc/functions/vsprintf.texi: Update.
105594 2007-05-01  Bruno Haible  <bruno@clisp.org>
105596         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
105598 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
105600         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
105601         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
105603 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105605         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
105606         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
105607         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
105609 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
105611         * lib/argp-help.c (struct hol_entry): New member `ord'.
105612         (HOL_ENTRY_PTRCMP): Use ord for comparison
105613         (hol_sort): Initialize ord.
105615 2007-05-01  Bruno Haible  <bruno@clisp.org>
105617         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
105618         Reported by Eric Blake.
105619         * doc/gnulib.texi (Function Substitutes): Update.
105621 2007-05-01  Bruno Haible  <bruno@clisp.org>
105623         * doc/functions.texi: Remove file, now redundant through
105624         doc/functions/*.texi.
105626 2007-05-01  Bruno Haible  <bruno@clisp.org>
105628         * modules/argp (Depends-on): Add sleep.
105630 2007-05-01  Bruno Haible  <bruno@clisp.org>
105632         * modules/sleep-tests: New file.
105633         * tests/test-sleep.c: New file.
105635         * modules/sleep: New file.
105636         * lib/sleep.c: New file.
105637         * m4/sleep.m4: New file.
105638         * lib/unistd_.h (sleep): New declaration.
105639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
105640         HAVE_SLEEP.
105641         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
105642         * doc/functions/sleep.texi: Document the sleep module.
105644 2007-05-01  Bruno Haible  <bruno@clisp.org>
105646         * lib/sigprocmask.h: Remove file.
105647         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
105648         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
105649         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
105650         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
105651         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
105652         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
105653         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
105654         HAVE_SIGSET_T as a shell variable.
105655         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
105656         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
105657         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
105658         (Depends-on): Add signal. Remove verify.
105659         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
105660         (Include): Mention <signal.h> instead of sigprocmask.h.
105661         * NEWS: Mention the change.
105662         * lib/fatal-signal.c: Don't include sigprocmask.h.
105664 2007-05-01  Bruno Haible  <bruno@clisp.org>
105666         * modules/signal: New file.
105667         * lib/signal_.h: New file.
105668         * m4/signal_h.m4: New file.
105670 2007-05-01  Bruno Haible  <bruno@clisp.org>
105672         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
105673         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
105674         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
105675         HAVE_WCTYPE_CTMP_BUG into wctype.h.
105677 2007-05-01  Bruno Haible  <bruno@clisp.org>
105679         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
105680         configure time.
105681         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
105682         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
105683         * modules/sys_stat (Makefile.am): Substitute their values into
105684         sys/stat.h.
105686 2007-05-01  Bruno Haible  <bruno@clisp.org>
105688         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
105689         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
105690         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
105692 2007-05-01  Bruno Haible  <bruno@clisp.org>
105694         * doc/header/assert.texi: Undo last change: don't mention the gnulib
105695         'assert' module here.
105697 2007-05-01  Bruno Haible  <bruno@clisp.org>
105699         * doc/functions/*.texi: New files.
105700         * doc/functions/google-ranking.txt: New file.
105701         * doc/gnulib.texi (Function Substitutes): New chapter.
105702         (ctime, inet_ntoa): Remove sections.
105703         * doc/ctime.texi: Remove file.
105704         * doc/inet_ntoa.texi: Remove file.
105705         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
105706         dependencies.
105707         (%.info): New rule, specifying a --reference-limit.
105709 2007-05-01  Bruno Haible  <bruno@clisp.org>
105711         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
105713 2007-05-01  Bruno Haible  <bruno@clisp.org>
105715         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
105716         the portability of 'mkdir' to mingw systems.
105718 2007-05-01  Bruno Haible  <bruno@clisp.org>
105720         * doc/headers/google-ranking.txt: New file.
105722 2007-04-30  Eric Blake  <ebb9@byu.net>
105724         Prefer fseeko to fseek.
105725         * modules/getpass (Depends-on): Add fseeko.
105726         * lib/getpass.c (getpass): Use fseeko, not fseek.
105728 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
105730         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
105731         assumes the sorting is stable, while most qsort implementations
105732         are not.  Use argument addresses to ensure they never compare as
105733         equal.
105735         * tests/test-argp-2.sh (usage-indent test): Fix output
105736         (func_compare): Restore diff options
105737         * tests/test-argp.c: Restore #include "progname.h"
105739 2007-04-29  Bruno Haible  <bruno@clisp.org>
105741         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
105742         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105743         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
105744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105745         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
105746         (configure.ac): Define CHECK_SNPRINTF_POSIX.
105747         (TESTS, check_PROGRAMS): Add test-snprintf.
105748         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
105749         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
105750         (TESTS, check_PROGRAMS): Add test-vsnprintf.
105751         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
105752         assertions that fail on HP-UX, OSF/1, or IRIX.
105753         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
105755 2007-04-29  Bruno Haible  <bruno@clisp.org>
105757         * MODULES.html.sh (posix_functions): Remove 'contents'.
105759 2007-04-29  Karl Berry  <karl@gnu.org>
105761         * config/srclist.txt (gendocs_template_min): new entry.
105763 2007-04-29  Bruno Haible  <bruno@clisp.org>
105765         Work around fpurge bug on BSD systems.
105766         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
105767         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
105768         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
105769         fpurge to rpl_fpurge if the system already has this function.
105770         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
105771         the case where the system already has this function. Correct invariants
105772         on BSD systems.
105773         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
105774         BSD systems.
105776 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
105778         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
105779         proposed by Sven Verdoolaege.
105781         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
105782         options.
105783         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
105784         (usage and help tests): Update
105786 2007-04-29  Bruno Haible  <bruno@clisp.org>
105788         * tests/test-fflush.c (main): Use a file of size 17, not 10.
105789         Print more information in case of failure. Disable a test on BeOS.
105791 2007-04-29  Bruno Haible  <bruno@clisp.org>
105793         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
105794         This helps debugging on systems on which no gdb is available.
105796 2007-04-29  Bruno Haible  <bruno@clisp.org>
105798         * lib/freading.h: Improve comments.
105799         * lib/fwriting.h: Likewise.
105800         * tests/test-freading.c (main): Don't check freading immediately after
105801         repositioning. Needed for glibc.
105803 2007-04-29  Bruno Haible  <bruno@clisp.org>
105805         * lib/freading.c (freading): Trivial simplification.
105807 2007-04-28  Bruno Haible  <bruno@clisp.org>
105809         * tests/test-fwriting.c (main): Also test the interaction between
105810         fflush and fwriting.
105811         * modules/fwriting-tests (Depends-on): Add fflush.
105813         * tests/test-freading.c (main): Also test the interaction between
105814         fflush and freading.
105815         * modules/freading-tests (Depends-on): Add fflush.
105817 2007-04-28  Bruno Haible  <bruno@clisp.org>
105819         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
105820         fseeko and ftello.
105821         Suggested by Eric Blake.
105823 2007-04-28  Jim Meyering  <jim@meyering.net>
105825         Avoid false-negative in gl_STDINT_H's C99 conformance test.
105826         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
105827         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
105829 2007-04-27  Eric Blake  <ebb9@byu.net>
105831         * doc/headers/assert.texi (assert.h): Document assert module use.
105833 2007-04-27  Bruno Haible  <bruno@clisp.org>
105835         * doc/headers/*.texi: New files.
105836         * doc/gnulib.texi (Header File Substitutes): New chapter.
105837         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
105838         dependencies.
105839         (standards.info ,standards.html, standards.dvi): Update dependencies.
105840         (mostlyclean, clean): New targets.
105842 2007-04-27  Bruno Haible  <bruno@clisp.org>
105844         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
105845         * modules/sysexits (Files, Makefile.am): Update.
105847         * lib/sys_socket_.h: Renamed from lib/socket_.h.
105848         * modules/sys_socket (Files, Makefile.am): Update.
105850         * lib/sys_stat_.h: Renamed from lib/stat_.h.
105851         * modules/sys_stat (Files, Makefile.am): Update.
105853 2007-04-27  Eric Blake  <ebb9@byu.net>
105855         * lib/freading.h: Improve comments.
105856         * lib/fwriting.h: Likewise.
105857         * lib/fflush.c: Likewise.
105859         Fix closein for mingw.
105860         * modules/closein-tests: Add tests for closein.
105861         * tests/test-closein.c: New file.
105862         * tests/test-closein.sh: Likewise.
105863         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
105864         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
105866 2007-04-27  Bruno Haible  <bruno@clisp.org>
105868         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
105869         version is < 6.
105870         * lib/math_.h [__DECC]: Likewise.
105871         * lib/stdio_.h [__DECC]: Likewise.
105872         * lib/stdlib_.h [__DECC]: Likewise.
105873         * lib/string_.h [__DECC]: Likewise.
105874         * lib/time_.h [__DECC]: Likewise.
105875         * lib/wchar_.h [__DECC]: Likewise.
105876         * lib/wctype_.h [__DECC]: Likewise.
105878 2007-04-27  Bruno Haible  <bruno@clisp.org>
105880         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
105882 2007-04-27  Bruno Haible  <bruno@clisp.org>
105884         * lib/fflush.c: Add comments.
105885         * modules/fpurge-tests (Depends-on): Add fflush.
105886         * modules/freadable-tests (Depends-on): Likewise.
105887         * modules/fwritable-tests (Depends-on): Likewise.
105889 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
105891         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
105892         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
105893         Report by Bruno Haible <bruno@clisp.org>.
105895 2007-04-26  Eric Blake  <ebb9@byu.net>
105897         Fix fflush on mingw.
105898         * modules/fflush (Depends-on): Add freading.
105899         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
105900         but unread data.
105902 2007-04-26  Eric Blake  <ebb9@byu.net>
105903         and Bruno Haible  <bruno@clisp.org>
105905         Implement freading and fwriting.
105906         * lib/freading.c: New file.
105907         * lib/freading.h: Likewise.
105908         * m4/freading.m4: Likewise.
105909         * modules/freading: Likewise.
105910         * modules/freading-tests: Likewise.
105911         * tests/test-freading.c: Likewise.
105912         * lib/fwriting.c: New file.
105913         * lib/fwriting.h: Likewise.
105914         * m4/fwriting.m4: Likewise.
105915         * modules/fwriting: Likewise.
105916         * modules/fwriting-tests: Likewise.
105917         * tests/test-fwriting.c: Likewise.
105918         * MODULES.html.sh (File stream based Input/Output): Mention them.
105920 2007-04-26  Bruno Haible  <bruno@clisp.org>
105922         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
105923         'long' when we assume it.
105924         Suggested by Eric Blake.
105926 2007-04-26  Bruno Haible  <bruno@clisp.org>
105928         Ensure fseeko, ftello are declared on glibc systems.
105929         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
105930         * modules/fseeko (configure.ac-early): Likewise.
105931         * modules/ftello (configure.ac-early): Likewise.
105932         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
105933         AC_FUNC_FSEEKO for this.
105934         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
105935         (gl_CHECK_FSEEKO): Remove macro.
105937 2007-04-26  Bruno Haible  <bruno@clisp.org>
105939         * tests/test-fflush.c (main): Also check the ftell result after
105940         fflush and fseek/fseeko.
105941         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
105942         file descriptor position cache in the stream.
105943         * lib/fseeko.c (rpl_fseeko): Likewise.
105945 2007-04-26  Bruno Haible  <bruno@clisp.org>
105947         * modules/fflush-tests (Depends-on): Add fseeko.
105949 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
105950             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105952         * lib/argz_.h: ensure error_t definition is obtained in same
105953         mechanism system argz.h would have.
105954         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
105955         argz facilities are known bad.  Err on the side of caution if
105956         cross-compiling.
105958 2007-04-25  Eric Blake  <ebb9@byu.net>
105960         * lib/fpurge.c (includes): Use stdlib.h for free.
105961         * tests/test-fflush.c (main): Also test fflush-fseeko.
105963 2007-04-25  Bruno Haible  <bruno@clisp.org>
105965         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
105966         * lib/fseeko.c: New file.
105967         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
105968         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
105969         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
105970         gl_FUNC_FSEEKO.
105971         (gl_FUNC_FSEEKO): Invoke it.
105972         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
105973         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
105974         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
105976 2007-04-25  Bruno Haible  <bruno@clisp.org>
105978         * modules/fflush (Depends-on): Add ftello.
105980 2007-04-25  Bruno Haible  <bruno@clisp.org>
105982         * modules/ftello-tests: New file.
105983         * tests/test-ftello.c: New file.
105985         * modules/ftello: New file.
105986         * m4/ftello.m4: New file.
105987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
105988         HAVE_FTELLO.
105989         * lib/stdio_.h (ftello): New declaration.
105990         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
105991         HAVE_FTELLO.
105993 2007-04-25  Bruno Haible  <bruno@clisp.org>
105995         * modules/fseeko-tests: New file.
105996         * tests/test-fseeko.c: New file.
105998         * modules/fseeko: New file.
105999         * m4/fseeko.m4: New file.
106000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
106001         HAVE_FSEEKO.
106002         * lib/stdio_.h (fseeko): New declaration.
106003         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
106004         HAVE_FSEEKO.
106006 2007-04-25  Bruno Haible  <bruno@clisp.org>
106008         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
106010 2007-04-25  Bruno Haible  <bruno@clisp.org>
106012         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
106013         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
106014         * tests/test-unistd.c: Likewise.
106015         * tests/test-fcntl.c: Likewise.
106017 2007-04-23  Eric Blake  <ebb9@byu.net>
106019         * lib/fflush.c: Fix missing include.
106020         Reported by Bruno Haible.
106022 2007-04-23  Bruno Haible  <bruno@clisp.org>
106024         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
106025         Reported by Eric Blake.
106027 2007-04-23  Bruno Haible  <bruno@clisp.org>
106029         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
106031 2007-04-23  Bruno Haible  <bruno@clisp.org>
106033         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
106035 2007-04-23  Bruno Haible  <bruno@clisp.org>
106037         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
106038         Needed on HP-UX 11.
106040 2007-04-16  Eric Blake  <ebb9@byu.net>
106042         Make fflush rely on fpurge.
106043         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
106044         open coding all variants.
106045         * modules/fflush (Depends-on): Add fpurge and unistd.
106046         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
106047         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
106049         Fix --with-tests compilation on cygwin.
106050         * modules/argmatch-tests (Makefile.am): List gnulib library first
106051         in LDADD.
106052         * modules/argp-tests (Makefile.am): Likewise.
106053         * modules/array-list-tests (Makefile.am): Likewise.
106054         * modules/array-oset-tests (Makefile.am): Likewise.
106055         * modules/avltree-list-tests (Makefile.am): Likewise.
106056         * modules/avltree-oset-tests (Makefile.am): Likewise.
106057         * modules/avltreehash-list-tests (Makefile.am): Likewise.
106058         * modules/carray-list-tests (Makefile.am): Likewise.
106059         * modules/dirname-tests (Makefile.am): Likewise.
106060         * modules/frexp-tests (Makefile.am): Likewise.
106061         * modules/isnanl-tests (Makefile.am): Likewise.
106062         * modules/linked-list-tests (Makefile.am): Likewise.
106063         * modules/linkedhash-list-tests (Makefile.am): Likewise.
106064         * modules/lock-tests (Makefile.am): Likewise.
106065         * modules/rbtree-list-tests (Makefile.am): Likewise.
106066         * modules/rbtree-oset-tests (Makefile.am): Likewise.
106067         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
106068         * modules/tls-tests (Makefile.am): Likewise.
106069         * modules/tsearch-tests (Makefile.am): Likewise.
106070         * modules/xvasprintf-tests (Makefile.am): Likewise.
106072         Fix fpurge for cygwin.
106073         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
106074         value.
106075         * modules/fpurge-tests (Depends-on): Clean up trash.
106077 2007-04-16  Simon Josefsson  <simon@josefsson.org>
106079         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
106081         * m4/autobuild.m4: Re-indent.
106083 2007-04-13  Bruno Haible  <bruno@clisp.org>
106085         * modules/fpurge-tests: New file.
106086         * tests/test-fpurge.c: New file.
106088         * modules/fpurge: New file.
106089         * lib/fpurge.h: New file.
106090         * lib/fpurge.c: New file.
106091         * m4/fpurge.m4: New file.
106093 2007-04-13  Bruno Haible  <bruno@clisp.org>
106095         * modules/fbufmode-tests: New file.
106096         * tests/test-fbufmode.c: New file.
106098         * modules/fbufmode: New file.
106099         * lib/fbufmode.h: New file.
106100         * lib/fbufmode.c: New file.
106101         * m4/fbufmode.m4: New file.
106103 2007-04-13  Bruno Haible  <bruno@clisp.org>
106105         * modules/fwritable-tests: New file.
106106         * tests/test-fwritable.c: New file.
106108         * modules/fwritable: New file.
106109         * lib/fwritable.h: New file.
106110         * lib/fwritable.c: New file.
106111         * m4/fwritable.m4: New file.
106113 2007-04-13  Bruno Haible  <bruno@clisp.org>
106115         * modules/freadable-tests: New file.
106116         * tests/test-freadable.c: New file.
106118         * modules/freadable: New file.
106119         * lib/freadable.h: New file.
106120         * lib/freadable.c: New file.
106121         * m4/freadable.m4: New file.
106123 2007-04-13  Bruno Haible  <bruno@clisp.org>
106125         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
106126         MOSTLYCLEANFILES.
106128 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106130         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
106131         gzip bootstrap.conf to avoid dragging in i18n machinery.
106132         (gnulib_tool_option): Use it.
106134 2007-04-13  Bruno Haible  <bruno@clisp.org>
106136         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
106137         %F directives.
106138         * tests/test-vasprintf-posix.c (test_function): Likewise.
106139         * tests/test-snprintf-posix.h (test_function): Likewise.
106140         * tests/test-sprintf-posix.h (test_function): Likewise.
106141         * tests/test-fprintf-posix.h (test_function): Likewise.
106142         * tests/test-printf-posix.h (test_function): Likewise.
106143         * tests/test-fprintf-posix.out: Likewise.
106145 2007-04-13  Bruno Haible  <bruno@clisp.org>
106147         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
106148         * modules/tls-tests (configure.ac): Likewise.
106149         Reported by Arto C. Nirkko <anirkko@insel.ch>.
106151 2007-04-13  Bruno Haible  <bruno@clisp.org>
106153         * lib/tls.c (glthread_tls_get): Fix return type.
106154         Patch by Arto C. Nirkko <anirkko@insel.ch>.
106156 2007-04-12  Eric Blake  <ebb9@byu.net>
106158         * modules/gettime (Depends-on): Remove gettime.
106159         Reported by Dmitry V. Levin.
106161 2007-04-12  Bruno Haible  <bruno@clisp.org>
106163         * modules/fflush (Include): Mention <stdio.h>.
106164         * modules/strtoimax (Include): Mention <inttypes.h>.
106165         * modules/strtoumax (Include): Likewise.
106167 2007-04-12  Eric Blake  <ebb9@byu.net>
106169         * .cvsignore: New file.
106170         * .gitignore: Likewise.
106172 2007-04-12  Bruno Haible  <bruno@clisp.org>
106174         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
106175         not before, since $(LDADD) often contains libgnu.a.
106176         * modules/striconv-tests (test_striconv_LDADD): Likewise.
106177         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
106178         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
106179         Needed on Cygwin.
106181 2007-04-12  Eric Blake  <ebb9@byu.net>
106183         Work around glibc's failure to flush stdin on fclose.
106184         * lib/closein.c (close_stdin): Flush stdin before closing.
106186         Work around glibc's failure to reset seekable stdin on exit.
106187         * modules/closein: New module.
106188         * lib/closein.c: New file.
106189         * lib/closein.h: Likewise.
106190         * m4/closein.m4: Likewise.
106191         * MODULES.html.sh (File stream based Input/Output): Document it.
106193 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106195         * gnulib-tool: Rename generated 'autobuild' script to
106196         'do-autobuild' in --create-megatestdir output.
106198         * doc/gnulib.texi (Build robot for gnulib): Fix.
106200 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106202         * modules/sysexits (Depends-on): Add absolute-header.
106204 2007-04-12  Eric Blake  <ebb9@byu.net>
106206         No need to preserve errno on success.
106207         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
106208         Reported by Bruno Haible.
106210 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106212         * MODULES.html.sh (Support for maintaining and releasing
106213         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
106215 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106217         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
106219 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106221         * modules/autobuild: New module.
106223         * m4/autobuild.m4: New file.
106225 2007-04-11  Bruno Haible  <bruno@clisp.org>
106227         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
106228         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
106229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
106230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
106231         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
106232         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106233         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106234         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
106235         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106236         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106237         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
106238         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106239         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106240         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
106241         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106242         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106243         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
106244         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106245         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
106247         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106248         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
106250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106252         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
106253         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106254         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106255         Reported by Eric Blake.
106257 2007-04-11  Bruno Haible  <bruno@clisp.org>
106259         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
106261 2007-04-10  Bruno Haible  <bruno@clisp.org>
106263         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
106264         for NaN and Infinity. Needed on FreeBSD 6.1.
106265         * tests/test-vasnprintf-posix.c (test_function): Undo last change
106266         regarding results for "%010a" of Infinity and NaN.
106267         * tests/test-vasprintf-posix.c (test_function): Likewise.
106268         * tests/test-snprintf-posix.h (test_function): Likewise.
106269         * tests/test-sprintf-posix.h (test_function): Likewise.
106270         * tests/test-fprintf-posix.h (test_function): Likewise.
106271         * tests/test-printf-posix.h (test_function): Likewise.
106272         * tests/test-fprintf-posix.out: Likewise.
106274 2007-04-10  Bruno Haible  <bruno@clisp.org>
106276         * modules/locale-tests: New file.
106277         * tests/test-locale.c: New file.
106279         * modules/locale: New file.
106280         * lib/locale_.h: New file.
106281         * m4/locale_h.m4: New file.
106283 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
106284             Bruno Haible  <bruno@clisp.org>
106286         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
106287         be determined, test for availability of the copysignf, copysign,
106288         copysignl functions.
106289         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
106290         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
106291         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
106293 2007-04-09  Eric Blake  <ebb9@byu.net>
106295         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
106296         * modules/stdio (Makefile.am): Support fflush.
106297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
106298         * modules/fflush: New file.
106299         * lib/fflush.c: Likewise.
106300         * m4/fflush.m4: Likewise.
106301         * modules/fflush-tests: New test.
106302         * tests/test-fflush.c: Likewise.
106303         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
106305 2007-04-06  Bruno Haible  <bruno@clisp.org>
106307         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
106308         (VASNPRINTF): Use signbit for faster determination whether to print a
106309         minus sign.
106310         * modules/vasnprintf (Files): Remove lib/float+.h.
106311         * modules/fprintf-posix (Depends-on): Add signbit.
106312         * modules/snprintf-posix (Depends-on): Likewise.
106313         * modules/sprintf-posix (Depends-on): Likewise.
106314         * modules/vasnprintf-posix (Depends-on): Likewise.
106315         * modules/vasprintf-posix (Depends-on): Likewise.
106316         * modules/vfprintf-posix (Depends-on): Likewise.
106317         * modules/vsnprintf-posix (Depends-on): Likewise.
106318         * modules/vsprintf-posix (Depends-on): Likewise.
106320 2007-04-06  Bruno Haible  <bruno@clisp.org>
106322         * tests/test-frexp.c (main): Test also the sign bit of zero results.
106323         * tests/test-frexpl.c (main): Likewise.
106324         * tests/test-ldexpl.c (main): Likewise.
106325         * modules/frexp-tests (Depends-on): Add signbit.
106326         * modules/frexpl-tests (Depdends-on): Likewise.
106327         * modules/ldexpl-tests (Depdends-on): Likewise.
106329 2007-04-06  Bruno Haible  <bruno@clisp.org>
106331         * modules/signbit-tests: New file.
106332         * tests/test-signbit.c: New file.
106334         * modules/signbit: New file.
106335         * lib/signbitf.c: New file.
106336         * lib/signbitd.c: New file.
106337         * lib/signbitl.c: New file.
106338         * m4/signbit.m4: New file.
106339         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
106340         (signbit): New macro.
106341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
106342         REPLACE_SIGNBIT.
106343         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
106344         REPLACE_FREXPL into math.h.
106346 2007-04-06  Bruno Haible  <bruno@clisp.org>
106348         * modules/isnanf-nolibm-tests: New file.
106349         * tests/test-isnanf.c: New file.
106351         * modules/isnanf-nolibm: New file.
106352         * lib/isnanf.h: New file.
106353         * lib/isnanf.c: New file.
106354         * lib/isnan.c: Consider the USE_FLOAT macro.
106355         * m4/isnanf.m4: New file.
106357 2007-04-06  Bruno Haible  <bruno@clisp.org>
106359         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
106360         (Link): New section.
106362         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
106364 2007-04-06  Bruno Haible  <bruno@clisp.org>
106366         Assume the 'long double' type.
106367         * m4/longdouble.m4: Remove file.
106368         * config/srclist.txt: Don't mention longdouble.m4.
106369         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
106370         * lib/float+.h: Likewise.
106371         * lib/frexp.c: Likewise.
106372         * lib/printf-args.h: Likewise.
106373         * lib/printf-args.c: Likewise.
106374         * lib/printf-frexp.c: Likewise.
106375         * lib/printf-parse.c: Likewise.
106376         * lib/vasnprintf.c: Likewise.
106377         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
106378         * m4/intl.m4: Likewise.
106379         * m4/isnanl.m4: Likewise.
106380         * m4/printf.m4: Likewise.
106381         * m4/printf-frexpl.m4: Likewise.
106382         * m4/vasnprintf.m4: Likewise.
106383         * modules/allocsa (Files): Remove m4/longdouble.m4.
106384         * modules/gettext (Files): Likewise.
106385         * modules/relocatable-prog-wrapper (Files): Likewise.
106386         * modules/vasnprintf (Files): Likewise.
106387         * modules/isnanl (Files): Likewise.
106388         (Include): Simplify.
106389         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
106390         (Include): Simplify.
106391         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
106392         (Include): Simplify.
106393         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
106394         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106395         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
106396         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106397         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
106398         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106399         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
106400         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106401         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
106402         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106403         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
106404         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106405         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
106406         * tests/test-isnanl.c: Likewise.
106407         * tests/test-snprintf-posix.h: Likewise.
106408         * tests/test-sprintf-posix.h: Likewise.
106409         * tests/test-vasnprintf-posix.c: Likewise.
106410         * tests/test-vasnprintf-posix2.c: Likewise.
106411         * tests/test-vasprintf-posix.c: Likewise.
106413 2007-04-06  Bruno Haible  <bruno@clisp.org>
106415         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
106416         * lib/math_.h [__DECC]: Include the overridden include file through
106417         #include_next, outside the double-inclusion guard.
106418         * lib/stdio_.h [__DECC]: Likewise.
106419         * lib/stdlib_.h [__DECC]: Likewise.
106420         * lib/string_.h [__DECC]: Likewise.
106421         * lib/time_.h [__DECC]: Likewise.
106422         * lib/wchar_.h [__DECC]: Likewise.
106423         * lib/wctype_.h [__DECC]: Likewise.
106424         * lib/inttypes_.h [__DECC]: Likewise.
106425         Reported by Albert Chin <china@thewrittenword.com> in
106426         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
106428 2007-04-04  Eric Blake  <ebb9@byu.net>
106430         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
106431         1.5.x.
106433 2007-04-04  Bruno Haible  <bruno@clisp.org>
106435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
106436         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
106438 2007-04-04  Bruno Haible  <bruno@clisp.org>
106440         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
106441         results for "%010a" of Infinity and NaN.
106442         * tests/test-vasprintf-posix.c (test_function): Likewise.
106443         * tests/test-snprintf-posix.h (test_function): Likewise.
106444         * tests/test-sprintf-posix.h (test_function): Likewise.
106445         * tests/test-fprintf-posix.h (test_function): Remove these tests.
106446         * tests/test-printf-posix.h (test_function): Likewise.
106447         * tests/test-fprintf-posix.out: Update.
106448         Needed for FreeBSD 6.1.
106450 2007-04-04  Bruno Haible  <bruno@clisp.org>
106452         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
106453         directly used by the gnulib modules nor by gnulib-tool.
106455 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106457         * DEPENDENCIES: Give overall description of version dependency
106458         desirability.  Use more-typical names for apps.
106459         Add shell, coreutils, diffutils, grep, tar, gzip.
106461 2007-04-04  Simon Josefsson  <simon@josefsson.org>
106463         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
106465 2007-04-04  Karl Berry  <karl@gnu.org>
106467         * MODULES.html.sh (func_module): missing '.
106469 2007-04-03  Bruno Haible  <bruno@clisp.org>
106471         * modules/argmatch-tests (Makefile.am): New variable
106472         test_argmatch_LDADD.
106473         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
106474         * modules/array-list-tests (Makefile.am): New variable
106475         test_array_list_LDADD.
106476         * modules/array-oset-tests (Makefile.am): New variable
106477         test_array_oset_LDADD.
106478         * modules/avltree-list-tests (Makefile.am): New variable
106479         test_avltree_list_LDADD.
106480         * modules/avltree-oset-tests (Makefile.am): New variable
106481         test_avltree_oset_LDADD.
106482         * modules/avltreehash-list-tests (Makefile.am): New variable
106483         test_avltreehash_list_LDADD.
106484         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
106485         test_canonicalize_lgpl_LDADD.
106486         * modules/carray-list-tests (Makefile.am): New variable
106487         test_carray_list_LDADD.
106488         * modules/dirname-tests (Makefile.am): New variable
106489         test_dirname_LDADD.
106490         * modules/linked-list-tests (Makefile.am): New variable
106491         test_linked_list_LDADD.
106492         * modules/linkedhash-list-tests (Makefile.am): New variable
106493         test_linkedhash_list_LDADD.
106494         * modules/rbtree-list-tests (Makefile.am): New variable
106495         test_rbtree_list_LDADD.
106496         * modules/rbtree-oset-tests (Makefile.am): New variable
106497         test_rbtree_oset_LDADD.
106498         * modules/rbtreehash-list-tests (Makefile.am): New variable
106499         test_rbtreehash_list_LDADD.
106500         * modules/xvasprintf-tests (Makefile.am): New variable
106501         test_xvasprintf_LDADD.
106502         Reported by Eric Blake.
106504 2007-04-03  Eric Blake  <ebb9@byu.net>
106506         * DEPENDENCIES: Weaken m4 requirements.
106508 2007-04-03  Bruno Haible  <bruno@clisp.org>
106510         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
106511         * modules/isnanl-tests (configure.ac): Likewise.
106513 2007-04-03  Ben Pfaff  <blp@gnu.org>
106515         * modules/iconv_open: Add $(srcdir)/ to source directory
106516         references in Makefile fragments that call gperf, to fix VPATH
106517         builds.
106519 2007-04-03  Bruno Haible  <bruno@clisp.org>
106521         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
106522         * lib/ldexpl.c: Undo last change.
106524 2007-04-03  Bruno Haible  <bruno@clisp.org>
106526         * modules/printf-frexpl (Depends-on): Undo last change.
106527         (Files): Add m4/ldexpl.m4.
106529 2007-04-03  Bruno Haible  <bruno@clisp.org>
106531         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
106532         * modules/isnanl (Link): New section.
106534         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
106535         * modules/frexp (Link): New section.
106537         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
106538         * modules/frexpl (Link): New section.
106540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
106541         * modules/ldexpl (Link): New section.
106543 2007-04-03  Bruno Haible  <bruno@clisp.org>
106545         * modules/TEMPLATE-EXTENDED: New file.
106546         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
106548 2007-04-03  Bruno Haible  <bruno@clisp.org>
106550         * DEPENDENCIES: New file.
106551         Suggested by Simon Josefsson.
106553 2007-04-03  Bruno Haible  <bruno@clisp.org>
106555         * doc/gnulib.texi: Escape @.
106557 2007-04-03  James Youngman  <jay@gnu.org>
106558         and Paul Eggert  <eggert@cs.ucla.edu>
106560         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
106561         birthtime on all systems that have birthtime, not just those which
106562         use st_birthtimensec rather than st_birthtim.  Putting zero in
106563         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
106564         that the birth time is not available for files on an NFS mount.
106566 2007-04-03  Simon Josefsson  <simon@josefsson.org>
106568         * modules/memxor: Move back from crypto/, suggested by Bruno.
106569         * modules/crypto/hmac-sha1: Fix memxor dependency.
106571         * modules/crypto/gc: Moved from ../.
106573 2007-04-02  Eric Blake  <ebb9@byu.net>
106575         * lib/ldexpl.c (includes): Avoid libm.
106577         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
106579 2007-04-02  Bruno Haible  <bruno@clisp.org>
106581         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
106582         on IRIX.
106584 2007-04-02  Bruno Haible  <bruno@clisp.org>
106586         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
106587         x86 or x86_64 platforms running MacOS X.
106588         Reported by Ryan Schmidt <@ryandesign.com>.
106590 2007-04-02  Bruno Haible  <bruno@clisp.org>
106592         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
106593         i386.
106595 2007-04-01  Simon Josefsson  <simon@josefsson.org>
106597         * modules/crypto/arcfour: Moved from ../.
106598         * modules/crypto/arcfour-tests: Moved from ../.
106599         * modules/crypto/arctwo: Moved from ../.
106600         * modules/crypto/arctwo-tests: Moved from ../.
106601         * modules/crypto/des: Moved from ../.
106602         * modules/crypto/des-tests: Moved from ../.
106603         * modules/crypto/gc-arcfour: Moved from ../.
106604         * modules/crypto/gc-arcfour-tests: Moved from ../.
106605         * modules/crypto/gc-arctwo: Moved from ../.
106606         * modules/crypto/gc-arctwo-tests: Moved from ../.
106607         * modules/crypto/gc-des: Moved from ../.
106608         * modules/crypto/gc-des-tests: Moved from ../.
106609         * modules/crypto/gc-hmac-md5: Moved from ../.
106610         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
106611         * modules/crypto/gc-hmac-sha1: Moved from ../.
106612         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
106613         * modules/crypto/gc-md2: Moved from ../.
106614         * modules/crypto/gc-md2-tests: Moved from ../.
106615         * modules/crypto/gc-md4: Moved from ../.
106616         * modules/crypto/gc-md4-tests: Moved from ../.
106617         * modules/crypto/gc-md5: Moved from ../.
106618         * modules/crypto/gc-md5-tests: Moved from ../.
106619         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
106620         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
106621         * modules/crypto/gc-random: Moved from ../.
106622         * modules/crypto/gc-rijndael: Moved from ../.
106623         * modules/crypto/gc-rijndael-tests: Moved from ../.
106624         * modules/crypto/gc-sha1: Moved from ../.
106625         * modules/crypto/gc-sha1-tests: Moved from ../.
106626         * modules/crypto/gc-tests: Moved from ../.
106627         * modules/crypto/hmac-md5: Moved from ../.
106628         * modules/crypto/hmac-md5-tests: Moved from ../.
106629         * modules/crypto/hmac-sha1: Moved from ../.
106630         * modules/crypto/hmac-sha1-tests: Moved from ../.
106631         * modules/crypto/md2: Moved from ../.
106632         * modules/crypto/md2-tests: Moved from ../.
106633         * modules/crypto/md4: Moved from ../.
106634         * modules/crypto/md4-tests: Moved from ../.
106635         * modules/crypto/md5: Moved from ../.
106636         * modules/crypto/md5-tests: Moved from ../.
106637         * modules/crypto/memxor: Moved from ../.
106638         * modules/crypto/rijndael: Moved from ../.
106639         * modules/crypto/rijndael-tests: Moved from ../.
106640         * modules/crypto/sha1: Moved from ../.
106642 2007-03-30  James Youngman  <jay@gnu.org>
106644         * tests/test-stat-time.c (prepare_test): use chmod() rather than
106645         rename() to change the ctime of a file (because ctime is unaffected
106646         by rename on jfs2 on AIX 5.1).
106647         (main): Start by doing cleanup, in case a previous run failed leaving
106648         test files behind.
106650 2007-03-31  Bruno Haible  <bruno@clisp.org>
106652         Support old proprietary implementations of iconv.
106653         * modules/iconv_open: New file.
106654         * lib/iconv_.h: New file.
106655         * m4/iconv_h.m4: New file.
106656         * lib/iconv_open.c: New file.
106657         * lib/iconv_open-aix.gperf: New file.
106658         * lib/iconv_open-hpux.gperf: New file.
106659         * lib/iconv_open-irix.gperf: New file.
106660         * lib/iconv_open-osf.gperf: New file.
106661         * m4/iconv_open.m4: New file.
106662         * modules/linebreak (Depends-on): Add iconv_open.
106663         * modules/striconv (Depends-on): Likewise.
106664         * modules/striconveh (Depends-on): Likewise.
106665         * modules/unicodeio (Depends-on): Likewise.
106666         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
106667         (iconv_t)(-1).
106668         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
106669         conversion if cd is (iconv_t)(-1).
106670         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
106671         is not possible.
106673 2007-03-31  Bruno Haible  <bruno@clisp.org>
106675         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106676         work on Solaris either. Protect also second use of "autodetect_jp".
106678 2007-03-31  Bruno Haible  <bruno@clisp.org>
106680         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
106681         the function is not present.
106683 2007-03-31  Bruno Haible  <bruno@clisp.org>
106685         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
106686         the function is not present.
106688 2007-03-31  Bruno Haible  <bruno@clisp.org>
106690         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
106691         a bug in HP-UX iconv_open().
106693 2007-03-31  Bruno Haible  <bruno@clisp.org>
106695         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
106696         (Mathematics <math.h>): New section, add fpieee.
106697         (Input/output <stdio.h>): Add fseterr.
106698         (Mathematics <math.h>): New section, add printf-frexp.
106699         (Container data structures): Add sublist.
106700         (Core language properties): Add fpucw, inline.
106701         (Functions for greatest-width integer types <inttypes.h>): Add
106702         imaxabs, imaxdiv, inttypes.
106703         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
106704         isnanl-nolibm, ldexp.
106705         (Mathematics <math.h>): New section, add printf-frexpl.
106706         (Support for systems lacking POSIX:2001): Add fprintf-posix,
106707         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
106708         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
106709         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
106710         (Unicode string functions): Add unistr/u*-mbtoucr.
106711         (Java): Add javacomp-script, javaexec-script.
106712         (C#): Add csharpcomp-script, csharpexec-script.
106713         (Support for building libraries and executables): Add havelib,
106714         relocatable-*.
106715         (Support for maintaining and releasing projects): Renamed from
106716         'Support for maintaining and release projects'. Add announce-gen.
106718 2007-03-31  Bruno Haible  <bruno@clisp.org>
106720         * README: Talk primarily about git.
106721         (git and CVS): Renamed from CVS.
106722         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
106723         gnulib is available through git.
106724         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
106726 2007-03-30  Bruno Haible  <bruno@clisp.org>
106728         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
106729         * lib/poll_.h: Likewise.
106730         * lib/stat_.h: Likewise.
106731         * lib/sys_time_.h: Likewise.
106732         * lib/sysexit_.h: Likewise.
106733         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
106734         * lib/stdbool_.h: Likewise.
106735         * lib/byteswap_.h: Add double-inclusion guard.
106737 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
106739         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
106741 2007-03-30  Karl Berry  <karl@gnu.org>
106743         * config/srclist-update: double space after USA in the license
106744         substitution, since that's how it's usually (?) written.
106746 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
106748         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
106749         reported by Bruno Haible.
106751 2007-03-29  Bruno Haible  <bruno@clisp.org>
106753         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
106754         a bug in AIX iconv().
106756 2007-03-29  Bruno Haible  <bruno@clisp.org>
106758         * modules/ldexpl-tests: New file.
106759         * tests/test-ldexpl.c: New file.
106761 2007-03-29  Bruno Haible  <bruno@clisp.org>
106763         * lib/ldexpl.c: Include fpucw.h.
106764         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
106765         multiplication.
106766         * modules/ldexpl (Depends-on): Add fpucw.
106768 2007-03-29  Bruno Haible  <bruno@clisp.org>
106770         * modules/ldexpl: New file.
106771         * m4/ldexpl.m4: New file.
106772         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
106773         set.
106774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
106775         REPLACE_LDEXPL.
106776         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
106777         REPLACE_LDEXPL.
106778         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
106779         gl_FUNC_LDEXPL_WORKS.
106780         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
106781         * modules/mathl (Files): Remove lib/ldexpl.c.
106782         (Depends-on): Add ldexpl.
106784 2007-03-29  Bruno Haible  <bruno@clisp.org>
106786         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
106788 2007-03-29  Bruno Haible  <bruno@clisp.org>
106790         * tests/test-striconveh.c (main): Don't assume that a direct conversion
106791         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
106792         and possibly also HP-UX.
106793         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106794         work on AIX, IRIX, HP-UX, OSF/1.
106795         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
106796         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
106797         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
106798         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
106799         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
106800         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
106802 2007-03-29  Bruno Haible  <bruno@clisp.org>
106804         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
106806 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106808         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
106809         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
106811 2007-03-29  Eric Blake  <ebb9@byu.net>
106813         * lib/acl-internal.h: Remove redundant include.
106814         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
106815         Cygwin when a file is locked.
106817 2007-03-29  Bruno Haible  <bruno@clisp.org>
106819         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
106820         file.
106821         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
106823 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106825         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
106826         try to remove a parent directory if the child couldn't be removed
106827         (except for the first rmdir, which could fail because the child
106828         doesn't exist).  Problem reported by Jeff Blaine in
106829         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
106831 2007-03-28  Bruno Haible  <bruno@clisp.org>
106833         * lib/striconveh.c (utf8conv_carefully): New function.
106834         (mem_cd_iconveh_internal): Invoke it.
106836 2007-03-28  Bruno Haible  <bruno@clisp.org>
106838         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
106839         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
106840         input.
106841         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
106842         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
106843         unistr/u8-uctomb.
106845 2007-03-28  Bruno Haible  <bruno@clisp.org>
106847         * modules/unistr/u8-mbtoucr: New file.
106848         * lib/unistr/u8-mbtoucr.c: New file.
106849         * modules/unistr/u16-mbtoucr: New file.
106850         * lib/unistr/u16-mbtoucr.c: New file.
106851         * modules/unistr/u16-mbtoucr: New file.
106852         * lib/unistr/u16-mbtoucr.c: New file.
106853         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
106855 2007-03-27  Simon Josefsson  <simon@josefsson.org>
106856             Bruno Haible  <bruno@clisp.org>
106858         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
106859         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
106860         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
106862         * m4/stdio_h.m4: Add stubs for vasprintf too.
106864         * modules/stdio: Support vasprintf in sed command.
106866         * modules/vasprintf: Depend on stdio for prototypes.  Remove
106867         vasprintf.h.  Add stdio module indicator.
106869         * lib/stdio_.h: Declare asprintf and vasprintf, based on
106870         vasprintf.h.
106872         * lib/vasprintf.h: File removed.
106874         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
106875         * lib/vasprintf.c: Ditto.
106876         * lib/xvasprintf.c: Ditto.
106877         * tests/test-vasprintf-posix.c: Ditto.
106878         * tests/test-vasprintf.c: Ditto.
106880 2007-03-27  Bruno Haible  <bruno@clisp.org>
106882         Make vasnprintf multithread-safe.
106883         * lib/vasnprintf.c (decimal_point_char): New function.
106884         (VASNPRINTF): Use it.
106885         Suggested by Simon Josefsson.
106887 2007-03-27  Eric Blake  <ebb9@byu.net>
106889         Support sub-second birthtime on cygwin.
106890         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
106891         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
106892         (get_stat_birthtime): Also work with st_birthtim.
106894 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
106896         * lib/stat-time.h (USE_BIRTHTIME): Remove.
106897         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
106898         (get_stat_birthtime_ns): Do not try to use "spare" fields.
106899         (get_stat_birthtime_ns): Simplify compile-time tests.
106900         (get_stat_birthtime): Change the API to look like
106901         get_stat_mtime etc., except return a negative tv_nsec on error.
106902         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
106903         Don't check for "spare" fields.
106904         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
106905         or for struct stat.st_birthtime, as these tests aren't used.
106906         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
106908 2007-03-27  Bruno Haible  <bruno@clisp.org>
106910         * lib/stat-time.h: Include <sys/stat.h>.
106912 2007-03-27  James Youngman  <jay@gnu.org>
106914         * lib/stat-time.h (get_stat_birthtime): New function for
106915           retrieving st_birthtime as provided by UFS2 (hence *BSD).
106916         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
106917           and its variants.
106918         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
106919         * modules/stat-time-test: New file.
106920         * tests/test-stat-time.c: New test, devised by Bruno Haible.
106922 2007-03-26  Bruno Haible  <bruno@clisp.org>
106924         Better support of signalling NaNs.
106925         * lib/atanl.c: Include isnanl.h.
106926         (atanl): Perform test for NaN at the beginning of the function and
106927         through a call to isnanl.
106928         * lib/cosl.c: Include isnanl.h.
106929         (cosl): Perform test for NaN at the beginning of the function and
106930         through a call to isnanl.
106931         * lib/ldexpl.c: Include isnanl.h.
106932         (ldexpl): Perform test for NaN through a call to isnanl.
106933         * lib/logl.c: Include isnanl.h.
106934         (logl): Perform test for NaN at the beginning of the function and
106935         through a call to isnanl.
106936         * lib/sinl.c: Include isnanl.h.
106937         (sinl): Perform test for NaN at the beginning of the function and
106938         through a call to isnanl.
106939         * lib/sqrtl.c: Include isnanl.h.
106940         (sqrtl): Perform test for NaN at the beginning of the function and
106941         through a call to isnanl.
106942         * lib/tanl.c: Include isnanl.h.
106943         (tanl): Perform test for NaN at the beginning of the function and
106944         through a call to isnanl.
106945         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
106946         * modules/mathl (Depends-on): Add isnanl.
106948 2007-03-26  Eric Blake  <ebb9@byu.net>
106950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
106951         regression in logic sense of previous patch.
106953 2007-03-26  Bruno Haible  <bruno@clisp.org>
106955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
106956         unportable shell command "if ! ...".
106957         Reported by Ralf Wildenhues.
106959 2007-03-25  Bruno Haible  <bruno@clisp.org>
106961         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
106962         <sysexits.h> file, and only add EX_CONFIG.
106963         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
106964         absolute file name and whether it is sufficient. Substitute also
106965         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
106966         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
106967         ABSOLUTE_SYSEXITS_H into sysexits.h.
106969 2007-03-25  Bruno Haible  <bruno@clisp.org>
106971         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
106972         hints is NULL.
106974 2007-03-25  Bruno Haible  <bruno@clisp.org>
106976         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
106977         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
106979 2007-03-25  Bruno Haible  <bruno@clisp.org>
106981         * lib/vasnprintf.c: Include langinfo.h.
106982         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
106983         multithread-safe.
106984         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
106985         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
106986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
106987         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106988         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106989         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106990         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
106991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
106992         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106993         Reported by Simon Josefsson.
106995 2007-03-25  Bruno Haible  <bruno@clisp.org>
106997         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
106998         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
106999         * modules/vasnprintf (Depends-on): Add stdint.
107001 2007-03-25  Bruno Haible  <bruno@clisp.org>
107003         * modules/fpieee: New file.
107004         * m4/fpieee.m4: New file.
107005         * modules/isnan-nolibm (Depends-on): Add fpieee.
107006         * modules/isnanl-nolibm (Depends-on): Add fpieee.
107007         * modules/isnanl (Depends-on): Add fpieee.
107009 2007-03-25  Bruno Haible  <bruno@clisp.org>
107011         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
107013 2007-03-25  Bruno Haible  <bruno@clisp.org>
107015         Avoid test failures on IRIX 6.5.
107016         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
107017         (main): Use it.
107018         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
107019         macros.
107020         (main): Use them.
107022 2007-03-25  Bruno Haible  <bruno@clisp.org>
107024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
107025         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
107026         exists but doesn't work.
107027         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
107028         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
107029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
107030         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
107031         math.h.
107033 2007-03-25  Bruno Haible  <bruno@clisp.org>
107035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
107036         returns inf. Needed on IRIX 6.5.
107038 2007-03-25  Bruno Haible  <bruno@clisp.org>
107040         * tests/test-frexpl.c: Include isnanl-nolibm.h.
107041         (main): Use isnanl instead of x != x idiom.
107042         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
107044         * tests/test-frexp.c: Include isnan.h.
107045         (main): Use isnan instead of x != x idiom.
107046         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
107048 2007-03-25  Bruno Haible  <bruno@clisp.org>
107050         * tests/test-frexp.c (NaN): New function/macro.
107051         (main): Use it instead of 0.0 / 0.0.
107052         * tests/test-isnan.c (NaN): New function/macro.
107053         (main): Use it instead of 0.0 / 0.0.
107054         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
107055         (test_function): Use it instead of 0.0 / 0.0.
107056         * tests/test-vasprintf-posix.c (NaN): New function/macro.
107057         (test_function): Use it instead of 0.0 / 0.0.
107058         * tests/test-snprintf-posix.h (NaN): New function/macro.
107059         (test_function): Use it instead of 0.0 / 0.0.
107060         * tests/test-sprintf-posix.h (NaN): New function/macro.
107061         (test_function): Use it instead of 0.0 / 0.0.
107062         * tests/test-fprintf-posix.h (NaN): New function/macro.
107063         (test_function): Use it instead of 0.0 / 0.0.
107064         * tests/test-printf-posix.h (NaN): New function/macro.
107065         (test_function): Use it instead of 0.0 / 0.0.
107067         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
107069 2007-03-25  Bruno Haible  <bruno@clisp.org>
107071         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
107073 2007-03-25  Bruno Haible  <bruno@clisp.org>
107075         * lib/regexec.c (merge_state_with_log): Make static.
107077 2007-03-25  Bruno Haible  <bruno@clisp.org>
107079         * lib/trigl.c (kernel_rem_pio2): Make static.
107081 2007-03-25  Bruno Haible  <bruno@clisp.org>
107083         * lib/sincosl.c (sincosl_table): Make static.
107085 2007-03-25  Bruno Haible  <bruno@clisp.org>
107087         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
107088         if the compiler does not support C99.
107090 2007-03-25  Bruno Haible  <bruno@clisp.org>
107092         * modules/time (Makefile.am): Ensure all rule action lines start with a
107093         tab.
107095 2007-03-24  Bruno Haible  <bruno@clisp.org>
107097         * modules/tsearch-tests: New file.
107098         * tests/test-tsearch.sh: New file.
107099         * tests/test-tsearch.c: New file, mostly copied from glibc.
107101         * modules/search-tests: New file.
107102         * tests/test-search.c: New file.
107104         * modules/search: New file.
107105         * lib/search_.h: New file, incorporating lib/tsearch.h.
107106         * m4/search_h.m4: New file.
107107         * lib/tsearch.h: Remove file.
107108         * lib/tsearch.c: Include search.h instead of tsearch.h.
107109         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
107110         HAVE_TSEARCH.
107111         * modules/tsearch (Files): Remove lib/tsearch.h.
107112         (Depends-on): Add search.
107113         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
107114         (Include): Change tsearch.h into search.h.
107116 2007-03-24  Bruno Haible  <bruno@clisp.org>
107118         * modules/fpucw: New file.
107119         * lib/fpucw.h: New file.
107120         * lib/frexp.c: Include fpucw.h.
107121         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
107122         (FUNC): Use them.
107123         * lib/printf-frexp.c: Include fpucw.h.
107124         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
107125         (FUNC): Use them.
107126         * lib/vasnprintf.c: Include fpucw.h.
107127         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
107128         'long double' calculations.
107129         * tests/test-frexpl.c: Include fpucw.h.
107130         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
107131         * tests/test-printf-frexpl.c: Include fpucw.h.
107132         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
107133         * modules/frexpl (Depends-on): Add fpucw.
107134         * modules/printf-frexpl (Depends-on): Likewise.
107135         * modules/fprintf-posix (Depends-on): Likewise.
107136         * modules/snprintf-posix (Depends-on): Likewise.
107137         * modules/sprintf-posix (Depends-on): Likewise.
107138         * modules/vasnprintf-posix (Depends-on): Likewise.
107139         * modules/vasprintf-posix (Depends-on): Likewise.
107140         * modules/vfprintf-posix (Depends-on): Likewise.
107141         * modules/vsnprintf-posix (Depends-on): Likewise.
107142         * modules/vsprintf-posix (Depends-on): Likewise.
107143         * modules/frexpl-tests (Depends-on): Likewise.
107144         * modules/printf-frexpl-tests (Depends-on): Likewise.
107146 2007-03-24  Bruno Haible  <bruno@clisp.org>
107148         * lib/float+.h: New file.
107149         * lib/isnan.c: Include float+.h.
107150         (SIZE): New macro.
107151         (FUNC): Compare only SIZE bytes of the value.
107152         * lib/vasnprintf.c: Include float+.h.
107153         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
107154         SIZEOF_LDBL or SIZEOF_DBL bytes.
107155         * modules/isnan-nolibm (Files): Add lib/float+.h.
107156         * modules/isnanl-nolibm (Files): Add lib/float+.h.
107157         * modules/isnanl (Files): Add lib/float+.h.
107158         * modules/vasnprintf (Files): Add lib/float+.h.
107160 2007-03-24  Bruno Haible  <bruno@clisp.org>
107162         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
107163         include isnanl-nolibm.h.
107165 2007-03-24  Bruno Haible  <bruno@clisp.org>
107167         * tests/test-read-file.c (main): Don't produce spurious output for
107168         expected situations. Make the test fail if it encountered unexpected
107169         results.
107171 2007-03-24  Bruno Haible  <bruno@clisp.org>
107173         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
107174         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
107176 2007-03-24  Bruno Haible  <bruno@clisp.org>
107178         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
107180 2007-03-24  Bruno Haible  <bruno@clisp.org>
107182         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
107183         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
107185         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
107186         * modules/utf8-ucs4: Turn into a symbolic link to module
107187         unistr/u8-mbtouc.
107189         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
107190         utf8-ucs4-unsafe.
107191         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
107192         unistr/u8-mbtouc-unsafe.
107194         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
107195         * modules/utf16-ucs4: Turn into a symbolic link to module
107196         unistr/u16-mbtouc.
107198         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
107199         utf16-ucs4-unsafe.
107200         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
107201         unistr/u16-mbtouc-unsafe.
107203         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
107204         * modules/ucs4-utf8: Turn into a symbolic link to module
107205         unistr/u8-ubtomb.
107207         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
107208         * modules/ucs4-utf16: Turn into a symbolic link to module
107209         unistr/u16-ubtomb.
107211 2007-03-24  Bruno Haible  <bruno@clisp.org>
107213         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
107214         Enable the function only if HAVE_INLINE.
107215         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
107216         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
107217         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
107218         Enable the function only if HAVE_INLINE.
107219         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
107220         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
107221         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
107222         Enable the function only if HAVE_INLINE.
107223         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
107224         Enable the function only if HAVE_INLINE.
107225         * modules/utf8-ucs4: Update.
107226         * modules/utf8-ucs4-unsafe: Update.
107227         * modules/utf16-ucs4: Update.
107228         * modules/utf16-ucs4-unsafe: Update.
107229         * modules/ucs4-utf8: Update.
107230         * modules/ucs4-utf16: Update.
107232 2007-03-24  Bruno Haible  <bruno@clisp.org>
107234         * lib/utf8-ucs4.h: Remove file.
107235         * lib/utf8-ucs4-unsafe.h: Remove file.
107236         * lib/utf16-ucs4.h: Remove file.
107237         * lib/utf16-ucs4-unsafe.h: Remove file.
107238         * lib/ucs4-utf8.h: Remove file.
107239         * lib/ucs4-utf16.h: Remove file.
107240         * lib/unistr.h: Include their previous contents.
107241         * m4/utf-ucs4.m4: Remove file.
107242         * m4/ucs4-utf.m4: Remove file.
107243         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
107244         (Depends-on): Add unistr/base.
107245         (configure.ac): Remove gl_UTF_UCS4.
107246         (Makefile.am): Update.
107247         (Include): Change to unistr.h.
107248         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
107249         (Depends-on): Add unistr/base.
107250         (configure.ac): Remove gl_UTF_UCS4.
107251         (Makefile.am): Update.
107252         (Include): Change to unistr.h.
107253         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
107254         (Depends-on): Add unistr/base.
107255         (configure.ac): Remove gl_UTF_UCS4.
107256         (Makefile.am): Update.
107257         (Include): Change to unistr.h.
107258         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
107259         (Depends-on): Add unistr/base.
107260         (configure.ac): Remove gl_UTF_UCS4.
107261         (Makefile.am): Update.
107262         (Include): Change to unistr.h.
107263         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
107264         (Depends-on): Add unistr/base.
107265         (configure.ac): Remove gl_UCS4_UTF.
107266         (Makefile.am): Update.
107267         (Include): Change to unistr.h.
107268         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
107269         (Depends-on): Add unistr/base.
107270         (configure.ac): Remove gl_UCS4_UTF.
107271         (Makefile.am): Update.
107272         (Include): Change to unistr.h.
107273         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
107274         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
107275         utf8-ucs4-unsafe.h.
107276         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
107277         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
107278         utf16-ucs4-unsafe.h.
107279         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
107280         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
107281         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
107282         * lib/unistr/u8-strchr.c: Likewise.
107283         * lib/unistr/u8-strrchr.c: Likewise.
107284         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
107285         * lib/unistr/u16-strchr.c: Likewise.
107286         * lib/unistr/u16-strrchr.c: Likewise.
107287         * lib/striconveh.c: Update.
107288         * lib/linebreak.c: Update.
107290 2007-03-24  Bruno Haible  <bruno@clisp.org>
107292         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
107293         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
107295 2007-03-22  Bruno Haible  <bruno@clisp.org>
107297         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
107299 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
107301         * MODULES.html.sh (File system functions): New module write-any-file.
107302         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
107303         * m4/write-any-file.m4: New files.
107305 2007-03-23  Eric Blake  <ebb9@byu.net>
107307         * gnulib-tool: Rearrange space-tab sequences, since some editors
107308         like to eat them.
107310 2007-03-23  Eric Blake  <ebb9@byu.net>
107312         * lib/version-etc.c (version_etc_va): Update license wording to
107313         be more concise.  Recommended by Richard Stallman.
107315 2007-03-22  Bruno Haible  <bruno@clisp.org>
107317         * lib/poll.c (MSG_PEEK): New fallback definition.
107319 2007-03-22  Bruno Haible  <bruno@clisp.org>
107321         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
107322         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
107323         (main): Update.
107324         Fixes a compilation error on BeOS.
107326 2007-03-22  Bruno Haible  <bruno@clisp.org>
107328         * modules/frexpl-tests: New file.
107329         * tests/test-frexpl.c: New file.
107331         * modules/frexpl: New file.
107332         * m4/frexpl.m4: New file.
107333         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
107334         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
107335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
107336         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
107337         (Depends-on): Add frexpl. Remove isnanl-nolibm.
107338         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
107340 2007-03-22  Bruno Haible  <bruno@clisp.org>
107342         * lib/frexpl.c: Share code with lib/frexp.c.
107343         * modules/mathl (Files): Add lib/frexp.c.
107344         (Depends-on): Add isnanl-nolibm.
107346 2007-03-22  Bruno Haible  <bruno@clisp.org>
107348         * modules/printf-frexp (Files): Add m4/frexp.m4.
107349         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
107350         only if the found frexp function actually works.
107352 2007-03-22  Bruno Haible  <bruno@clisp.org>
107354         * lib/frexp.c: Remove older implementation that uses divisions.
107356 2007-03-21  Bruno Haible  <bruno@clisp.org>
107358         * modules/frexp-tests: New file.
107359         * tests/test-frexp.c: New file.
107361         * modules/frexp: New file.
107362         * lib/frexp.c: New file.
107363         * m4/frexp.m4: New file.
107364         * lib/math_.h (frexp): New declaration.
107365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
107366         REPLACE_FREXP.
107367         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
107369 2007-03-21  Bruno Haible  <bruno@clisp.org>
107371         * modules/isnanl-tests: New file.
107372         * tests/test-isnanl.c: New file.
107374         * modules/isnanl: New file.
107375         * lib/isnanl.h: New file.
107376         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
107377         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
107378         gl_FUNC_ISNANL_WORKS.
107379         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
107380         New macros.
107382 2007-03-21  Bruno Haible  <bruno@clisp.org>
107384         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
107385         lib/isnanl.h.
107386         (Include): Update.
107387         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
107388         * lib/vasnprintf.c: Update.
107389         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
107390         tests/test-isnanl.h, remove tests/test-isnanl.c.
107391         (Makefile.am): Update.
107392         * tests/test-isnanl-nolibm.c: New file.
107393         * tests/test-isnanl.h: New file.
107394         * tests/test-isnanl.c: Remove file.
107396 2007-03-21  Jim Meyering  <jim@meyering.net>
107398         When trying to open ".", treat ESTALE like EACCES.
107399         * lib/savewd.c (savewd_save): Resort to forking not just upon
107400         failure with EACCES, but also when errno is ESTALE.
107402 2007-03-20  Bruno Haible  <bruno@clisp.org>
107404         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
107405         Needed on AIX 5.1. Reported by Matthew Woehlke.
107407 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107409         Suggestions by Bruno Haible:
107410         * lib/acl-internal.h: Include "gettext.h" rather than rolling
107411         our own.
107412         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
107413         * modules/acl (Depends-on): Add gettext.
107415 2007-03-19  Bruno Haible  <bruno@clisp.org>
107417         * modules/iconvme: Remove file.
107418         * lib/iconvme.h: Remove file.
107419         * lib/iconvme.c: Remove file.
107420         * m4/iconvme.m4: Remove file.
107422 2007-03-19  Bruno Haible  <bruno@clisp.org>
107424         * doc/relocatable-maint.texi: Break long shell script line.
107425         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
107427 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107429         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
107430         handle file_has_acl.
107431         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
107432         * lib/acl.c: Move header inclusions and related macro defns into
107433         lib/acl-internal.h.
107434         (S_ISLNK): Remove defn, since that's now done for us.
107435         (file_has_acl): Move to lib/file-has-acl.c.
107436         Call acl_trivial if available.  This is the crucial part of the fix.
107437         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
107438         shared within the library.  Rewrite a bit, partly to make it compatible
107439         with the GNU coding style.
107440         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
107441         Remove unnecessary double-quotes.
107442         Don't test for acl_to_text; the build will catch that.
107443         Replace acl_entries if it doesn't exist and it is needed.
107444         Check for -lsec and acl_trivial (as used on Solaris 10).
107445         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
107446         lib/file-has-acl.c.
107447         (Depends-on): Add sys_stat, for S_ISLNK.
107449 2007-03-19  Ben Pfaff  <blp@gnu.org>
107451         * doc/gnulib.texi: Fix typos.
107452         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
107454 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107456         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
107457         If size is zero here, buf must be zero.
107459 2007-03-19  Simon Josefsson  <simon@josefsson.org>
107461         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
107462         <bruno@clisp.org>.
107464 2007-03-18  Bruno Haible  <bruno@clisp.org>
107466         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
107467         Suggested by Eric Blake.
107469 2007-03-18  Ben Pfaff  <blp@gnu.org>
107471         * doc/relocatable.texi: Recommend using as prefix a directory
107472         that does not exist and will never be created.  Based on
107473         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
107474         and others.
107476 2007-03-17  Bruno Haible  <bruno@clisp.org>
107478         * lib/fchownat.c: Include lchown.h.
107480 2007-03-17  Bruno Haible  <bruno@clisp.org>
107482         Fix endless loop when the given allocated size was > INT_MAX.
107483         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
107484         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
107485         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
107486         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
107487         * lib/sprintf.c (sprintf): Likewise.
107489 2007-03-17  Bruno Haible  <bruno@clisp.org>
107491         * tests/test-argp-2.sh (func_compare): Output a context diff.
107493 2007-03-17  Bruno Haible  <bruno@clisp.org>
107495         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
107496         locale's decimal-point character.
107498 2007-03-17  Bruno Haible  <bruno@clisp.org>
107500         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
107501         before comparing it. Needed because on some platforms (e.g. x86) a
107502         'long double' occupies less bytes than sizeof (long double).
107504 2007-03-17  Bruno Haible  <bruno@clisp.org>
107506         * tests/test-crc.c (main): Make printf statements 64-bit clean.
107507         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
107508         * tests/test-getaddrinfo.c (simple): Likewise.
107509         * tests/test-read-file.c (main): Likewise.
107511 2007-03-17  Bruno Haible  <bruno@clisp.org>
107513         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
107515 2007-03-17  Bruno Haible  <bruno@clisp.org>
107517         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
107518         unused variable.
107520 2007-03-17  Bruno Haible  <bruno@clisp.org>
107522         * tests/test-c-strcasecmp.c: Include c-strcase.h.
107523         * tests/test-c-strncasecmp.c: Likewise.
107525 2007-03-17  Bruno Haible  <bruno@clisp.org>
107527         * modules/stdlib (Depends-on): Add unistd.
107528         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
107529         Needed for MacOS X 10.3.
107531 2007-03-17  Bruno Haible  <bruno@clisp.org>
107533         * lib/unistr/u-strdup.h: Include <stdlib.h>.
107535 2007-03-17  Bruno Haible  <bruno@clisp.org>
107537         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
107539 2007-03-17  Bruno Haible  <bruno@clisp.org>
107541         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
107542         to reflect files copied from gnulib (with or without modifications).
107543         Suggested by Jim Meyering.
107545 2007-03-17  Eric Blake  <ebb9@byu.net>
107547         * NEWS: Document stdlib change from 2007-02-18.
107549 2007-03-17  Jim Meyering  <jim@meyering.net>
107551         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
107552         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
107553         someone uses a name containing shell meta-characters.
107554         Reported by Alfred M. Szmidt.
107556         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
107558 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107560         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
107561         and copy gettext configuration files only if configure.ac contains
107562         a use of AM_GNU_GETTEXT_VERSION.
107564 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107566         * build-aux/bootstrap (gnulib_name): New variable.
107567         (gnulib_tool_options): Use it.
107569 2007-03-13  Simon Josefsson  <simon@josefsson.org>
107571         * tests/test-des.c: Use new namespace.
107573 2007-03-15  Bruno Haible  <bruno@clisp.org>
107575         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
107576         Reported by James Youngman <jay@gnu.org>.
107578 2007-03-15  Bruno Haible  <bruno@clisp.org>
107580         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
107581         declared prototype. Needed with cc on OSF/1 5.1.
107583 2007-03-15  Bruno Haible  <bruno@clisp.org>
107585         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
107586         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
107587         (struct gl_list_implementation): Add dispose_fn argument to the
107588         'create_empty', 'create' methods.
107589         (struct gl_list_impl_base): Add field 'dispose_fn'.
107590         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
107591         argument.
107592         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
107593         dispose_fn argument.
107594         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
107595         dispose_fn on the dropped values.
107596         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
107597         dispose_fn argument.
107598         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
107599         dropped values.
107600         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
107601         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107602         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
107603         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107604         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
107605         argument.
107606         (gl_tree_list_free): Call dispose_fn on the dropped values.
107607         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
107608         the dropped values.
107609         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107610         Add dispose_fn argument.
107611         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
107612         Call dispose_fn on the dropped values.
107613         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
107614         Add dispose_fn argument.
107615         (gl_sublist_create): Initialize the 'dispose_fn' field.
107616         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
107617         * tests/test-array_list.c (main): Update.
107618         * tests/test-carray_list.c (main): Update.
107619         * tests/test-avltree_list.c (main): Update.
107620         * tests/test-rbtree_list.c (main): Update.
107621         * tests/test-avltreehash_list.c (main): Update.
107622         * tests/test-rbtreehash_list.c (main): Update.
107623         * tests/test-linked_list.c (main): Update.
107624         * tests/test-linkedhash_list.c (main): Update.
107625         * tests/test-array_oset.c (main): Update.
107627 2007-03-15  Bruno Haible  <bruno@clisp.org>
107629         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
107630         (gl_oset_create_empty): Add dispose_fn argument.
107631         (struct gl_oset_implementation): Add dispose_fn argument to
107632         'create_empty' method.
107633         (struct gl_oset_impl_base): Add dispose_fn field.
107634         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
107635         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
107636         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
107637         values.
107638         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
107639         (gl_tree_oset_free): Call dispose_fn on the dropped values.
107640         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107641         dropped value.
107642         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107643         dropped value.
107644         * tests/test-array_oset.c (main): Update.
107645         * tests/test-avltree_oset.c (main): Update.
107646         * tests/test-rbtree_oset.c (main): Update.
107647         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
107649 2007-03-13  Bruno Haible  <bruno@clisp.org>
107651         * tests/test-stdbool.c (i): Update after last patch.
107653 2007-03-12  Bruno Haible  <bruno@clisp.org>
107655         * lib/quotearg.c: Include <wctype.h> early, before the definition of
107656         the iswprint macro. Needed on Solaris 2.5.1.
107658 2007-03-12  Bruno Haible  <bruno@clisp.org>
107660         * tests/test-printf-frexp.c (main): Declare x as volatile.
107662 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107664         * doc/gnulib.texi (Build robot for gnulib): New section.
107666 2007-03-12  Jim Meyering  <jim@meyering.net>
107668         * build-aux/bootstrap: New file.
107669         * build-aux/bootstrap.conf: New file, from coreutils.
107671 2007-03-11  Bruno Haible  <bruno@clisp.org>
107673         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
107675 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107677         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
107678         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
107679         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
107681 2007-03-11  Bruno Haible  <bruno@clisp.org>
107683         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
107684         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
107686 2007-03-11  Bruno Haible  <bruno@clisp.org>
107688         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
107689         formula. Needed for SunPRO C 5.0.
107691 2007-03-11  Bruno Haible  <bruno@clisp.org>
107693         * modules/long-options (Depends-on): Add getopt.
107695 2007-03-11  Bruno Haible  <bruno@clisp.org>
107697         * modules/modechange (Depends-on): Add stdbool.
107699 2007-03-11  Bruno Haible  <bruno@clisp.org>
107701         * modules/i-ring (Depends-on): Add stdbool.
107703 2007-03-11  Bruno Haible  <bruno@clisp.org>
107705         * modules/gc-des (Depends-on): Add stdbool.
107707 2007-03-11  Bruno Haible  <bruno@clisp.org>
107709         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
107711 2007-03-11  Bruno Haible  <bruno@clisp.org>
107713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
107715 2007-03-11  Bruno Haible  <bruno@clisp.org>
107717         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
107719 2007-03-11  Bruno Haible  <bruno@clisp.org>
107721         * lib/vasnprintf.c (sprintf): Undefine.
107723 2007-03-11  Bruno Haible  <bruno@clisp.org>
107725         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
107726         initializers in SunPRO C and Compaq C compilers.
107728 2007-03-11  Bruno Haible  <bruno@clisp.org>
107730         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
107731         decrementing code ANSI C compliant.
107733 2007-03-11  Bruno Haible  <bruno@clisp.org>
107735         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
107736         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
107738 2007-03-11  Bruno Haible  <bruno@clisp.org>
107740         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
107741         <stdbool.h> substitute doesn't pass.
107743 2007-03-11  Bruno Haible  <bruno@clisp.org>
107745         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
107747 2007-03-11  Bruno Haible  <bruno@clisp.org>
107749         * gnulib-tool (func_create_megatestdir): Create also an autobuild
107750         script, for submission to autobuild.josefsson.org.
107752 2007-03-10  Bruno Haible  <bruno@clisp.org>
107754         * modules/canonicalize-lgpl-tests: New file.
107755         * tests/test-canonicalize-lgpl.sh: New file.
107756         * tests/test-canonicalize-lgpl.c: New file.
107758         * modules/c-strcase-tests: New file.
107759         * tests/test-c-strcase.sh: New file.
107760         * tests/test-c-strcasecmp.c: New file.
107761         * tests/test-c-strncasecmp.c: New file.
107763         * modules/atexit-tests: New file.
107764         * tests/test-atexit.sh: New file.
107765         * tests/test-atexit.c: New file.
107767 2007-03-10  Bruno Haible  <bruno@clisp.org>
107769         * tests/test-binary-io.sh: Use temporary filenames that are not so
107770         likely to clash with those of other tests (in a parallel make).
107771         * tests/test-binary-io.c: Likewise.
107773 2007-03-10  Bruno Haible  <bruno@clisp.org>
107775         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
107776         fallback; use #error instead.
107777         Suggested by Simon Josefsson.
107779 2007-03-10  Bruno Haible  <bruno@clisp.org>
107781         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
107782         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
107783         first and the last.
107785 2007-03-10  Bruno Haible  <bruno@clisp.org>
107787         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
107789 2007-03-10  Bruno Haible  <bruno@clisp.org>
107791         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
107792         "make distcheck".
107793         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
107794         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
107795         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
107797 2007-03-10  Bruno Haible  <bruno@clisp.org>
107799         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
107800         variable.
107801         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
107802         variable.
107804 2007-03-09  Eric Blake  <ebb9@byu.net>
107805         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
107807         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
107808         types are not being provided by gnulib.
107809         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
107810         types are supported.
107812 2007-03-10  Bruno Haible  <bruno@clisp.org>
107814         * lib/stdio_.h (__attribute__): New macro.
107815         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
107816         vsprintf): Specify __attribute__ __format__ for GCC.
107817         Suggested by Eric Blake.
107819 2007-03-09  Bruno Haible  <bruno@clisp.org>
107821         * modules/printf-posix-tests: New file.
107822         * tests/test-printf-posix.sh: New file.
107823         * tests/test-printf-posix.c: New file.
107825         * modules/printf-posix: New file.
107826         * lib/printf.c: New file.
107827         * m4/printf-posix-rpl.m4: New file.
107828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
107829         REPLACE_PRINTF.
107830         * lib/stdio_.h (printf): New declaration.
107831         (format, __format__, ____printf____, ____scanf____, ____strftime____,
107832         ____strfmon____): New macros.
107833         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
107834         REPLACE_PRINTF.
107836 2007-03-09  Bruno Haible  <bruno@clisp.org>
107838         * tests/test-vasnprintf-posix2.sh: New file.
107839         * tests/test-vasnprintf-posix2.c: New file.
107840         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
107841         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
107842         (Makefile.am): Activate test-vasnprintf-posix2.sh.
107844         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
107845         a locale dependent decimal point, rather than always '.'.
107847 2007-03-09  Eric Blake  <ebb9@byu.net>
107849         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
107850         spite of platforms like Tandem/NSK that define it to -1.
107852 2007-03-08  Bruno Haible  <bruno@clisp.org>
107854         * modules/vprintf-posix-tests: New file.
107855         * tests/test-vprintf-posix.sh: New file.
107856         * tests/test-vprintf-posix.c: New file.
107857         * tests/test-printf-posix.h: New file.
107859         * modules/vprintf-posix: New file.
107860         * lib/vprintf.c: New file.
107861         * m4/vprintf-posix.m4: New file.
107862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
107863         REPLACE_VPRINTF.
107864         * lib/stdio_.h (vprintf): New declaration.
107865         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
107866         REPLACE_VPRINTF.
107868 2007-03-08  Bruno Haible  <bruno@clisp.org>
107870         * modules/fprintf-posix-tests: New file.
107871         * tests/test-fprintf-posix.sh: New file.
107872         * tests/test-fprintf-posix.c: New file.
107874         * modules/fprintf-posix: New file.
107875         * lib/fprintf.c: New file.
107876         * m4/fprintf-posix.m4: New file.
107877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
107878         REPLACE_FPRINTF.
107879         * lib/stdio_.h (fprintf): New declaration.
107880         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
107881         REPLACE_FPRINTF.
107883 2007-03-08  Bruno Haible  <bruno@clisp.org>
107885         * modules/vfprintf-posix-tests: New file.
107886         * tests/test-vfprintf-posix.sh: New file.
107887         * tests/test-vfprintf-posix.c: New file.
107888         * tests/test-fprintf-posix.h: New file.
107889         * tests/test-fprintf-posix.out: New file.
107891         * modules/vfprintf-posix: New file.
107892         * lib/vfprintf.c: New file.
107893         * m4/vfprintf-posix.m4: New file.
107894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
107895         REPLACE_VFPRINTF.
107896         * lib/stdio_.h (vfprintf): New declaration.
107897         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
107898         REPLACE_VFPRINTF.
107900 2007-03-08  Bruno Haible  <bruno@clisp.org>
107902         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
107904 2007-03-08  Bruno Haible  <bruno@clisp.org>
107906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
107907         instead of 'expr' invocations.
107908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
107909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
107910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
107911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
107912         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
107913         Suggested by Paul Eggert.
107915 2007-03-08  Bruno Haible  <bruno@clisp.org>
107917         * modules/fseterr-tests: New file.
107918         * tests/test-fseterr.c: New file.
107920         * modules/fseterr: New file.
107921         * lib/fseterr.h: New file.
107922         * lib/fseterr.c: New file.
107924 2007-03-08  Bruno Haible  <bruno@clisp.org>
107926         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
107927         * lib/getopt_.h: Likewise.
107928         * lib/mbswidth.h: Likewise.
107929         * lib/setenv.h: Likewise.
107930         * lib/vasnprintf.h: Likewise.
107931         * lib/vasprintf.h: Likewise.
107932         * lib/verror.h: Likewise.
107933         * lib/xsetenv.h: Likewise.
107934         * lib/xvasprintf.h: Likewise.
107936 2007-03-08  Jim Meyering  <jim@meyering.net>
107938         * users.txt: Add parted.
107940         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
107942 2007-03-07  Bruno Haible  <bruno@clisp.org>
107944         * m4/printf.m4: Make the shell script snippets copy&pastable.
107946 2007-03-02  Bruno Haible  <bruno@clisp.org>
107948         * lib/netinet_in_.h: New file.
107949         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
107950         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
107951         * modules/netinet_in (Files): Add lib/netinet_in_.h.
107952         (Depends-on): Add absolute-header.
107953         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
107954         into netinet/in.h.
107956 2007-03-03  Bruno Haible  <bruno@clisp.org>
107958         * lib/sys_select_.h: New file.
107959         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
107960         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
107961         * modules/sys_select (Files): Add lib/sys_select_.h.
107962         (Depends-on): Add absolute-header.
107963         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
107964         into sys/select.h.
107966 2007-03-02  Bruno Haible  <bruno@clisp.org>
107968         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
107969         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
107970         values.
107971         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
107972         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
107973         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
107974         * modules/sys_socket (Depends-on): Add absolute-header.
107975         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
107976         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
107977         (Include): Remove requirement of inclusion of <sys/types.h>.
107979 2007-03-02  Bruno Haible  <bruno@clisp.org>
107981         * lib/byteswap_.h (bswap_32): Fix formula.
107983 2007-03-06  Bruno Haible  <bruno@clisp.org>
107985         * modules/sprintf-posix-tests: New file.
107986         * tests/test-sprintf-posix.c: New file.
107988         * modules/sprintf-posix: New file.
107989         * lib/sprintf.c: New file.
107990         * m4/sprintf-posix.m4: New file.
107991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
107992         REPLACE_SPRINTF.
107993         * lib/stdio_.h (sprintf): New declaration.
107994         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
107995         REPLACE_SPRINTF.
107997 2007-03-06  Bruno Haible  <bruno@clisp.org>
107999         * modules/vsprintf-posix-tests: New file.
108000         * tests/test-vsprintf-posix.c: New file.
108001         * tests/test-sprintf-posix.h: New file.
108003         * modules/vsprintf-posix: New file.
108004         * lib/vsprintf.c: New file.
108005         * m4/vsprintf-posix.m4: New file.
108006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
108007         REPLACE_VSPRINTF.
108008         * lib/stdio_.h (vsprintf): New declaration.
108009         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
108010         REPLACE_VSPRINTF.
108012 2007-03-06  Bruno Haible  <bruno@clisp.org>
108014         * modules/vsnprintf (Depend-on): Remove minmax.
108016 2007-03-06  Bruno Haible  <bruno@clisp.org>
108018         * modules/snprintf-posix-tests: New file.
108019         * tests/test-snprintf-posix.c: New file.
108021         * modules/snprintf-posix: New file.
108022         * m4/snprintf-posix.m4: New file.
108023         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
108024         gl_FUNC_SNPRINTF.
108025         (gl_FUNC_SNPRINTF): Invoke it.
108026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
108027         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
108028         is set.
108029         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
108031 2007-03-06  Bruno Haible  <bruno@clisp.org>
108033         * modules/vsnprintf-posix-tests: New file.
108034         * tests/test-vsnprintf-posix.c: New file.
108035         * tests/test-snprintf-posix.h: New file.
108037         * modules/vsnprintf-posix: New file.
108038         * m4/vsnprintf-posix.m4: New file.
108039         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
108040         gl_FUNC_VSNPRINTF.
108041         (gl_FUNC_VSNPRINTF): Invoke it.
108042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
108043         * lib/stdio_.h (vsnprintf): Define as a replacement if
108044         REPLACE_VSNPRINTF is set.
108045         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
108047 2007-03-06  Bruno Haible  <bruno@clisp.org>
108049         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
108050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
108052 2007-03-06  Bruno Haible  <bruno@clisp.org>
108054         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
108055         (asinl): Declare also if HAVE_DECL_ASINL is set.
108056         (atanl): Declare also if HAVE_DECL_ATANL is set.
108057         (ceill): Declare also if HAVE_DECL_CEILL is set.
108058         (cosl): Declare also if HAVE_DECL_COSL is set.
108059         (expl): Declare also if HAVE_DECL_EXPL is set.
108060         (floorl): Declare also if HAVE_DECL_FLOORL is set.
108061         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
108062         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
108063         (logl): Declare also if HAVE_DECL_LOGL is set.
108064         (sinl): Declare also if HAVE_DECL_SINL is set.
108065         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
108066         (tanl): Declare also if HAVE_DECL_TANL is set.
108067         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
108068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
108069         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
108070         declaration of frexpl, ldexpl.
108071         * modules/printf-frexpl (Depends-on): Add math.
108072         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
108074 2007-03-05  Bruno Haible  <bruno@clisp.org>
108076         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
108077         frexpl and ldexpl are declared.
108078         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
108080 2007-03-05  Bruno Haible  <bruno@clisp.org>
108082         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
108083         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
108085 2007-03-05  Bruno Haible  <bruno@clisp.org>
108087         * lib/stdio_.h: Include <stddef.h>.
108089 2007-03-05  Bruno Haible  <bruno@clisp.org>
108091         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
108093 2007-03-05  Bruno Haible  <bruno@clisp.org>
108095         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
108096         NetBSD 4, from Ralf Wildenhues.
108098 2007-03-04  Bruno Haible  <bruno@clisp.org>
108100         * lib/vasprintf.h: Update #if logic for the case when the functions
108101         exist but are overridden.
108103 2007-03-04  Bruno Haible  <bruno@clisp.org>
108105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
108106         implementations: glibc-2.4 and MacOS X 10.3.
108107         * tests/test-vasnprintf-posix.c (test_function): Test also the case
108108         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
108109         * tests/test-vasprintf-posix.c (test_function): Likewise.
108111 2007-03-04  Bruno Haible  <bruno@clisp.org>
108113         * modules/vasprintf-posix-tests: New file.
108114         * tests/test-vasprintf-posix.c: New file.
108116         * modules/vasprintf-posix: New file.
108117         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
108118         defined.
108119         * m4/vasprintf-posix.m4: New file.
108120         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
108121         gl_FUNC_VASPRINTF.
108122         (gl_FUNC_VASPRINTF): Invoke it.
108123         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
108124         here.
108125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
108127 2007-03-04  Bruno Haible  <bruno@clisp.org>
108129         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
108130         REPLACE_GETTIMEOFDAY.
108131         * modules/sys_time (Makefile.am): Likewise.
108132         * m4/sys_time_h.m4: Likewise.
108133         * m4/gettimeofday.m4: Likewise.
108135 2007-03-04  Bruno Haible  <bruno@clisp.org>
108137         * modules/vasnprintf-posix-tests: New file.
108138         * tests/test-vasnprintf-posix.c: New file.
108140         * modules/vasnprintf-posix: New file.
108141         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
108142         printf-frexpl.h.
108143         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
108144         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
108145         REPLACE_VASNPRINTF is defined.
108146         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
108147         gl_FUNC_VASNPRINTF.
108148         (gl_FUNC_VASNPRINTF): Invoke it.
108149         * m4/vasnprintf-posix.m4: New file.
108150         * m4/printf.m4: New file.
108152 2007-03-04  Bruno Haible  <bruno@clisp.org>
108154         Compile progreloc.c only if --enable-relocatable is specified.
108155         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
108156         if --enable-relocatable was specified.
108157         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
108158         lib_SOURCES.
108160 2007-03-04  Jim Meyering  <jim@meyering.net>
108162         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
108163         Use it consistently, rather than enumerating errno constants.
108165 2007-03-04  Bruno Haible  <bruno@clisp.org>
108167         * modules/xvasprintf-tests: New file.
108168         * tests/test-xvasprintf.c: New file.
108170         * modules/vasprintf-tests: New file.
108171         * tests/test-vasprintf.c: New file.
108173         * modules/vasnprintf-tests: New file.
108174         * tests/test-vasnprintf.c: New file.
108176         * modules/vsnprintf-tests: New file.
108177         * tests/test-vsnprintf.c: New file.
108179         * modules/snprintf-tests: New file.
108180         * tests/test-snprintf.c: New file.
108182 2007-03-04  Bruno Haible  <bruno@clisp.org>
108184         Compile relocatable.c only if --enable-relocatable is specified.
108185         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
108186         gl_RELOCATABLE_LIBRARY.
108187         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
108188         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
108189         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
108190         gl_RELOCATABLE_LIBRARY.
108191         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
108192         (Makefile.am): Remove lib_SOURCES.
108193         * modules/relocatable-lib-lgpl (configure.ac): Invoke
108194         gl_RELOCATABLE_LIBRARY.
108195         (Makefile.am): Remove lib_SOURCES.
108196         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
108197         always.
108198         * modules/relocatable-prog-wrapper (configure.ac): Invoke
108199         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
108201 2007-03-04  Bruno Haible  <bruno@clisp.org>
108203         * modules/argmatch-tests: New file.
108204         * tests/test-argmatch.c: New file.
108206         * tests/test-allocsa.c (main): Halve the number of loop runs.
108208         * modules/alloca-opt-tests: New file.
108209         * tests/test-alloca-opt.c: New file.
108211 2007-03-04  Jim Meyering  <jim@meyering.net>
108213         Work around difference between Linux ACLs and Solaris 10 ZFS.
108214         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
108215         for EINVAL.
108217 2007-03-03  Bruno Haible  <bruno@clisp.org>
108219         * modules/relocatable-prog (Depends-on): Add back progreloc's
108220         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
108222 2007-03-03  Bruno Haible  <bruno@clisp.org>
108224         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
108225         * modules/relocatable-lib: New file.
108227 2007-03-03  Bruno Haible  <bruno@clisp.org>
108229         * modules/relocatable-prog: Renamed from modules/relocatable.
108230         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
108232 2007-03-03  Bruno Haible  <bruno@clisp.org>
108234         * modules/relocatable-script (Files): Add doc/relocatable.texi,
108235         m4/relocatable-lib.m4.
108236         (Depends-on): Remove 'relocatable'.
108237         (configure.ac): Add gl_RELOCATABLE_NOP.
108239 2007-03-03  Bruno Haible  <bruno@clisp.org>
108241         * modules/relocatable-prog-wrapper: New file.
108242         * modules/relocatable (Depends-on): Add it. Remove all other
108243         dependencies except progname.
108244         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
108246         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
108247         (gl_FUNC_STRERROR): Nop.
108248         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
108250         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
108251         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
108253         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
108254         (gl_FUNC_READLINK): Update.
108256         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
108258 2007-03-03  Bruno Haible  <bruno@clisp.org>
108260         * lib/xreadlink.c: Include <unistd.h> unconditionally.
108261         * modules/xreadlink (Depends-on): Add unistd.
108262         * modules/xreadlink-with-size (Depends-on): Likewise.
108264 2007-03-03  Bruno Haible  <bruno@clisp.org>
108266         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
108267         extracted from gt_FUNC_SETENV.
108268         (gt_FUNC_SETENV): Remove macro.
108269         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
108270         remove gt_FUNC_SETENV.
108272 2007-03-03  Bruno Haible  <bruno@clisp.org>
108274         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
108275         ENABLE_RELOCATABLE here.
108276         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
108278 2007-03-03  Bruno Haible  <bruno@clisp.org>
108280         * modules/rbtreehash-list-tests (Depends-on): Add progname.
108281         * tests/test-rbtreehash_list.c: Include progname.h.
108282         (main): Call set_program_name.
108284         * modules/rbtree-oset-tests (Depends-on): Add progname.
108285         * tests/test-rbtree_oset.c: Include progname.h.
108286         (main): Call set_program_name.
108288         * modules/rbtree-list-tests (Depends-on): Add progname.
108289         * tests/test-rbtree_list.c: Include progname.h.
108290         (main): Call set_program_name.
108292         * modules/linked-list-tests (Depends-on): Add progname.
108293         * tests/test-linked_list.c: Include progname.h.
108294         (main): Call set_program_name.
108296 2007-03-03  Bruno Haible  <bruno@clisp.org>
108298         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
108299         All uses of __restrict changed to _Restrict_.
108300         * lib/glob_.h (__restrict): Remove macro.
108302 2007-03-02  Bruno Haible  <bruno@clisp.org>
108304         * modules/gettext (configure.ac): Require gettext infrastructure
108305         from version 0.16.1.
108307 2007-03-02  Bruno Haible  <bruno@clisp.org>
108309         * modules/linkedhash-list-tests (Depends-on): Add progname.
108310         * tests/test-linkedhash_list.c: Include progname.h.
108311         (main): Call set_program_name.
108313         * modules/carray-list-tests (Depends-on): Add progname.
108314         * tests/test-carray_list.c: Include progname.h.
108315         (main): Call set_program_name.
108317         * modules/avltreehash-list-tests (Depends-on): Add progname.
108318         * tests/test-avltreehash_list.c: Include progname.h.
108319         (main): Call set_program_name.
108321         * modules/avltree-oset-tests (Depends-on): Add progname.
108322         * tests/test-avltree_oset.c: Include progname.h.
108323         (main): Call set_program_name.
108325         * modules/avltree-list-tests (Depends-on): Add progname.
108326         * tests/test-avltree_list.c: Include progname.h.
108327         (main): Call set_program_name.
108329         * modules/array-oset-tests (Depends-on): Add progname.
108330         * tests/test-array_oset.c: Include progname.h.
108331         (main): Call set_program_name.
108333         * modules/array-list-tests (Depends-on): Add progname.
108334         * tests/test-array_list.c: Include progname.h.
108335         (main): Call set_program_name.
108337         * modules/argp-tests (Depends-on): Add progname.
108338         * tests/test-argp.c: Include argp.h first. Include progname.h.
108339         (main): Call set_program_name.
108341 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
108343         * doc/gnulib-tool.texi (Initial import): Reword description of
108344         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
108345         limited effect even if defined after the first system include.
108347 2007-03-01  Bruno Haible  <bruno@clisp.org>
108349         * build-aux/config.libpath: Update to libtool-1.5.22.
108350         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
108352 2007-03-01  Bruno Haible  <bruno@clisp.org>
108354         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
108355         foo_CFLAGS.
108356         Reported by Ralf Wildenhues.
108358 2007-03-01  Bruno Haible  <bruno@clisp.org>
108360         * build-aux/install-reloc: Remove object files left over by some
108361         compilers.
108362         Reported by Ralf Wildenhues.
108364 2007-03-01  Bruno Haible  <bruno@clisp.org>
108366         * build-aux/install-reloc: Break long lines.
108368 2007-03-01  Bruno Haible  <bruno@clisp.org>
108370         * doc/relocatable.texi: Document that it may not work on OpenBSD.
108371         Reported by Ralf Wildenhues.
108373 2007-03-01  Bruno Haible  <bruno@clisp.org>
108375         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
108376         include ordering constraints.
108378 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
108380         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
108381         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
108382         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
108383         as another example.
108384         * lib/time_.h: Fix misspelling.
108385         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108386         Require gl_HEADER_TIME_H_DEFAULTS.
108387         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
108388         * m4/time_r.m4 (gl_TIME_R): Likewise.
108389         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
108391 2007-03-01  Bruno Haible  <bruno@clisp.org>
108393         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
108394         * m4/utimens.m4 (gl_UTIMENS): Likewise.
108396 2007-03-01  Jim Meyering  <jim@meyering.net>
108398         * modules/xreadlink (Maintainer): Add my name.
108399         * modules/xreadlink-with-size (Depends-on): Alphabetize.
108401 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
108402             Bruno Haible  <bruno@clisp.org>
108404         * build-aux/install-reloc: Compile also c-ctype.c.
108405         * build-aux/relocatable.sh.in: New file.
108406         * doc/relocatable.texi: New file.
108407         * doc/relocatable-maint.texi: New file.
108408         * doc/gnulib.texi: Include relocatable-maint.texi.
108409         * lib/progreloc.c: Include unistd.h unconditionally.
108410         * lib/relocwrapper.c: Include unistd.h unconditionally.
108411         Include c-ctype.h.
108412         (add_dotbin): Use c_tolower.
108413         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
108414         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
108415         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
108416         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
108417         to m4/relocatable-lib.m4.
108418         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
108419         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
108420         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
108421         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
108422         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
108423         * modules/relocatable: New file.
108424         * modules/relocatable-lib: New file.
108425         * modules/relocatable-script: New file.
108427 2007-02-28  Bruno Haible  <bruno@clisp.org>
108429         Import --enable-relocatable infrastructure.
108430         * build-aux/config.libpath: New file, from GNU gettext.
108431         * build-aux/install-reloc: New file, from GNU gettext.
108432         * build-aux/reloc-ldflags: New file, from GNU gettext.
108433         * lib/relocatable.h: New file, from GNU gettext.
108434         * lib/relocatable.c: New file, from GNU gettext.
108435         * lib/relocwrapper.c: New file, from GNU gettext.
108436         * m4/relocatable.m4: New file, from GNU gettext.
108438 2007-02-28  Bruno Haible  <bruno@clisp.org>
108440         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
108442         * modules/xreadlink: New file, from GNU gettext with modifications.
108443         * lib/xreadlink.c: New file, from GNU gettext.
108444         * lib/xreadlink.h: Add comments.
108445         (xreadlink): New declaration.
108447         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
108448         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
108449         lib/xreadlink-with-size.c.
108450         (configure.ac): Remove gl_XREADLINK invocation.
108451         (Makefile.am): Augment lib_SOURCES.
108452         * m4/xreadlink.m4: Remove file.
108453         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
108454         (xreadlink_with_size): Renamed from xreadink.
108455         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
108456         * modules/canonicalize (Depends-on): Replace xreadlink with
108457         xreadlink-with-size.
108458         * lib/canonicalize.c (canonicalize_filename_mode): Update.
108460 2007-02-25  Jim Meyering  <jim@meyering.net>
108462         * build-aux/announce-gen: When complaining about excess arguments,
108463         list them.
108465 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
108467         * README: Document signed integer overflow situation more
108468         accurately.
108470 2007-02-25  Bruno Haible  <bruno@clisp.org>
108472         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
108473         'a' or 'A' conversion.
108475 2007-02-25  Bruno Haible  <bruno@clisp.org>
108477         * modules/filename: Renamed from modules/pathname.
108478         (Files): Replace lib/pathname.h with lib/filename.h. Replace
108479         lib/concatpath.c with lib/concat-filename.c.
108480         (Makefile.am): Update.
108481         (Include): Replace pathname.h with filename.h.
108482         * lib/filename.h: Renamed from lib/pathname.h.
108483         (concatenated_filename): Renamed from concatenated_pathname.
108484         * lib/concat-filename.c: Renamed from lib/concatpath.c.
108485         (concatenated_filename): Renamed from concatenated_pathname.
108486         * lib/findprog.c: Include filename.h instead of pathname.h.
108487         (find_in_path): Update.
108488         * lib/javacomp.c: Include filename.h instead of pathname.h.
108489         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
108490         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
108491         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
108492         is_oldgcj_14_13_usable, is_javac_usable): Update.
108493         * lib/javaexec.c: Include filename.h instead of pathname.h.
108494         (execute_java_class): Update.
108495         * modules/findprog: Update.
108496         * modules/javacomp: Update.
108497         * modules/javaexec: Update.
108498         * MODULES.html.sh (File system functions): Add 'filename', remove
108499         'pathname'.
108501 2007-02-25  Bruno Haible  <bruno@clisp.org>
108503         * modules/printf-frexpl-tests: New file.
108504         * tests/test-printf-frexpl.c: New file.
108506         * modules/printf-frexpl: New file.
108507         * lib/printf-frexpl.h: New file.
108508         * lib/printf-frexpl.c: New file.
108509         * m4/printf-frexpl.m4: New file.
108511 2007-02-25  Bruno Haible  <bruno@clisp.org>
108513         * modules/printf-frexp-tests: New file.
108514         * tests/test-printf-frexp.c: New file.
108516         * modules/printf-frexp: New file.
108517         * lib/printf-frexp.h: New file.
108518         * lib/printf-frexp.c: New file.
108519         * m4/printf-frexp.m4: New file.
108521 2007-02-25  Bruno Haible  <bruno@clisp.org>
108523         Assume automake >= 1.10 for the tests.
108524         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
108525         * modules/arctwo-tests: Likewise.
108526         * modules/argp-tests: Likewise.
108527         * modules/avltree-list-tests: Likewise.
108528         * modules/avltree-oset-tests: Likewise.
108529         * modules/avltreehash-list-tests: Likewise.
108530         * modules/carray-list-tests: Likewise.
108531         * modules/crc-tests: Likewise.
108532         * modules/des-tests: Likewise.
108533         * modules/gc-arcfour-tests: Likewise.
108534         * modules/gc-arctwo-tests: Likewise.
108535         * modules/gc-des-tests: Likewise.
108536         * modules/gc-hmac-md5-tests: Likewise.
108537         * modules/gc-hmac-sha1-tests: Likewise.
108538         * modules/gc-md2-tests: Likewise.
108539         * modules/gc-md4-tests: Likewise.
108540         * modules/gc-md5-tests: Likewise.
108541         * modules/gc-pbkdf2-sha1-tests: Likewise.
108542         * modules/gc-rijndael-tests: Likewise.
108543         * modules/gc-sha1-tests: Likewise.
108544         * modules/gc-tests: Likewise.
108545         * modules/getaddrinfo-tests: Likewise.
108546         * modules/hmac-md5-tests: Likewise.
108547         * modules/hmac-sha1-tests: Likewise.
108548         * modules/linked-list-tests: Likewise.
108549         * modules/linkedhash-list-tests: Likewise.
108550         * modules/lock-tests: Likewise.
108551         * modules/md2-tests: Likewise.
108552         * modules/md4-tests: Likewise.
108553         * modules/md5-tests: Likewise.
108554         * modules/rbtree-list-tests: Likewise.
108555         * modules/rbtree-oset-tests: Likewise.
108556         * modules/rbtreehash-list-tests: Likewise.
108557         * modules/read-file-tests: Likewise.
108558         * modules/rijndael-tests: Likewise.
108559         * modules/stdint-tests: Likewise.
108560         * modules/tls-tests: Likewise.
108562 2007-02-24  Bruno Haible  <bruno@clisp.org>
108564         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
108565         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
108566         function; instead check whether isnan with a double argument links.
108567         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
108568         function; instead check whether isnan with a 'long double' argument
108569         links.
108570         Reported by Eric Blake <ebb9@byu.net>.
108572 2007-02-24  Bruno Haible  <bruno@clisp.org>
108574         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
108575         defined.
108576         * lib/isnanl.c: Remove all code. Just include isnan.c.
108577         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
108579 2007-02-25  Jim Meyering  <jim@meyering.net>
108581         Avoid conflicting types for 'unsetenv' on FreeBSD.
108582         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
108583         conflicting with FreeBSD's (5.0 and 6.1) function declaration
108584         in stdlib.h.
108586 2007-02-24  Bruno Haible  <bruno@clisp.org>
108588         * modules/isnanl-nolibm-tests: New file.
108589         * tests/test-isnanl.c: New file.
108591         * modules/isnanl-nolibm: New file.
108592         * lib/isnanl.h: New file.
108593         * lib/isnanl.c: New file.
108594         * m4/isnanl.m4: New file.
108596 2007-02-24  Bruno Haible  <bruno@clisp.org>
108598         * modules/isnan-nolibm-tests: New file.
108599         * tests/test-isnan.c: New file.
108601         * modules/isnan-nolibm: New file.
108602         * lib/isnan.h: New file.
108603         * lib/isnan.c: New file.
108604         * m4/isnan.m4: New file.
108606 2007-02-24  Bruno Haible  <bruno@clisp.org>
108608         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
108609         assume that an exponent fits in 20 bits.
108611 2007-02-24  Jim Meyering  <jim@meyering.net>
108613         * m4/regex.m4: Update the description of the configure-time option,
108614         --without-included-regex, to state accurately what the defaults are,
108615         and perhaps to give people an idea why using this option is risky.
108617 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
108619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
108620         loops on small arguments.  This attempts to avoid the problem
108621         Bruno Haible reported for AIX 4.3.2 in
108622         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
108624 2007-02-23  Bruno Haible  <bruno@clisp.org>
108626         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
108627         Needed for help2man.
108629 2007-02-23  Karl Berry  <karl@gnu.org>
108631         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
108632         exists, foo.h should be cvs-ignored, not committed.
108634 2007-02-23  Eric Blake  <ebb9@byu.net>
108636         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
108637         * lib/stat-time.h (includes): Likewise.
108638         * lib/utimecmp.c (includes): Likewise.
108639         * lib/utimens.h (includes): Likewise.
108640         * lib/getdate.y (includes): Also include "timespec.h" for use
108641         internal to the module.
108642         * modules/utimens (Depends-on): Revert yesterday's patch.
108643         * modules/nanosleep (Depends-on): Add missing dependency.
108645 2007-02-22  Bruno Haible  <bruno@clisp.org>
108647         * lib/glob.c: Don't include getlogin_r.h.
108649 2007-02-22  Jim Meyering  <jim@meyering.net>
108651         * modules/utimens (Depends-on): Add timespec, required for
108652         utimens.h's inclusion of timespec.h.
108654 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
108656         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
108657         long unreadable paths in GNU/Linux.  Problem reported by Andreas
108658         Schwab in
108659         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
108660         I'll try to think of a better way to fix the Solaris problem.
108662         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
108663         like glibc; on Solaris 10, it fails with errno == EINVAL.
108664         POSIX says the behavior is unspecified if the first argument is NULL,
108665         so play it safe and never pass NULL to the system getcwd.
108667 2007-02-21  Jim Meyering  <jim@meyering.net>
108669         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
108670         of gettimeofday.  It would conflict with the one now always
108671         provided via sys_time_.h.  Reported by Matthew Woehlke, as
108672         an IRIX 6.5 build failure.
108674 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
108676         Minor fixups to port to Solaris 10 with Sun C 5.8.
108677         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
108678         * modules/getcwd (Depends-on): Add dirfd.
108679         * lib/putenv.c (putenv): #undef it.
108680         (rpl_putenv): New decl.
108681         (malloc, free): Include <stdlib.h> rather than prototyping separately.
108683 2007-02-20  Bruno Haible  <bruno@clisp.org>
108685         * modules/stdio-tests: New file.
108686         * tests/test-stdio.c: New file.
108688         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
108689         (Depends-on): Add stdio.
108690         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108691         (Include): Use <stdio.h> instead of vsnprintf.h.
108692         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108693         HAVE_DECL_VSNPRINTF.
108694         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
108696         * modules/snprintf (Files): Remove lib/snprintf.h.
108697         (Depends-on): Add stdio.
108698         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108699         (Include): Use <stdio.h> instead of snprintf.h.
108700         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108701         HAVE_DECL_SNPRINTF.
108702         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
108703         * lib/getaddrinfo.c: Likewise.
108705         * modules/stdio: New file.
108706         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
108707         * lib/snprintf.h: Remove file.
108708         * lib/vsnprintf.h: Remove file.
108709         * lib/.cppi-disable: Remove snprintf.h.
108710         * m4/stdio_h.m4: New file.
108711         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
108713 2007-02-20  Jim Meyering  <jim@meyering.net>
108715         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
108716         used by e.g., mingw.  From Bruno Haible.
108718 2007-02-19  Bruno Haible  <bruno@clisp.org>
108720         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
108721         warnings.
108722         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108724 2007-02-19  Bruno Haible  <bruno@clisp.org>
108726         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
108727         from mingw users.
108729 2007-02-19  Bruno Haible  <bruno@clisp.org>
108731         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
108732         warnings.
108733         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
108735 2007-02-19  Jim Meyering  <jim@meyering.net>
108737         Don't use FD after a successful "fdopendir (fd)".
108738         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
108739         Reset it by calling dirfd on the just-obtained DIR*.
108741         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
108742         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
108744 2007-02-18  Bruno Haible  <bruno@clisp.org>
108746         * lib/readlink.c: Include <unistd.h>.
108747         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
108748         HAVE_READLINK.
108749         * modules/readlink (Depends-on): Add unistd.
108750         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108751         (Include): Add <unistd.h>.
108753         * lib/getlogin_r.h: Remove file.
108754         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
108755         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
108756         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
108757         HAVE_DECL_GETLOGIN_R.
108758         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
108759         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108760         (Include): Use <unistd.h> instead of getlogin_r.h.
108762         * lib/getcwd.h: Remove file.
108763         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
108764         * lib/xgetcwd.c: Likewise.
108765         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
108766         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
108767         * modules/getcwd (Files): Remove lib/getcwd.h.
108768         (Depends-on): Add unistd.
108769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108770         (Include): Use <unistd.h> instad of getcwd.h.
108772         * lib/ftruncate.c: Include <unistd.h> first.
108773         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
108774         Set HAVE_FTRUNCATE.
108775         * modules/ftruncate (Depends-on): Add unistd.
108776         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108778         * lib/fchdir.c: Include <unistd.h> first.
108779         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
108780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
108781         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
108782         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108783         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
108785         * lib/dup2.c: Include <unistd.h> first.
108786         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
108787         HAVE_DUP2.
108788         * modules/dup2 (Depends-on): Add unistd.
108789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108791         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
108792         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
108793         REPLACE_CHOWN. Don't define chown as a macro here.
108794         * modules/chown (Depends-on): Add unistd.
108795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108797         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
108798         Add definition for GL_LINK_WARNING.
108799         (chown, dup2): New declarations.
108800         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
108801         link warning.
108802         (ftruncate): New declaration.
108803         (getcwd): New declaration, taken from old getcwd.h.
108804         (getlogin_r): New declaration, taken from old getlogin_r.h.
108805         (readlink): New declaration.
108806         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
108807         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
108808         (gl_PREREQ_UNISTD): Remove macro.
108809         (gl_UNISTD_MODULE_INDICATOR): New macro.
108810         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
108811         many new variables. Don't set UNISTD_H.
108812         * modules/unistd (Description): Change.
108813         (Depends-on): Add link-warning.
108814         (configure.ac): Update.
108815         (Makefile.am): Create unistd.h always. Substitute many new variables
108816         into it.
108818 2007-02-18  Bruno Haible  <bruno@clisp.org>
108820         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
108821         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
108822         HAVE_GETSUBOPT.
108823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
108824         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
108825         * lib/getsubopt.h: Remove file.
108826         * modules/getsubopt (Files): Remove lib/getsubopt.h.
108827         (Depends-on): Add stdlib.
108828         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108829         (Includes): Use <stdlib.h> instead of getsubopt.h.
108830         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
108831         Set HAVE_GETSUBOPT.
108832         * lib/getsubopt.c: Don't include getsubopt.h.
108834 2007-02-18  Bruno Haible  <bruno@clisp.org>
108836         * modules/fchdir (Depends-on): Add dup2.
108838 2007-02-18  Bruno Haible  <bruno@clisp.org>
108840         * lib/stdlib_.h: Handle glibc's special invocation convention
108841         specially.
108843 2007-02-18  Bruno Haible  <bruno@clisp.org>
108845         * modules/stdlib-tests: New file.
108846         * tests/test-stdlib.c: New file.
108848         * modules/mkstemp (Files): Remove lib/mkstemp.h.
108849         (Depends-on): Add stdlib.
108850         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108851         (Includes): Use <stdlib.h> instead of mkstemp.h.
108852         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108853         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
108854         * lib/mkstemp.c: Don't include mkstemp.h.
108855         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
108856         * lib/stdlib--.h: Don't include mkstemp.h.
108858         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
108859         (Depends-on): Add stdlib.
108860         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108861         (Includes): Use <stdlib.h> instead of mkdtemp.h.
108862         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108863         HAVE_MKDTEMP.
108864         * lib/mkdtemp.c: Don't include mkdtemp.h.
108865         * lib/clean-temp.c: Don't include mkdtemp.h.
108867         * modules/exit (Files): Remove lib/exit.h.
108868         (Depends-on): Add stdlib.
108869         (Makefile.am): Remove lib_SOURCES.
108870         (Include): Use <stdlib.h> instead of exit.h.
108871         * lib/argmatch.c: Don't include exit.h.
108872         * lib/execute.c: Likewise.
108873         * lib/pagealign_alloc.c: Likewise.
108874         * lib/pipe.c: Likewise.
108875         * lib/wait-process.c: Likewise.
108876         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
108877         * lib/exitfail.c: Likewise.
108878         * lib/savewd.c: Likewise.
108879         * lib/xsetenv.c: Likewise.
108881         * modules/stdlib: New file.
108882         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
108883         and extra comments about mkstemp().
108884         * lib/exit.h: Remove file.
108885         * lib/mkdtemp.h: Remove file.
108886         * lib/mkstemp.h: Remove file.
108887         * m4/stdlib_h.m4: New file.
108888         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
108890 2007-02-18  Bruno Haible  <bruno@clisp.org>
108892         * modules/math-tests: New file.
108893         * tests/test-math.c: New file.
108895         * modules/math: New file.
108896         * modules/mathl (Files): Remove lib/mathl.h.
108897         (Depends-on): Add math.
108898         (Makefile.am): Don't mention mathl.h.
108899         (Include): Use <math.h> instead of mathl.h.
108900         * lib/math_.h: New file.
108901         * lib/mathl.h: Remove file.
108902         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
108903         mathl.h.
108904         * lib/asinl.c: Likewise.
108905         * lib/atanl.c: Likewise.
108906         * lib/ceill.c: Likewise.
108907         * lib/cosl.c: Likewise.
108908         * lib/expl.c: Likewise.
108909         * lib/floorl.c: Likewise.
108910         * lib/frexpl.c: Likewise.
108911         * lib/ldexpl.c: Likewise.
108912         * lib/logl.c: Likewise.
108913         * lib/sincosl.c: Likewise.
108914         * lib/sinl.c: Likewise.
108915         * lib/sqrtl.c: Likewise.
108916         * lib/tanl.c: Likewise.
108917         * lib/trigl.c: Likewise.
108918         * m4/math_h.m4: New file.
108919         * MODULES.html.sh (Mathematics): Add math.
108921 2007-02-17  Bruno Haible  <bruno@clisp.org>
108923         * modules/wctype-tests: New file.
108924         * tests/test-wctype.c: New file.
108926         * modules/wchar-tests: New file.
108927         * tests/test-wchar.c: New file.
108929         * modules/unistd-tests: New file.
108930         * tests/test-unistd.c: New file.
108932         * modules/time-tests: New file.
108933         * tests/test-time.c: New file.
108935         * modules/sysexits-tests: New file.
108936         * tests/test-sysexits.c: New file.
108938         * modules/sys_time-tests: New file.
108939         * tests/test-sys_time.c: New file.
108941         * modules/sys_stat-tests: New file.
108942         * tests/test-sys_stat.c: New file.
108944         * modules/sys_socket-tests: New file.
108945         * tests/test-sys_socket.c: New file.
108947         * modules/sys_select-tests: New file.
108948         * tests/test-sys_select.c: New file.
108950         * modules/string-tests: New file.
108951         * tests/test-string.c: New file.
108953         * modules/stdbool-tests: New file.
108954         * tests/test-stdbool.c: New file.
108956         * modules/netinet_in-tests: New file.
108957         * tests/test-netinet_in.c: New file.
108959         * modules/inttypes-tests: New file.
108960         * tests/test-inttypes.c: New file.
108962         * modules/fcntl-tests: New file.
108963         * tests/test-fcntl.c: New file.
108965         * modules/byteswap-tests: New file.
108966         * tests/test-byteswap.c: New file.
108968         * modules/arpa_inet-tests: New file.
108969         * tests/test-arpa_inet.c: New file.
108971 2007-02-17  Bruno Haible  <bruno@clisp.org>
108973         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
108974         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
108975         if the corresponding module is not enabled. Emit link warnings if
108976         the function is used nevertheless.
108977         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
108978         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
108979         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
108980         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
108981         * modules/inttypes (Depends-on): Add link-warning.
108982         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108983         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
108984         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
108985         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
108986         * modules/imaxdiv (configure.ac): Likewise.
108987         * modules/strtoimax (configure.ac): Likewise.
108988         * modules/strtoumax (configure.ac): Likewise.
108990 2007-02-17  Bruno Haible  <bruno@clisp.org>
108992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
108993         gl_STRING_MODULE_INDICATOR_DEFAULTS.
108994         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
108995         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108997 2007-02-17  Bruno Haible  <bruno@clisp.org>
108999         * modules/link-warning: New file.
109000         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
109001         * lib/string_.h (GL_LINK_WARNING): Remove definition.
109002         * modules/string (Depends-on): Add link-warning.
109003         (Makefile.am): Copy the contents of build-aux/link-warning.h into
109004         string.h.
109005         * MODULES.html.sh (Support for building libraries and executables): Add
109006         link-warning.
109008 2007-02-17  Bruno Haible  <bruno@clisp.org>
109010         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
109011         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
109012         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
109013         long lines.
109015 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
109016             Bruno Haible  <bruno@clisp.org>
109018         * modules/tmpfile: New file.
109019         * lib/tmpfile.c: New file.
109020         * m4/tmpfile.m4: New file.
109021         * MODULES.html.sh (func_all_modules): New section "Input/output".
109023 2007-02-15  Bruno Haible  <bruno@clisp.org>
109025         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
109026         (supports_delete_on_close): New function.
109027         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
109029 2007-02-14  Bruno Haible  <bruno@clisp.org>
109031         * modules/mbspcasecmp-tests: New file.
109032         * tests/test-mbspcasecmp.sh: New file.
109033         * tests/test-mbspcasecmp.c: New file.
109035         New module mbspcasecmp.
109036         * modules/mbspcasecmp: New file.
109037         * lib/mbspcasecmp.c: New file.
109038         * lib/string_.h (strncasecmp): Change warning message.
109039         (mbspcasecmp): New declaration.
109040         * m4/mbspcasecmp.m4: New file.
109041         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109042         GNULIB_MBSPCASECMP.
109043         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
109044         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
109046 2007-02-14  Bruno Haible  <bruno@clisp.org>
109048         * modules/mbsncasecmp-tests: New file.
109049         * tests/test-mbsncasecmp.sh: New file.
109050         * tests/test-mbsncasecmp.c: New file.
109052         New module mbsncasecmp.
109053         * modules/mbsncasecmp: New file.
109054         * lib/mbsncasecmp.c: New file.
109055         * lib/string_.h (mbsncasecmp): New declaration.
109056         * m4/mbsncasecmp.m4: New file.
109057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109058         GNULIB_MBSNCASECMP.
109059         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
109060         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
109062 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
109064         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
109065         Verify that it doesn't overlap with our flags.
109066         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
109067         do not have the desired effect in multibyte locales; instead, use
109068         mbscasecmp.
109069         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
109070         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
109071         we don't require GNU fnmatch ourselves (if our users require it, they
109072         should do so explicitly).
109074         Fix regex code so it doesn't rely on strcasecmp.
109075         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
109076         Otherwise, include gnulib's langinfo.h.
109077         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
109078         undesirable behavior in non-C locales.  Instead, rely on localecharset.
109079         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
109080         * modules/regex (FILES): Remove m4/codeset.m4.
109081         (Depends-on): Add localcharset.  Remove strcase.
109083 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109085         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
109086         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
109088 2007-02-13  Bruno Haible  <bruno@clisp.org>
109090         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
109091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109093 2007-02-12  Bruno Haible  <bruno@clisp.org>
109095         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
109096         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
109097         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
109098         time warning rather than a link error.
109100 2007-02-12  Bruno Haible  <bruno@clisp.org>
109102         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
109103         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
109104         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109106 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
109108         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
109109         args, not 2.
109111 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
109113         New module 'time', so that apps can include <time.h> as per
109114         POSIX and GNU instead of separate include files like time_r.h
109115         and timegm.h.  This implementation tries out a simpler approach
109116         for replacing decls in standard include files (as compared to
109117         the string module), somewhat as an experiment.
109119         * config/srclist.txt: Comment out mktime.c for now.
109120         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
109121         since it doesn't apply any more.  Use generic wording instead.
109122         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
109123         'time'.
109124         * lib/time_.h, m4/time_h.m4, modules/time: New files.
109125         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
109126         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
109127         Don't include <sys/types.h>; no longer needed since we assume C89.
109128         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
109129         * lib/strftime.c: Likewise.
109130         * lib/time_r.c: Likewise.
109131         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
109132         * lib/nanosleep.c: Include <time.h> first, to check interface.
109133         * lib/strptime.c: Likewise.
109134         * lib/time_r.c: Likewise.
109135         * lib/timegm.c: Likewise.
109136         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
109137         needed.
109138         * lib/timegm.c: Don't include timegm.h; no longer needed.
109139         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
109140         time.h now handles any problems in that area.
109141         (struct timespec, nanosleep): Remove; time.h now arranges for these.
109142         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
109143         that time.h defines struct timespec.
109144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
109145         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
109146         handles that.
109147         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
109148         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
109149         needed.  Set REPLACE_LOCALTIME.
109150         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
109151         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
109152         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
109153         nanosleep; time_h.m4 now does that.  Don't require
109154         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
109155         module handles this now.
109156         * modules/getdate (Depends-on): Remove timespec.  Add time.
109157         * modules/nanosleep (Depends-on): Likewise.
109158         * modules/stat-time (Depends-on): Likewise.
109159         * modules/nanosleep (Include): Include time.h, not timespec.h.
109160         * modules/strptime (Files): Remove lib/strptime.h.
109161         (Depends-on): Add extensions, time.
109162         (Include): Include time.h, not strptime.h.
109163         * modules/time_r (Files): Remove lib/time_r.h.
109164         (Depends-on): Add time.
109165         (Include): Include time.h, not time_r.h.
109166         * modules/timegm: Likewise.
109167         * modules/timespec (Description): Now does timespec-related decls
109168         of our own, instead of struct timespec itself.
109169         (Depends-on): Add time; remove extensions.
109170         (Maintainer): Add self.
109171         * modules/utimecmp (Depends-on): Add time; remove timespec.
109172         * modules/utimens (Depends-on): Likewise.
109173         * modules/xnanosleep (Depends-on): Likewise.
109175 2007-02-11  Bruno Haible  <bruno@clisp.org>
109177         * lib/c-strstr.c: Include allocsa.h.
109178         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
109179         * lib/c-strcasestr.c: Include allocsa.h.
109180         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
109181         * lib/strcasestr.c: Include allocsa.h.
109182         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
109183         * lib/mbsstr.c: Include allocsa.h.
109184         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
109185         allocsa/freesa instead of malloc/free.
109186         * lib/mbscasestr.c: Include allocsa.h.
109187         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
109188         allocsa/freesa instead of malloc/free.
109189         * modules/c-strstr (Depends-on): Add allocsa.
109190         * modules/c-strcasestr (Depends-on): Likewise.
109191         * modules/strcasestr (Depends-on): Likewise.
109192         * modules/mbsstr (Depends-on): Likewise.
109193         * modules/mbscasestr (Depends-on): Likewise.
109195 2007-02-11  Bruno Haible  <bruno@clisp.org>
109197         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
109199         * modules/mbsspn-tests: New file.
109200         * tests/test-mbsspn.sh: New file.
109201         * tests/test-mbsspn.c: New file.
109203 2007-02-11  Bruno Haible  <bruno@clisp.org>
109205         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
109207         * modules/mbspbrk-tests: New file.
109208         * tests/test-mbspbrk.sh: New file.
109209         * tests/test-mbspbrk.c: New file.
109211 2007-02-11  Bruno Haible  <bruno@clisp.org>
109213         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
109214         unneeded cast.
109216         * modules/mbscspn-tests: New file.
109217         * tests/test-mbscspn.sh: New file.
109218         * tests/test-mbscspn.c: New file.
109220 2007-02-11  Bruno Haible  <bruno@clisp.org>
109222         * modules/mbscasecmp-tests: New file.
109223         * tests/test-mbscasecmp.sh: New file.
109224         * tests/test-mbscasecmp.c: New file.
109226 2007-02-11  Bruno Haible  <bruno@clisp.org>
109228         Ensure O(n) worst-case complexity of mbscasestr.
109229         * lib/mbscasestr.c: Include stdbool.h.
109230         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
109231         functions.
109232         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
109233         the bookkeeping indicates that it's worth it.
109234         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
109236         * modules/mbscasestr-tests: New file.
109237         * tests/test-mbscasestr1.c: New file.
109238         * tests/test-mbscasestr2.sh: New file.
109239         * tests/test-mbscasestr2.c: New file.
109240         * tests/test-mbscasestr3.sh: New file.
109241         * tests/test-mbscasestr3.c: New file.
109242         * tests/test-mbscasestr4.sh: New file.
109243         * tests/test-mbscasestr4.c: New file.
109244         * m4/locale-tr.m4: New file.
109246 2007-02-11  Bruno Haible  <bruno@clisp.org>
109248         Ensure O(n) worst-case complexity of mbsstr.
109249         * lib/mbsstr.c: Include stdbool.h.
109250         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
109251         functions.
109252         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
109253         bookkeeping indicates that it's worth it.
109254         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
109256         * modules/mbsstr-tests: New file.
109257         * tests/test-mbsstr1.c: New file.
109258         * tests/test-mbsstr2.sh: New file.
109259         * tests/test-mbsstr2.c: New file.
109260         * tests/test-mbsstr3.sh: New file.
109261         * tests/test-mbsstr3.c: New file.
109262         * m4/locale-fr.m4: New file.
109264 2007-02-11  Bruno Haible  <bruno@clisp.org>
109266         * lib/mbsrchr.c (mbsrchr): Fix bug.
109268         * modules/mbsrchr-tests: New file.
109269         * tests/test-mbsrchr.sh: New file.
109270         * tests/test-mbsrchr.c: New file.
109272 2007-02-11  Bruno Haible  <bruno@clisp.org>
109274         * lib/mbschr.c (mbschr): Fix bug.
109276         * modules/mbschr-tests: New file.
109277         * tests/test-mbschr.sh: New file.
109278         * tests/test-mbschr.c: New file.
109279         * m4/locale-zh.m4: New file.
109281 2007-02-11  Bruno Haible  <bruno@clisp.org>
109283         Support for copying multibyte string iterators.
109284         * lib/mbiter.h: Include <string.h>.
109285         (mbiter_multi_copy): New function.
109286         (mbi_copy): New macro.
109287         * lib/mbuiter.h: Include <string.h>.
109288         (mbuiter_multi_copy): New function.
109289         (mbui_copy): New macro.
109291 2007-02-11  Bruno Haible  <bruno@clisp.org>
109293         New module mbslen.
109294         * modules/mbslen: New file.
109295         * lib/mbslen.c: New file.
109296         * lib/string_.h (mbslen): New declaration.
109297         * m4/mbslen.m4: New file.
109298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109299         GNULIB_MBSLEN.
109300         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
109301         * MODULES.html.sh (Internationalization functions): Add mbslen.
109303 2007-02-11  Bruno Haible  <bruno@clisp.org>
109305         Ensure O(n) worst-case complexity of strcasestr substitute.
109306         * lib/strcasestr.c: Include stdbool.h.
109307         (knuth_morris_pratt): New function.
109308         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
109309         bookkeeping indicates that it's worth it.
109310         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
109312         * modules/strcasestr-tests: New file.
109313         * tests/test-strcasestr.c: New file.
109315 2007-02-11  Bruno Haible  <bruno@clisp.org>
109317         Ensure O(n) worst-case complexity of c_strcasestr.
109318         * lib/c-strcasestr.c: Include stdbool.h, string.h.
109319         (knuth_morris_pratt): New function.
109320         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
109321         the bookkeeping indicates that it's worth it.
109322         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
109324         * modules/c-strcasestr-tests: New file.
109325         * tests/test-c-strcasestr.c: New file.
109327 2007-02-11  Bruno Haible  <bruno@clisp.org>
109329         Ensure O(n) worst-case complexity of c_strstr.
109330         * lib/c-strstr.c: Include stdbool.h, string.h.
109331         (knuth_morris_pratt): New function.
109332         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
109333         bookkeeping indicates that it's worth it.
109334         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
109336         * lib/c-strstr.c: Complete rewrite for maintainability.
109338         * modules/c-strstr-tests: New file.
109339         * tests/test-c-strstr.c: New file.
109341 2007-02-11  Bruno Haible  <bruno@clisp.org>
109343         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
109344         5.2.1 and earlier, whereby \055 was treated just like the range
109345         delimiter '-'.
109346         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
109348 2007-02-08  Bruno Haible  <bruno@clisp.org>
109350         * modules/regex (Depends-on): Add stdbool.
109351         Reported by Dalibor Topic <robilad@kaffe.org>.
109353 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
109355         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
109356         Prefer returning from main to exiting from it.
109357         Remove unnecessary parens after sizeof.
109359 2007-02-05  Bruno Haible  <bruno@clisp.org>
109361         New module mbssep.
109362         * modules/mbssep: New file.
109363         * lib/mbssep.c: New file.
109364         * lib/string_.h (strsep): Add a conditional link warning.
109365         (mbssep): New declaration.
109366         * m4/mbssep.m4: New file.
109367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109368         GNULIB_MBSSEP.
109369         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
109370         * MODULES.html.sh (Internationalization functions): Add mbssep.
109372 2007-02-05  Bruno Haible  <bruno@clisp.org>
109374         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
109375         Optimize search in case of 1 delimiter.
109377 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
109379         * lib/acl.h: Include sys/types.h before sys/acl.h.
109381 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
109383         Merge upstream fix for glibc bugzilla #3957:
109385         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
109387         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
109388         bit for RE_HAT_LISTS_NOT_NEWLINE.
109389         (build_charclass_op): Remove bogus comment.
109391 2007-02-05  Simon Josefsson  <simon@josefsson.org>
109393         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
109395 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
109397         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
109398         * lib/memmem.c [!defined _LIBC]: Include config.h.
109400 2007-02-04  Bruno Haible  <bruno@clisp.org>
109402         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
109403         warning message.
109405 2007-02-04  Bruno Haible  <bruno@clisp.org>
109407         New module mbstok_r.
109408         * modules/mbstok_r: New file.
109409         * lib/mbstok_r.c: New file.
109410         * lib/string_.h (strtok_r): Change argument names to match the
109411         comments. Add a conditional link warning.
109412         (mbstok_r): New declaration.
109413         * m4/mbstok_r.m4: New file.
109414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109415         GNULIB_MBSTOK_R.
109416         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
109417         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
109419 2007-02-04  Bruno Haible  <bruno@clisp.org>
109421         New module mbsspn.
109422         * modules/mbsspn: New file.
109423         * lib/mbsspn.c: New file.
109424         * lib/string_.h (strspn): Add a conditional link warning.
109425         (mbsspn): New declaration.
109426         * m4/mbsspn.m4: New file.
109427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109428         GNULIB_MBSSPN.
109429         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
109430         * MODULES.html.sh (Internationalization functions): Add mbsspn.
109432 2007-02-04  Bruno Haible  <bruno@clisp.org>
109434         New module mbspbrk.
109435         * modules/mbspbrk: New file.
109436         * lib/mbspbrk.c: New file.
109437         * lib/string_.h (strpbrk): Add a conditional link warning.
109438         (mbspbrk): New declaration.
109439         * m4/mbspbrk.m4: New file.
109440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109441         GNULIB_MBSPBRK.
109442         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
109443         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
109445 2007-02-04  Bruno Haible  <bruno@clisp.org>
109447         New module mbscspn.
109448         * modules/mbscspn: New file.
109449         * lib/mbscspn.c: New file.
109450         * lib/string_.h (strcspn): Add a conditional link warning.
109451         (mbscspn): New declaration.
109452         * m4/mbscspn.m4: New file.
109453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109454         GNULIB_MBSCSPN.
109455         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
109456         * MODULES.html.sh (Internationalization functions): Add mbscspn.
109458 2007-02-04  Bruno Haible  <bruno@clisp.org>
109460         New module mbscasestr, reduced goal of strcasestr.
109461         * modules/mbscasestr: New file.
109462         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
109463         (mbscasestr): Renamed from strcasestr.
109464         * lib/strcasestr.c: Don't include mbuiter.h.
109465         (strcasestr): Remove support for multibyte locales.
109466         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
109467         Change the conditional link warning.
109468         (mbscasestr): New declaration.
109469         * m4/mbscasestr.m4: New file.
109470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
109471         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
109472         REPLACE_STRCASESTR.
109473         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
109474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
109475         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
109476         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
109477         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
109478         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
109479         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
109480         (Depends-on): Remove mbuiter.
109481         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
109483 2007-02-04  Bruno Haible  <bruno@clisp.org>
109485         Simplify handling of strncasecmp.
109486         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
109487         the conditional link warning.
109488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
109489         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
109490         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
109491         * modules/strcase (configure.ac): Don't invoke
109492         gl_STRING_MODULE_INDICATOR.
109493         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
109495 2007-02-04  Bruno Haible  <bruno@clisp.org>
109497         New module mbscasecmp, reduced goal of strcasecmp.
109498         * modules/mbscasecmp: New file.
109499         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
109500         (mbscasecmp): Renamed from strcasecmp.
109501         * lib/strcasecmp.c: Don't include mbuiter.h.
109502         (strcasecmp): Remove support for multibyte locales.
109503         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
109504         Change the conditional link warning.
109505         (mbscasecmp): New declaration.
109506         * m4/mbscasecmp.m4: New file.
109507         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
109508         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
109509         REPLACE_STRCASECMP.
109510         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
109511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109512         GNULIB_MBSCASECMP.
109513         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
109514         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
109515         * modules/strcase (Files): Remove m4/mbrtowc.m4.
109516         (Depends-on): Remove mbuiter.
109517         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
109519 2007-02-04  Bruno Haible  <bruno@clisp.org>
109521         New module mbsstr. Remove module strstr.
109522         * modules/mbsstr: New file.
109523         * modules/strstr: Remove file.
109524         * lib/mbsstr.c: Renamed from lib/strstr.c.
109525         (mbsstr): Renamed from strstr.
109526         * lib/string_.h (strstr): Remove declaration. Change the conditional
109527         link warning.
109528         (mbsstr): New declaration.
109529         * m4/mbsstr.m4: New file.
109530         * m4/strstr.m4: Remove file.
109531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
109532         REPLACE_STRSTR.
109533         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
109534         Don't initialize GNULIB_STRSTR.
109535         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
109536         substitute GNULIB_STRSTR and REPLACE_STRSTR.
109537         * MODULES.html.sh (Internationalization functions): Add mbsstr.
109538         (Support for systems lacking ANSI C 89): Remove strstr.
109540 2007-02-04  Bruno Haible  <bruno@clisp.org>
109542         New module mbsrchr.
109543         * modules/mbsrchr: New file.
109544         * lib/mbsrchr.c: New file.
109545         * lib/string_.h (strrchr): Add a conditional link warning.
109546         (mbsrchr): New declaration.
109547         * m4/mbsrchr.m4: New file.
109548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109549         GNULIB_MBSRCHR.
109550         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
109551         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
109553 2007-02-04  Bruno Haible  <bruno@clisp.org>
109555         New module mbschr.
109556         * modules/mbschr: New file.
109557         * lib/mbschr.c: New file.
109558         * lib/string_.h (strchr): Add a conditional link warning.
109559         (mbschr): New declaration.
109560         * m4/mbschr.m4: New file.
109561         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109562         GNULIB_MBSCHR.
109563         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
109564         * MODULES.html.sh (Internationalization functions): Add mbschr.
109566 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
109568         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
109570         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
109572 2007-02-04  Bruno Haible  <bruno@clisp.org>
109574         New module description section 'configure.ac-early'.
109575         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
109576         (func_get_autoconf_early_snippet): New function.
109577         (func_import, func_create_testdir): Use it. Remove special cases for
109578         modules 'extensions' and 'lock'.
109579         * modules/extensions (configure.ac-early): Require
109580         gl_USE_SYSTEM_EXTENSIONS.
109581         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
109583 2007-02-04  Bruno Haible  <bruno@clisp.org>
109585         Make use of gcj-4.3's -fsource and -ftarget option.
109586         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
109587         and if so try the options -fsource and -ftarget.
109588         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
109589         source_version, ftarget_option, target_version arguments.
109590         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
109591         (is_envjavac_oldgcj_14_14_usable): Renamed from
109592         is_envjavac_gcj_14_14_usable.
109593         (is_envjavac_oldgcj_14_13_usable): Renamed from
109594         is_envjavac_gcj_14_13_usable.
109595         (is_gcj_present): Update.
109596         (is_gcj_43, is_gcj43_usable): New functions.
109597         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
109598         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
109599         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
109600         try the options -fsource and -ftarget.
109602 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
109604         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
109605         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
109606         larger value.
109608 2007-02-03  Jim Meyering  <jim@meyering.net>
109610         Give tools a better chance to allocate space for very large buffers.
109611         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
109613         Make pwd and readlink work also when run with an unreadable parent dir
109614         on systems with openat support.
109615         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
109616         provided getcwd function, even when we have openat support.
109617         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
109619 2007-02-02  Bruno Haible  <bruno@clisp.org>
109621         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
109622         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
109623         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
109624         portability problems if one of these functions is only used on specific
109625         platforms.
109626         Reported by Paul Eggert.
109628 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
109630         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
109631         is causing more trouble than it's curing.
109632         * lib/regex_internal.h (__mempcpy): Remove.
109633         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
109634         (and make the code a tad smaller to boot).
109635         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
109637 2007-02-02  Jim Meyering  <jim@meyering.net>
109639         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
109640         section, not in the Makefile.am: one.
109642 2007-02-02  Eric Blake  <ebb9@byu.net>
109644         * lib/strchrnul.c: Always include config.h first.
109646         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
109647         gnulib strstr is not necessary here.
109649 2007-02-02  Simon Josefsson  <simon@josefsson.org>
109651         * m4/socklen.m4: Fix typo.
109653 2007-02-02  Eric Blake  <ebb9@byu.net>
109655         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
109656         * modules/netinet_in (Makefile.am): Likewise.
109658 2007-02-01  Bruno Haible  <bruno@clisp.org>
109660         * lib/string_.h (GL_LINK_WARNING): New macro.
109661         (strcasecmp, strstr, strcasestr): If provided by the system,
109662         conditionally define as a macro that leads to a warning instead of to
109663         an error.
109664         (strncasecmp): Conditionally define as a macro that leads to a warning.
109666 2007-02-01  Karl Berry  <karl@gnu.org>
109668         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
109670 2007-02-01  Bruno Haible  <bruno@clisp.org>
109672         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
109673         renamings.
109675 2007-02-01  Eric Blake  <ebb9@byu.net>
109677         * modules/regex (Depends-on): Revert dependence on mempcpy.
109678         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
109679         module's definition of mempcpy.
109680         Reported by Paul Eggert.
109682 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
109684         * lib/string_.h: If the gnulib module XYZ is not present, undefine
109685         the symbol XYZ before redefining it.  This fixes a problem with
109686         programs that don't use XYZ, when compiled on systems that define
109687         XYZ to something else.
109689 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
109691         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
109692         occurs when "mkdir -m foo" creates a setgid directory that is (1)
109693         writeable to group or other and (2) is intended to have a special
109694         mode bit that is set or cleared.  In such a case, the directory
109695         should be neither group- nor other-writeable until the special
109696         mode bits are right.
109698 2007-01-31  Eric Blake  <ebb9@byu.net>
109700         * modules/mountlist (Depends-on): Add strstr.
109702         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
109703         bug.
109704         * modules/string (Makefile.am): Remove redundant replacement.
109705         * modules/regex (Depends-on): Add mempcpy.
109707 2007-01-31  Bruno Haible  <bruno@clisp.org>
109709         New module description field 'Link'.
109710         * gnulib-tool (func_usage): Document --extract-link-directive.
109711         (sed_extract_prog): Recognize 'Link' directive.
109712         (func_get_link_directive): New function.
109713         (func_import): Show summary of link directives.
109714         Handle --extract-link-directive option.
109715         * modules/acl (Link): New section.
109716         * modules/clock-time (Link): New section.
109717         * modules/euidaccess (Link): New section.
109718         * modules/gettext (Link): New section.
109719         * modules/iconv (Link): New section.
109720         * modules/lock (Link): New section.
109721         * modules/nanosleep (Link): New section.
109722         * modules/readline (Link): New section.
109724 2007-01-27  Bruno Haible  <bruno@clisp.org>
109726         Enforce the use of gnulib modules for unportable <string.h> functions.
109727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
109728         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
109729         (gl_HEADER_STRING_H_BODY): Require it.
109730         * lib/string_.h: If the gnulib module XYZ is not present, redefine
109731         the symbol XYZ to one that gives a link error.
109732         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
109733         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
109734         * modules/mempcpy (configure.ac): Likewise.
109735         * modules/memrchr (configure.ac): Likewise.
109736         * modules/stpcpy (configure.ac): Likewise.
109737         * modules/stpncpy (configure.ac): Likewise.
109738         * modules/strcase (configure.ac): Likewise.
109739         * modules/strcasestr (configure.ac): Likewise.
109740         * modules/strchrnul (configure.ac): Likewise.
109741         * modules/strdup (configure.ac): Likewise.
109742         * modules/strndup (configure.ac): Likewise.
109743         * modules/strnlen (configure.ac): Likewise.
109744         * modules/strpbrk (configure.ac): Likewise.
109745         * modules/strsep (configure.ac): Likewise.
109746         * modules/strstr (configure.ac): Likewise.
109747         * modules/strtok_r (configure.ac): Likewise.
109749 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
109751         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
109753 2007-01-30  Jim Meyering  <jim@meyering.net>
109755         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
109757 2007-01-29  Bruno Haible  <bruno@clisp.org>
109759         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
109760         * lib/execute.c: Likewise.
109761         * lib/pipe.c: Likewise.
109762         * lib/printf-args.h: Likewise.
109763         * lib/printf-args.c: Likewise.
109764         * lib/printf-parse.c: Likewise.
109765         * lib/vasnprintf.c: Likewise.
109767 2007-01-29  Eric Blake  <ebb9@byu.net>
109769         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
109770         declaration.
109772 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
109774         * lib/strptime.h (strptime): Use 'restrict' for args where
109775         POSIX requires this.
109776         * lib/strptime.c (strptime): Likewise.
109777         Change license notice from LGPL to GPL, since gnulib-tool will
109778         change this as needed.
109779         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
109780         defined.
109781         Include "strptime.h" first, to check interface.
109782         Do not #undef _LIBC and _NL_CURRENT.
109783         Do not include <stdlib.h>; no longer needed.
109784         Include "time_r.h" and declare ptime_locale_status
109785         only if _LIBC is not defined.
109786         (__P): Remove unused macro.
109787         (match_string): Bring back glibc version, but use it only if _LIBC
109788         is defined.
109789         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
109790         Remove unnecessary assertion and abort() call.
109791         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
109792         * m4/strptime.m4: Fix serial number comment.
109793         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
109794         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
109795         (Depends-on): Add time_r.
109797 2007-01-29  Bruno Haible  <bruno@clisp.org>
109799         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109800         strptime.
109801         * modules/strptime (Depends-on): Add stdbool.
109802         * lib/strptime.h: Include <time.h> always. Add comments.
109804 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
109806         * modules/strptime: New file.
109807         * lib/strptime.h: New file.
109808         * lib/strptime.c: New file.
109809         * m4/strptime.m4: New file.
109811 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
109813         * MODULES.html.sh: New module mpsort.
109814         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
109816         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
109817         a circularity problem with HP-UX ia64 reported by Bob Proulx in
109818         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
109819         All uses changed.
109820         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
109821         All uses changed.
109822         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
109823         to _Restrict_.
109824         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
109825         the parameter matches the prototype.
109827 2007-01-28  Jim Meyering  <jim@meyering.net>
109829         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
109830         sys/time.h here, reverting that part of the previous patch:
109831         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
109833 2007-01-28  Bruno Haible  <bruno@clisp.org>
109835         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
109836         value of $(SYS_TIME_H).
109837         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
109838         remove it conditionally, too. [added by Jim Meyering]
109839         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
109840         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109841         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
109842         GETTIMEOFDAY_REPLACEMENT to 1.
109844 2007-01-28  Bruno Haible  <bruno@clisp.org>
109846         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
109847         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
109848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
109849         Set UNISTD_H instead of UNISTD_H2.
109850         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
109852 2007-01-28  Bruno Haible  <bruno@clisp.org>
109854         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
109855         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
109857 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109859         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
109860         (func_create_testdir): Ensure C locale for `grep' and `tr'
109861         character ranges.
109862         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
109863         ACLOCAL_AMFLAGS parsing state machine.
109865 2007-01-27  Bruno Haible  <bruno@clisp.org>
109867         * modules/unistr/base: Update.
109869 2007-01-27  Bruno Haible  <bruno@clisp.org>
109871         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
109872         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
109873         * modules/unistr/u32-mbtouc-unsafe: Renamed from
109874         modules/unistr/u32-mbtouc.
109875         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
109876         * lib/unistr.h: Update.
109877         * lib/linebreak.c: Update.
109878         * modules/unistr/u32-mbtouc: Renamed from
109879         modules/unistr/u32-mbtouc-safe.
109880         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
109881         * lib/unistr.h: Update.
109882         * lib/unistr/u32-to-u8.c: Update.
109883         * lib/unistr/u32-to-u16.c: Update.
109885 2007-01-27  Bruno Haible  <bruno@clisp.org>
109887         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
109888         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
109889         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
109890         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
109891         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
109892         * modules/unistr/u16-mbtouc-unsafe: Renamed from
109893         modules/unistr/u16-mbtouc.
109894         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
109895         * lib/unistr.h: Update.
109896         * lib/linebreak.c: Update.
109897         * modules/linebreak: Update.
109898         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
109899         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
109900         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
109901         * modules/unistr/u16-mbtouc: Renamed from
109902         modules/unistr/u16-mbtouc-safe.
109903         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
109904         * lib/unistr.h: Update.
109905         * lib/unistr/u16-to-u8.c: Update.
109906         * modules/unistr/u16-to-u8: Update.
109907         * lib/unistr/u16-to-u32.c: Update.
109908         * modules/unistr/u16-to-u32: Update.
109910 2007-01-27  Bruno Haible  <bruno@clisp.org>
109912         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
109913         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
109914         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
109915         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
109916         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
109917         * modules/unistr/u8-mbtouc-unsafe: Renamed from
109918         modules/unistr/u8-mbtouc.
109919         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
109920         * lib/unistr.h: Update.
109921         * lib/striconveh.c: Update.
109922         * modules/striconveh: Update.
109923         * lib/linebreak.c: Update.
109924         * modules/linebreak: Update.
109925         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
109926         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
109927         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
109928         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
109929         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
109930         * lib/unistr.h: Update.
109931         * lib/striconveh.c: Update.
109932         * modules/striconveh: Update.
109933         * lib/unistr/u8-to-u16.c: Update.
109934         * modules/unistr/u8-to-u16: Update.
109935         * lib/unistr/u8-to-u32.c: Update.
109936         * modules/unistr/u8-to-u32: Update.
109938 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109940         Sync from Libtool.
109941         * lib/argz.c: Do not include strings.h nor memory.h, include
109942         string.h unconditionally.  Patch by Simon Josefsson.
109944 2007-01-27  Bruno Haible  <bruno@clisp.org>
109946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
109947         from gl_HEADER_STRING_H_BODY.
109948         (gl_HEADER_STRING_H_BODY): Require it.
109949         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
109950         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
109951         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
109952         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
109953         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
109954         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
109955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
109956         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
109957         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
109958         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
109959         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
109960         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
109961         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
109962         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
109963         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109965 2007-01-27  Bruno Haible  <bruno@clisp.org>
109967         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
109968         check_PROGRAMS into noinst_PROGRAMS.
109969         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
109970         check_PROGRAMS in this case.
109971         (func_import): Set for_test to false.
109972         (func_create_testdir): Set for_test to true.
109974 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109975             Bruno Haible  <bruno@clisp.org>
109977         * modules/strcasestr (Files): Remove lib/strcasestr.h.
109978         (Depends-on): Add string.
109979         (Includes): Use <string.h> instead of strcasestr.h.
109980         * modules/string (Makefile.am): Also substitute the value of
109981         REPLACE_STRCASESTR.
109982         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
109983         assume strcasestr is declared in <string.h> not <strings.h>. Also
109984         set REPLACE_STRCASESTR.
109985         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
109986         REPLACE_STRCASESTR.
109987         * lib/strcasestr.h: Remove file.
109988         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
109989         * lib/string_.h (strcasestr): New declaration.
109991 2007-01-27  Bruno Haible  <bruno@clisp.org>
109993         * lib/string_.h: Use 'extern'.
109995 2007-01-27  Jim Meyering  <jim@meyering.net>
109997         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
109998         of set-but-not-used local, "q".
110000         * lib/mempcpy.c: Include <config.h> before <string.h>.
110001         This fixes a compilation error on HP-UX, due to the system's
110002         "restrict"-using mempcpy prototype.
110004 2007-01-26  Bruno Haible  <bruno@clisp.org>
110006         Small optimization.
110007         * lib/javacomp.c: Include c-strstr.h.
110008          (is_envjavac_gcj): Use c_strstr instead of strstr.
110009         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
110011 2007-01-26  Bruno Haible  <bruno@clisp.org>
110013         * MODULES.html.sh (Unicode string functions): Add the new modules.
110015         * modules/uniconv/u32-strconv-to-locale: New file.
110016         * lib/uniconv/u32-strconv-to-locale.c: New file.
110018         * modules/uniconv/u16-strconv-to-locale: New file.
110019         * lib/uniconv/u16-strconv-to-locale.c: New file.
110021         * modules/uniconv/u8-strconv-to-locale: New file.
110022         * lib/uniconv/u8-strconv-to-locale.c: New file.
110024         * modules/uniconv/u32-strconv-from-locale: New file.
110025         * lib/uniconv/u32-strconv-from-locale.c: New file.
110027         * modules/uniconv/u16-strconv-from-locale: New file.
110028         * lib/uniconv/u16-strconv-from-locale.c: New file.
110030         * modules/uniconv/u8-strconv-from-locale: New file.
110031         * lib/uniconv/u8-strconv-from-locale.c: New file.
110033         * modules/uniconv/u32-strconv-to-enc: New file.
110034         * lib/uniconv/u32-strconv-to-enc.c: New file.
110035         * modules/uniconv/u32-strconv-to-enc-tests: New file.
110036         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
110038         * modules/uniconv/u16-strconv-to-enc: New file.
110039         * lib/uniconv/u16-strconv-to-enc.c: New file.
110040         * lib/uniconv/u-strconv-to-enc.h: New file.
110041         * modules/uniconv/u16-strconv-to-enc-tests: New file.
110042         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
110044         * modules/uniconv/u8-strconv-to-enc: New file.
110045         * lib/uniconv/u8-strconv-to-enc.c: New file.
110046         * modules/uniconv/u8-strconv-to-enc-tests: New file.
110047         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
110049         * modules/uniconv/u32-strconv-from-enc: New file.
110050         * lib/uniconv/u32-strconv-from-enc.c: New file.
110051         * modules/uniconv/u32-strconv-from-enc-tests: New file.
110052         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
110054         * modules/uniconv/u16-strconv-from-enc: New file.
110055         * lib/uniconv/u16-strconv-from-enc.c: New file.
110056         * modules/uniconv/u16-strconv-from-enc-tests: New file.
110057         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
110059         * modules/uniconv/u8-strconv-from-enc: New file.
110060         * lib/uniconv/u8-strconv-from-enc.c: New file.
110061         * lib/uniconv/u-strconv-from-enc.h: New file.
110062         * modules/uniconv/u8-strconv-from-enc-tests: New file.
110063         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
110065         * modules/uniconv/u32-conv-from-enc: New file.
110066         * lib/uniconv/u32-conv-from-enc.c: New file.
110067         * modules/uniconv/u32-conv-from-enc-tests: New file.
110068         * tests/uniconv/test-u32-conv-from-enc.c: New file.
110070         * modules/uniconv/u16-conv-from-enc: New file.
110071         * lib/uniconv/u16-conv-from-enc.c: New file.
110072         * lib/uniconv/u-conv-from-enc.h: New file.
110073         * modules/uniconv/u16-conv-from-enc-tests: New file.
110074         * tests/uniconv/test-u16-conv-from-enc.c: New file.
110076         * modules/uniconv/u8-conv-from-enc: New file.
110077         * lib/uniconv/u8-conv-from-enc.c: New file.
110078         * modules/uniconv/u8-conv-from-enc-tests: New file.
110079         * tests/uniconv/test-u8-conv-from-enc.c: New file.
110081         * modules/uniconv/base: New file.
110082         * lib/uniconv.h: New file.
110084 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
110086         * doc/gnulib-tool.texi (Initial import): Update to match current
110087         behavior with strdup module.
110088         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
110089         * lib/memmem.h: Remove; all uses removed.  This is now done
110090         by <string.h>.
110091         * lib/mempcpy.h: Likewise.
110092         * lib/memrchr.h: Likewise.
110093         * lib/stpcpy.h: Likewise.
110094         * lib/stpncpy.h: Likewise.
110095         * lib/strcase.h: Likewise.
110096         * lib/strchrnul.h: Likewise.
110097         * lib/strdup.h: Likewise.
110098         * lib/strndup.h: Likewise.
110099         * lib/strnlen.h: Likewise.
110100         * lib/strpbrk.h: Likewise.
110101         * lib/strsep.h: Likewise.
110102         * lib/strstr.h: Likewise.
110103         * lib/strtok_r.h: Likewise.
110104         * lib/string_.h: New file.
110105         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
110106         Rely on <string.h> instead.
110107         * lib/canon-host.c: Likewise.
110108         * lib/chdir-long.c: Likewise.
110109         * lib/concatpath.c: Likewise.
110110         * lib/exclude.c: Likewise.
110111         * lib/fchdir.c: Likewise.
110112         * lib/getaddrinfo.c: Likewise.
110113         * lib/getcwd.c: Likewise.
110114         * lib/getsubopt.c: Likewise.
110115         * lib/glob.c: Likewise.
110116         * lib/hard-locale.c: Likewise.
110117         * lib/iconvme.c: Likewise.
110118         * lib/javacomp.c: Likewise.
110119         * lib/mempcpy.c: Likewise.
110120         * lib/memrchr.c: Likewise.
110121         * lib/regex_internal.h: Likewise.
110122         * lib/stpncpy.c: Likewise.
110123         * lib/strcasecmp.c: Likewise.
110124         * lib/strchrnul.c: Likewise.
110125         * lib/strdup.c: Likewise.
110126         * lib/striconv.c: Likewise.
110127         * lib/striconveh.c: Likewise.
110128         * lib/striconveha.c: Likewise.
110129         * lib/strncasecmp.c: Likewise.
110130         * lib/strndup.c: Likewise.
110131         * lib/strnlen.c: Likewise.
110132         * lib/strsep.c: Likewise.
110133         * lib/strstr.c: Likewise.
110134         * lib/strtok_r.c: Likewise.
110135         * lib/userspec.c: Likewise.
110136         * lib/w32spawn.h: Likewise.
110137         * lib/xstrndup.c: Likewise.
110138         * lib/mountlist.c (strstr): Remove decl.
110139         * m4/string_h.m4: New file.
110140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
110141         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
110142         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
110143         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
110144         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
110145         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
110146         Set REPLACE_STRCASECMP if necessary.
110147         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
110148         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
110149         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
110150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
110151         HAVE_DECL_STRDUP if necessary.
110152         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
110153         since gl_FUNC_STRNDUP does that now.
110154         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
110155         Check for decl here...
110156         (gl_PREREQ_STRNLEN): ... not here.
110157         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
110158         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
110159         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
110160         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
110161         necessary.
110162         * modules/string: New file.
110163         * modules/memmem (Files): Remove special-purpose include file.
110164         (Depends-on): Add string.
110165         (Include): Include <string.h>, not the removed file.
110166         * modules/mempcpy: Likewise.
110167         * modules/memrchr: Likewise.
110168         * modules/stpcpy: Likewise.
110169         * modules/stpncpy: Likewise.
110170         * modules/strcase: Likewise.
110171         * modules/strchrnul: Likewise.
110172         * modules/strdup: Likewise.
110173         * modules/strndup: Likewise.
110174         * modules/strnlen: Likewise.
110175         * modules/strpbrk: Likewise.
110176         * modules/strsep: Likewise.
110177         * modules/strstr: Likewise.
110178         * modules/strtok_r: Likewise.
110179         * tests/test-dirname.c: Don't include "strdup.h", since
110180         <string.h> now suffices.
110181         * tests/test-memmem.c: Don't include "memmem.h", since
110182         <string.h> now suffices.
110184 2007-01-25  Bruno Haible  <bruno@clisp.org>
110186         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
110187         *resultp is 0.
110189         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
110190         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
110191         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
110192         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
110194         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
110195         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
110196         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
110197         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
110198         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
110199         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
110201 2007-01-24  Bruno Haible  <bruno@clisp.org>
110203         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
110204         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
110205         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
110206         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
110207         gl_FUNC_FTS_CORE.
110208         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
110209         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
110210         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110211         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
110212         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
110213         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
110214         gl_FUNC_FCHOWNAT.
110215         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
110216         gl_FUNC_STRFTIME.
110217         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
110218         Reported by Ralf Wildenhues.
110220 2007-01-24  Bruno Haible  <bruno@clisp.org>
110222         Drop AC_REQUIRE calls that are redundant with the module dependencies.
110223         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
110224         gl_GETADDRINFO.
110225         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
110226         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
110227         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
110229 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
110231         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
110232         Don't use 'exit'; just return from 'main'.
110233         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
110235         * lib/fnmatch_.h: Readjust white space and comments to match
110236         glibc, to avoid spurious diffs.
110238 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
110240         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
110241         2004-12-01 change by Jakub Jelinek, since this code won't compile
110242         if !LIBC.  Problem reported by Bob Proulx.
110244 2007-01-23  Bruno Haible  <bruno@clisp.org>
110246         * lib/striconveh.c: Include c-strcaseeq.h.
110247         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
110248         * modules/striconveh (Depends-on): Add c-strcaseeq.
110250 2007-01-23  Bruno Haible  <bruno@clisp.org>
110252         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
110254         * modules/c-strcaseeq: New file.
110255         * lib/c-strcaseeq.h: New file.
110257         * modules/streq: New file.
110258         * lib/streq.h: New file.
110260 2007-01-23  Bruno Haible  <bruno@clisp.org>
110262         * modules/striconveha-tests: New file.
110263         * tests/test-striconveha.c: New file.
110265         * lib/striconveha.h: Include <stdbool.h>.
110266         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
110267         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
110268         (mem_iconveha_notranslit): Renamed from mem_iconveha.
110269         (mem_iconveha): New function.
110270         (str_iconveha_notranslit): Renamed from str_iconveha.
110271         (str_iconveha): New function.
110272         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
110273         c-strcase.
110275 2007-01-23  Bruno Haible  <bruno@clisp.org>
110277         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
110278         encodings without forgiving before trying any encoding with handler.
110279         (str_iconveha): Try all encodings without forgiving before trying any
110280         encoding with handler.
110282 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
110284         Import the following changes from libc.
110286         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
110288         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
110290         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
110292         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
110293         normal_bracket label.
110295         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
110297         [BZ #361]
110298         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
110299         to normal_bracket after fetching the next character.
110301 2007-01-22  Bruno Haible  <bruno@clisp.org>
110303         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
110304         argument.
110305         * lib/striconveh.c (iconv_carefully_1): New function.
110306         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
110307         argument.
110308         (str_cd_iconveh): Update.
110309         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
110310         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
110311         * tests/test-striconveh.c (MAGIC): New macro.
110312         (new_offsets): New function.
110313         (main): Test call with and without offsets.
110315 2007-01-22  Bruno Haible  <bruno@clisp.org>
110317         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
110318         * modules/sys_select (Makefile.am): Likewise.
110319         * modules/sys_socket (Makefile.am): Likewise.
110320         * modules/sys_time (Makefile.am): Likewise.
110322 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
110324         * modules/gettimeofday (License): Change from GPL to LGPL, since
110325         gettimeofday is a library function.
110327 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110329         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
110331 2007-01-21  Bruno Haible  <bruno@clisp.org>
110333         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
110335 2007-01-21  Bruno Haible  <bruno@clisp.org>
110337         * modules/striconveha: New file.
110338         * lib/striconveha.h: New file.
110339         * lib/striconveha.c: New file.
110340         * MODULES.html.sh (Internationalization functions): Add striconveha.
110341         * lib/striconv.c (str_iconv): Optimize the case of an empty input
110342         string.
110343         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
110345 2007-01-21  Bruno Haible  <bruno@clisp.org>
110347         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
110348         * lib/striconveh.c (str_iconveh): Likewise.
110350 2007-01-21  Bruno Haible  <bruno@clisp.org>
110352         * lib/striconveh.h (mem_iconveh): New declaration.
110353         * lib/striconveh.c (mem_iconveh): New function.
110354         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
110356 2007-01-21  Bruno Haible  <bruno@clisp.org>
110358         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
110360         * lib/striconveh.h (mem_cd_iconveh): Change specification.
110361         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
110362         original result buffer.
110363         (str_cd_iconveh): Update.
110364         * tests/test-striconveh.c (main): Update.
110366         * lib/striconv.h (mem_cd_iconv): Change specification.
110367         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
110368         result buffer.
110369         (str_cd_iconv): Update.
110370         * tests/test-striconv.c (main): Update.
110372 2007-01-21  Bruno Haible  <bruno@clisp.org>
110374         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
110376 2007-01-20  Jim Meyering  <jim@meyering.net>
110378         * lib/userspec.c (parse_with_separator): If a user or group string
110379         starts with "+", skip the corresponding name-to-ID look-up, since
110380         such a look-up must fail: user and group names may not include "+".
110382 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
110384         * lib/poll.c: Include sys/time.h and time.h unconditionally,
110385         since we now assume the sys_time module.
110386         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
110387         check for sys/time.h; no longer needed.
110388         * modules/poll (Depends-on): Depend on sys_time.
110390 2007-01-18  Bruno Haible  <bruno@clisp.org>
110392         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
110393         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
110395         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
110396         gettimeofday.
110398         * tests/test-gettimeofday.c: Include <time.h>.
110399         (dummy): Remove variable.
110401         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
110402         gl_HEADER_SYS_TIME_H.
110403         (gl_HEADER_SYS_TIME_H): New macro.
110405         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
110406         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
110408         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
110409         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110410         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
110411         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
110412         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110413         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
110414         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
110415         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110417         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
110418         last change; it caused a compilation error when cross-compiling to
110419         Cygwin.
110421 2007-01-18  Jim Meyering  <jim@meyering.net>
110423         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
110424         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
110425         than the race-prone "test -d sys || mkdir sys".
110426         (configure.ac): Use AC_PROG_MKDIR_P.
110427         * modules/sys_select: Likewise.
110428         * modules/sys_socket: Likewise.
110429         * modules/sys_time: Likewise.
110431 2007-01-18  Eric Blake  <ebb9@byu.net>
110433         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
110434         replace gettimeofday.
110435         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
110436         name, to avoid infinite recursion.
110438 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
110440         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
110441         module sys_time.
110442         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
110443         assume timespec.h defines struct timeval.
110444         * lib/settime.c: Likewise.
110445         * lib/utimens.c: Likewise.
110446         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
110447         since we now assume the gettimeofday module.
110448         * lib/tempname.c (__gen_tempname): Likewise.
110449         * lib/gettimeofday.h: Remove.
110450         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
110451         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
110452         Include <time.h>, for 'time()'.
110453         (localtime_buffer_addr): Also use this workaround if
110454         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
110455         to simplify the uses.  All uses changed.
110456         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
110457         that #undef is inside {}, and 'const' follows type name consistently.
110458         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
110459         (gettimeofday): Do not use the maximum possible value for
110460         tv->tv_usec, since that might break usages other than ls.c.
110461         Instead, we'll leave ls.c alone.  This undoes today's patch
110462         by Bruno.  Add a compile-time warning for 1s-clock resolution;
110463         we've never observed the problem but might as well keep the
110464         canary.
110465         * lib/nanosleep.c: Include timespec.h first, for interface check.
110466         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
110467         now assume the sys_time module.
110468         * lib/tempname.c: Likewise.
110469         * lib/timespec.h: Likewise.
110470         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
110471         needed.
110472         * lib/strftime.c: Likewise.
110473         * lib/timespec.h: Likewise.
110474         * lib/posixtm.c: Include posixtm.h first, for interface check.
110475         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
110476         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
110477         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
110478         * lib/sys_time_.h: New file.
110479         * lib/timespec.h (struct timespec): Use long int, not long.
110480         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
110481         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
110482         Remove obsolescent call to AC_HEADER_TIME.
110483         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
110484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
110485         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
110486         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
110487         Likewise.
110488         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
110489         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
110490         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
110491         into the sys_time module.  Check for gettimeofday just once.
110492         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
110493         for gettimeofday signature to just check the signature.  Merely
110494         compile it, since linking doesn't test signature.  Improve test for
110495         whether gettimeofday.o is actually needed.
110496         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
110497         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
110498         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
110499         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110500         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
110501         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
110502         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
110503         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
110504         than worrying about sys/time.h.
110505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110506         Don't bother worrying about TIME_WITH_SYS_TIME.
110507         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
110508         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
110509         * m4/sys_time_h.m4: New file.
110510         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
110511         Don't include sys/time.h.  Return from main rather than exiting.
110512         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
110513         all uses changed.
110514         * modules/gethrxtime (Depends-on): Add sys_time.
110515         * modules/gettime (Depends-on): Likewise.
110516         * modules/gettimeofday (Depends-on): Likewise.
110517         * modules/nanosleep (Depends-on): Likewise.
110518         * modules/settime (Depends-on): Likewise.
110519         * modules/tempname (Depends-on): Likewise.
110520         * modules/utimens (Depends-on): Likewise.
110521         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
110522         (Include): Change back to <sys/time.h>.
110523         (Maintainer): Add self.
110524         * modules/sys_time: New file.
110525         * modules/tempname (Depends-on): Add gettimeofday.
110526         * tests/test-gettimeofday.c: Include <sys/time.h>
110527         rather than gettimeofday.h.
110529 2007-01-17  Bruno Haible  <bruno@clisp.org>
110531         * gnulib-tool (func_get_license): Revert last patch. Instead, let
110532         the license default to GPL.
110533         (func_create_testdir): Don't complain if a module is LGPL and its
110534         tests module depends on GPLed modules.
110536 2007-01-17  Bruno Haible  <bruno@clisp.org>
110538         * lib/gettimeofday.c (gettimeofday): Add code for the case
110539         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
110540         maximum possible value for tv->tv_usec, rather than the minimum one.
110542 2005-10-08  Martin Lambers  <marlam@marlam.de>
110543 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
110544 2007-01-16  Bruno Haible  <bruno@clisp.org>
110546         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
110547         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
110548         gl_FUNC_GETTIMEOFDAY.
110549         (Include): Add gettimeofday.h.
110550         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
110551         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
110552         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
110553         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
110554         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
110555         * lib/gettimeofday.h: New file.
110556         * lib/gettimeofday.c: Include <sys/timeb.h>.
110557         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
110558         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110559         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
110560         fall back on time().
110562         * tests/test-gettimeofday.c: New file.
110563         * modules/gettimeofday-tests: New file.
110565 2007-01-16  Eric Blake  <ebb9@byu.net>
110567         * modules/fnmatch (Depends-on): Depend on wchar.
110568         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
110569         * m4/fnmatch.m4: Likewise.
110570         * modules/mbchar (Makefile.am): Assume <wchar.h>.
110571         * m4/mbchar.m4: Likewise.
110572         * modules/mbswidth (Depends-on): Depend on wchar.
110573         * lib/mbswidth.c: Assume <wchar.h>.
110574         * m4/mbswidth.m4: Likewise.
110575         * modules/quotearg (Depends-on): Depend on wchar.
110576         * lib/quotearg.c: Assume <wchar.h>.
110577         * m4/quotearg.m4: Likewise.
110578         * modules/regex (Depends-on): Depend on wchar.
110579         * lib/regex_internal.h: Assume <wchar.h>.
110580         * m4/regex.m4: Likewise.
110581         * modules/stdint (Depends-on): Depend on wchar.
110582         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
110583         * m4/stdint.m4: Likewise.
110584         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
110585         * modules/strftime (Depends-on): Depend on wchar.
110586         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
110587         * modules/strtol (Depends-on): Depend on wchar.
110588         * lib/strtol.c: Assume <wchar.h>.
110589         * modules/wcwidth (Depends-on): Depend on wchar.
110590         * lib/wcwidth.h: Assume <wchar.h>.
110591         * m4/wcwidth.m4: Likewise.
110593 2007-01-16  Bruno Haible  <bruno@clisp.org>
110595         * modules/csharpexec-script: New, created from...
110596         * modules/csharpexec: ... this.
110598 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
110600         * modules/javaexec-script: New, created from...
110601         * modules/javaexec: ... this.
110603 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110605         * modules/poll (Dependencies): Add sys_select.
110607 2007-01-15  Jim Meyering  <jim@meyering.net>
110609         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
110610         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
110611         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
110612         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
110614 2007-01-15  Bruno Haible  <bruno@clisp.org>
110616         * modules/striconveh: New file.
110617         * lib/striconveh.h: New file.
110618         * lib/striconveh.c: New file.
110619         * MODULES.html.sh (Internationalization functions): Add striconveh.
110621         * modules/striconveh-tests: New file.
110622         * tests/test-striconveh.c: New file.
110624 2007-01-15  Bruno Haible  <bruno@clisp.org>
110626         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
110627         not from GNU libiconv or GNU libc.
110629 2007-01-15  Bruno Haible  <bruno@clisp.org>
110631         * doc/gnulib-intro.texi (Copyright): Explain the different license
110632         terms for module descriptions, autoconf macros, tests, documentation.
110634 2007-01-14  Bruno Haible  <bruno@clisp.org>
110636         * modules/striconv-tests: New file.
110637         * tests/test-striconv.c: New file.
110639 2007-01-14  Bruno Haible  <bruno@clisp.org>
110641         * modules/iconv-tests: New file.
110642         * tests/test-iconv.c: New file.
110644 2007-01-14  Bruno Haible  <bruno@clisp.org>
110646         * gnulib-tool (func_get_license): For test modules, use the license of
110647         the main module.
110649 2007-01-14  Bruno Haible  <bruno@clisp.org>
110651         * modules/iconv (Include): Clarify that <iconv.h> can only be included
110652         if iconv is found to exist.
110654 2007-01-14  Bruno Haible  <bruno@clisp.org>
110656         * modules/c-ctype-tests: New file.
110657         * tests/test-c-ctype.c: New file.
110659 2007-01-14  Bruno Haible  <bruno@clisp.org>
110661         * modules/binary-io-tests: New file.
110662         * tests/test-binary-io.sh: New file.
110663         * tests/test-binary-io.c: New file.
110665 2007-01-14  Bruno Haible  <bruno@clisp.org>
110667         * modules/array-oset-tests: New file.
110668         * tests/test-array_oset.c: New file.
110670 2007-01-14  Bruno Haible  <bruno@clisp.org>
110672         * modules/array-list-tests: New file.
110673         * tests/test-array_list.c: New file.
110675 2007-01-14  Bruno Haible  <bruno@clisp.org>
110677         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
110678         and make.
110679         Reported by Simon Josefsson in
110680         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
110682 2007-01-14  Bruno Haible  <bruno@clisp.org>
110684         * modules/allocsa-tests: New file.
110685         * tests/test-allocsa.c: New file.
110687 2007-01-14  Bruno Haible  <bruno@clisp.org>
110689         * modules/fchdir (Depends-on): Add absolute-header.
110690         * modules/unistd (Depends-on): Likewise.
110692 2006-12-30  Bruno Haible  <bruno@clisp.org>
110694         * modules/fchdir: New file.
110695         * modules/unistd (Files): Add lib/unistd_.h.
110696         (Makefile.am): Generate unistd.h from unistd_.h.
110697         * lib/fchdir.c: New file.
110698         * lib/dirent_.h: New file.
110699         * lib/unistd_.h: New file.
110700         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
110701         * m4/fchdir.m4: New file.
110702         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
110703         (gl_HEADER_UNISTD): Invoke it.
110704         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
110705         function.
110706         * lib/backupfile.c (opendir, closedir): Undefine.
110707         * lib/chown.c (open, close): Undefine.
110708         * lib/clean-temp.c (open, close): Undefine.
110709         * lib/copy-file.c (open, close): Undefine.
110710         * lib/execute.c (open, close): Undefine.
110711         * lib/fsusage.c (open, close): Undefine.
110712         * lib/gc-gnulib.c (open, close): Undefine.
110713         * lib/getcwd.c (opendir, closedir): Undefine.
110714         * lib/glob.c (opendir, closedir): Undefine.
110715         * lib/javacomp.c (open, close): Undefine.
110716         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
110717         * lib/openat-proc.c (open, close): Undefine.
110718         * lib/pagealign_alloc.c (open, close): Undefine.
110719         * lib/pipe.c (open, close): Undefine.
110720         * lib/progreloc.c (open, close): Undefine.
110721         * lib/savedir.c (opendir, closedir): Undefine.
110722         * lib/utime.c (open, close): Undefine.
110723         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
110725 2007-01-10  Bruno Haible  <bruno@clisp.org>
110727         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
110729 2007-01-12  Eric Blake  <ebb9@byu.net>
110731         Provide a robust <wchar.h>.  Further simplifications are now
110732         possible in other modules, but not included here.
110733         * modules/wchar: New module.
110734         * m4/wchar.m4: New file.
110735         * lib/wchar_.h: Likewise.
110736         * modules/mbchar (Depends-on): Depend on wchar, as the first use
110737         of the new module.
110738         * MODULES.html.sh (Extended multibyte and wide character utilities):
110739         New section.
110741 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
110743         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
110744         to a reasonable default for memory allocation.
110745         (xreadlink): Don't allocate a huge buffer, to work around a buggy
110746         file system that reports garbage st_size values for symlinks.
110747         Problem reported by Liyang Hu.
110749 2007-01-11  Simon Josefsson  <simon@josefsson.org>
110751         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
110752         Emacs .#* auto-save files).
110754 2007-01-11  Bruno Haible  <bruno@clisp.org>
110756         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
110757         directory.
110759 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
110761         Use @...@ consistently in lib/wctype_.h.
110762         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
110763         on it being set to 1 or 0.
110764         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
110765         go back to AC_SUBSTing it.
110766         * modules/wctype (Makefile.am): Undo previous change.
110768 2007-01-10  Eric Blake  <ebb9@byu.net>
110770         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
110771         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
110772         * modules/wctype (Makefile.am): Likewise.
110773         Reported by Chris McGuire.
110775 2007-01-10  Jim Meyering  <jim@meyering.net>
110777         fts.c: a small readability/maintainability improvement
110778         * lib/fts.c (fts_read): Make this code slightly more readable and
110779         maintainable by hoisting the "sp->fts_cur = p" assignments to
110780         immediately follow the statements that set P.  Derived from
110781         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
110783 2007-01-10  Eric Blake  <ebb9@byu.net>
110785         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
110786         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
110787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110788         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
110789         Reported by Chris McGuire.
110791 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110793         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
110794         in sed script.
110796 2007-01-09  Bruno Haible  <bruno@clisp.org>
110798         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
110799         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
110800         variables.
110801         (func_module): Use them.
110803 2007-01-09  Bruno Haible  <bruno@clisp.org>
110805         * modules/unistr/base: New file.
110806         * lib/unistr.h: New file.
110808         * modules/unistr/u8-to-u16: New file.
110809         * lib/unistr/u8-to-u16.c: New file.
110811         * modules/unistr/u8-to-u32: New file.
110812         * lib/unistr/u8-to-u32.c: New file.
110814         * modules/unistr/u16-to-u8: New file.
110815         * lib/unistr/u16-to-u8.c: New file.
110817         * modules/unistr/u16-to-u32: New file.
110818         * lib/unistr/u16-to-u32.c: New file.
110820         * modules/unistr/u32-to-u8: New file.
110821         * lib/unistr/u32-to-u8.c: New file.
110823         * modules/unistr/u32-to-u16: New file.
110824         * lib/unistr/u32-to-u16.c: New file.
110826         * modules/unistr/u8-check: New file.
110827         * modules/unistr/u16-check: New file.
110828         * modules/unistr/u32-check: New file.
110829         * lib/unistr/u8-check.c: New file.
110830         * lib/unistr/u16-check.c: New file.
110831         * lib/unistr/u32-check.c: New file.
110833         * modules/unistr/u8-chr: New file.
110834         * modules/unistr/u16-chr: New file.
110835         * modules/unistr/u32-chr: New file.
110836         * lib/unistr/u8-chr.c: New file.
110837         * lib/unistr/u16-chr.c: New file.
110838         * lib/unistr/u32-chr.c: New file.
110840         * modules/unistr/u8-cmp: New file.
110841         * modules/unistr/u16-cmp: New file.
110842         * modules/unistr/u32-cmp: New file.
110843         * lib/unistr/u8-cmp.c: New file.
110844         * lib/unistr/u16-cmp.c: New file.
110845         * lib/unistr/u32-cmp.c: New file.
110847         * modules/unistr/u8-cpy: New file.
110848         * modules/unistr/u16-cpy: New file.
110849         * modules/unistr/u32-cpy: New file.
110850         * lib/unistr/u8-cpy.c: New file.
110851         * lib/unistr/u16-cpy.c: New file.
110852         * lib/unistr/u32-cpy.c: New file.
110853         * lib/unistr/u-cpy.h: New file.
110855         * modules/unistr/u8-cpy-alloc: New file.
110856         * modules/unistr/u16-cpy-alloc: New file.
110857         * modules/unistr/u32-cpy-alloc: New file.
110858         * lib/unistr/u8-cpy-alloc.c: New file.
110859         * lib/unistr/u16-cpy-alloc.c: New file.
110860         * lib/unistr/u32-cpy-alloc.c: New file.
110861         * lib/unistr/u-cpy-alloc.h: New file.
110863         * modules/unistr/u8-endswith: New file.
110864         * modules/unistr/u16-endswith: New file.
110865         * modules/unistr/u32-endswith: New file.
110866         * lib/unistr/u8-endswith.c: New file.
110867         * lib/unistr/u16-endswith.c: New file.
110868         * lib/unistr/u32-endswith.c: New file.
110869         * lib/unistr/u-endswith.h: New file.
110871         * modules/unistr/u8-mblen: New file.
110872         * modules/unistr/u16-mblen: New file.
110873         * modules/unistr/u32-mblen: New file.
110874         * lib/unistr/u8-mblen.c: New file.
110875         * lib/unistr/u16-mblen.c: New file.
110876         * lib/unistr/u32-mblen.c: New file.
110878         * modules/unistr/u8-mbtouc: New file.
110879         * modules/unistr/u16-mbtouc: New file.
110880         * modules/unistr/u32-mbtouc: New file.
110881         * lib/unistr/u8-mbtouc.c: New file.
110882         * lib/unistr/u16-mbtouc.c: New file.
110883         * lib/unistr/u32-mbtouc.c: New file.
110885         * modules/unistr/u8-mbtouc-safe: New file.
110886         * modules/unistr/u16-mbtouc-safe: New file.
110887         * modules/unistr/u32-mbtouc-safe: New file.
110888         * lib/unistr/u8-mbtouc-safe.c: New file.
110889         * lib/unistr/u16-mbtouc-safe.c: New file.
110890         * lib/unistr/u32-mbtouc-safe.c: New file.
110892         * modules/unistr/u8-move: New file.
110893         * modules/unistr/u16-move: New file.
110894         * modules/unistr/u32-move: New file.
110895         * lib/unistr/u8-move.c: New file.
110896         * lib/unistr/u16-move.c: New file.
110897         * lib/unistr/u32-move.c: New file.
110898         * lib/unistr/u-move.h: New file.
110900         * modules/unistr/u8-next: New file.
110901         * modules/unistr/u16-next: New file.
110902         * modules/unistr/u32-next: New file.
110903         * lib/unistr/u8-next.c: New file.
110904         * lib/unistr/u16-next.c: New file.
110905         * lib/unistr/u32-next.c: New file.
110907         * modules/unistr/u8-prev: New file.
110908         * modules/unistr/u16-prev: New file.
110909         * modules/unistr/u32-prev: New file.
110910         * lib/unistr/u8-prev.c: New file.
110911         * lib/unistr/u16-prev.c: New file.
110912         * lib/unistr/u32-prev.c: New file.
110914         * modules/unistr/u8-set: New file.
110915         * modules/unistr/u16-set: New file.
110916         * modules/unistr/u32-set: New file.
110917         * lib/unistr/u8-set.c: New file.
110918         * lib/unistr/u16-set.c: New file.
110919         * lib/unistr/u32-set.c: New file.
110920         * lib/unistr/u-set.h: New file.
110922         * modules/unistr/u8-startswith: New file.
110923         * modules/unistr/u16-startswith: New file.
110924         * modules/unistr/u32-startswith: New file.
110925         * lib/unistr/u8-startswith.c: New file.
110926         * lib/unistr/u16-startswith.c: New file.
110927         * lib/unistr/u32-startswith.c: New file.
110928         * lib/unistr/u-startswith.h: New file.
110930         * modules/unistr/u8-stpcpy: New file.
110931         * modules/unistr/u16-stpcpy: New file.
110932         * modules/unistr/u32-stpcpy: New file.
110933         * lib/unistr/u8-stpcpy.c: New file.
110934         * lib/unistr/u16-stpcpy.c: New file.
110935         * lib/unistr/u32-stpcpy.c: New file.
110936         * lib/unistr/u-stpcpy.h: New file.
110938         * modules/unistr/u8-stpncpy: New file.
110939         * modules/unistr/u16-stpncpy: New file.
110940         * modules/unistr/u32-stpncpy: New file.
110941         * lib/unistr/u8-stpncpy.c: New file.
110942         * lib/unistr/u16-stpncpy.c: New file.
110943         * lib/unistr/u32-stpncpy.c: New file.
110944         * lib/unistr/u-stpncpy.h: New file.
110946         * modules/unistr/u8-strcat: New file.
110947         * modules/unistr/u16-strcat: New file.
110948         * modules/unistr/u32-strcat: New file.
110949         * lib/unistr/u8-strcat.c: New file.
110950         * lib/unistr/u16-strcat.c: New file.
110951         * lib/unistr/u32-strcat.c: New file.
110952         * lib/unistr/u-strcat.h: New file.
110954         * modules/unistr/u8-strchr: New file.
110955         * modules/unistr/u16-strchr: New file.
110956         * modules/unistr/u32-strchr: New file.
110957         * lib/unistr/u8-strchr.c: New file.
110958         * lib/unistr/u16-strchr.c: New file.
110959         * lib/unistr/u32-strchr.c: New file.
110961         * modules/unistr/u8-strcmp: New file.
110962         * modules/unistr/u16-strcmp: New file.
110963         * modules/unistr/u32-strcmp: New file.
110964         * lib/unistr/u8-strcmp.c: New file.
110965         * lib/unistr/u16-strcmp.c: New file.
110966         * lib/unistr/u32-strcmp.c: New file.
110968         * modules/unistr/u8-strcpy: New file.
110969         * modules/unistr/u16-strcpy: New file.
110970         * modules/unistr/u32-strcpy: New file.
110971         * lib/unistr/u8-strcpy.c: New file.
110972         * lib/unistr/u16-strcpy.c: New file.
110973         * lib/unistr/u32-strcpy.c: New file.
110974         * lib/unistr/u-strcpy.h: New file.
110976         * modules/unistr/u8-strcspn: New file.
110977         * modules/unistr/u16-strcspn: New file.
110978         * modules/unistr/u32-strcspn: New file.
110979         * lib/unistr/u8-strcspn.c: New file.
110980         * lib/unistr/u16-strcspn.c: New file.
110981         * lib/unistr/u32-strcspn.c: New file.
110982         * lib/unistr/u-strcspn.h: New file.
110984         * modules/unistr/u8-strdup: New file.
110985         * modules/unistr/u16-strdup: New file.
110986         * modules/unistr/u32-strdup: New file.
110987         * lib/unistr/u8-strdup.c: New file.
110988         * lib/unistr/u16-strdup.c: New file.
110989         * lib/unistr/u32-strdup.c: New file.
110990         * lib/unistr/u-strdup.h: New file.
110992         * modules/unistr/u8-strlen: New file.
110993         * modules/unistr/u16-strlen: New file.
110994         * modules/unistr/u32-strlen: New file.
110995         * lib/unistr/u8-strlen.c: New file.
110996         * lib/unistr/u16-strlen.c: New file.
110997         * lib/unistr/u32-strlen.c: New file.
110998         * lib/unistr/u-strlen.h: New file.
111000         * modules/unistr/u8-strmblen: New file.
111001         * modules/unistr/u16-strmblen: New file.
111002         * modules/unistr/u32-strmblen: New file.
111003         * lib/unistr/u8-strmblen.c: New file.
111004         * lib/unistr/u16-strmblen.c: New file.
111005         * lib/unistr/u32-strmblen.c: New file.
111007         * modules/unistr/u8-strmbtouc: New file.
111008         * modules/unistr/u16-strmbtouc: New file.
111009         * modules/unistr/u32-strmbtouc: New file.
111010         * lib/unistr/u8-strmbtouc.c: New file.
111011         * lib/unistr/u16-strmbtouc.c: New file.
111012         * lib/unistr/u32-strmbtouc.c: New file.
111014         * modules/unistr/u8-strncat: New file.
111015         * modules/unistr/u16-strncat: New file.
111016         * modules/unistr/u32-strncat: New file.
111017         * lib/unistr/u8-strncat.c: New file.
111018         * lib/unistr/u16-strncat.c: New file.
111019         * lib/unistr/u32-strncat.c: New file.
111020         * lib/unistr/u-strncat.h: New file.
111022         * modules/unistr/u8-strncmp: New file.
111023         * modules/unistr/u16-strncmp: New file.
111024         * modules/unistr/u32-strncmp: New file.
111025         * lib/unistr/u8-strncmp.c: New file.
111026         * lib/unistr/u16-strncmp.c: New file.
111027         * lib/unistr/u32-strncmp.c: New file.
111029         * modules/unistr/u8-strncpy: New file.
111030         * modules/unistr/u16-strncpy: New file.
111031         * modules/unistr/u32-strncpy: New file.
111032         * lib/unistr/u8-strncpy.c: New file.
111033         * lib/unistr/u16-strncpy.c: New file.
111034         * lib/unistr/u32-strncpy.c: New file.
111035         * lib/unistr/u-strncpy.h: New file.
111037         * modules/unistr/u8-strnlen: New file.
111038         * modules/unistr/u16-strnlen: New file.
111039         * modules/unistr/u32-strnlen: New file.
111040         * lib/unistr/u8-strnlen.c: New file.
111041         * lib/unistr/u16-strnlen.c: New file.
111042         * lib/unistr/u32-strnlen.c: New file.
111043         * lib/unistr/u-strnlen.h: New file.
111045         * modules/unistr/u8-strpbrk: New file.
111046         * modules/unistr/u16-strpbrk: New file.
111047         * modules/unistr/u32-strpbrk: New file.
111048         * lib/unistr/u8-strpbrk.c: New file.
111049         * lib/unistr/u16-strpbrk.c: New file.
111050         * lib/unistr/u32-strpbrk.c: New file.
111051         * lib/unistr/u-strpbrk.h: New file.
111053         * modules/unistr/u8-strrchr: New file.
111054         * modules/unistr/u16-strrchr: New file.
111055         * modules/unistr/u32-strrchr: New file.
111056         * lib/unistr/u8-strrchr.c: New file.
111057         * lib/unistr/u16-strrchr.c: New file.
111058         * lib/unistr/u32-strrchr.c: New file.
111060         * modules/unistr/u8-strspn: New file.
111061         * modules/unistr/u16-strspn: New file.
111062         * modules/unistr/u32-strspn: New file.
111063         * lib/unistr/u8-strspn.c: New file.
111064         * lib/unistr/u16-strspn.c: New file.
111065         * lib/unistr/u32-strspn.c: New file.
111066         * lib/unistr/u-strspn.h: New file.
111068         * modules/unistr/u8-strstr: New file.
111069         * modules/unistr/u16-strstr: New file.
111070         * modules/unistr/u32-strstr: New file.
111071         * lib/unistr/u8-strstr.c: New file.
111072         * lib/unistr/u16-strstr.c: New file.
111073         * lib/unistr/u32-strstr.c: New file.
111074         * lib/unistr/u-strstr.h: New file.
111076         * modules/unistr/u8-strtok: New file.
111077         * modules/unistr/u16-strtok: New file.
111078         * modules/unistr/u32-strtok: New file.
111079         * lib/unistr/u8-strtok.c: New file.
111080         * lib/unistr/u16-strtok.c: New file.
111081         * lib/unistr/u32-strtok.c: New file.
111082         * lib/unistr/u-strtok.h: New file.
111084         * modules/unistr/u8-uctomb: New file.
111085         * modules/unistr/u16-uctomb: New file.
111086         * modules/unistr/u32-uctomb: New file.
111087         * lib/unistr/u8-uctomb.c: New file.
111088         * lib/unistr/u16-uctomb.c: New file.
111089         * lib/unistr/u32-uctomb.c: New file.
111091         * MODULES.html.sh (Unicode string functions): Add the new modules.
111093 2007-01-08  Bruno Haible  <bruno@clisp.org>
111095         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
111096         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
111097         subdirectories.
111099 2007-01-08  Karl Berry  <karl@gnu.org>
111101         * doc/error.texi: mention that main() fns must set program_name
111102         when progname is used.
111104 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
111106         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
111107         WCTYPE_H is empty, for the benefit of builds from non-distclean
111108         directories.  Problem reported by Eric Blake in
111109         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
111111 2007-01-08  Bruno Haible  <bruno@clisp.org>
111113         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
111114         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
111115         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
111116         PROVIDE_CANONICALIZE_FILENAME_MODE.
111117         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
111119 2007-01-08  Bruno Haible  <bruno@clisp.org>
111121         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
111122         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
111123         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
111124         * lib/fts.c: Likewise.
111125         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
111127 2006-12-25  Bruno Haible  <bruno@clisp.org>
111129         * modules/utf8-ucs4-safe: New file.
111130         * lib/utf8-ucs4-safe.h: New file.
111131         * lib/unistr/utf8-ucs4-safe.c: New file.
111133         * modules/utf16-ucs4-safe: New file.
111134         * lib/utf16-ucs4-safe.h: New file.
111135         * lib/unistr/utf16-ucs4-safe.c: New file.
111137         * MODULES.html.sh (Unicode string functions): Add the new modules.
111139 2007-01-08  Bruno Haible  <bruno@clisp.org>
111141         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
111142         (Depends-on): Add unitypes.
111143         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
111144         (u8_mbtouc_aux): Move out to separate file.
111145         (u8_mbtouc): Use ucs4_t, uint8_t types.
111146         * lib/unistr/utf8-ucs4.c: New file.
111148         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
111149         (Depends-on): Add unitypes.
111150         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
111151         (u16_mbtouc_aux): Move out to separate file.
111152         (u16_mbtouc): Use ucs4_t, uint16_t types.
111153         * lib/unistr/utf16-ucs4.c: New file.
111155         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
111156         (Depends-on): Add unitypes.
111157         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
111158         (u8_uctomb_aux): Move out to separate file.
111159         (u8_uctomb): Use ucs4_t, uint8_t types.
111160         * lib/unistr/ucs4-utf8.c: New file.
111162         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
111163         (Depends-on): Add unitypes.
111164         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
111165         (u16_uctomb_aux): Move out to separate file.
111166         (u16_uctomb): Use ucs4_t, uint16_t types.
111167         * lib/unistr/ucs4-utf16.c: New file.
111169 2006-12-25  Bruno Haible  <bruno@clisp.org>
111171         * modules/unitypes: New file.
111172         * lib/unitypes.h: New file.
111173         * MODULES.html.sh (func_all_modules): New section "Unicode string
111174         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
111175         this section. Add unitypes.
111177 2007-01-08  Bruno Haible  <bruno@clisp.org>
111179         Avoid variable names that conflict with those from libtool.
111180         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
111181         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
111182         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
111183         library_names_spec to acl_library_names_spec, hardcode_* to
111184         acl_hardcode_*.
111185         Reported by Ralf Wildenhues.
111187 2007-01-08  Bruno Haible  <bruno@clisp.org>
111189         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
111190         definition.
111191         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
111192         definition.
111193         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
111194         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
111195         definition.
111196         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
111197         definition.
111198         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
111199         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
111200         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
111201         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
111202         definition.
111203         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
111204         definition.
111205         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
111206         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
111207         GC_USE_<algorithm>.
111208         * lib/gc-libgcrypt.c: Likewise.
111209         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
111210         * modules/gc-arctwo (configure.ac): Likewise.
111211         * modules/gc-des (configure.ac): Likewise.
111212         * modules/gc-hmac-md5 (configure.ac): Likewise.
111213         * modules/gc-hmac-sha1 (configure.ac): Likewise.
111214         * modules/gc-md2 (configure.ac): Likewise.
111215         * modules/gc-md4 (configure.ac): Likewise.
111216         * modules/gc-md5 (configure.ac): Likewise.
111217         * modules/gc-random (configure.ac): Likewise.
111218         * modules/gc-rijndael (configure.ac): Likewise.
111219         * modules/gc-sha1 (configure.ac): Likewise.
111221 2007-01-08  Bruno Haible  <bruno@clisp.org>
111223         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
111224         macro definition.
111225         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
111226         definition.
111227         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
111228         definition.
111229         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
111230         * modules/fcntl-safer (configure.ac): Likewise.
111231         * modules/fopen-safer (configure.ac): Likewise.
111232         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
111233         GNULIB_FWRITEERROR macro definition.
111235 2007-01-08  Bruno Haible  <bruno@clisp.org>
111237         * m4/gnulib-common.m4: New file.
111238         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
111239         (func_get_filelist): Add m4/gnulib-common.m4.
111241 2007-01-08  Bruno Haible  <bruno@clisp.org>
111243         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
111244         command.
111246 2007-01-08  Jim Meyering  <jim@meyering.net>
111248         Use a more robust test for a "can't happen" condition.
111249         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
111250         narrowed the st_size value.  Presuming the "can't happen" condition
111251         is true, that narrowing could conceivably convert an invalid st_size
111252         value into a valid one.  Instead, use a change based on Matthew
111253         Woehlke's original patch.
111255         Slight readability improvement: use an assert-like macro
111256         in place of literal "abort ()" uses.
111257         * lib/fts.c (fts_assert): Define.
111258         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
111259         Use this macro instead of a bare 'abort'.
111261 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
111263         Don't worry about using IRIX 5.3's wctype.h broken definitions;
111264         simply work around them.
111265         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
111266         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
111267         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
111268         declaring.
111269         Don't bother to define as macros, since the standard doesn't require it.
111270         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
111271         longer worry about IRIX 5.3.
111272         (HAVE_WCTYPE_CTMP_BUG): Remove.
111274 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
111276         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
111277         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
111278         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
111279         Problems reported by Georg Schwarz for IRIX 5.3.
111281         * gnulib-tool (autoconf_minversion): Take the maximum version number
111282         found, not the minimum.  Problem reported by James Youngman.
111284 2007-01-03  Karl Berry  <karl@gnu.org>
111286         * doc/error.texi: new file, explaining interaction with progname.
111287         * doc/gnulib.texi: include it.  Update copyright.
111289 2007-01-03  Simon Josefsson  <simon@josefsson.org>
111291         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
111292         AC_CANONICAL_HOST, to improve autobuild outputs.
111294 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
111295             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
111297         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
111298         sockets, server sockets, and other file descriptors.  Count errors
111299         to compute the return value.  Reorder the code a bit to be easier
111300         to follow.  Don't set event bits that were not requested (except
111301         POLLERR and POLLHUP).
111303 2007-01-01  Bruno Haible  <bruno@clisp.org>
111305         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
111307 2007-01-03  Jim Meyering  <jim@meyering.net>
111309         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
111311 2007-01-02  Bruno Haible  <bruno@clisp.org>
111313         * modules/settime (Include): Require timespec.h.
111314         * modules/nanosleep (Include): Likewise.
111316 2007-01-01  Bruno Haible  <bruno@clisp.org>
111318         * gnulib-tool (func_emit_copyright_notice): Bump year.
111319         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
111321 2007-01-01  Bruno Haible  <bruno@clisp.org>
111323         Improve support for OpenBSD.
111324         * build-aux/config.rpath (libname_spec): Export.
111325         (library_names_spec): New variable. Export.
111326         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
111327         library_names_spec from the config.rpath output. Locate shared library
111328         through the name pattern in library_names_spec.
111330 2007-01-01  Eric Blake  <ebb9@byu.net>
111332         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
111334 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
111336         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
111337         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
111338         assume the C locale, and avoid an "eval" that could cause trouble.
111339         Problem with SORT reported by Bob Proulx.
111341         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
111342         Define.  Trivial patch from Henning Nielsen Lund, originally
111343         sent to bug-grep@gnu.org today.
111345 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
111347         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
111348         struct stat.  Problem reported by Henning Nielsen Lund.
111349         * lib/acl.c: Include acl.h first, to check interface.  Don't
111350         bother to include sys/types.h and sys/stat.h again.
111352 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
111354         Import the following change from libc; problem reported by
111355         Sven Verdoolaege.
111357         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
111359         [BZ #1373]
111360         * lib/argp.h: Remove __NTH for __argp_usage inline function.
111362 2006-12-28  Jim Meyering  <jim@meyering.net>
111364         * build-aux/announce-gen: Do not assume that the package
111365         builds any of tar.gz, tar.bz2, and .xdelta files.
111366         Suggestion from Simon Josefsson.
111368 2006-12-28  Simon Josefsson  <simon@josefsson.org>
111370         * modules/announce-gen: New file.
111372 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
111374         * lib/mbchar.h: Just include <wctype.h>; the wctype module
111375         handles its gotchas now.
111376         * lib/mbswidth.c: Likewise.
111377         * lib/wcwidth.h: Likewise.
111378         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
111379         and iswcntrl; the wctype module does this stuff now.
111380         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
111381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
111382         * modules/mbchar (Depends-on): Add wctype.
111383         * modules/mbswidth (Depends-on): Likewise.
111384         * modules/wcwidth (Depends-on): Likewise.
111386 2006-12-27  Eric Blake  <ebb9@byu.net>
111388         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
111389         module uses more than what <wctype.h> is required to provide.
111391 2006-12-26  Eric Blake  <ebb9@byu.net>
111393         * gnulib-tool (sed_extract_prog): Avoid space-tab.
111395 2006-12-26  Eric Blake  <ebb9@byu.net>
111397         * modules/absolute-header: New module.
111398         * modules/fcntl (Depends-on): Depend on it.
111399         * modules/inttypes (Depends-on): Likewise.
111400         * modules/stdint (Depends-on): Likewise.
111401         * modules/sys_stat (Depends-on): Likewise.
111402         * modules/wctype (Depends-on): Likewise.
111403         * MODULES.html.sh (Support for building libraries and
111404         executables): Document it.
111406 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
111408         * gnulib-tool (SED): Remove, undoing previous change.
111409         The problem was that it broke coreutils on Solaris, because
111410         "sed --posix" leaked into a makefile.
111411         (sed): New alias, if 'alias' and GNU sed.
111413 2006-12-24  Jim Meyering  <jim@meyering.net>
111415         Work around an fchownat bug in glibc-2.4:
111416         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
111417         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
111418         in spite of the -P option.
111419         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
111420         New macros.
111421         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
111422         * modules/openat (Files): Add lib/fchownat.c.
111423         * lib/openat.c (fchownat): Don't define here.  Move to...
111424         * lib/fchownat.c: ...this new file.
111426 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
111428         Fix bug reported by Bruno Haible in
111429         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
111430         where quotearg.c didn't compile on Mac OS X 10.2 because it
111431         lacks <wchar.h> and wint_t.
111432         * lib/wctype_.h (__wctype_wint_t): New type.
111433         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
111434         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
111435         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
111436         Arg is now of type __wctype_wint_t, not wint_t.
111437         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
111438         substitute HAVE_WINT_T.
111439         * modules/wctype (Files): Add m4/wint_t.m4.
111440         (wctype.h): Substitute HAVE_WINT_T.
111442 2006-12-23  Bruno Haible  <bruno@clisp.org>
111444         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
111446 2006-12-23  Bruno Haible  <bruno@clisp.org>
111448         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
111449         S_ISLNK.
111450         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
111451         mingw.
111453 2006-12-22  Bruno Haible  <bruno@clisp.org>
111455         * lib/copy-file.c: Include acl.h.
111456         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
111457         Close the file descriptors only after being done with copy_acl.
111458         * modules/copy-file (Depends-on): Add acl.
111460 2006-12-22  Bruno Haible  <bruno@clisp.org>
111462         * gnulib-tool (SED): New variable.
111463         Use $SED instead of sed everywhere.
111465 2006-12-22  Bruno Haible  <bruno@clisp.org>
111467         * modules/no-c++: New file.
111468         * m4/no-c++.m4: New file.
111469         * MODULES.html.sh (Support for building libraries and executables):
111470         Add no-c++.
111472 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
111474         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
111475         Include <limits.h>, and use its INT_MAX to rewrite the
111476         j loop so that it does not overflow 'int'.  Problem reported by
111477         Ralf Wildenhues in
111478         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
111479         Play it safe by shifting left by 1 rather than multiplying by 2,
111480         as GCC is less likely to optimize this away when the value
111481         is signed (when it assumes overflow leads to undefined behavior).
111482         Also, don't assume time_t uses two's complement.
111484 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
111486         * MODULES.html.sh: New module wctype.
111487         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
111488         * lib/fnmatch.c: Don't bother to include <wchar.h> before
111489         <wctype.h>, since the new wctype module should fix this.
111490         * lib/quotearg.c: Include <wctype.h> unconditionally, since
111491         the wctype module should arrange for it.
111492         * lib/regex_internal.h: Likewise.
111493         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
111494         since the wctype module should handle this now.
111495         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
111496         * modules/fnmatch (Depends-on): Add wctype.
111497         * modules/quotearg (Depends-on): Likewise.
111498         * modules/regex (Depends-on): Likewise.
111500 2006-12-19  Bruno Haible  <bruno@clisp.org>
111502         * lib/strdup.h [C++]: Wrap definitions in extern "C".
111503         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
111505 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111507         * modules/savewd (Depends-on): Fix dependency on fcntl.
111509 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
111511         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
111512         conforms to C99, rather than relying on the user's environment
111513         setting of STDINT_H.
111515 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
111516         and Eric Blake  <ebb9@byu.net>
111518         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
111519         This is more consistent with the other defines here.
111520         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
111521         Port to z/OS.  Problem reported by Paul Gilmartin.
111522         Change local vars to use gl_ prefix rather than ac_.
111523         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
111524         with other defines.
111525         * modules/double-slash-root: New module.
111526         * modules/dirname (Files): Remove m4/double-slash-root.m4.
111527         (Depends-on): Add double-slash-root.
111528         * MODULES.html.sh (File system functions): Mention new module.
111530 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
111532         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
111533         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
111534         This is for the benefit of gzip, which doesn't do i18n.
111536 2006-12-12  Jim Meyering  <jim@meyering.net>
111538         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
111539         Reported by Andreas Schwab <schwab@suse.de>.
111541 2006-12-12  Bruno Haible  <bruno@clisp.org>
111543         Merge these changes.
111544         2006-09-05  Bruno Haible  <bruno@clisp.org>
111545         * lib/iconvme.c (iconv_string): No need to save and restore errno when
111546         iconv_alloc succeeded.
111547         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
111548         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
111549         test for " && dest " at the end - dest is always != NULL there. Call
111550         iconv with 4xNULL arguments initially, to reset the state. Call iconv
111551         with 2xNULL arguments, also to flush the state storage. Handle the
111552         IRIX iconv behaviour. Realloc the final result, to throw away unused
111553         memory.
111555 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
111557         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
111558         and fchmodat unconditionally, since glibc 2.4 has them.
111559         Problem reported by Arkadiusz Miskiewicz.
111561 2006-12-10  Bruno Haible  <bruno@clisp.org>
111563         * gnulib-tool (func_import): Show the include files only for those
111564         modules that are copied and specified.
111565         Reported by Karl Berry.
111567 2006-12-08  Jim Meyering  <jim@meyering.net>
111569         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
111570         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
111572         * build-aux/announce-gen: Add two new options, both optional:
111573         --bootstrap-tools=TOOL_LIST
111574               a comma-separated list of tools, e.g.,
111575               autoconf,automake,bison,gnulib
111576         --gnulib-snapshot-date=DATE
111577               if gnulib is in the bootstrap tool list,
111578               then report this as the snapshot date.
111579               If not specified, use the current date/time.
111580               If you specify a date here, be sure it's UTC.
111582 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111584         * tests/test-argp-2.sh: Fix test to match actual output.
111585         (func_compare): Fix sed script to be portable.
111587 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
111589         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
111590         workaround for this case.  It is not autoconfigured now; offhand
111591         it's hard to see how to autoconfigure it.
111593 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
111595         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
111596         a directory that is about to be chowned.  Such a directory's
111597         initial file permissions should permit the owner only and this
111598         should not be changed until after the chown, since the group and
111599         other bits would be incorrect if they granted permission before
111600         the chown.
111602         Fix porting problem for iswctype reported by Georg Schwarz in:
111603         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
111604         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
111605         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
111606         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
111607         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
111609 2006-12-03  Jim Meyering  <jim@meyering.net>
111611         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
111612         p->fts_statp may not yet be defined.
111613         (fts_read): Instead, set it in the caller, once p->fts_statp is
111614         sure to be defined, and corresponds to a top-level directory.
111615         This bug made du -x fail.  Here's the coreutils test case:
111616         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
111617         Reported by Mike Frysinger.
111619 2006-12-01  Jim Meyering  <jim@meyering.net>
111621         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
111622         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
111623         Reported by Simon Josefsson.
111625 2006-11-30  Jim Meyering  <jim@meyering.net>
111627         * m4/warning.m4: Use the all-permissive copyright notice
111628         recommended by RMS (rather than LGPL).
111629         * m4/vararrays.m4: Likewise.
111630         * m4/flexmember.m4: Likewise.
111632 2006-11-29  Bruno Haible  <bruno@clisp.org>
111634         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111635         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
111636         using +=.
111637         Reported by Simon Josefsson <simon@josefsson.org>.
111639 2006-11-28  James Youngman  <jay@gnu.org>
111641         * README: Advise users that they might find the bug-gnulib@gnu.org
111642         and autotools-announce@gnu.org mailing lists useful.
111644 2006-11-28  Bruno Haible  <bruno@clisp.org>
111646         * m4/ptrdiff_max.m4: Remove file.
111648 2006-11-21  Bruno Haible  <bruno@clisp.org>
111650         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
111651         _AC_COMPUTE_INT.
111652         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111653         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
111654         _AC_COMPUTE_INT.
111655         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111656         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
111657         _AC_COMPUTE_INT.
111658         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111660 2006-11-28  Jim Meyering  <jim@meyering.net>
111662         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
111663         warning from "gcc -Wshadow" about shadowing the builtin.
111665 2006-11-27  Bruno Haible  <bruno@clisp.org>
111667         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
111668         _AC_COMPUTE_INT.
111669         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111671 2006-11-27  Bruno Haible  <bruno@clisp.org>
111672             Paul Eggert  <eggert@cs.ucla.edu>
111674         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
111676 2006-11-26  Bruno Haible  <bruno@clisp.org>
111678         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111679         noinst_LTLIBRARIES.
111681 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
111682             Bruno Haible  <bruno@clisp.org>
111684         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
111685         if compiling with "gcc -ansi".
111687 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
111689         Fix some incompatibilities with gcc -ansi -pedantic.
111690         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
111691         if compiling pedantically with GCC, unless it's C99 or later.
111692         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
111693         it mishandles gcc -ansi -pedantic as well.
111694         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
111695         if gcc -pedantic.
111696         * lib/regexec.c (check_node_accept_bytes): Don't use auto
111697         initializers for struct if -pedantic, unless it's C99 or later.
111699 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
111701         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
111702         Don't close an fd more than once. Identical atimes indicate
111703         success, not failure.
111705 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
111707         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
111709 2006-11-23  Jim Meyering  <jim@meyering.net>
111711         * build-aux/announce-gen: New file.  From coreutils.
111713 2006-11-22  Jim Meyering  <jim@meyering.net>
111715         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
111716         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
111717         (fts_read): Use a temporary to narrow the overused st_size member
111718         before using it in a switch statement.  Reported by Matthew Woehlke.
111720         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
111721         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
111723 2006-11-20  Bruno Haible  <bruno@clisp.org>
111725         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
111726         changequote instead of pairs of brackets.
111727         Reported by Andreas Schwab <schwab@suse.de>.
111729 2006-11-21  Jim Meyering  <jim@meyering.net>
111731         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
111732         so as to remain compatible with older compilers.
111733         Patch from Michael Deutschmann.
111735 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111737         * MODULES.html.sh (File system functions): Add openat.
111739         * lib/openat.h (rpl_fstatat): New macro, if
111740         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
111741         (fstatat): Define to rpl_fstatat under the same conditions,
111742         unless COMPILING_FSTATAT.
111743         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
111744         seems to have the bug.
111745         * lib/fstatat.c: New file.
111746         * modules/openat (Files): Add it.
111748 2006-11-20  Bruno Haible  <bruno@clisp.org>
111750         * Makefile: New file.
111752 2006-11-20  Jim Meyering  <jim@meyering.net>
111754         The beginnings of syntax-related checks for gnulib.
111755         * lib/Makefile: New file.
111756         * lib/t-idcache: New script.  Ensure that the two halves of
111757         idcache.c stay in sync.
111759         * lib/idcache.c: Adjust comments in user- and group- portions to
111760         be more accurate, and to be consistent with one another.
111762 2006-11-20  Jim Meyering  <jim@meyering.net>
111764         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
111765         continue using the flexible array member (thus, this module performs
111766         half as many malloc calls), with the addition that...
111767         (getgroup, getuser): Consistently record a non-match via an empty
111768         "name" string, and map an empty string match to a NULL return value.
111769         * modules/idcache (Depends-on): Re-add flexmember.
111771         * lib/idcache.c (getuser): Remove all uses of the register keyword.
111772         (getuidbyname, getgroup, getgidbyname): Likewise.
111774         Use cleaner syntax: NULL rather than 0.
111775         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
111777 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111779         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
111780         It mishandled the case where the group was missing.
111781         Problem reported by Greg Schafer.
111782         * modules/idcache: Likewise.
111784 2006-11-18  Jim Meyering  <jim@meyering.net>
111786         * check-module (%exempt_header): Add exception for some
111787         conditionally-included headers.
111789         * modules/i-ring (Depends-on): Add verify.
111790         (License): Change to LGPL.
111792 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
111794         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
111795         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
111796         and inttostr.h.  Use snprintf rather than uinttostr, so that
111797         LGPLed code doesn't depend on GPLed.
111799 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
111801         * modules/inline (License): Change from GPL to LGPL.
111803 2006-11-17  Jim Meyering  <jim@meyering.net>
111805         * modules/d-type (License): Switch to LGPL.
111807 2006-11-15  Bruno Haible  <bruno@clisp.org>
111809         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
111811 2006-11-15  Eric Blake  <ebb9@byu.net>
111813         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
111814         the module dependency.
111816 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111817             Bruno Haible  <bruno@clisp.org>
111819         * gnulib-tool (func_create_testdir): Add license consistency check.
111821 2006-11-15  Eric Blake  <ebb9@byu.net>
111823         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
111824         random "(cached)" in configure output.
111826 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111828         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
111829         test for conforming inttypes.h is both announced and cached.
111831         * MODULES.html.sh (seen_modules, seen_files): New variables.
111832         (func_module): Rewrite to use a few less gnulib-tool and sed
111833         invocations.  Avoid a couple of quadratic algorithms for ...
111834         (missed_modules, missed_files): ... these, with ...
111835         (func_append, func_tmpdir): ... these new functions, from
111836         gnulib-tool.  Analogously, install traps for cleanup.
111838         * tests/test-gc.c (main): Remove unused variables.
111839         * tests/test-read-file.c: Include stdlib.h, for 'free'.
111841 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
111843         * modules/inttostr (License): Change to LGPL.
111845 2006-11-14  Eric Blake  <ebb9@byu.net>
111847         * modules/tempname (License): Change to LGPL.
111849 2006-11-14  Eric Blake  <ebb9@byu.net>
111851         * doc/functions.texi (Function Portability): *printf functions on
111852         Cygwin now understand all POSIX size specifiers.
111854 2006-11-14  Bruno Haible  <bruno@clisp.org>
111856         * modules/c-ctype (License): Change to LGPL.
111858 2006-11-12  Bruno Haible  <bruno@clisp.org>
111860         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
111861         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
111862         for GNOME libraries, for which the include files are installed in
111863         subdirectories of $prefix/include.
111865 2006-11-12  Bruno Haible  <bruno@clisp.org>
111867         * m4/lib-link.m4: Require at least autoconf-2.54.
111868         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
111869         name to underscores for the --with option.
111871 2006-11-13  Bruno Haible  <bruno@clisp.org>
111873         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
111874         the tests directory.
111875         Reported by Ralf Wildenhues.
111877 2006-11-13  Bruno Haible  <bruno@clisp.org>
111879         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
111880         (func_emit_initmacro_end): Undo the override here.
111881         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
111882         Works around the famous automake error in coreutils.
111884 2006-11-13  Eric Blake  <ebb9@byu.net>
111886         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
111887         element, not its node.
111889 2006-11-12  Bruno Haible  <bruno@clisp.org>
111891         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
111892         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
111894 2006-11-12  Bruno Haible  <bruno@clisp.org>
111896         * gnulib-tool: New option --local-symlink.
111897         (func_usage): Document it.
111898         (lsymbolic): New variable.
111899         (func_import, func_create_testdir): If --symlink was not specified,
111900         test whether --local-symlink was specified and the file comes from
111901         the local_gnulib_dir.
111903 2006-11-12  Bruno Haible  <bruno@clisp.org>
111905         * gnulib-tool (func_ln): New function.
111906         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
111908 2006-11-12  Bruno Haible  <bruno@clisp.org>
111910         Finish support for source files in subdirectories.
111911         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
111912         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
111913         AUTOMAKE_OPTIONS.
111914         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
111916 2006-11-12  Bruno Haible  <bruno@clisp.org>
111918         * gnulib-tool (func_get_automake_snippet): Synthesize also an
111919         EXTRA_lib_SOURCES augmentation.
111920         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
111922 2006-11-12  Jim Meyering  <jim@meyering.net>
111924         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
111925         file descriptors.  This also averts a failure on systems with
111926         native openat support when a traversed directory lacks "x" access.
111927         * lib/fts_.h: Include "i-ring.h"
111928         (struct FTS) [fts_fd_ring]: New member.
111929         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
111930         (FCHDIR): Add parentheses.
111931         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
111932         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
111933         When descending, rather than simply closing the previous
111934         fts_cwd_fd value, push that file descriptor onto the ring.
111935         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
111936         (fts_open): Initialize the new fd_ring member.
111937         (fts_close): Clear the ring.
111938         (fts_safe_changedir): When possible, use our new fd_ring to skip
111939         the diropen and fstat and dev/ino comparison that would normally
111940         accompany a virtual `chdir ("..")'.
111942         * modules/fts (Depends-on): Add i-ring.
111943         * modules/i-ring: New module.
111944         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
111945         * m4/i-ring.m4: New file.
111947 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111949         * gnulib-tool (func_create_testdir): Fix replacement of
111950         `build-aux' in configure.ac.  Run autotools in gltests
111951         subdirectory.
111952         (func_create_testdir, func_create_megatestdir, test): There is
111953         no need for '--force' in most autotool invocations in a new
111954         tree.  Actually fail the whole test if any of the tools, or the
111955         configure or make stages fail.
111957         Sync from Automake.
111958         * build-aux/gnupload: Revert last change.  Add pointer to upload
111959         instructions of the GNU Maintenance Instructions.
111960         Suggestion by Karl Berry.
111962 2006-11-10  Jim Meyering  <jim@meyering.net>
111964         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
111966 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111968         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
111969         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
111970         (bind_textdomain_codeset) [! ENABLE_NLS]:
111971         Evaluate all the arguments.  That way, callers get compatible behavior
111972         if the arguments have side effects.  Also, it avoids some GCC
111973         diagnostics in some cases; Joel E. Denny reported problems when Bison
111974         was configured with --enable-gcc-warnigs.
111976 2006-11-10  Jim Meyering  <jim@meyering.net>
111978         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
111979         relevant options in CFLAGS (like -O, -fno-inline) are taken into
111980         account.
111982 2006-11-10  Jim Meyering  <jim@meyering.net>
111984         * modules/inline: New file/module.
111985         * modules/xalloc (Files): Remove m4/inline.m4.
111986         (Depends-on): Add inline, instead.
111987         * modules/oset: Likewise.
111988         * modules/list: Likewise.
111990 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111992         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
111993         Problem reported by Matthew Woehlke.
111995 2006-11-09  Bruno Haible  <bruno@clisp.org>
111997         * lib/tempname.c (gen_tempname): Remove variant that invokes
111998         __gen_tempname.
111999         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
112000         __gen_tempname.
112002 2006-11-08  Bruno Haible  <bruno@clisp.org>
112004         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
112005         to 'yes' instead of 'cross-compiling'.
112007 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
112009         * lib/quotearg.h (quotearg_free): New decl.
112010         * lib/quotearg.c (quotearg_free): New function.
112011         (slot0, nslots, slotvec0, slotvec):
112012         Now file-scope so that quotearg_free can get at them.
112014 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112016         Sync from Automake.
112017         * build-aux/gnupload: Add missing 'gnu' to example URL.
112018         Report by Karl Berry.
112020 2006-11-08  Bruno Haible  <bruno@clisp.org>
112022         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
112023         Suggested by Paul Eggert.
112025 2006-11-08  Jim Meyering  <jim@meyering.net>
112027         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
112028         It's already included if !_LIBC.
112029         (fts_safe_changedir): Add a comment.
112031 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
112033         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
112034         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
112035         Matthew Woehlke.
112037         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
112038         definitions up, to avoid colliding with change below.
112039         (static_inline) [HAVE_INLINE]: New macro.
112040         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
112041         Provide extern decls when !HAVE_INLINE.  Do not define unless
112042         static_inline is defined, either by us or by xmalloc.c.  Use
112043         static_inline rather than static inline.
112044         (XCALLOC): Optimize sizeof(T) = 1 case.
112045         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
112047 2006-11-07  Bruno Haible  <bruno@clisp.org>
112049         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
112050         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
112051         AC_C_INLINE.
112052         * modules/xalloc (Files): Add m4/inline.m4.
112054 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112056         * README: Fix typo.
112057         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
112058         (Miscellanous Notes): ...from this.
112060 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
112062         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
112063         Mention that offsetof should be used instead of sizeof.
112064         From Bruno Haible.
112066 2006-11-07  Bruno Haible  <bruno@clisp.org>
112068         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
112070 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
112072         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
112073         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
112074         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
112075         (gl_tree_add_before, gl_tree_add_after):
112076         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
112077         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
112078         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
112079         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
112080         (gl_linked_add_after, gl_linked_add_at): Likewise.
112081         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
112082         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
112083         (gl_tree_add_before, gl_tree_add_after): Likewise.
112084         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
112085         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
112086         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
112088 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112090         * lib/gl_oset.h: Use C comment style, not C++ comment style.
112092 2006-11-06  Bruno Haible  <bruno@clisp.org>
112094         * m4/inline.m4: New file.
112095         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
112096         * modules/list (Files): Add m4/inline.m4.
112097         * modules/oset (Files): Likewise.
112099 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
112101         * lib/idcache.c: Include <stddef.h>, for offsetof.
112102         (struct userid.name): Change from char * to a flexible array member.
112103         All uses changed.
112104         * modules/idcache (Depends-on): Add flexmember.
112106         * MODULES.html.sh (Core language properties): New module flexmember.
112107         * modules/flexmember, m4/flexmember.m4: New files.
112109         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
112110         inline functions that are identical with the old xnmalloc_inline,
112111         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
112112         that we can avoid some unnecessary integer multiplications and
112113         divisions in the common case where the element size is known at
112114         compile time.
112115         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
112116         needed.
112117         (xnboundedmalloc): Remove.
112118         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
112119         arguments, for consistency with rest of this header.
112120         (xcharalloc): Rewrite using XNMALLOC.
112121         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
112122         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
112123         versions have been moved to lib/xalloc.h and renamed to be the
112124         non-*_inline versions.
112125         (xmalloc, xrealloc): Implement without reference to the xnmalloc
112126         and xnrealloc functions, since those functions are now inline and
112127         now call us.
112128         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
112129         renaming described above.
112130         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
112131         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
112132         captures the dependency in AC_C_INLINE.
112134         New module canonicalize-lgpl, proposed by Charles Wilson in
112135         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
112136         with a few small changes afterwards.
112137         * MODULES.html.sh (File system functions): New module
112138         canonicalize-lgpl.
112139         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
112140         and canonicalize_file_name.
112141         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
112142         * modules/canonicalize-lgpl: New files.
112144 2006-11-05  Bruno Haible  <bruno@clisp.org>
112146         * gnulib-tool (func_import, func_create_testdir): Create directories
112147         also for files in subdirectories of lib/.
112149 2006-11-05  Bruno Haible  <bruno@clisp.org>
112151         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
112152         ANSI C compliant.
112154 2006-11-03  Bruno Haible  <bruno@clisp.org>
112156         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
112157         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
112158         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
112159         (xnboundedmalloc): New inline function.
112160         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
112161         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
112162         xmalloc.
112163         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
112164         xmalloc.
112165         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
112166         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
112167         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
112168         xmalloc.
112169         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
112170         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
112171         xmalloc.
112172         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
112173         gl_tree_add_after): Use XMALLOC instead of xmalloc.
112174         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
112175         xmalloc.
112176         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
112177         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
112178         gl_tree_add_after): Use XMALLOC instead of xmalloc.
112179         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
112180         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
112181         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
112182         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
112184 2006-11-03  Bruno Haible  <bruno@clisp.org>
112186         * lib/c-ctype.h [C++]: Define functions without name mangling.
112187         * lib/fwriteerror.h [C++]: Likewise.
112188         * lib/gcd.h [C++]: Likewise.
112189         * lib/linebreak.h [C++]: Likewise.
112191 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
112193         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
112194         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
112195         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
112196         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
112197         Check for functions and headers just once.
112198         Check for declaration of canonicalize_file_name.
112199         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
112201 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112203         * gnulib-tool (func_import): Fix typo in actioncmd.
112205 2006-11-02  Bruno Haible  <bruno@clisp.org>
112207         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
112208         newline sequence in the Makefile.am snippet as a space, like "make"
112209         does.
112210         Reported by Roger Persson <perrog@gmail.com>.
112212 2006-11-01  Bruno Haible  <bruno@clisp.org>
112214         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
112215         already declared in <string.h>.
112216         * lib/strcase.h (strncasecmp): Don't declare it if yes.
112218 2006-11-01  Bruno Haible  <bruno@clisp.org>
112220         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
112221         * lib/strcase.h: Include <string.h>.
112222         (strcasecmp): Define to rpl_strcasecmp here.
112224 2006-11-01  Bruno Haible  <bruno@clisp.org>
112226         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
112228 2006-11-01  Eric Blake  <ebb9@byu.net>
112230         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
112232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
112234 2006-10-29  Bruno Haible  <bruno@clisp.org>
112236         Make it compile in C++ mode.
112237         * lib/full-write.c (full_rw): Add a cast.
112239 2006-11-01  Bruno Haible  <bruno@clisp.org>
112241         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
112242         be POSIX compliant.
112243         Reported by Roger Persson <perrog@gmail.com>.
112245 2006-11-01  Eric Blake  <ebb9@byu.net>
112247         * lib/getopt_.h: Fix comments.
112249 2006-10-31  Eric Blake  <ebb9@byu.net>
112251         * modules/tmpdir (Depends-on): Add sys_stat.
112252         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
112253         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
112254         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
112255         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
112256         tempname.
112258 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
112260         Avoid some C++ diagnostics reported by Bruno Haible.
112261         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
112262         xmalloc.
112263         (quotearg_alloc): Use xcharalloc rather than xmalloc.
112264         (struct slotvec): Move to top level.
112265         (quotearg_n_options): Rewrite to avoid xmalloc.
112266         * lib/xalloc.h (xcharalloc): New function.
112267         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
112268         [defined __cplusplus]: Add function template that provides result
112269         type propagation.  This part of the change is from Bruno Haible.
112271 2006-10-29  Bruno Haible  <bruno@clisp.org>
112273         Make it compile in C++ mode.
112274         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
112275         * lib/strnlen1.c (strnlen1): Cast memchr result.
112276         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
112277         * lib/clean-temp.c (string_equals, string_hash): Add casts.
112278         (create_temp_dir): Rename local variable 'template'.
112279         (compile_csharp_using_sscli): Add cast.
112280         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
112281         * lib/findprog.c (find_in_path): Likewise.
112282         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
112283         * lib/wait-process.c (register_slave_subprocess): Likewise.
112285 2006-10-22  Bruno Haible  <bruno@clisp.org>
112287         * modules/tsearch: New file.
112288         * lib/tsearch.h: New file.
112289         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
112290         * m4/tsearch.m4: New file.
112291         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
112293 2006-10-29  Eric Blake  <ebb9@byu.net>
112295         * lib/arcfour.c: Assume config.h.
112296         * lib/arctwo.c: Likewise.
112297         * lib/base64.c: Likewise.
112298         * lib/check-version.c: Likewise.
112299         * lib/crc.c: Likewise.
112300         * lib/des.c: Likewise.
112301         * lib/gc-gnulib.c: Likewise.
112302         * lib/gc-libgcrypt.c: Likewise.
112303         * lib/gc-pbkdf2-sha1.c: Likewise.
112304         * lib/getaddrinfo.c: Likewise.
112305         * lib/getdelim.c: Likewise.
112306         * lib/getline.c: Likewise.
112307         * lib/hmac-md5.c: Likewise.
112308         * lib/hmac-sha1.c: Likewise.
112309         * lib/iconvme.c: Likewise.
112310         * lib/md2.c: Likewise.
112311         * lib/md4.c: Likewise.
112312         * lib/memxor.c: Likewise.
112313         * lib/read-file.c: Likewise.
112314         * lib/readline.c: Likewise.
112315         * lib/rijndael-alg-fst.c: Likewise.
112316         * lib/rijndael-api-fst.c: Likewise.
112317         * lib/xgetdomainname.c: Likewise.
112319 2006-10-28  Eric Blake  <ebb9@byu.net>
112321         * lib/xstrndup.c: Assume config.h.
112323 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
112325         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
112326         stat-macros.h is now for our own macros, whereas stat_h is for
112327         macros in the <sys/stat.h> name space.
112328         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
112329         (STAT_MACROS_H): Remove.
112330         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
112331         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
112332         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
112333         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
112334         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
112335         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
112336         Move these macros to ...
112337         * lib/stat_.h: here.  Don't include stat-macros.h.
112338         * lib/canonicalize.c: Don't include stat-macros.h.
112339         * lib/chown.c: Likewise.
112340         * lib/euidaccess.c: Likewise.
112341         * lib/file-type.c: Likewise.
112342         * lib/filemode.c: Likewise.
112343         * lib/glob.c: Likewise.
112344         * lib/isapipe.c: Likewise.
112345         * lib/lchown.c: Likewise.
112346         * lib/lstat.c: Likewise.
112347         * lib/mkdir-p.c: Likewise.
112348         * lib/rmdir.c: Likewise.
112349         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
112350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
112351         unless mkdir isn't declared, to speed up 'configure'.
112352         Always create sys/stat.h, since it's unlikely any real sys/stat.h
112353         would define all the S_* symbols.
112354         * modules/canonicalize (Depends-on):
112355         Depend on sys_stat, not stat-macros.
112356         * modules/chown: Likewise.
112357         * modules/euidaccess: Likewise.
112358         * modules/filemode: Likewise.
112359         * modules/file-type: Likewise.
112360         * modules/glob: Likewise.
112361         * modules/isapipe: Likewise.
112362         * modules/lchown: Likewise.
112363         * modules/lstat: Likewise.
112364         * modules/mkancesdirs: Likewise.
112365         * modules/rmdir: Likewise.
112366         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
112367         * modules/modechange: Likewise.
112368         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
112369         (configure.ac): Remove gl_STAT_MACROS.
112370         * modules/sys_stat (Depends-on): Remove stat-macros.
112372 2006-10-27  Bruno Haible  <bruno@clisp.org>
112374         * m4/signed.m4: Remove file.
112375         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
112376         invocation.
112377         * modules/vasnprintf (Files): Remove m4/signed.m4.
112379 2006-10-27  Bruno Haible  <bruno@clisp.org>
112381         Update to GNU gettext 0.16.
112382         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
112383         m4/inttypes-h.m4, m4/signed.m4.
112384         * m4/gettext.m4: Update to GNU gettext 0.16.
112385         * m4/intl.m4: New file, from GNU gettext.
112386         * m4/intldir.m4: New file, from GNU gettext.
112387         * config/srclist.txt: Update
112389 2006-10-27  Eric Blake  <ebb9@byu.net>
112391         * MODULES.html.sh: Document tempname.
112392         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
112393         dependencies.
112394         (Files): Move lib/tempname.c...
112395         * modules/tempname: ...to this new module.
112396         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
112397         (gl_PREREQ_TEMPNAME): Move...
112398         * m4/tempname.m4: ...to this new file.
112399         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
112400         * modules/sys_stat (Depends-on): Add stat-macros.
112401         * lib/stat_.h (includes): Pick up stat macros.
112402         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
112403         if stat macros are broken.
112404         * lib/tempname.c (includes): No need to include "stat-macros.h".
112405         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
112406         (direxists, __path_search) [!_LIBC]: Don't compile these in
112407         gnulib; the tmpdir module covers that.
112408         * lib/tempname.h: New file.
112410 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
112412         * COPYING: Explain how gnulib-tool converts licence headers.
112413         Almost all wording by Eric Blake.
112415 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
112417         * lib/mbchar.h (is_basic_table): Make read-only.
112418         * lib/mbchar.c (is_basic_table): Likewise.
112419         Reported by John Darrington.
112421 2006-10-25  Bruno Haible  <bruno@clisp.org>
112423         * lib/progname.h (set_program_name): Undefine before defining.
112425 2006-10-25  Bruno Haible  <bruno@clisp.org>
112427         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
112428         false for non-gcc C++ compilers.
112429         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
112431 2006-10-24  Bruno Haible  <bruno@clisp.org>
112433         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
112434         iconv implementations like Irix iconv.
112436 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112438         * modules/vararrays: New file.
112439         * m4/vararrays.m4: New file, taken from diffutils.
112440         * MODULES.html.sh: New module vararrays.
112442 2006-10-24  Karl Berry  <karl@gnu.org>
112444         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
112445         Don't call GNU Unix.
112447 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112449         * users.txt: Add Libtool.
112451         Sync from Libtool:
112453         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112455         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
112456         to gnulib's policy of including config.h unconditionally.
112458 2006-10-24  Bruno Haible  <bruno@clisp.org>
112460         * modules/wcwidth (Files): Add m4/wint_t.m4.
112461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
112462         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
112464 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112466         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
112467         to pacify GCC with some -W flags enabled.  Problem reported by
112468         Bruno Haible.
112470 2006-10-24  Jim Meyering  <jim@meyering.net>
112472         * MODULES.html.sh: Remove uinttostr.  It's not a module.
112473         Reported by Karl Berry.
112475 2006-10-23  Bruno Haible  <bruno@clisp.org>
112477         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
112479 2006-10-24  Bruno Haible  <bruno@clisp.org>
112481         * lib/gl_list.h: Use C comment style, not C++ comment style.
112483 2006-10-23  Eric Blake  <ebb9@byu.net>
112485         * lib/getaddrinfo.c (includes): Add missing include.
112487 2006-10-23  Bruno Haible  <bruno@clisp.org>
112488             Paul Eggert  <eggert@cs.ucla.edu>
112490         Ability to rename obstack_free.
112491         * lib/obstack.h (__obstack_free): New macro. Declare instead of
112492         obstack_free.
112493         (obstack_free): Invoke the __obstack_free macro.
112494         * lib/obstack.c (obstack_free): Use __obstack_free macro.
112496 2006-10-23  Bruno Haible  <bruno@clisp.org>
112497             Paul Eggert  <eggert@cs.ucla.edu>
112499         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
112500         __argc, __argv from the declaration. (They are defined as macros on
112501         mingw.)
112503 2006-10-22  Bruno Haible  <bruno@clisp.org>
112505         * doc/gnulib-intro.texi: New file.
112506         * doc/gnulib.texi: Include it.
112508 2006-10-21  Bruno Haible  <bruno@clisp.org>
112510         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
112511         "Introduction", "Miscellanous Notes", "Particular Modules".
112513 2006-10-21  Bruno Haible  <bruno@clisp.org>
112515         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112516         Change mostlyclean-local rule to avoid sh syntax error from bash
112517         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
112519 2006-10-23  Jim Meyering  <jim@meyering.net>
112521         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
112522         in place of snprintf.
112524         * modules/inttostr (Files): Add lib/uinttostr.c.
112525         * lib/uinttostr.c (inttostr): New file/function.
112526         * lib/inttostr.h (uinttostr): Declare.
112527         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
112528         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
112529         Add uinttostr.
112530         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
112532 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112534         * lib/canonicalize.c (ELOOP): Define if not already defined.
112535         Problem reported by Bruno Haible in
112536         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
112538 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112540         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
112541         Problem reported by Perry Smith and Ville Laurikari.
112543         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
112544         uses.
112546 2006-10-19  Bruno Haible  <bruno@clisp.org>
112548         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
112549         for mingw.
112551 2006-10-19  Bruno Haible  <bruno@clisp.org>
112553         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
112554         Needed for mingw.
112556 2006-10-19  Bruno Haible  <bruno@clisp.org>
112558         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
112560 2006-10-19  Bruno Haible  <bruno@clisp.org>
112562         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
112563         it.
112565 2006-10-19  Bruno Haible  <bruno@clisp.org>
112567         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
112568         invocation.
112570 2006-10-19  Bruno Haible  <bruno@clisp.org>
112572         * gnulib-tool (func_create_testdir): Don't include ftruncate and
112573         mountlist by default.
112575 2006-10-16  Bruno Haible  <bruno@clisp.org>
112577         * lib/c-strstr.c: Include c-strstr.h.
112579 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112581         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
112582         in a slash.
112584 2006-10-18  Bruno Haible  <bruno@clisp.org>
112586         * lib/lock.h [C++]: Wrap definitions in extern "C".
112588 2006-10-18  Bruno Haible  <bruno@clisp.org>
112590         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
112591         gl_LIBOBJS list.
112593 2006-10-18  Bruno Haible  <bruno@clisp.org>
112595         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
112597 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
112599         * lib/xstrtol.h: Include gettext.h.
112600         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
112601         Problem reported by Eric Blake.
112602         * modules/xstrtol (Depends-on): Add gettext-h.
112604 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
112606         * lib/strftime.c (advance): New macro.
112607         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
112608         incomplete type, so you can't add 0 to it.  Problem and patch
112609         reported by Eelco Dolstra for dietlibc.
112611 2006-10-18  Jim Meyering  <jim@meyering.net>
112613         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
112614         type for a local, and rename it: s/up/user_proc/.
112616 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
112618         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
112619         READ_UTMP_USER_PROCESS.
112620         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
112622 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
112624         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
112625         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
112627 2006-10-17  Eric Blake  <ebb9@byu.net>
112629         * lib/sigprocmask.c (sigprocmask): Fix typo.
112631         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
112633         * modules/clean-temp (Makefile.am): Don't add to make output...
112634         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
112635         config.h.
112637 2006-10-17  Bruno Haible  <bruno@clisp.org>
112639         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
112640         differently if DEFAULT_TEXT_DOMAIN is set.
112642 2006-10-16  Bruno Haible  <bruno@clisp.org>
112644         * lib/clean-temp.c: Include fwriteerror.h.
112646 2006-10-16  Bruno Haible  <bruno@clisp.org>
112648         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
112650 2006-10-16  Bruno Haible  <bruno@clisp.org>
112652         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
112653         * lib/sigprocmask.h: Include <sys/types.h>.
112654         (sigset_t): Use the system's definition if present.
112656 2006-10-17  Eric Blake  <ebb9@byu.net>
112658         * lib/xvasprintf.c (includes): Assume config.h.
112659         * lib/xasprintf.c (includes): Likewise.
112661 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
112663         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
112664         at least as wide as intmax_t.
112666 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
112668         (Imported from Automake.)
112669         * build-aux/gnupload: Update to version 1.1 of directive file.
112671 2006-10-16  Eric Blake  <ebb9@byu.net>
112673         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
112674         match Automake 1.10a.
112676 2006-10-14  Bruno Haible  <bruno@clisp.org>
112678         * modules/sigprocmask: New file.
112679         * lib/sigprocmask.h: New file.
112680         * lib/sigprocmask.c: New file.
112681         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
112682         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
112683         request sigprocmask.o.
112684         (gl_PREREQ_SIGPROCMASK): New macro.
112685         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
112686         (Depends-on): Add sigprocmask.
112687         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
112688         gt_SIGNALBLOCKING. Test for 'raise' only once.
112689         * lib/fatal-signal.c: Include sigprocmask.h.
112690         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
112691         unblock_fatal_signals): Define always.
112692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112693         sigprocmask.
112695 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
112697         Sync from Automake.
112698         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
112699         which incorrectly sets the mode of an existing destination
112700         directory.  In some cases the unpatched install-sh could do the
112701         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
112702         system.  We hope this is rare in practice, but it's clearly worth
112703         fixing.  Problem reported by Alex Unleashed in
112704         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
112705         Also, don't bother to check for -m bugs unless we're using -m;
112706         suggested by Stepan Kasal.
112708 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112710         Sync from Automake.
112711         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
112712         `-c' flag, so they appear at the same position as in %FASTDEP%
112713         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
112714         which ignores unknown options only after the first non-option.
112715         Bug report against M4 by Nelson H. F. Beebe.
112717 2006-10-13  Jim Meyering  <jim@meyering.net>
112719         Fix a bug in yesterday's change.
112720         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
112721         p->fts_statp->st_dev would be used uninitialized.
112722         Ensures that we always call fts_stat on the very first entry.
112723         Miklos Szeredi reported that find -xdev stopped working.
112725 2006-10-12  Bruno Haible  <bruno@clisp.org>
112727         * gnulib-tool (func_get_automake_snippet): Append an automatically
112728         computed EXTRA_DIST augmentation.
112729         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
112730         * modules/alloca-opt (Makefile.am): Likewise.
112731         * modules/allocsa (Makefile.am): Likewise.
112732         * modules/arcfour (Makefile.am): Likewise.
112733         * modules/arctwo (Makefile.am): Likewise.
112734         * modules/argmatch (Makefile.am): Likewise.
112735         * modules/argz (Makefile.am): Likewise.
112736         * modules/atexit (Makefile.am): Likewise.
112737         * modules/backupfile (Makefile.am): Likewise.
112738         * modules/byteswap (Makefile.am): Likewise.
112739         * modules/c-strtod (Makefile.am): Likewise.
112740         * modules/c-strtold (Makefile.am): Likewise.
112741         * modules/calloc (Makefile.am): Likewise.
112742         * modules/canon-host (Makefile.am): Likewise.
112743         * modules/canonicalize (Makefile.am): Likewise.
112744         * modules/chdir-long (Makefile.am): Likewise.
112745         * modules/chdir-safer (Makefile.am): Likewise.
112746         * modules/check-version (Makefile.am): Likewise.
112747         * modules/chown (Makefile.am): Likewise.
112748         * modules/cloexec (Makefile.am): Likewise.
112749         * modules/close-stream (Makefile.am): Likewise.
112750         * modules/closeout (Makefile.am): Likewise.
112751         * modules/crc (Makefile.am): Likewise.
112752         * modules/csharpexec (Makefile.am): Likewise.
112753         * modules/cycle-check (Makefile.am): Likewise.
112754         * modules/des (Makefile.am): Likewise.
112755         * modules/dev-ino (Makefile.am): Likewise.
112756         * modules/dirfd (Makefile.am): Likewise.
112757         * modules/dirname (Makefile.am): Likewise.
112758         * modules/dup2 (Makefile.am): Likewise.
112759         * modules/eealloc (Makefile.am): Likewise.
112760         * modules/error (Makefile.am): Likewise.
112761         * modules/euidaccess (Makefile.am): Likewise.
112762         * modules/exclude (Makefile.am): Likewise.
112763         * modules/exitfail (Makefile.am): Likewise.
112764         * modules/fcntl-safer (Makefile.am): Likewise.
112765         * modules/fcntl (Makefile.am): Likewise.
112766         * modules/file-type (Makefile.am): Likewise.
112767         * modules/fileblocks (Makefile.am): Likewise.
112768         * modules/filemode (Makefile.am): Likewise.
112769         * modules/filenamecat (Makefile.am): Likewise.
112770         * modules/fnmatch (Makefile.am): Likewise.
112771         * modules/fopen-safer (Makefile.am): Likewise.
112772         * modules/fpending (Makefile.am): Likewise.
112773         * modules/fprintftime (Makefile.am): Likewise.
112774         * modules/free (Makefile.am): Likewise.
112775         * modules/fsusage (Makefile.am): Likewise.
112776         * modules/ftruncate (Makefile.am): Likewise.
112777         * modules/fts (Makefile.am): Likewise.
112778         * modules/gc-arcfour (Makefile.am): Likewise.
112779         * modules/gc-des (Makefile.am): Likewise.
112780         * modules/gc-hmac-md5 (Makefile.am): Likewise.
112781         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
112782         * modules/gc-md4 (Makefile.am): Likewise.
112783         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112784         * modules/gc-sha1 (Makefile.am): Likewise.
112785         * modules/gc (Makefile.am): Likewise.
112786         * modules/getaddrinfo (Makefile.am): Likewise.
112787         * modules/getcwd (Makefile.am): Likewise.
112788         * modules/getdelim (Makefile.am): Likewise.
112789         * modules/getdomainname (Makefile.am): Likewise.
112790         * modules/getgroups (Makefile.am): Likewise.
112791         * modules/gethostname (Makefile.am): Likewise.
112792         * modules/gethrxtime (Makefile.am): Likewise.
112793         * modules/getline (Makefile.am): Likewise.
112794         * modules/getloadavg (Makefile.am): Likewise.
112795         * modules/getlogin_r (Makefile.am): Likewise.
112796         * modules/getndelim2 (Makefile.am): Likewise.
112797         * modules/getopt (Makefile.am): Likewise.
112798         * modules/getpagesize (Makefile.am): Likewise.
112799         * modules/getpass-gnu (Makefile.am): Likewise.
112800         * modules/getpass (Makefile.am): Likewise.
112801         * modules/getsubopt (Makefile.am): Likewise.
112802         * modules/gettime (Makefile.am): Likewise.
112803         * modules/gettimeofday (Makefile.am): Likewise.
112804         * modules/getugroups (Makefile.am): Likewise.
112805         * modules/getusershell (Makefile.am): Likewise.
112806         * modules/glob (Makefile.am): Likewise.
112807         * modules/group-member (Makefile.am): Likewise.
112808         * modules/hard-locale (Makefile.am): Likewise.
112809         * modules/hash (Makefile.am): Likewise.
112810         * modules/hmac-md5 (Makefile.am): Likewise.
112811         * modules/hmac-sha1 (Makefile.am): Likewise.
112812         * modules/human (Makefile.am): Likewise.
112813         * modules/idcache (Makefile.am): Likewise.
112814         * modules/imaxabs (Makefile.am): Likewise.
112815         * modules/imaxdiv (Makefile.am): Likewise.
112816         * modules/inet_ntop (Makefile.am): Likewise.
112817         * modules/inet_pton (Makefile.am): Likewise.
112818         * modules/intprops (Makefile.am): Likewise.
112819         * modules/inttostr (Makefile.am): Likewise.
112820         * modules/inttypes (Makefile.am): Likewise.
112821         * modules/isapipe (Makefile.am): Likewise.
112822         * modules/javaversion (Makefile.am): Likewise.
112823         * modules/lchmod (Makefile.am): Likewise.
112824         * modules/lchown (Makefile.am): Likewise.
112825         * modules/localcharset (Makefile.am): Likewise.
112826         * modules/long-options (Makefile.am): Likewise.
112827         * modules/lstat (Makefile.am): Likewise.
112828         * modules/malloc (Makefile.am): Likewise.
112829         * modules/mathl (Makefile.am): Likewise.
112830         * modules/mbchar (Makefile.am): Likewise.
112831         * modules/md2 (Makefile.am): Likewise.
112832         * modules/md4 (Makefile.am): Likewise.
112833         * modules/md5 (Makefile.am): Likewise.
112834         * modules/memcasecmp (Makefile.am): Likewise.
112835         * modules/memchr (Makefile.am): Likewise.
112836         * modules/memcmp (Makefile.am): Likewise.
112837         * modules/memcoll (Makefile.am): Likewise.
112838         * modules/memcpy (Makefile.am): Likewise.
112839         * modules/memmem (Makefile.am): Likewise.
112840         * modules/memmove (Makefile.am): Likewise.
112841         * modules/mempcpy (Makefile.am): Likewise.
112842         * modules/memrchr (Makefile.am): Likewise.
112843         * modules/memset (Makefile.am): Likewise.
112844         * modules/memxor (Makefile.am): Likewise.
112845         * modules/mkancesdirs (Makefile.am): Likewise.
112846         * modules/mkdir-p (Makefile.am): Likewise.
112847         * modules/mkdir (Makefile.am): Likewise.
112848         * modules/mkdtemp (Makefile.am): Likewise.
112849         * modules/mkstemp (Makefile.am): Likewise.
112850         * modules/mktime (Makefile.am): Likewise.
112851         * modules/modechange (Makefile.am): Likewise.
112852         * modules/mountlist (Makefile.am): Likewise.
112853         * modules/nanosleep (Makefile.am): Likewise.
112854         * modules/obstack (Makefile.am): Likewise.
112855         * modules/openat (Makefile.am): Likewise.
112856         * modules/pagealign_alloc (Makefile.am): Likewise.
112857         * modules/pathmax (Makefile.am): Likewise.
112858         * modules/physmem (Makefile.am): Likewise.
112859         * modules/poll (Makefile.am): Likewise.
112860         * modules/posixtm (Makefile.am): Likewise.
112861         * modules/posixver (Makefile.am): Likewise.
112862         * modules/putenv (Makefile.am): Likewise.
112863         * modules/quote (Makefile.am): Likewise.
112864         * modules/quotearg (Makefile.am): Likewise.
112865         * modules/raise (Makefile.am): Likewise.
112866         * modules/read-file (Makefile.am): Likewise.
112867         * modules/readline (Makefile.am): Likewise.
112868         * modules/readlink (Makefile.am): Likewise.
112869         * modules/readtokens (Makefile.am): Likewise.
112870         * modules/readutmp (Makefile.am): Likewise.
112871         * modules/realloc (Makefile.am): Likewise.
112872         * modules/regex (Makefile.am): Likewise.
112873         * modules/rename-dest-slash (Makefile.am): Likewise.
112874         * modules/rename (Makefile.am): Likewise.
112875         * modules/rijndael (Makefile.am): Likewise.
112876         * modules/rmdir (Makefile.am): Likewise.
112877         * modules/rpmatch (Makefile.am): Likewise.
112878         * modules/safe-read (Makefile.am): Likewise.
112879         * modules/safe-write (Makefile.am): Likewise.
112880         * modules/same-inode (Makefile.am): Likewise.
112881         * modules/same (Makefile.am): Likewise.
112882         * modules/save-cwd (Makefile.am): Likewise.
112883         * modules/savedir (Makefile.am): Likewise.
112884         * modules/setenv (Makefile.am): Likewise.
112885         * modules/settime (Makefile.am): Likewise.
112886         * modules/sha1 (Makefile.am): Likewise.
112887         * modules/sig2str (Makefile.am): Likewise.
112888         * modules/snprintf (Makefile.am): Likewise.
112889         * modules/stat-macros (Makefile.am): Likewise.
112890         * modules/stat-time (Makefile.am): Likewise.
112891         * modules/stdbool (Makefile.am): Likewise.
112892         * modules/stdint (Makefile.am): Likewise.
112893         * modules/stdlib-safer (Makefile.am): Likewise.
112894         * modules/stpcpy (Makefile.am): Likewise.
112895         * modules/stpncpy (Makefile.am): Likewise.
112896         * modules/strcase (Makefile.am): Likewise.
112897         * modules/strcasestr (Makefile.am): Likewise.
112898         * modules/strchrnul (Makefile.am): Likewise.
112899         * modules/strcspn (Makefile.am): Likewise.
112900         * modules/strdup (Makefile.am): Likewise.
112901         * modules/strerror (Makefile.am): Likewise.
112902         * modules/strftime (Makefile.am): Likewise.
112903         * modules/strndup (Makefile.am): Likewise.
112904         * modules/strnlen (Makefile.am): Likewise.
112905         * modules/strpbrk (Makefile.am): Likewise.
112906         * modules/strsep (Makefile.am): Likewise.
112907         * modules/strstr (Makefile.am): Likewise.
112908         * modules/strtod (Makefile.am): Likewise.
112909         * modules/strtoimax (Makefile.am): Likewise.
112910         * modules/strtok_r (Makefile.am): Likewise.
112911         * modules/strtol (Makefile.am): Likewise.
112912         * modules/strtoll (Makefile.am): Likewise.
112913         * modules/strtoul (Makefile.am): Likewise.
112914         * modules/strtoull (Makefile.am): Likewise.
112915         * modules/strtoumax (Makefile.am): Likewise.
112916         * modules/strverscmp (Makefile.am): Likewise.
112917         * modules/sys_socket (Makefile.am): Likewise.
112918         * modules/sys_stat (Makefile.am): Likewise.
112919         * modules/sysexits (Makefile.am): Likewise.
112920         * modules/time_r (Makefile.am): Likewise.
112921         * modules/timegm (Makefile.am): Likewise.
112922         * modules/timespec (Makefile.am): Likewise.
112923         * modules/tmpfile-safer (Makefile.am): Likewise.
112924         * modules/trim (Makefile.am): Likewise.
112925         * modules/unistd-safer (Makefile.am): Likewise.
112926         * modules/unlinkdir (Makefile.am): Likewise.
112927         * modules/unlocked-io (Makefile.am): Likewise.
112928         * modules/userspec (Makefile.am): Likewise.
112929         * modules/utime (Makefile.am): Likewise.
112930         * modules/utimecmp (Makefile.am): Likewise.
112931         * modules/utimens (Makefile.am): Likewise.
112932         * modules/vasnprintf (Makefile.am): Likewise.
112933         * modules/vasprintf (Makefile.am): Likewise.
112934         * modules/vsnprintf (Makefile.am): Likewise.
112935         * modules/xalloc (Makefile.am): Likewise.
112936         * modules/xgetcwd (Makefile.am): Likewise.
112937         * modules/xnanosleep (Makefile.am): Likewise.
112938         * modules/xreadlink (Makefile.am): Likewise.
112939         * modules/xstrtod (Makefile.am): Likewise.
112940         * modules/xstrtol (Makefile.am): Likewise.
112941         * modules/xstrtold (Makefile.am): Likewise.
112942         * modules/yesno (Makefile.am): Likewise.
112943         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
112945 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112947         * modules/error (Makefile.am): Distribute files through
112948         EXTRA_DIST, not lib_SOURCES.
112950 2006-10-12  Eric Blake  <ebb9@byu.net>
112952         * modules/error (Makefile.am): Distribute files in /lib.
112953         * modules/obstack (Makefile.am): Likewise.
112955 2006-10-12  Bruno Haible  <bruno@clisp.org>
112957         * modules/acl (Makefile.am): Distribute all files in lib/ through
112958         EXTRA_DIST.
112959         * modules/arcfour (Makefile.am): Likewise.
112960         * modules/arctwo (Makefile.am): Likewise.
112961         * modules/argmatch (Makefile.am): Likewise.
112962         * modules/argz (Makefile.am): Likewise.
112963         * modules/atexit (Makefile.am): Likewise.
112964         * modules/backupfile (Makefile.am): Likewise.
112965         * modules/c-strtod (Makefile.am): Likewise.
112966         * modules/c-strtold (Makefile.am): Likewise.
112967         * modules/calloc (Makefile.am): Likewise.
112968         * modules/canon-host (Makefile.am): Likewise.
112969         * modules/canonicalize (Makefile.am): Likewise.
112970         * modules/chdir-long (Makefile.am): Likewise.
112971         * modules/chdir-safer (Makefile.am): Likewise.
112972         * modules/check-version (Makefile.am): Likewise.
112973         * modules/chown (Makefile.am): Likewise.
112974         * modules/cloexec (Makefile.am): Likewise.
112975         * modules/close-stream (Makefile.am): Likewise.
112976         * modules/closeout (Makefile.am): Likewise.
112977         * modules/crc (Makefile.am): Likewise.
112978         * modules/cycle-check (Makefile.am): Likewise.
112979         * modules/des (Makefile.am): Likewise.
112980         * modules/dirfd (Makefile.am): Likewise.
112981         * modules/dirname (Makefile.am): Likewise.
112982         * modules/dup2 (Makefile.am): Likewise.
112983         * modules/euidaccess (Makefile.am): Likewise.
112984         * modules/exclude (Makefile.am): Likewise.
112985         * modules/exitfail (Makefile.am): Likewise.
112986         * modules/fcntl-safer (Makefile.am): Likewise.
112987         * modules/file-type (Makefile.am): Likewise.
112988         * modules/fileblocks (Makefile.am): Likewise.
112989         * modules/filemode (Makefile.am): Likewise.
112990         * modules/filenamecat (Makefile.am): Likewise.
112991         * modules/fnmatch (Makefile.am): Likewise.
112992         * modules/fopen-safer (Makefile.am): Likewise.
112993         * modules/fpending (Makefile.am): Likewise.
112994         * modules/fprintftime (Makefile.am): Likewise.
112995         * modules/free (Makefile.am): Likewise.
112996         * modules/fsusage (Makefile.am): Likewise.
112997         * modules/ftruncate (Makefile.am): Likewise.
112998         * modules/fts (Makefile.am): Likewise.
112999         * modules/gc (Makefile.am): Likewise.
113000         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
113001         * modules/getaddrinfo (Makefile.am): Likewise.
113002         * modules/getcwd (Makefile.am): Likewise.
113003         * modules/getdelim (Makefile.am): Likewise.
113004         * modules/getdomainname (Makefile.am): Likewise.
113005         * modules/getgroups (Makefile.am): Likewise.
113006         * modules/gethostname (Makefile.am): Likewise.
113007         * modules/gethrxtime (Makefile.am): Likewise.
113008         * modules/getline (Makefile.am): Likewise.
113009         * modules/getloadavg (Makefile.am): Likewise.
113010         * modules/getlogin_r (Makefile.am): Likewise.
113011         * modules/getopt (Makefile.am): Likewise.
113012         * modules/getpass (Makefile.am): Likewise.
113013         * modules/getpass-gnu (Makefile.am): Likewise.
113014         * modules/getsubopt (Makefile.am): Likewise.
113015         * modules/gettime (Makefile.am): Likewise.
113016         * modules/gettimeofday (Makefile.am): Likewise.
113017         * modules/getugroups (Makefile.am): Likewise.
113018         * modules/getusershell (Makefile.am): Likewise.
113019         * modules/glob (Makefile.am): Likewise.
113020         * modules/group-member (Makefile.am): Likewise.
113021         * modules/hard-locale (Makefile.am): Likewise.
113022         * modules/hash (Makefile.am): Likewise.
113023         * modules/hmac-md5 (Makefile.am): Likewise.
113024         * modules/hmac-sha1 (Makefile.am): Likewise.
113025         * modules/human (Makefile.am): Likewise.
113026         * modules/idcache (Makefile.am): Likewise.
113027         * modules/imaxabs (Makefile.am): Likewise.
113028         * modules/imaxdiv (Makefile.am): Likewise.
113029         * modules/inet_ntop (Makefile.am): Likewise.
113030         * modules/inet_pton (Makefile.am): Likewise.
113031         * modules/inttostr (Makefile.am): Likewise.
113032         * modules/isapipe (Makefile.am): Likewise.
113033         * modules/lchown (Makefile.am): Likewise.
113034         * modules/long-options (Makefile.am): Likewise.
113035         * modules/lstat (Makefile.am): Likewise.
113036         * modules/malloc (Makefile.am): Likewise.
113037         * modules/mathl (Makefile.am): Likewise.
113038         * modules/mbchar (Makefile.am): Likewise.
113039         * modules/md2 (Makefile.am): Likewise.
113040         * modules/md4 (Makefile.am): Likewise.
113041         * modules/md5 (Makefile.am): Likewise.
113042         * modules/memcasecmp (Makefile.am): Likewise.
113043         * modules/memchr (Makefile.am): Likewise.
113044         * modules/memcmp (Makefile.am): Likewise.
113045         * modules/memcoll (Makefile.am): Likewise.
113046         * modules/memcpy (Makefile.am): Likewise.
113047         * modules/memmem (Makefile.am): Likewise.
113048         * modules/memmove (Makefile.am): Likewise.
113049         * modules/mempcpy (Makefile.am): Likewise.
113050         * modules/memrchr (Makefile.am): Likewise.
113051         * modules/memset (Makefile.am): Likewise.
113052         * modules/memxor (Makefile.am): Likewise.
113053         * modules/mkancesdirs (Makefile.am): Likewise.
113054         * modules/mkdir (Makefile.am): Likewise.
113055         * modules/mkdir-p (Makefile.am): Likewise.
113056         * modules/mkdtemp (Makefile.am): Likewise.
113057         * modules/mkstemp (Makefile.am): Likewise.
113058         * modules/mktime (Makefile.am): Likewise.
113059         * modules/modechange (Makefile.am): Likewise.
113060         * modules/mountlist (Makefile.am): Likewise.
113061         * modules/nanosleep (Makefile.am): Likewise.
113062         * modules/openat (Makefile.am): Likewise.
113063         * modules/pagealign_alloc (Makefile.am): Likewise.
113064         * modules/physmem (Makefile.am): Likewise.
113065         * modules/poll (Makefile.am): Likewise.
113066         * modules/posixtm (Makefile.am): Likewise.
113067         * modules/posixver (Makefile.am): Likewise.
113068         * modules/putenv (Makefile.am): Likewise.
113069         * modules/quote (Makefile.am): Likewise.
113070         * modules/quotearg (Makefile.am): Likewise.
113071         * modules/raise (Makefile.am): Likewise.
113072         * modules/read-file (Makefile.am): Likewise.
113073         * modules/readline (Makefile.am): Likewise.
113074         * modules/readlink (Makefile.am): Likewise.
113075         * modules/readtokens (Makefile.am): Likewise.
113076         * modules/readutmp (Makefile.am): Likewise.
113077         * modules/realloc (Makefile.am): Likewise.
113078         * modules/regex (Makefile.am): Likewise.
113079         * modules/rename (Makefile.am): Likewise.
113080         * modules/rename-dest-slash (Makefile.am): Likewise.
113081         * modules/rijndael (Makefile.am): Likewise.
113082         * modules/rmdir (Makefile.am): Likewise.
113083         * modules/rpmatch (Makefile.am): Likewise.
113084         * modules/safe-read (Makefile.am): Likewise.
113085         * modules/safe-write (Makefile.am): Likewise.
113086         * modules/same (Makefile.am): Likewise.
113087         * modules/save-cwd (Makefile.am): Likewise.
113088         * modules/savedir (Makefile.am): Likewise.
113089         * modules/setenv (Makefile.am): Likewise.
113090         * modules/settime (Makefile.am): Likewise.
113091         * modules/sha1 (Makefile.am): Likewise.
113092         * modules/sig2str (Makefile.am): Likewise.
113093         * modules/snprintf (Makefile.am): Likewise.
113094         * modules/stdlib-safer (Makefile.am): Likewise.
113095         * modules/stpcpy (Makefile.am): Likewise.
113096         * modules/stpncpy (Makefile.am): Likewise.
113097         * modules/strcase (Makefile.am): Likewise.
113098         * modules/strcasestr (Makefile.am): Likewise.
113099         * modules/strchrnul (Makefile.am): Likewise.
113100         * modules/strcspn (Makefile.am): Likewise.
113101         * modules/strdup (Makefile.am): Likewise.
113102         * modules/strerror (Makefile.am): Likewise.
113103         * modules/strftime (Makefile.am): Likewise.
113104         * modules/strndup (Makefile.am): Likewise.
113105         * modules/strnlen (Makefile.am): Likewise.
113106         * modules/strpbrk (Makefile.am): Likewise.
113107         * modules/strsep (Makefile.am): Likewise.
113108         * modules/strstr (Makefile.am): Likewise.
113109         * modules/strtod (Makefile.am): Likewise.
113110         * modules/strtoimax (Makefile.am): Likewise.
113111         * modules/strtok_r (Makefile.am): Likewise.
113112         * modules/strtol (Makefile.am): Likewise.
113113         * modules/strtoll (Makefile.am): Likewise.
113114         * modules/strtoul (Makefile.am): Likewise.
113115         * modules/strtoull (Makefile.am): Likewise.
113116         * modules/strtoumax (Makefile.am): Likewise.
113117         * modules/strverscmp (Makefile.am): Likewise.
113118         * modules/time_r (Makefile.am): Likewise.
113119         * modules/timegm (Makefile.am): Likewise.
113120         * modules/tmpfile-safer (Makefile.am): Likewise.
113121         * modules/unistd-safer (Makefile.am): Likewise.
113122         * modules/unlinkdir (Makefile.am): Likewise.
113123         * modules/userspec (Makefile.am): Likewise.
113124         * modules/utime (Makefile.am): Likewise.
113125         * modules/utimecmp (Makefile.am): Likewise.
113126         * modules/utimens (Makefile.am): Likewise.
113127         * modules/vasnprintf (Makefile.am): Likewise.
113128         * modules/vasprintf (Makefile.am): Likewise.
113129         * modules/vsnprintf (Makefile.am): Likewise.
113130         * modules/xalloc (Makefile.am): Likewise.
113131         * modules/xgetcwd (Makefile.am): Likewise.
113132         * modules/xnanosleep (Makefile.am): Likewise.
113133         * modules/xreadlink (Makefile.am): Likewise.
113134         * modules/xstrtod (Makefile.am): Likewise.
113135         * modules/xstrtol (Makefile.am): Likewise.
113136         * modules/xstrtold (Makefile.am): Likewise.
113137         * modules/yesno (Makefile.am): Likewise.
113139 2006-10-12  Jim Meyering  <jim@meyering.net>
113141         * m4/getloadavg.m4: Revert the change below.
113143         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
113144         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
113145         fail with a symlink, which is what coreutils' ./bootstrap now
113146         creates by default.
113148 2006-10-12  Bruno Haible  <bruno@clisp.org>
113150         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
113151         mingw.
113152         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
113153         MSVC and mingw explicitly.
113155 2006-10-11  Simon Josefsson  <jas@extundo.com>
113156             Bruno Haible  <bruno@clisp.org>
113158         Add support for multiple gnulib-tool invocations in the scope of a
113159         single configure.ac file.
113160         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
113161         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
113162         with the same contents as the _LIBADD variable.
113163         (func_emit_initmacro_start, func_emit_initmacro_end,
113164         func_emit_initmacro_done): New functions.
113165         (func_import, func_create_testdir): Invoke them. Allow the identifiers
113166         gl_LIBOBJS and gl_LTLIBOBJS.
113168 2006-10-11  Bruno Haible  <bruno@clisp.org>
113170         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
113171         (func_create_testdir): Don't create po/Makefile.am, don't invoke
113172         autoreconf. Instead, invoke autopoint explicitly but move back the
113173         *.m4 files from gnulib.
113175 2006-10-11  Bruno Haible  <bruno@clisp.org>
113177         * gnulib-tool (func_usage): Make module names after --create-testdir
113178         optional.
113179         (func_create_testdir): If no module was specified, use nearly all
113180         modules.
113182 2006-10-12  Jim Meyering  <jim@meyering.net>
113184         Big performance improvement for fts-based tools that use FTS_NOSTAT.
113185         Avoid spurious inode-mismatch problems on non-POSIX file systems.
113186         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
113187         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
113188         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
113189         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
113190         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
113191         (fts_set_stat_required): New function.
113192         (fts_open): Defer the calls to fts_stat, if possible or requested.
113193         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
113194         into fts_stat itself.
113195         (fts_read): Perform any required (deferred) fts_stat call.
113196         (fts_build): Likewise, for the directory we're about to open and read.
113197         In the readdir loop, carefully decide whether each entry will require
113198         an eventual call to fts_stat, using dirent.d_type info if available.
113199         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
113200         a command line argument into this function.  Update all callers.
113201         Map a return value of FTS_DOT to FTS_D for a command line argument.
113202         * modules/fts (Depends-on): Add d-type.  Alphabetize.
113203         Thanks to Miklos Szeredi for his tenacity and for the initial
113204         bug report about "find" failing on a FUSE-based file system.
113206         * lib/fts.c (fts_open): Use consistent indentation.
113208 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
113210         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
113211         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
113212         reported by Jim Meyering.  All uses of cache variables renamed
113213         to match Autoconf's.
113214         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
113215         the other one.
113217         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
113218         Fix misspelling in diagnostic.
113220 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
113222         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
113223         defined.  Problem reported by Matthew Woehlke.
113225         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
113226         Add support for Tandem NonStop R series.
113227         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
113228         Use new macro.
113230         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
113231         (has_trailing_slash): Omit size arg; all callers changed.
113232         Omit 'inline', since it doesn't help performance and we'd
113233         need to configure it.
113234         Don't count //, ///, etc. as having a trailing slash.
113235         As a side effect, this removes a C99ism reported by Matthew Woehlke.
113236         (rpl_rename_dest_slash): On failure, use rename's errno rather
113237         than (in some cases) an incorrect or junk errno.
113238         Simplify code by removing need to compute length; this does
113239         cause it to make two passes instead of one over the file name,
113240         but it's worth it.
113242         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
113243         change, since Autoconf's version may no longer be appropriate now
113244         that we are using CVS Autoconf's version.  Add support for Tandem.
113246 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
113247             Bruno Haible  <bruno@clisp.org>
113249         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
113250         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
113251         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
113252         gl_AC_TYPE_LONG_LONG.
113254         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
113255         instead of HAVE_LONG_LONG.
113256         * lib/printf-args.c (printf_fetchargs): Likewise.
113257         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
113258         * lib/vasnprintf.c (VASNPRINTF): Likewise.
113259         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
113260         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
113261         gl_AC_TYPE_LONG_LONG.
113263 2006-10-11  Bruno Haible  <bruno@clisp.org>
113265         * m4/longlong.m4: Add comments.
113266         * m4/ulonglong.m4: Likewise.
113268 2006-10-10  Bruno Haible  <bruno@clisp.org>
113270         Make it possible to #define stpcpy, strdup to aliases.
113271         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
113272         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
113274 2006-10-10  Bruno Haible  <bruno@clisp.org>
113276         Make it possible to #define gcd to an alias.
113277         * lib/gcd.c: Include config.h.
113279 2006-10-10  Bruno Haible  <bruno@clisp.org>
113281         Make it possible to #define c_isascii to an alias.
113282         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
113283         defined. Undefine the macros before defining them, to avoid gcc
113284         warnings.
113285         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
113286         define NO_C_CTYPE_MACROS early.
113288 2006-10-10  Bruno Haible  <bruno@clisp.org>
113290         Make it possible to #define set_program_name to an alias.
113291         * lib/progname.c: Don't undefine set_program_name; instead, undefine
113292         ENABLE_RELOCATABLE early.
113294 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
113296         Port to Tandem NSK OSS, which has 64-bit signed int but at most
113297         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
113298         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
113299         More generally, don't assume that 64-bit signed int is available
113300         if unsigned int is, and vice versa.
113301         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
113302         unsigned symbols, not on their signed counterparts.
113303         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
113304         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
113305         (UINT64_C, UINTMAX_C):
113306         Likewise.
113307         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
113308         unsigned counterparts.
113309         (Have_long_long, Unsigned): New macros.
113310         (Int): Renamed from INT.
113311         (strtoimax): Use the new macros.
113312         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
113313         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
113314         * modules/inttypes (inttypes.h): Substitute
113315         HAVE_UNSIGNED_LONG_LONG_INT.
113316         * modules/stdint (stdint.h): Likewise.
113317         (Files): Add m4/ulonglong.m4.
113319 2006-10-10  Bruno Haible  <bruno@clisp.org>
113321         Fix a gcc -Wshadow warning.
113322         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
113323         to 'bucket'.
113324         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
113325         gl_linked_indexof_from_to): Likewise.
113326         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
113327         Likewise.
113328         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
113329         Likewise.
113330         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
113331         Reported by Eric Blake.
113333 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
113335         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
113336         for NetBSD.  Problem reported by Bruno Haible.
113338 2006-10-09  Jim Meyering  <jim@meyering.net>
113340         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
113341         Patch from Bruno Haible.
113343 2006-10-09  Jim Meyering  <jim@meyering.net>
113345         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
113346         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
113347         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
113349 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
113351         Don't include <config.h> twice; this doesn't work in some cases,
113352         e.g., when config.h has "#define intmax_t long long int" and
113353         we include <config.h>, <inttypes.h>, <config.h> in that order.
113354         Problem reported by Matthew Woehlke in:
113355         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
113356         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
113357         * lib/fts-cycle.c: Don't include config.h.
113358         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
113359         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
113360         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
113361         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
113362         inttypes.h.
113363         * lib/xstrtoumax.c: Likewise.
113364         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
113365         __strtol and the like, so that this module is more like its siblings.
113366         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
113367         Remove; no longer needed now that we assume gnulib inttypes.h.
113369 2006-10-08  Bruno Haible  <bruno@clisp.org>
113371         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
113372         option.
113374 2006-10-07  Jim Meyering  <jim@meyering.net>
113376         * modules/inttypes (inttypes.h): Revert what seems to have been
113377         an inadvertent part of today's change: use "|", not "/" in the
113378         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
113380 2006-10-07  Bruno Haible  <bruno@clisp.org>
113382         * modules/sublist: New file.
113384 2006-10-07  Bruno Haible  <bruno@clisp.org>
113386         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
113387         * modules/argz (argz.h): Likewise.
113388         * modules/arpa_inet (arpa/inet.h): Likewise.
113389         * modules/byteswap (byteswap.h): Likewise.
113390         * modules/configmake (configmake.h): Likewise.
113391         * modules/fcntl (fcntl.h): Likewise.
113392         * modules/fnmatch (fnmatch.h): Likewise.
113393         * modules/getopt (getopt.h): Likewise.
113394         * modules/glob (glob.h): Likewise.
113395         * modules/inttypes (inttypes.h): Likewise.
113396         * modules/netinet_in (netinet/in.h): Likewise.
113397         * modules/poll (poll.h): Likewise.
113398         * modules/stdbool (stdbool.h): Likewise.
113399         * modules/stdint (stdint.h): Likewise.
113400         * modules/sys_select (sys/select.h): Likewise.
113401         * modules/sys_socket (sys/socket.h): Likewise.
113402         * modules/sys_stat (sys/stat.h): Likewise.
113403         * modules/sysexits (sysexits.h): Likewise.
113404         * modules/unistd (unistd.h): Likewise.
113405         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113406         Add a "DO NOT EDIT" comment to the generated file.
113407         (func_import): Likewise for gnulib-comp.m4.
113409 2006-10-07  Bruno Haible  <bruno@clisp.org>
113411         * lib/gl_sublist.h: New file.
113412         * lib/gl_sublist.c: New file.
113414 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
113416         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
113417         name (relative to the original working directory) and the file
113418         name component (relative to the temporary working directory).  All
113419         callers changed.
113420         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
113421         * lib/mkdir-p.c (make_dir_parents): Likewise.
113422         * lib/mkdir-p.h (make_dir_parents): Likewise.
113424 2006-10-06  Eric Blake  <ebb9@byu.net>
113426         Define several macros for use by the clean-temp module.
113427         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
113428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
113429         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
113431         * lib/clean-temp.h (close_stream_temp): New declaration.
113432         * lib/clean-temp.c (includes): Pull in headers according to what
113433         other modules are in use.
113434         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
113436 2006-10-06  Bruno Haible  <bruno@clisp.org>
113438         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
113439         instead of fopen, fwriteerror.
113441 2006-10-06  Bruno Haible  <bruno@clisp.org>
113443         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
113444         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
113445         int.
113446         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
113447         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
113448         Return an error indicator.
113449         Suggested by Eric Blake.
113451 2006-10-06  Bruno Haible  <bruno@clisp.org>
113453         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
113454         Reported by Eric Blake.
113456 2006-10-06  Bruno Haible  <bruno@clisp.org>
113458         * modules/closeout (Description): Mention stderr too.
113460 2006-10-06  Bruno Haible  <bruno@clisp.org>
113461         and Paul Eggert  <eggert@cs.ucla.edu>
113463         * lib/closeout.c (close_stdout): Also close stderr.
113464         * lib/closeout.h: Update comment.
113466 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
113468         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
113469         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
113470         * lib/dirchownmod.c: Include lchown.h.
113471         * lib/lchown.c: Don't include files that lchown.h now includes.
113472         Don't declare chown, since lchown.h now does that.
113473         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
113474         (lchown): Define to rpl_chown if lchown is declared but
113475         does not exist.  Declare using a prototype if lchown is not
113476         declared.  Add a copyright notice.
113477         * lib/mkstemp.h: Include <unistd.h>.
113478         * lib/openat.c: Include lchown.h.
113480         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
113481         we now test for that separately.
113482         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
113483         rather than O_NOFOLLOW, when testing whether it's possible to
113484         avoid a race condition reliably.
113485         * lib/savewd.c (savewd_chdir): Likewise.
113487         Remove macros that are no longer needed now that stdint.h is
113488         reliable.
113489         * lib/fsusage.c (UINTMAX_MAX): Remove.
113490         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
113491         * lib/utimecmp.c (SIZE_MAX): Remove.
113493         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
113495         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
113496         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
113497         O_NOATIME works.
113499 2006-10-05  Bruno Haible  <bruno@clisp.org>
113501         * lib/gl_list.h (gl_sortedlist_search_from_to,
113502         gl_sortedlist_indexof_from_to): New declarations.
113503         (gl_list_implementation): New fields sortedlist_search_from_to,
113504         sortedlist_indexof_from_to.
113505         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
113506         inline functions.
113507         * lib/gl_list.c (gl_sortedlist_search_from_to,
113508         gl_sortedlist_indexof_from_to): New functions.
113509         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
113510         function.
113511         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
113512         (gl_array_sortedlist_search_from_to): New function.
113513         (gl_array_list_implementation): Update.
113514         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
113515         function.
113516         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
113517         (gl_carray_sortedlist_search_from_to): New function.
113518         (gl_carray_list_implementation): Update.
113519         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
113520         gl_linked_sortedlist_indexof_from_to): New functions.
113521         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
113522         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
113523         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
113524         gl_tree_sortedlist_indexof_from_to): New functions.
113525         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
113526         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
113527         Update.
113528         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
113529         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
113530         Update.
113532 2006-10-05  Bruno Haible  <bruno@clisp.org>
113534         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
113535         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
113536         (struct gl_list_implementation): Add fields search_from_to,
113537         indexof_from_to. Remove fields search, indexof.
113538         (gl_list_search): Use the search_from_to method.
113539         (gl_list_search_from, gl_list_search_from_to): New functions.
113540         (gl_list_indexof): Use the indexof_from_to method.
113541         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113542         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
113543         (gl_list_search_from, gl_list_search_from_to): New functions.
113544         (gl_list_indexof): Use the indexof_from_to method.
113545         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113546         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
113547         gl_array_indexof. Add start_index, end_index arguments.
113548         (gl_array_search_from_to): Renamed from gl_array_search. Add
113549         start_index, end_index arguments.
113550         (gl_array_remove, gl_array_list_implementation): Update.
113551         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
113552         gl_carray_indexof. Add start_index, end_index arguments.
113553         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
113554         start_index, end_index arguments.
113555         (gl_carray_remove, gl_carray_list_implementation): Update.
113556         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
113557         gl_linked_search. Add start_index, end_index arguments.
113558         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
113559         start_index, end_index arguments.
113560         (gl_linked_remove): Update.
113561         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
113562         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
113563         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
113564         field to 'size_t'.
113565         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
113566         gl_tree_search. Add start_index, end_index arguments.
113567         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113568         start_index, end_index arguments.
113569         (gl_tree_remove): Update.
113570         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
113571         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
113572         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
113573         function.
113574         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
113575         gl_tree_search. Add start_index, end_index arguments.
113576         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113577         start_index, end_index arguments.
113578         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
113579         Update.
113580         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
113582 2006-10-05  Bruno Haible  <bruno@clisp.org>
113584         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
113586         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
113587         fwriteerror_temp): New declarations.
113588         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
113589         (descriptors): New variable.
113590         (cleanup): First, close the descriptors.
113591         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
113592         fclose_temp, fwriteerror_temp): New functions.
113594 2006-10-04  Jim Meyering  <jim@meyering.net>
113596         * lib/fts.c (fts_open): Tiny comment change.
113598 2006-10-04  Bruno Haible  <bruno@clisp.org>
113600         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
113601         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
113602         gl_LOCK_BODY.
113603         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
113604         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
113605         gl_LOCK_EARLY_BODY.
113606         (gl_LOCK): Require gl_LOCK_BODY.
113608 2006-10-04  Bruno Haible  <bruno@clisp.org>
113610         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
113611         (gl_oset_search_atleast): New declaration.
113612         (struct gl_oset_implementation): Add field 'search_atleast'.
113613         (gl_oset_search_atleast): New inline function.
113614         * lib/gl_oset.c (gl_oset_search_atleast): New function.
113615         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
113616         (gl_array_oset_implementation): Update.
113617         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
113618         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
113619         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
113621 2006-10-04  Bruno Haible  <bruno@clisp.org>
113623         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
113625 2006-10-03  Bruno Haible  <bruno@clisp.org>
113627         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
113628         from gl_avltreehash_list_implementation.
113630 2006-10-03  Bruno Haible  <bruno@clisp.org>
113632         * lib/gl_oset.c (gl_oset_add): Fix return type.
113634 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
113636         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
113638 2006-10-02  Eric Blake  <ebb9@byu.net>
113640         * modules/strnlen (Depends-on): Add extensions.
113642 2006-10-02  Eric Blake  <ebb9@byu.net>
113644         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
113645         definition in 2.60+.
113647 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
113649         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
113650         checks.
113652 2006-10-02  Bruno Haible  <bruno@clisp.org>
113654         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
113655         to the AUTOMAKE_OPTIONS.
113656         Reported by Jim Meyering.
113658 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
113660         Work around bug in Solaris 10 /proc file system:
113661         /proc/self/fd/NNN/.. isn't the parent directory of
113662         the directory whose file descriptor is NNN.  This needs to
113663         be worked around at run time, not compile time, since a
113664         program might be built on Solaris 8, where things work, and
113665         run on Solaris 10.
113666         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
113667         to use the following interface instead:
113668         (OPENAT_BUFFER_SIZE): New macro.
113669         (openat_proc_name): New function.
113670         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
113671         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
113672         Likewise.
113673         * lib/openat-proc.c: New file.
113674         * modules/openat (Files): Add lib/openat-proc.c.
113675         (Depends-on): Add same-inode, stdbool.
113676         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
113678 2006-09-29  Bruno Haible  <bruno@clisp.org>
113680         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
113681         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
113682         argument. Set stdout_closed before testing for ferror, not after.
113683         (fwriteerror, fwriteerror_no_ebadf): New functions.
113685 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113687         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
113689 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
113691         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
113692         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
113694 2006-09-28  Jim Meyering  <jim@meyering.net>
113696         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
113697         Include <unistd.h>.
113699 2006-09-28  Bruno Haible  <bruno@clisp.org>
113701         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
113702         * modules/linkedhash-list (Depends-on): Likewise.
113703         * modules/rbtreehash-list (Depends-on): Likewise.
113705 2006-09-28  Bruno Haible  <bruno@clisp.org>
113707         * lib/strndup.h: Simplify the redefinition of strndup.
113708         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
113709         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
113711 2006-09-28  Bruno Haible  <bruno@clisp.org>
113713         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
113714         * lib/gl_linkedhash_list.c: Likewise.
113715         * lib/gl_rbtreehash_list.c: Likewise.
113717 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
113719         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
113720         getaddrinfo.
113722         * lib/__fpending.h: Don't include <stdio_ext.h> unless
113723         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
113724         it causes <stdio_ext.h> to cause a compile-time error.
113725         Problem reported by Nelson H. F. Beebe.
113726         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
113727         of HAVE_DECL___PENDING.
113729         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
113730         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
113731         declaration.
113733 2006-09-27  Jim Meyering  <jim@meyering.net>
113735         This file could end up with a definition for a function
113736         named __strndup, rather than rpl_strndup on a system with
113737         incomplete weak_alias support.
113738         * lib/strndup.c (strndup): Rename from __strndup.
113739         Remove #defines that used to map __strndup to strndup.
113740         Don't use K&R prototypes.
113741         Remove LIBC-related code, since this file is not sync'd with glibc.
113742         * lib/strndup.h: Revamp, accordingly.
113743         * m4/strndup.m4: Modernize.
113745 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
113747         * modules/savewd (Depends-on): Add 'raise'.
113748         * lib/savewd.c: Include <signal.h>, for 'raise'.
113750 2006-09-26  Jim Meyering  <jim@meyering.net>
113752         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
113753         when we detect Darwin 8.7.0's acl_get_file bug.
113754         Rearrange to perform the new (below) run-test while $LIBS
113755         contains any acl-related library.  Set USE_ACL at the end.
113756         (gl_ACL_GET_FILE): New function.
113758 2006-09-26  Eric Blake  <ebb9@byu.net>
113760         * lib/verror.c: Include <config.h> unconditionally.
113762 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
113764         * modules/clock-time (Maintainer): Add self.
113765         * modules/getlogin_r (Depends-on): Add extensions.
113767 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113769         * modules/clock-time: New module.
113770         * modules/nanosleep (Depends-on): Add clock-time.
113771         * modules/gethrxtime (Depends-on): Likewise.
113772         * modules/gettime (Depends-on): Likewise.
113773         * modules/settime (Depends-on): Likewise.
113775         * modules/fts-lgpl: Depend on openat.
113776         * modules/mkancesdirs: Depend on savewd.
113777         * modules/mkdir-p: Likewise.
113779 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113781         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
113783         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
113784         `gl_have_arbitrary_file_name_length_limit' to
113785         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
113786         actually works between configure runs.
113788 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113789             Bruno Haible  <bruno@clisp.org>
113791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
113793 2006-09-25  Jim Meyering  <jim@meyering.net>
113795         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
113796         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
113798 2006-09-25  Eric Blake  <ebb9@byu.net>
113800         * gnulib-tool (func_import, func_create_testdir): Fix typos in
113801         exec's in 2006-09-18 patch when shuffling fds.
113803 2006-09-25  Bruno Haible  <bruno@clisp.org>
113805         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
113806         Reported by Jim Meyering.
113808 2006-09-24  Jim Meyering  <jim@meyering.net>
113810         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
113811         compare a pointer against a literal "0".  That caused failures with
113812         at least HP-UX's hpcc.
113814 2006-09-22  Simon Josefsson  <jas@extundo.com>
113816         * modules/gc-sha1:
113817         * modules/gc-md4:
113818         * modules/gc-hmac-sha1:
113819         * modules/gc-hmac-md5:
113820         * modules/gc-des:
113821         * modules/gc-arcfour: Distribute more files.
113823 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113825         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
113826         (gl_linked_iterator_from_to): Initialize struct completely.
113827         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
113828         (gl_tree_iterator_from_to): Likewise
113829         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
113830         * lib/gl_array_list.c [lint] (gl_array_iterator)
113831         (gl_array_iterator_from_to): Likewise.
113832         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
113833         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
113834         (gl_carray_iterator_from_to): Likewise.
113836         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
113837         * lib/md4.c (md4_process_block): Remove unused variable.
113838         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
113839         parentheses for clarity.
113841 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113843         * modules/bison-i18n (Depends-on): Add gettext.
113845 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113847         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
113848         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
113849         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
113850         also add missing comma that caused broken test.
113851         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
113852         stdlib.h, for `abort'.
113853         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
113854         variables.
113855         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
113856         include unistd.h if present, for `rmdir'.
113857         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
113858         variables.
113859         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
113860         in the process include standard headers for prototypes.
113861         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
113862         gets declared on GNU/Linux.
113863         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
113864         unistd.h, for `rmdir'.
113865         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
113867         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
113868         always true.
113869         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
113871         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
113873 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113875         * gnulib-tool (func_version): Create output all at once.  This
113876         may help avoid triggering unnecessary SIGPIPEs, and at any
113877         rate it doesn't hurt.
113879 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113880             Bruno Haible  <bruno@clisp.org>
113882         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
113883         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
113884         * m4/signed.m4 (bh_C_SIGNED): Likewise.
113886         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
113887         (gl_FUNC_VASPRINTF): Invoke it.
113889 2006-09-22  Bruno Haible  <bruno@clisp.org>
113891         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
113892         getloadavg.c as first argument.
113894 2006-09-22  Bruno Haible  <bruno@clisp.org>
113896         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
113897         at the beginning of the gl_INIT macro.
113898         * modules/getloadavg (configure.ac): Pass $gl_source_base to
113899         gl_GETLOADAVG.
113901 2006-09-22  Bruno Haible  <bruno@clisp.org>
113903         * gnulib-tool (func_create_megatestdir): Don't include the config-h
113904         module.
113905         Suggested by Ralf Wildenhues.
113907 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113909         Import this patch from libc:
113911         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
113913         * lib/regex_internal.c (re_string_reconstruct): Handle
113914         offset < pstr->valid_raw_len && pstr->offsets_needed case.
113915         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
113916         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
113917         re_string_context_at.
113919         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
113920         now requires it.
113921         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
113922         gl_REGEX now does it for us.
113923         (gl_REGEX): Add test taken from
113924         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
113926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
113927         Check that large offsets work.  Modernize Autoconf usages.
113928         Prefer "yes" to mean a good thing rather than a bad.
113929         Don't put "#define mkstemp" in config.h, as this might interfere
113930         with standard system headers that "#define mkstemp mkstemp64".
113932         * modules/mkstemp (Depends-on): Add extensions, so that
113933         mkstemp is visible on some platforms.
113934         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
113935         (Include): Change to "mkstemp.h" from <stdlib.h>.
113936         (Files): Add mkstemp.h.
113938         * lib/mkstemp.h: New file, since some standard headers
113939         #define mkstemp.
113940         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
113941         Include "mkstemp.h".
113942         Make the _LIBC code resemble glibc original more,
113943         e.g., use K&R style.
113944         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
113945         (mkstemp): Remove, since mkstemp.h does this for us.
113946         * lib/stdlib--.h: Include mkstemp.h.
113948         Import this patch from libc:
113950         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113952         * lib/tempname.c (__gen_tempname): Change attempts_min
113953         into a macro.  Use preprocessor to decide how to initialize
113954         attempts [Coverity CID 67].
113956 2006-09-20  Bruno Haible  <bruno@clisp.org>
113958         * lib/mkdtemp.c: Import from libc.
113959         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113960                 * sysdeps/posix/tempname.c (__gen_tempname): Change
113961                 attempts_min into a macro.  Use preprocessor to decide how to
113962                 initialize attempts [Coverity CID 67].
113963         2001-11-27  Paul Eggert  <eggert@twinsun.com>
113964                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
113965                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
113967 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113969         * gnulib-tool (func_exit): New function, to allow to pass the
113970         exit status portably through the trap.  Use everywhere.
113971         (--help, --version): Signal a write error.
113972         (trap): catch SIGPIPE, for write errors.
113973         Exit at the end of the trap, with the correct exit status.
113975 2006-09-19  Karl Berry  <karl@gnu.org>
113977         * doc/gnulib.texi: note about the license texinfo files.
113979 2006-09-19  Eric Blake  <ebb9@byu.net>
113981         * gnulib-tool: Avoid space-tab.
113983 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113985         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
113986         that prevented coreutils 6.1 from building.  Problem reported
113987         by Petter Reinholdtsen.
113989 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113991         * gnulib-tool (avoidlist): Fix typo that broke options like
113992         --avoid=lock that are used by coreutils bootstrap.
113994 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
113996         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
113997         more systematically.
113999 2006-09-18  Jim Meyering  <jim@meyering.net>
114001         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
114003 2006-09-18  Bruno Haible  <bruno@clisp.org>
114005         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
114007 2006-09-18  Bruno Haible  <bruno@clisp.org>
114009         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
114010         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
114011         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
114012         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
114013         * m4/gettext.m4: Require autoconf >= 2.52.
114014         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
114015         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
114016         of gl_cv_header_inttypes_h.
114018 2006-09-18  Bruno Haible  <bruno@clisp.org>
114020         * lib/javaversion.c: Include configmake.h.
114022 2006-09-18  Bruno Haible  <bruno@clisp.org>
114024         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
114025         avoid that the while loops be executed in a subshell.
114027 2006-09-18  Bruno Haible  <bruno@clisp.org>
114029         * MODULES.html.sh (func_module): Break long lines.
114030         Suggested by Bruce Korb <bkorb@gnu.org>.
114032 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114034         Speed up by a factor of 1.12.
114035         * gnulib-tool (nl): New variable.
114036         (func_import): Rewrite include directive extraction to only read each
114037         directive once.
114039 2006-09-17  Bruno Haible  <bruno@clisp.org>
114041         * modules/javaversion (Makefile.am): Remove DEFS setting.
114042         (Depends-on): Add configmake, for PKGDATADIR definition.
114044 2006-09-17  Bruno Haible  <bruno@clisp.org>
114046         * gnulib-tool (func_create_testdir): Rewrite all files at once.
114048 2006-09-17  Bruno Haible  <bruno@clisp.org>
114050         * gnulib-tool (func_append): New function, stolen from libtool.m4.
114051         (func_modules_transitive_closure, func_modules_add_dummy,
114052         func_modules_to_filelist, func_import, func_create_testdir,
114053         func_create_megatestdir, ...): Use it wherever possible.
114054         Suggested by Ralf Wildenhues.
114056 2006-09-16  Karl Berry  <karl@gnu.org>
114058         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
114059         to avoid sectioning errors.
114060         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
114061         [ifinfo]: blank line after @center-ed titles.
114062         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
114063         Spell FSF address consistently with others.
114064         (These changes approved by rms.)
114066 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114068         Speed up by a factor of 1.61.
114069         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
114070         already checked module names again.
114072 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114074         Speed up by a factor of 1.13.
114075         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
114076         for new_files, and the input to func_add_or_update.
114078 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114080         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
114081         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
114083 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
114085         * modules/mkancesdirs (Depends-on): Add fcntl.
114086         * modules/savewd: New file.
114087         * MODULES.html.sh (File system functions): Add savewd.
114089         * modules/configmake (Makefile.am): Add support for the
114090         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
114092 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
114094         * m4/savewd.m4: New file.
114096 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
114098         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
114099         (dirchownmod): New arg FD.  All callers changed.
114100         Use FD rather than opening the directory ourself, as opening is
114101         now the caller's responsibility.
114102         * lib/dirchownmod.h: Likewise.
114103         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
114104         hosts that require <sys/types.h> before <sys/stat.h>.  Include
114105         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
114106         (test_dir): Remove.
114107         (mkancesdirs): Return length of prefix of FILE that has already
114108         been made, or -2 if there is a child doing the work.  Redo
114109         algorithm so that it is O(N) rather than O(N**2).  Optimize away
114110         ".", and treat ".." specially since it might stray back into
114111         already-created areas.  Use a subprocess if necessary.  New arg
114112         WD; all users changed.  MAKE_DIR function should now return 1
114113         if it creates a directory that is not readable.  Return -2 if
114114         a child process is spun off.
114115         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
114116         Adjust signature to match code.
114117         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
114118         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
114119         all users changed.
114120         * lib/savewd.c, lib/savewd.h: New files.
114122 2006-09-15  Jim Meyering  <jim@meyering.net>
114124         * modules/rename-dest-slash: New module.
114125         * MODULES.html.sh (posix_compat): Add it here.
114127         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
114129 2006-09-15  Jim Meyering  <jim@meyering.net>
114131         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
114132         file.
114134         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
114136 2006-09-15  Jim Meyering  <jim@meyering.net>
114138         * lib/rename-dest-slash.c (has_trailing_slash): Use
114139         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
114140         (rpl_rename_dest_slash): Perform the cheaper trailing slash
114141         test before testing whether SRC is a directory.
114142         Suggestions from Bruno Haible.
114144         Avoid a warning about an unused variable.
114145         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
114146         into the #ifdef block where it's used.
114148         * lib/rename-dest-slash.c: New file.
114150 2006-09-14  Bruno Haible  <bruno@clisp.org>
114152         * lib/allocsa.c: Include <config.h> unconditionally.
114153         * lib/asnprintf.c: Likewise.
114154         * lib/asprintf.c: Likewise.
114155         * lib/c-strcasecmp.c: Likewise.
114156         * lib/c-strcasestr.c: Likewise.
114157         * lib/c-strncasecmp.c: Likewise.
114158         * lib/c-strstr.c: Likewise.
114159         * lib/classpath.c: Likewise.
114160         * lib/clean-temp.c: Likewise.
114161         * lib/concatpath.c: Likewise.
114162         * lib/copy-file.c: Likewise.
114163         * lib/csharpcomp.c: Likewise.
114164         * lib/csharpexec.c: Likewise.
114165         * lib/execute.c: Likewise.
114166         * lib/fatal-signal.c: Likewise.
114167         * lib/findprog.c: Likewise.
114168         * lib/fwriteerror.c: Likewise.
114169         * lib/gl_array_list.c: Likewise.
114170         * lib/gl_array_oset.c: Likewise.
114171         * lib/gl_avltree_list.c: Likewise.
114172         * lib/gl_avltree_oset.c: Likewise.
114173         * lib/gl_avltreehash_list.c: Likewise.
114174         * lib/gl_carray_list.c: Likewise.
114175         * lib/gl_linked_list.c: Likewise.
114176         * lib/gl_linkedhash_list.c: Likewise.
114177         * lib/gl_list.c: Likewise.
114178         * lib/gl_oset.c: Likewise.
114179         * lib/gl_rbtree_list.c: Likewise.
114180         * lib/gl_rbtree_oset.c: Likewise.
114181         * lib/gl_rbtreehash_list.c: Likewise.
114182         * lib/imaxabs.c: Likewise.
114183         * lib/imaxdiv.c: Likewise.
114184         * lib/javacomp.c: Likewise.
114185         * lib/javaexec.c: Likewise.
114186         * lib/javaversion.c: Likewise.
114187         * lib/linebreak.c: Likewise.
114188         * lib/localcharset.c: Likewise.
114189         * lib/lock.c: Likewise.
114190         * lib/mbchar.c: Likewise.
114191         * lib/mbswidth.c: Likewise.
114192         * lib/mkdtemp.c: Likewise.
114193         * lib/pipe.c: Likewise.
114194         * lib/printf-args.c: Likewise.
114195         * lib/printf-parse.c: Likewise.
114196         * lib/progname.c: Likewise.
114197         * lib/progreloc.c: Likewise.
114198         * lib/readlink.c: Likewise.
114199         * lib/sh-quote.c: Likewise.
114200         * lib/stpcpy.c: Likewise.
114201         * lib/stpncpy.c: Likewise.
114202         * lib/strcasecmp.c: Likewise.
114203         * lib/strcasestr.c: Likewise.
114204         * lib/strcspn.c: Likewise.
114205         * lib/striconv.c: Likewise.
114206         * lib/strncasecmp.c: Likewise.
114207         * lib/strnlen1.c: Likewise.
114208         * lib/strstr.c: Likewise.
114209         * lib/strtok_r.c: Likewise.
114210         * lib/tls.c: Likewise.
114211         * lib/tmpdir.c: Likewise.
114212         * lib/unicodeio.c: Likewise.
114213         * lib/unsetenv.c: Likewise.
114214         * lib/vasnprintf.c: Likewise.
114215         * lib/vasprintf.c: Likewise.
114216         * lib/wait-process.c: Likewise.
114217         * lib/xallocsa.c: Likewise.
114218         * lib/xsetenv.c: Likewise.
114219         * lib/xstriconv.c: Likewise.
114221 2006-09-13  Simon Josefsson  <jas@extundo.com>
114223         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
114224         that internally, suggested by Ralf Wildenhues
114225         <Ralf.Wildenhues@gmx.de>.
114227 2006-09-13  Simon Josefsson  <jas@extundo.com>
114229         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
114230         @LIBOBJS@.
114231         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114233 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
114235         * lib/_fpending.c: Include <config.h> unconditionally, since we no
114236         longer worry about uses that don't define HAVE_CONFIG_H.
114237         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
114238         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
114239         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
114240         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
114241         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
114242         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
114243         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
114244         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
114245         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
114246         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
114247         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
114248         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
114249         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
114250         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
114251         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
114252         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
114253         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
114254         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
114255         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
114256         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
114257         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
114258         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
114259         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
114260         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
114261         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
114262         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
114263         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
114264         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
114265         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
114266         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
114267         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
114268         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
114269         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
114270         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
114271         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
114272         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
114273         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
114274         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
114275         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
114276         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
114277         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
114278         Likewise.
114280 2006-09-13  Eric Blake  <ebb9@byu.net>
114282         * lib/getopt.c: Fix typo in last commit.
114284 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
114286         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
114287         dgettext.
114289 2006-09-12  Jim Meyering  <jim@meyering.net>
114291         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
114292         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
114293         Reported by Nelson H. F. Beebe.
114295 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114297         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
114298         program_invocation_name and program_invocation_short_name are
114299         initialized.
114300         * lib/argp-namefrob.h: Move declarations of program_invocation_name
114301         and program_invocation_short_name to argp.h, so they are visible
114302         to user programs.
114303         * lib/argp.h: Likewise
114305 2006-09-10  Bruno Haible  <bruno@clisp.org>
114307         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
114308         m4/inttypes_h.m4, m4/uintmax_t.m4.
114310 2006-09-10  Bruno Haible  <bruno@clisp.org>
114312         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
114313         gl_AC_TYPE_UINTMAX_T.
114315 2006-09-10  Bruno Haible  <bruno@clisp.org>
114317         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
114319 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114321         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
114322         convention.  Text proposed by Bruno Haible.
114323         (struct argp_option): Document the use of N_() wrappers.
114325         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
114326         '\v', and translate the two parts separately, instead of feeding
114327         the whole string to gettext.  This allows to exclude
114328         '\v' from the strings visible to the translator by writing doc
114329         strings as N_("..") "\v" N_("..").
114331 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
114333         * config/srclist.txt: Undo latest change; the bug was fixed.
114335 2006-09-09  Bruno Haible  <bruno@clisp.org>
114337         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
114338         assignments if building a library without libtool.
114339         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
114340         in func_emit_lib_Makefile_am.
114341         (func_import): When building a static library libfoo.a, arrange to
114342         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
114343         (func_create_testdir): Likewise.
114344         * modules/gc (configure.ac, Makefile.am): If building statically,
114345         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
114346         * modules/iconvme (configure.ac, Makefile.am): Likewise.
114347         * modules/striconv (configure.ac, Makefile.am): Likewise.
114348         Based on a suggestion by Ralf Wildenhues.
114350 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114352         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
114353         Check for unistd.h too, since Autoconf doesn't assume POSIX.
114354         Also:
114356         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114357         Add year_2050_test to catch glibc bug 2821
114358         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
114360         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114361         Prefer #ifdef to #if.
114363         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
114364         Return from 'main' instead of calling 'exit'.
114366 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114368         * lib/mktime.c (guess_time_tm): Fix bug where mktime
114369         returned the maximum time_t value rather than (time_t) -1.
114370         Problem originally reported by William Bardwell
114371         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
114373         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
114374         Moved to here ...
114375         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
114376         ... from here.
114378 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114380         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
114381         2821 is fixed.
114383 2006-09-08  Jim Meyering  <jim@meyering.net>
114385         Don't make generated files read-only.  That would bother too many
114386         people.  However, do retain the ability to work when targets are
114387         read-only: remove the destination and temporary files before writing
114388         them (when generated via sed or echo), or by using the -f option for
114389         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
114390         * modules/alloca-opt, modules/argz, modules/arpa_inet:
114391         * modules/byteswap, modules/configmake, modules/fcntl:
114392         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
114393         * modules/localcharset, modules/netinet_in, modules/poll:
114394         * modules/stdbool, modules/stdint, modules/sys_select:
114395         * modules/sys_socket, modules/sys_stat, modules/sysexits:
114397 2006-09-08  Jim Meyering  <jim@meyering.net>
114399         Avoid new build failure on FreeBSD 6.0.
114400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
114401         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
114402         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
114404 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114406         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
114408 2006-09-07  Jim Meyering  <jim@meyering.net>
114410         Fix global typo in last change: use chmod u-w, not chmod u-x.
114411         Spotted by Paul Eggert and Bruce Korb.
114412         * modules/alloca-opt, modules/argz, modules/arpa_inet:
114413         * modules/byteswap, modules/configmake, modules/fcntl:
114414         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
114415         * modules/localcharset, modules/netinet_in, modules/poll:
114416         * modules/stdbool, modules/stdint, modules/sys_select:
114417         * modules/sys_socket, modules/sys_stat, modules/sysexits:
114419 2006-09-06  Jim Meyering  <jim@meyering.net>
114421         Make generated files be read-only.
114422         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
114423         Ensure that each generated file is now read-only.
114424         * modules/argz: Likewise.
114425         * modules/arpa_inet: Likewise.
114426         * modules/byteswap: Likewise.
114427         * modules/configmake: Likewise.
114428         * modules/fcntl: Likewise.
114429         * modules/fnmatch: Likewise.
114430         * modules/getopt: Likewise.
114431         * modules/glob: Likewise.
114432         * modules/inttypes: Likewise.
114433         * modules/netinet_in: Likewise.
114434         * modules/poll: Likewise.
114435         * modules/stdbool: Likewise.
114436         * modules/stdint: Likewise.
114437         * modules/sys_select: Likewise.
114438         * modules/sys_socket: Likewise.
114439         * modules/sys_stat: Likewise.
114440         * modules/sysexits: Likewise.
114441         * modules/localcharset: Same as above, but continue using temporary
114442         file named "t-$@" (why different?) rather than the "$@-t" used
114443         everywhere else.
114445         * modules/sysexits (Makefile.am): Replace literal occurrences
114446         of "sysexit.h" more readable, and more consistent, "$@".
114448 2006-09-06  Bruno Haible  <bruno@clisp.org>
114450         * modules/striconv: New file.
114451         * modules/xstriconv: New file.
114452         * MODULES.html.sh (Internationalization functions): Add striconv,
114453         xstriconv.
114455 2006-09-06  Bruno Haible  <bruno@clisp.org>
114457         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
114458         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
114459         not using libtool correctly.
114461 2006-09-06  Bruno Haible  <bruno@clisp.org>
114463         * lib/striconv.h: New file.
114464         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
114465         iconvstring.c.
114466         * lib/xstriconv.h: New file.
114467         * lib/xstriconv.c: New file.
114469 2006-09-06  Bruno Haible  <bruno@clisp.org>
114471         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
114472         lib_..._LDFLAGS.
114474 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114476         * lib/argz_.h: Sync from Libtool.
114478         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
114479                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114481         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
114483 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
114485         * modules/trim: New file.
114487 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
114489         * lib/trim.h: New file.
114490         * lib/trim.c: New file.
114492 2006-09-05  Bruno Haible  <bruno@clisp.org>
114494         * MODULES.html.sh (String handling): Add trim.
114496 2006-09-04  Karl Berry  <karl@gnu.org>
114498         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
114499         until next release.
114501 2006-09-03  Bruno Haible  <bruno@clisp.org>
114503         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
114504         correctly.
114506 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114508         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
114509         not gl_GETLOADAVG.  Omit unneeded semicolons.
114510         Problems reported by Ralf Wildenhues in
114511         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
114512         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
114513         at the end, which is the usual gnulib style.
114515         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
114516         of doing all the work ourselves.
114517         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
114518         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
114520 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114522         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
114523         Problem reported by Ralf Wildenhues in
114524         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
114526         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
114527         HAVE_STRUCT_STATFS_F_FSTYPENAME.
114529 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114531         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
114532         yesterday's patch by changing test -n to test -z.
114534 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114536         * modules/getloadavg (Files): Add m4/getloadavg.m4.
114537         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
114538         the former is now obsolescent.
114540         * modules/chdir-long (Depends-on): Add fcntl.
114542 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114544         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
114545         obsolescent, and programs should use gnulib instead.
114546         * m4/getloadavg.m4: New file, with contents taken from Autoconf
114547         but with prefixes changed.
114549 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114551         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
114552         or stdbool.h, because they might not exist while configuring.
114554         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
114555         Don't include unistd.h or limits.h; not needed, since chdir-long.h
114556         does that for us.
114557         (O_DIRECTORY): Remove.
114559 2006-08-31  Eric Blake  <ebb9@byu.net>
114561         * gnulib-tool: Don't let emacs change spaces to TAB.
114563 2006-08-31  Bruno Haible  <bruno@clisp.org>
114565         * gnulib-tool: When calling func_import more than once, do it in a
114566         subshell.
114567         Reported by Eric Blake <ebb9@byu.net>.
114569 2006-08-31  Bruno Haible  <bruno@clisp.org>
114571         * gnulib-tool (nl): Remove variable.
114572         (sed_transform_lib_file): Use more robust test for config-h module.
114573         (func_import): Fix typo in 2006-08-25 patch.
114575 2006-08-31  Bruno Haible  <bruno@clisp.org>
114577         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
114578         specified, augment Makefile.am variables instead of assigning them.
114580 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114582         Work around a bug in both the Linux and SunOS 64-bit kernels:
114583         nanosleep mishandles sleeps for longer than 2**31 seconds.
114584         Problem reported by Frank v Waveren in
114585         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
114587         Check for nanosleep bug.
114588         (LIB_NANOSLEEP): Append clock_gettime library if needed.
114590 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114592         Work around a bug in both the Linux and SunOS 64-bit kernels:
114593         nanosleep mishandles sleeps for longer than 2**31 seconds.
114594         Problem reported by Frank v Waveren in
114595         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114596         * lib/nanosleep.c (BILLION): New constant.
114597         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
114598         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
114599         implementation.
114601 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114603         * modules/nanosleep (Depends-on): Add gettime.
114605 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114606         and Simon Josefsson  <jas@extundo.com>
114607         and Oskar Liljeblad  <oskar@osk.mine.nu>
114609         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
114610         * gnulib-tool (func_import): New license type 'unmodifiable license
114611         text'.
114612         * modules/fdl: Use it.  Longer description.
114613         * module/gpl, module/lgpl: New files.
114615 2006-08-30  Jim Meyering  <jim@meyering.net>
114617         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
114618         shadowing the parameter.
114620 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114622         Sync from Libtool:
114624         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114626         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
114627         sharing with gnulib.  Report by Eric Blake.
114629 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114631         * modules/isapipe: New file.
114632         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
114634 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114636         * modules/configmake (Makefile.am): Add a comment, and omit
114637         the CONFIGMAKE_ prefix from generated macro names.  Suggested
114638         by Bruno Haible.
114640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114642         * m4/isapipe.m4: New file.
114644 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114646         * lib/isapipe.c, lib/isapipe.h: New files.
114648 2006-08-29  Jim Meyering  <jim@meyering.net>
114650         * modules/configmake (Makefile.am): Make configmake.h depend on
114651         Makefile.  Otherwise, a stale configmake.h could hang around.
114653 2006-08-29  Eric Blake  <ebb9@byu.net>
114655         * lib/error.c (error_at_line, print_errno_message): Match libc, after
114656         resolution of upstream bug 3044.
114658 2006-08-29  Bruno Haible  <bruno@clisp.org>
114660         * modules/localcharset (Depends-on): Add configmake.
114661         (Makefile.am): Remove setting of LIBDIR through DEFS.
114663 2006-08-29  Bruno Haible  <bruno@clisp.org>
114665         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
114666         defined.
114668 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114670         * modules/fcntl: New file.
114671         * modules/chdir-safer (Depends-on): Add fcntl.
114672         * modules/fts: Likewise.
114673         * modules/mkdir-p: Likewise.
114675         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
114676         This undoes the most recent change, since we're now addressing the
114677         problem in a different way.
114679         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
114680         into output, since the output might be called Makefile.am even
114681         if $makefile_name is something different.
114682         (func_import): Use $makefile_am rather than
114683         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
114684         empty.
114686         * modules/inttypes (Files): Add m4/inttypes-h.m4.
114688 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114690         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
114691         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
114692         recent change to stdint.m4, since we're now addressing the problem in a
114693         different way.
114695 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114697         * m4/fcntl_h.m4: New file.
114699 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114701         * lib/fcntl_.h: New file.
114702         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
114703         the fcntl module.
114704         * lib/dirchownmod.c: Likewise.
114705         * lib/fts.c: Likewise.
114707         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
114708         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
114709         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
114710         just before including <inttypes.h>, to avoid circular inclusion.
114712 2006-08-28  Jim Meyering  <jim@meyering.net>
114714         * doc/visibility.texi: Actually read and correct the grammar of the
114715         sentence affected by yesterday's change.
114717 2006-08-28  Eric Blake  <ebb9@byu.net>
114719         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
114720         needs wrapper.
114722 2006-08-28  Eric Blake  <ebb9@byu.net>
114724         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
114726 2006-08-28  Eric Blake  <ebb9@byu.net>
114728         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
114730 2006-08-28  Bruno Haible  <bruno@clisp.org>
114732         * modules/c-strstr: New file, from GNU gettext.
114733         * MODULES.html.sh (String handling): Add c-strstr.
114735 2006-08-28  Bruno Haible  <bruno@clisp.org>
114737         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
114738         macros.
114739         Reported by Eric Blake.
114741 2006-08-28  Bruno Haible  <bruno@clisp.org>
114743         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
114744         (VASNPRINTF): Return a string of length > INT_MAX without failing.
114745         * lib/vasprintf.c: Include errno.h, limits.h.
114746         (EOVERFLOW): New fallback definition.
114747         (vasprintf): Test here whether the string length is > INT_MAX.
114748         * lib/vsnprintf.c: Include errno.h, limits.h.
114749         (EOVERFLOW): New fallback definition.
114750         (vsnprintf): Fix bug when generated string was too long for the buffer.
114751         Test here whether the string length is > INT_MAX.
114753 2006-08-28  Bruno Haible  <bruno@clisp.org>
114755         * lib/inttypes_.h (SCNX*): Remove definitions.
114756         Reported by Eric Blake.
114758 2006-08-28  Bruno Haible  <bruno@clisp.org>
114760         * lib/c-strstr.h: New file, from GNU gettext.
114761         * lib/c-strstr.c: New file, from GNU gettext.
114763 2006-08-28  Bruno Haible  <bruno@clisp.org>
114765         * gnulib-tool: Reorder some statements.
114767 2006-08-28  Bruno Haible  <bruno@clisp.org>
114769         * gnulib-tool: New option --makefile-name.
114770         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
114771         $makefile_name.
114772         (func_import): Write $makefile_name to the cache file, and read it from
114773         there unless explicitly specified. Use $makefile_name as file name
114774         instead of Makefile.am. Adjust the recommendations accordingly.
114776 2006-08-28  Bruno Haible  <bruno@clisp.org>
114778         * gnulib-tool (func_verify_module): Check against misapplying patch.
114780 2006-08-28  Bruno Haible  <bruno@clisp.org>
114782         * gnulib-tool (func_relativize, func_relconcat): New functions.
114783         Give an error if --local-dir is given with --update.
114784         Remove trailing slashes from $local_gnulib_dir.
114785         (func_import): Store the relativized $local_gnulib_dir in
114786         gnulib-cache.m4, and read it from there if not specified explicitly.
114788 2006-08-28  Bruno Haible  <bruno@clisp.org>
114790         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
114791         is the current directory. Respect also $local_gnulib_dir.
114793 2006-08-28  Bruno Haible  <bruno@clisp.org>
114794             Simon Josefsson  <jas@extundo.com>
114796         BeOS portability.
114797         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
114799 2006-08-27  Jim Meyering  <jim@meyering.net>
114801         * doc/visibility.texi: Remove duplicate word: "pointer".
114803 2006-08-26  Bruno Haible  <bruno@clisp.org>
114805         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
114806         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
114807         (Makefile.am): Create inttypes.h from inttypes_.h.
114808         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
114810         * modules/imaxabs: New file.
114812         * modules/imaxdiv: New file.
114814 2006-08-26  Bruno Haible  <bruno@clisp.org>
114816         * m4/inttypes.m4: New file.
114817         * m4/_inttypes_h.m4: Remove file.
114818         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
114819         PRI_MACROS_BROKEN.
114820         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
114822         * m4/imaxabs.m4: New file.
114824         * m4/imaxdiv.m4: New file.
114826 2006-08-26  Bruno Haible  <bruno@clisp.org>
114828         * lib/inttypes_.h: New file.
114829         * lib/inttypes.h: Remove file.
114830         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
114832         * lib/imaxabs.c: New file.
114834         * lib/imaxdiv.c: New file.
114836 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114838         New config-h module, so that "make" output needn't be cluttered
114839         by -DHAVE_CONFIG_H.
114840         * MODULES.html.sh (Support for building libraries and executables):
114841         Add config-h.
114842         * modules/config-h: New file.
114843         * gnulib-tool (nl, sed_transform_lib_file): New vars.
114844         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
114845         the config-h module is used.
114847         New configmake module, so that "make" output needn't be cluttered
114848         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
114849         * MODULES.html.sh (Support for building libraries and executables):
114850         Add configmake.
114851         * modules/configmake: New file.
114853 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114855         * m4/config-h.m4: New file.
114857 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114859         * config/srclist.txt: Add elisp-comp.
114861 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114863         * MODULES.html.sh (Support for building libraries and executables):
114864         Add elisp-comp.
114865         * build-aux/elisp-comp: New file.
114866         * modules/elisp-comp: New file.
114868 2006-08-24  Bruno Haible  <bruno@clisp.org>
114870         * gnulib-tool (func_create_testdir): Use non-default values of
114871         sourcebase and m4base.
114873 2006-08-24  Bruno Haible  <bruno@clisp.org>
114875         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
114876         HTML structure.
114878 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114880         * modules/openat (Depends-on): Add lchown.
114882 2006-08-23  Bruno Haible  <bruno@clisp.org>
114884         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
114885         of gl_LOCK_EARLY instead of gl_LOCK.
114887 2006-08-23  Bruno Haible  <bruno@clisp.org>
114889         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
114890         on OSF/1 to no.
114891         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
114893 2006-08-23  Bruno Haible  <bruno@clisp.org>
114895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
114896         as unusable.
114898         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
114899         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
114900         (gl_LOCK): New macro.
114902 2006-08-22  Simon Josefsson  <jas@extundo.com>
114904         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
114905         to md5 module.
114907 2006-08-22  Simon Josefsson  <jas@extundo.com>
114909         * MODULES.html.sh: Add "Support for maintaining and release
114910         projects".
114912         * build-aux/gnupload: New file, from coreutils.
114914 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114916         Avoid the need for AC_LIBSOURCES in m4 macros.
114917         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
114918         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
114919         * modules/check-version (EXTRA_DIST): Add check-version.h.
114920         * modules/crc (EXTRA_DIST): Add crc.h.
114921         * modules/des (EXTRA_DIST): Add des.h.
114922         * modules/gc (EXTRA_DIST): Add gc.h.
114923         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
114924         * modules/getline (EXTRA_DIST): Add getline.h.
114925         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
114926         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
114927         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
114928         * modules/md2 (EXTRA_DIST): Add md2.h.
114929         * modules/md4 (EXTRA_DIST): Add md4.h.
114930         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
114931         * modules/read-file (EXTRA_DIST): Add read-file.h.
114932         * modules/readline (EXTRA_DIST): Add readline.h.
114933         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
114934         rijndael-api-fst.h.
114936 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114938         * m4/rijndael.m4 (gl_ARCFOUR):
114939         * m4/arctwo.m4 (gl_ARCTWO):
114940         * m4/check-version.m4 (gl_CHECK_VERSION):
114941         * m4/crc.m4 (gl_CRC):
114942         * m4/des.m4 (gl_DES):
114943         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
114944         * m4/gc.m4 (gl_GC):
114945         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
114946         * m4/getline.m4 (gl_FUNC_GETLINE):
114947         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
114948         * m4/hmac-md5.m4 (gl_HMAC_MD5):
114949         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
114950         * m4/md2.m4 (gl_MD2):
114951         * m4/md4.m4 (gl_MD4):
114952         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
114953         * m4/read-file.m4 (gl_FUNC_READ_FILE):
114954         * m4/readline.m4 (gl_FUNC_READLINE):
114955         * m4/rijndael.m4 (gl_RIJNDAEL):
114956         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114957         to get the necessary .h files and whatnot.
114959 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114961         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
114962         gnulib rather than the other way around.
114963         * config/srclistvars.sh (COREUTILS): Remove.
114965 2006-08-22  Jim Meyering  <jim@meyering.net>
114967         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
114969         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
114971 2006-08-22  Eric Blake  <ebb9@byu.net>
114973         * modules/regexprops-generic: New file.
114974         * MODULES.html.sh (Support for building documentation): List it.
114976 2006-08-22  Eric Blake  <ebb9@byu.net>
114978         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
114979         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
114980         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
114981         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
114983 2006-08-22  Bruno Haible  <bruno@clisp.org>
114985         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
114986         and lib_LTLIBRARIES like the other lib_* variables.
114988 2006-08-22  Bruno Haible  <bruno@clisp.org>
114990         * build-aux/x-to-1.in: New file, from GNU gettext.
114992 2006-08-22  Bruno Haible  <bruno@clisp.org>
114994         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
114995         <utmpx.h> exists.
114997 2006-08-22  Bruno Haible  <bruno@clisp.org>
114999         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
115000         <utmpx.h> exists.
115002 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
115004         BeOS portability.
115005         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
115006         exist.
115007         Problem reported by Bruno Haible.
115009 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
115011         Avoid the need for AC_LIBSOURCES in m4 macros.
115012         * modules/acl (EXTRA_DIST): Add acl.h.
115013         * modules/argmatch (Files): Add m4/argmatch.m4.
115014         (configure.ac): Add gl_ARGMATCH.
115015         (EXTRA_DIST): Renamed from lib_SOURCES, for
115016         consistency with the other modules.  Remove argmatch.c.
115017         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
115018         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
115019         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
115020         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
115021         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
115022         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
115023         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
115024         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
115025         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
115026         * modules/closeout (EXTRA_DIST): Add closeout.h.
115027         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
115028         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
115029         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
115030         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
115031         dirname.h; remove basename.c and stripslash.c.
115032         * modules/exclude (EXTRA_DIST): Add exclude.h.
115033         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
115034         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
115035         * modules/file-type (EXTRA_DIST): Add file-type.h.
115036         * modules/filemode (EXTRA_DIST): Add filemode.h.
115037         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
115038         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
115039         * modules/fpending (EXTRA_DIST): Add __fpending.h.
115040         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
115041         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
115042         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
115043         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
115044         * modules/getdate (EXTRA_DIST): Add getdate.c.
115045         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
115046         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
115047         * modules/getpass (EXTRA_DIST): Add getpass.h.
115048         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
115049         * modules/group-member (EXTRA_DIST): Add group-member.h.
115050         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
115051         * modules/hash (EXTRA_DIST): Add hash.h.
115052         * modules/human (EXTRA_DIST): Add human.h.
115053         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
115054         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
115055         * modules/lchown (EXTRA_DIST): Add lchown.h.
115056         * modules/long-options (EXTRA_DIST): Add long-options.h.
115057         * modules/lstat (EXTRA_DIST): Add lstat.h.
115058         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
115059         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
115060         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
115061         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
115062         * modules/memxor (EXTRA_DIST): Add memxor.h.
115063         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
115064         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
115065         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
115066         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
115067         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
115068         * modules/physmem (EXTRA_DIST): Add physmem.h.
115069         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
115070         * modules/posixver (EXTRA_DIST): Add posixver.h.
115071         * modules/quote (EXTRA_DIST): Add quote.h.
115072         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
115073         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
115074         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
115075         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
115076         regex_internal.h regexec.c.
115077         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
115078         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
115079         * modules/same (EXTRA_DIST): Add same.h.
115080         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
115081         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
115082         * modules/savedir (EXTRA_DIST): Add savedir.h.
115083         * modules/sha1 (EXTRA_DIST): Add sha1.h.
115084         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
115085         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
115086         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
115087         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
115088         * modules/strdup (EXTRA_DIST): Add strdup.h.
115089         * modules/strftime (EXTRA_DIST): Add strftime.h.
115090         * modules/strndup (EXTRA_DIST): Add strndup.h.
115091         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
115092         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
115093         * modules/time_r (EXTRA_DIST): Add time_r.h.
115094         * modules/timespec (EXTRA_DIST): Add timespec.h.
115095         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
115096         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
115097         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
115098         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
115099         * modules/userspec (EXTRA_DIST): Add userspec.h.
115100         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
115101         * modules/utimens (EXTRA_DIST): Add utimens.h.
115102         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
115103         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
115104         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
115105         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
115106         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
115107         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
115108         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
115109         * modules/yesno (EXTRA_DIST): Add yesno.h.
115111 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
115113         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
115115         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
115116         * m4/dev-ino.m4, same-inode.m4: Remove.
115118         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
115119         * m4/acl.m4 (AC_FUNC_ACL):
115120         * m4/backupfile.m4 (gl_BACKUPFILE):
115121         * m4/c-strtod.m4 (gl_C99_STRTOLD):
115122         * m4/canon-host.m4 (gl_CANON_HOST):
115123         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
115124         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
115125         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
115126         * m4/cloexec.m4 (gl_CLOEXEC):
115127         * m4/close-stream.m4 (gl_CLOSE_STREAM):
115128         * m4/closeout.m4 (gl_CLOSEOUT):
115129         * m4/dirfd.m4 (gl_FUNC_DIRFD):
115130         * m4/dirname.m4 (gl_DIRNAME):
115131         * m4/exclude.m4 (gl_EXCLUDE):
115132         * m4/exitfail.m4 (gl_EXITFAIL):
115133         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
115134         * m4/file-type.m4 (gl_FILE_TYPE):
115135         * m4/filemode.m4 (gl_FILEMODE):
115136         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
115137         * m4/fpending.m4 (gl_FUNC_FPENDING):
115138         * m4/fprintftime.m4 (gl_FPRINTFTIME):
115139         * m4/fts.m4 (gl_FUNC_FTS):
115140         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
115141         * m4/getdate.m4 (gl_GETDATE):
115142         * m4/gethrxtime.m4 (gl_GETHRXTIME):
115143         * m4/getpagesize.m4 (gl_GETPAGESIZE):
115144         * m4/getpass.m4 (gl_FUNC_GETPASS):
115145         * m4/gettime.m4 (gl_GETTIME):
115146         * m4/getugroups.m4 (gl_GETUGROUPS):
115147         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
115148         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
115149         * m4/hard-locale.m4 (gl_HARD_LOCALE):
115150         * m4/hash.m4 (gl_HASH):
115151         * m4/idcache.m4 (gl_IDCACHE):
115152         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
115153         * m4/lchown.m4 (gl_FUNC_LCHOWN):
115154         * m4/long-options.m4 (gl_LONG_OPTIONS):
115155         * m4/lstat.m4 (gl_FUNC_LSTAT):
115156         * m4/md5.m4 (gl_MD5):
115157         * m4/memcasecmp.m4 (gl_MEMCASECMP):
115158         * m4/memcoll.m4 (gl_MEMCOLL):
115159         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
115160         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
115161         * m4/memxor.m4 (gl_MEMXOR):
115162         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
115163         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
115164         * m4/modechange.m4 (gl_MODECHANGE):
115165         * m4/mountlist.m4 (gl_MOUNTLIST):
115166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
115167         * m4/openat.m4 (gl_FUNC_OPENAT):
115168         * m4/pathmax.m4 (gl_PATHMAX):
115169         * m4/physmem.m4 (gl_PHYSMEM):
115170         * m4/posixtm.m4 (gl_POSIXTM):
115171         * m4/posixver.m4 (gl_POSIXVER):
115172         * m4/quote.m4 (gl_QUOTE):
115173         * m4/quotearg.m4 (gl_QUOTEARG):
115174         * m4/readtokens.m4 (gl_READTOKENS):
115175         * m4/readutmp.m4 (gl_READUTMP):
115176         * m4/regex.m4 (gl_REGEX):
115177         * m4/safe-read.m4 (gl_SAFE_READ):
115178         * m4/safe-write.m4 (gl_SAFE_WRITE):
115179         * m4/same.m4 (gl_SAME):
115180         * m4/save-cwd.m4 (gl_SAVE_CWD):
115181         * m4/savedir.m4 (gl_SAVEDIR):
115182         * m4/settime.m4 (gl_SETTIME):
115183         * m4/sha1.m4 (gl_SHA1):
115184         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
115185         * m4/stat-macros.m4 (gl_STAT_MACROS):
115186         * m4/stat-time.m4 (gl_STAT_TIME):
115187         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
115188         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
115189         * m4/strdup.m4 (gl_FUNC_STRDUP):
115190         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
115191         * m4/strndup.m4 (gl_FUNC_STRNDUP):
115192         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
115193         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
115194         * m4/time_r.m4 (gl_TIME_R):
115195         * m4/timespec.m4 (gl_TIMESPEC):
115196         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
115197         * m4/unlinkdir.m4 (gl_UNLINKDIR):
115198         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
115199         * m4/userspec.m4 (gl_USERSPEC):
115200         * m4/utimecmp.m4 (gl_UTIMECMP):
115201         * m4/utimens.m4 (gl_UTIMENS):
115202         * m4/xalloc.m4 (gl_XALLOC):
115203         * m4/xgetcwd.m4 (gl_XGETCWD):
115204         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
115205         * m4/xreadlink.m4 (gl_XREADLINK):
115206         * m4/xstrtod.m4 (gl_XSTRTOD):
115207         * m4/yesno.m4 (gl_YESNO):
115208         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
115209         to get the necessary .h files and whatnot.
115211 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
115212             Bruno Haible  <bruno@clisp.org>
115214         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
115215         /bin/sh understanding of '!' conditional negation.
115217 2006-08-21  Jim Meyering  <jim@meyering.net>
115219         * modules/openat (Depends-on): Really alphabetize.
115221         * modules/acl (Depends-on): Add error and quote.
115223         * check-module (find_included_lib_files): Add at-func.c to the
115224         ok-to-include-more-than-once white list.
115226         * modules/openat (Depends-on): Add lstat.  Alphabetize.
115228 2006-08-21  Bruno Haible  <bruno@clisp.org>
115230         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115231         Emit a pkgdata_DATA variable only if some snippets add contents to it.
115232         Reported by Martin Lambers <marlam@marlam.de>.
115234 2006-08-21  Bruno Haible  <bruno@clisp.org>
115236         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
115237         specify an installation location, don't emit a noinst_LIBRARIES or
115238         noinst_LTLIBRARIES assignment.
115240 2006-08-21  Bruno Haible  <bruno@clisp.org>
115242         BeOS portability.
115243         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
115244         BeOS has mbrtowc() but no <wctype.h>.
115246 2006-08-21  Bruno Haible  <bruno@clisp.org>
115248         BeOS portability.
115249         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
115250         exist.
115252 2006-08-21  Bruno Haible  <bruno@clisp.org>
115254         BeOS portability.
115255         * lib/mbchar.h: Include <wctype.h> only if it exists.
115257 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115259         Remove files that are no longer needed by their respective modules.
115260         * m4/obstack.m4: Remove.
115261         * m4/strerror_r.m4: Remove.
115262         * m4/uint32_t.m4: Remove.
115263         * m4/uintptr_t.m4: Remove.
115264         * m4/ullong_max.m4: Remove.
115265         * m4/xstrtoimax.m4: Remove.
115266         * m4/xstrtoumax.m4: Remove.
115268         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
115269         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
115270         dependencies now capture this.
115272         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
115273         Do not use AC_LIBSOURCES, since gnulib modules now do this.
115274         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
115275         * m4/human.m4 (gl_HUMAN): Likewise.
115276         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
115277         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
115279         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
115281         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
115282         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
115283         stdint.
115284         * m4/human.m4 (gl_HUMAN): Likewise.
115285         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
115286         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
115287         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
115288         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
115289         * m4/xstrtol (gl_XSTRTOL): Likewise.
115291         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
115292         AC_TYPE_LONG_LONG_INT.
115293         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
115294         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
115295         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
115296         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
115298         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
115299         on stdbool.
115301         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
115302         (gl_PREREQ_XSTRTOUL): Remove.
115304         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
115306         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
115307         mode.
115309 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115311         Add and change modules to make it easier for coreutils to use
115312         gnulib-tool.
115313         * modules/backupfile (Files): Remove m4/d-ino.m4.
115314         (Depends-on): Add d-ino.
115315         * modules/cycle-check (Depends-on): Add stdint.
115316         (lib_SOURCES): Add cycle-check.h.
115317         * modules/d-ino: New module.
115318         * modules/d-type: New module.
115319         * modules/error (Files): Remove m4/strerror_r.m4.
115320         * modules/filemode (Files): Add m4/st_dm_mode.m4.
115321         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
115322         m4/inttypes_h.m4, m4/uintmax_t.m4.
115323         (Depends-on): Add stdint.
115324         (lib_SOURCES): Add fsusage.h.
115325         * modules/getcwd (Files): Remove d-ino.m4.
115326         (Depends-on): Add d-ino.
115327         * modules/getndelim2 (Depends-on): Add stdint.
115328         * modules/glob (Files): Remove m4/d-type.m4.
115329         (Depends-on): Add d-type.
115330         * modules/host-os: New module.
115331         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
115332         m4/inttypes_h.m4, m4/uintmax_t.m4.
115333         * Depends-on: Add stdint.
115334         (lib_SOURCES): Add human.h.
115335         * modules/inttostr (Files): Remove m4/intmax_t.m4,
115336         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
115337         m4/uintmax_t.m4, m4/ulonglong.m4.
115338         (Depends-on): Add stdint.
115339         (EXTRA_DIST): Add inttostr.h.
115340         * modules/lchmod: New module.
115341         * modules/link-follow: New module.
115342         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
115343         (Depends-on): Add lchmod.
115344         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
115345         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
115346         (Depends-on): Add stdint.
115347         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
115348         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
115349         (Depends-on): Add stdint.
115350         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
115351         * modules/perl: New module.
115352         * modules/regex (Depends-on): Add stdint.
115353         * modules/rmdir-errno: New module.
115354         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
115355         m4/intmax_t.m4.
115356         (Depends-on): Add stdint.
115357         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
115358         m4/uintmax_t.m4.
115359         (Depends-on): Add stdint.
115360         * modules/unlink-busy: New module.
115361         * modules/utimecmp (Depends-on): Add stdint.
115362         * modules/uptime: New module.
115363         * modules/winsz-ioctl: New module.
115364         * modules/winsz-termios: New module.
115365         * modules/xnanosleep (Depends-on): Add nanosleep.
115366         * modules/ullong_max: Remove.
115367         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
115368         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
115369         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
115370         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
115371         (Depends-on): Add inttypes.
115372         (lib_SOURCES): Add xstrtol.h.
115373         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
115374         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
115375         * MODULES.html.sh: Move 'assert' into the assert section.
115376         Move 'dummy' into the linking section.
115377         Remove ullong_max.
115378         Add section for compatibility checks for POSIX:2001 functions,
115379         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
115380         winsz-ioctl, and winsz-termios into it.
115381         Add lchmod.
115382         Add top-level Misc section and put host-os, perl, and uptime
115383         into it.
115385 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115387         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
115388         now assume the stdint module.  Do not include inttypes.h.
115389         * lib/fsusage.h: Likewise.
115390         * lib/getndelim2.c: Likewise.
115391         * lib/human.h: Likewise.
115392         * lib/inttostr.h: Likewise.
115393         * lib/obstack.c: Likewise.
115394         * lib/regex_internal.h: Likewise.
115395         * lib/tempname.c: Likewise.
115396         * lib/utimecmp.c: Likewise.
115397         * lib/xstrtol.h: Likewise.
115399         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
115401         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
115402         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
115403         * lib/xtime.h: Likewise.
115405 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115407         * modules/openat (Files): Add lib/fchmodat.c.
115408         Fixes problem reported by Jay Youngman.
115410 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115412         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
115413         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
115415 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
115416             Bruno Haible  <bruno@clisp.org>
115418         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
115419         and is a script that invokes bison. Tighten the code. Add comments.
115421 2006-08-18  Jim Meyering  <jim@meyering.net>
115423         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
115424         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
115425         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
115426         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
115428 2006-08-18  Bruno Haible  <bruno@clisp.org>
115430         * modules/bison-i18n: New file.
115431         * MODULES.html.sh (Internationalization functions): Add it.
115433 2006-08-18  Bruno Haible  <bruno@clisp.org>
115435         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
115436         sys/statvfs.h. When getmntinfo was found, check its declaration and
115437         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
115439 2006-08-18  Bruno Haible  <bruno@clisp.org>
115441         * m4/bison-i18n.m4: New file, from bison.
115443 2006-08-18  Bruno Haible  <bruno@clisp.org>
115445         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
115446         (ME_DUMMY): Treat "kernfs" as a dummy.
115447         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
115449 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115451         Update from coreutils.
115453         2006-08-15  Jim Meyering  <jim@meyering.net>
115455         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
115457         2006-01-17  Jim Meyering  <jim@meyering.net>
115459         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
115461         2006-01-11  Jim Meyering  <jim@meyering.net>
115463         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
115464         Check for the lchmod function.
115466 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115468         Update from coreutils.
115470         * lib/__fpending.h: Add copyright notice.
115471         * lib/fprintftime.h: Likewise.
115472         * lib/savedir.c: Use (C) in copyright notice.
115473         * lib/savedir.h: Likewise.
115475         2006-08-15  Jim Meyering  <jim@meyering.net>
115477         * lib/at-func.c: New file, with the logic of all emulated at-functions.
115478         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
115479         in support of the EXPECTED_ERRNO macro.
115480         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
115481         definitions.  Instead, define the appropriate symbols and include
115482         "at-func.c".
115483         * lib/mkdirat.c (mkdirat): Likewise.
115484         * lib/fchmodat.c (fchmodat): Likewise.
115485         (ENOSYS): Remove definition.
115486         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
115487         it.  Don't include "unistd--.h" -- it wasn't ever used.
115489         2006-01-17  Jim Meyering  <jim@meyering.net>
115491         Rewrite fts.c not to change the current working directory,
115492         by using openat, fstatat, fdopendir, etc..
115494         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
115495         (HAVE_OPENAT_SUPPORT): Define.
115496         [_LIBC] (fchdir): Don't undef or define; no longer used.
115497         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
115498         Now, this `function' always succeeds, and consumes its file descriptor
115499         parameter -- so callers must not close such FDs.  Update callers.
115500         (diropen_fd, opendirat, cwd_advance_fd): New functions.
115501         (diropen): Add parameter, SP.  Adjust all callers.
115502         Implement using diropen_fd, rather than open.
115503         (fts_open): Initialize new member, fts_cwd_fd.
115504         Remove fts_rft-setting code.
115505         (fts_close): Close fts_cwd_fd, if necessary.
115506         (__opendir2): Define in terms of opendir or opendirat,
115507         depending on whether the FST_NOCHDIR flag is set.
115508         (fts_build): Since fts_safe_changedir consumes its FD, and since
115509         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
115510         and close the dup'd file descriptor upon failure.
115511         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
115512         (fts_safe_changedir): Tweak semantics to reflect that this function
115513         now calls cwd_advance_fd and hence consumes its FD argument.
115514         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
115515         [struct FTS] (fts_rft): Remove now-unused member.
115516         [struct FTS] (fts_cycle.state): Improve comment.
115518         * lib/openat.c (openat_needs_fchdir): New function.
115519         * lib/openat.h (openat_needs_fchdir): Declare it.
115521 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
115523         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
115524         Problem and fix reported by Pádraig Brady in
115525         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
115527 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115529         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
115531 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115533         * lib/memcoll.c (memcoll): Optimize for the common case where the
115534         arguments are bytewise equal.
115536 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115538         * doc/regexprops-generic.texi: Add a copyright notice.
115540 2006-08-15  Bruno Haible  <bruno@clisp.org>
115542         * modules/tmpdir (License): Change to LGPL.
115544 2006-08-15  Bruno Haible  <bruno@clisp.org>
115546         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
115547         module.
115549 2006-08-14  Simon Josefsson  <jas@extundo.com>
115551         * config/srclist.txt: Add gnupload.
115553 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115555         Change copyright notice from LGPL 2 to GPL 2, since that's the
115556         standard form used in the gnulib repository.
115557         * tests/test-lock.c: Likewise.
115558         * tests/test-stdint.c: Likewise.
115559         * tests/test-tls.c: Likewise.
115561         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
115562         prelude-manager.  User shorter URLs for GNU projects, without '?'.
115563         Add copyright notice.
115565         * check-module: Add copyright notice.  Output a copyright
115566         notice if "--version" is specified.
115567         * modules/COPYING: New file.
115568         * tests/test-getaddrinfo.c: Add copyright notice.
115569         * tests/test-verify.c: Likewise.
115571 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115573         Change copyright notice from LGPL 2 to GPL 2, since that's the
115574         standard form used in the gnulib repository.
115575         * lib/lock.c: LGPL -> GPL.
115576         * lib/lock.h: Likewise.
115577         * lib/strnlen1.c: Likewise.
115578         * lib/strnlen1.h: Likewise.
115579         * lib/tls.c: Likewise.
115580         * lib/tls.h: Likewise.
115581         * lib/tmpdir.c: Likewise.
115583         * lib/TODO: Remove; this belongs only in coreutils.
115585 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115587         Add copyright notices to long-enough files that lack them, since
115588         otherwise the files aren't clearly free.  Use the same notice that
115589         getdate.texi already uses.
115590         * doc/alloca-opt.texi: Add copyright notice.
115591         * doc/alloca.texi: Likewise.
115592         * doc/ctime.texi: Likewise.
115593         * doc/functions.texi: Likewise.
115594         * doc/gcd.texi: Likewise.
115595         * doc/gnulib-tool.texi: Likewise.
115596         * doc/inet_ntoa.texi: Likewise.
115597         * doc/visibility.texi: Likewise.
115599         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
115600         * doc/quote.texi: Add copyright notice.
115602         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
115603         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
115604         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
115605         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
115606         is now obsolete, and give a pointer to the Sun list.
115607         Add copyright notice.
115609 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115611         * config/srclistvars.sh: Add copyright notice.
115613 2006-08-14  Eric Blake  <ebb9@byu.net>
115615         Import the following change from libc:
115617         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
115619         Upstream bug 2997.
115620         * lib/misc/error.c: Add space between program name and message if file
115621         name is missing.
115623 2006-08-12  Karl Berry  <karl@gnu.org>
115625         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
115626         remove, these originate in gnulib now.
115628 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115630         * doc/Makefile (standards.info standards.html standards.dvi):
115631         Also depend on make-stds.texi.
115633 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
115635         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
115636         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
115638         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
115639         in wchar_t.  Problem reported by Eric Blake.
115641         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
115642         LEN is smaller than SIZE.  Suggested by Bruno Haible.
115643         Also, help the compiler to keep LEN in a register.
115645 2006-08-11  Eric Blake  <ebb9@byu.net>
115647         * users.txt: Sort.  Add tar.
115649 2006-08-11  Bruno Haible  <bruno@clisp.org>
115651         * users.txt: New file.
115653 2006-08-11  Bruno Haible  <bruno@clisp.org>
115655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
115656         before <wchar.h>. Needed for OSF/1 and BSD/OS.
115658 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115660         * modules/snprintf (Depends-on): Remove minmax.
115661         (Maintainer): Add self and Bruno.
115663 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115665         * lib/.cppi-disable: Add snprintf.h, socket_.h.
115666         * lib/snprintf.c: Include <errno.h> and <limits.h>.
115667         (EOVERFLOW): Define if the system does not.
115668         Do not include "minmax.h"; it wasn't used.
115669         (snprintf): Don't assume size_t promotes to an unsigned type.
115670         Fix bug when generated string was too long for the buffer: the
115671         buffer's contents are supposed to be the initial prefix of the
115672         output.  Don't assume vasnprintf returns EOVERFLOW if the size
115673         exceeds INT_MAX; do the check ourselves.
115675         Import the following changes from libc:
115677         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
115679         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
115680         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
115681         set wc to the byte which couldn't be converted.
115682         (re_string_reconstruct): Don't clear valid_raw_len before calling
115683         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
115684         tip_context using re_string_context_at.
115686         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
115688         * lib/posix/regex.h: g++ still cannot handled [restrict].
115690         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
115692         * lib/posix/regex.h: Remove special handling for VMS.
115694 2006-08-10  Jim Meyering  <jim@meyering.net>
115696         * modules/same-inode: New module.
115697         * modules/dev-ino: New module.
115698         * modules/cycle-check: Depend on these modules, rather than simply
115699         including their .h files.
115700         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
115701         required via m4/cycle-check.m4.
115702         * modules/same: Depend on new same-inode module, rather than
115703         including same-inode.h.
115704         * modules/chdir-safer: New file.
115706         * modules/chown (Depends-on): Add stat-macros.
115708 2006-08-10  Jim Meyering  <jim@meyering.net>
115710         * m4/cycle-check.m4: New file.
115711         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
115712         * m4/dev-ino.m4, m4/same-inode.m4: New files.
115714 2006-08-10  Eric Blake  <ebb9@byu.net>
115716         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
115717         in from original proposal.
115719 2006-08-10  Eric Blake  <ebb9@byu.net>
115720         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
115722         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
115723         namespace.
115725 2006-08-10  Bruno Haible  <bruno@clisp.org>
115727         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
115728         as well.
115730 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115732         Sync from coreutils.
115734         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
115736         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
115737         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
115739 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115741         * modules/restrict: Remove; no longer needed now that we assume
115742         Autoconf 2.59 or later.
115743         * MODULES.html.sh: Remove 'restrict'.
115744         * modules/argp (Depends-on): Remove 'restrict'.
115745         * modules/base64 (Depends-on): Likewise.
115746         * modules/gc (Depends-on): Likewise.
115747         * modules/getaddrinfo (Depends-on): Likewise.
115748         * modules/glob (Depends-on): Likewise.
115749         * modules/inet_ntop (Depends-on): Likewise.
115750         * modules/inet_pton (Depends-on): Likewise.
115751         * modules/memxor (Depends-on): Likewise.
115752         * modules/regex (Depends-on): Likewise.
115753         * modules/strtok_r (Depends-on): Likewise.
115754         * modules/time_r (Depends-on): Likewise.
115756 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115758         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
115759         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
115760         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115761         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
115762         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
115763         * m4/memxor.m4 (gl_MEMXOR): Likewise.
115764         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
115765         gl_C_RESTRICT replaced by AC_C_RESTRICT.
115767         Merge from coreutils.
115768         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
115769         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
115770         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
115771         * m4/time_r.m4 (gl_TIME_R): Likewise.
115773 2006-08-09  Karl Berry  <karl@gnu.org>
115775         * config/srclist.txt: no more gettext-tools, per Bruno.
115777 2006-08-08  Eric Blake  <ebb9@byu.net>
115779         * modules/verror: New module.
115780         * MODULES.html.sh: Document it.
115782 2006-08-08  Eric Blake  <ebb9@byu.net>
115784         * lib/verror.h, lib/verror.c: New files.
115786 2006-08-08  Eric Blake  <ebb9@byu.net>
115788         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
115789         verror_at_line output complies with GNU Coding Standards even when
115790         file is NULL.
115792 2006-08-07  Bruno Haible  <bruno@clisp.org>
115794         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
115795         versions of AIX.
115796         Reported by Ralf Wildenhues.
115798 2006-08-07  Bruno Haible  <bruno@clisp.org>
115800         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
115801         in an AC_DEFUN. Needed so that the autoconf snippets can use
115802         AC_REQUIRE.
115804 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115806         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115807         Initialize pkgdata_DATA.
115808         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
115809         overriding it.
115811 2006-08-06  Eric Blake  <ebb9@byu.net>
115813         * lib/error.h: Fold in some upstream changes from glibc.
115814         * lib/error.c: Likewise.
115816 2006-08-04  Bruno Haible  <bruno@clisp.org>
115818         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115819         Make the mostlyclean-local rule depend on mostlyclean-generic.
115820         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
115822 2006-07-31  Bruno Haible  <bruno@clisp.org>
115824         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
115825         <stdlib.h>, <string.h>.
115827 2006-07-30  Bruno Haible  <bruno@clisp.org>
115829         * modules/readlink (License): Change to LGPL.
115831 2006-07-30  Bruno Haible  <bruno@clisp.org>
115833         * modules/javaversion (Makefile.am): Distribute javaversion.java and
115834         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
115835         set PKGDATADIR to point to it.
115837 2006-07-30  Bruno Haible  <bruno@clisp.org>
115839         * modules/csharpexec (configure.ac): Comment out macro invocation.
115840         * modules/javaexec (configure.ac): Likewise.
115841         * modules/javacomp-script (configure.ac): Likewise.
115843         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
115845 2006-07-30  Bruno Haible  <bruno@clisp.org>
115847         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
115848         linked-list.
115850 2006-07-30  Bruno Haible  <bruno@clisp.org>
115852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
115854 2006-07-30  Bruno Haible  <bruno@clisp.org>
115856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115857         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
115858         get removed.
115860 2006-07-29  Bruno Haible  <bruno@clisp.org>
115862         Make it possible for gnulib-tool to work with locally modified or
115863         augmented gnulib repositories.
115864         * gnulib-tool (func_usage): Document --local-dir option.
115865         (local_gnulib_dir): New variable.
115866         Handle --local-dir option.
115867         (func_lookup_file): New function.
115868         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
115869         (func_get_description, func_get_filelist, func_get_description,
115870         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
115871         func_get_automake_snippet, func_get_include_directive,
115872         func_get_license, func_get_maintainer): Use func_lookup_file.
115873         (func_import, func_create_testdir): Use func_lookup_file.
115875 2006-07-29  Bruno Haible  <bruno@clisp.org>
115877         * modules/setenv (Depends-on): Add unistd.
115879 2006-07-29  Bruno Haible  <bruno@clisp.org>
115881         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
115883 2006-07-29  Bruno Haible  <bruno@clisp.org>
115885         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
115887 2006-07-29  Bruno Haible  <bruno@clisp.org>
115889         * gnulib-tool (import, update): If there is no Makefile.am, look at
115890         aclocal.m4, instead of bailing out.
115892 2006-07-29  Bruno Haible  <bruno@clisp.org>
115894         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
115895         Categorize the options by when they are useful.
115897 2006-07-29  Bruno Haible  <bruno@clisp.org>
115899         * gnulib-tool (func_usage): Document option --no-libtool.
115900         Handle option --no-libtool.
115901         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
115902         for changed semantics of $libtool variable.
115903         (func_import): Likewise. If libtool is not used, show this through
115904         an option --no-libtool.
115905         (func_create_testdir): Update.
115907 2006-07-29  Bruno Haible  <bruno@clisp.org>
115909         * gnulib-tool (func_import): Extend error message about missing
115910         --doc-base.
115912 2006-07-29  Bruno Haible  <bruno@clisp.org>
115914         * gnulib-tool (func_import): Don't create the $docbase directory if
115915         there is no file to store there.
115917 2006-07-29  Bruno Haible  <bruno@clisp.org>
115919         * gnulib-tool (autoconf_minversion): If a --dir option is given and
115920         relevant, look for configure.ac there, not in the current directory.
115921         Also use a simple search for AC_PREREQ, not "autoconf --trace".
115923 2006-07-29  Bruno Haible  <bruno@clisp.org>
115925         * gnulib-tool (SORT): New variable.
115926         (func_usage): Undocument --assume-autoconf option.
115927         Remove --assume-autoconf option handling.
115928         (autoconf_minversion): Determine from the contents of configure.ac.
115929         (func_import): Remove autoconf_minversion handling.
115930         Suggested by Eric Blake.
115932 2006-07-29  Bruno Haible  <bruno@clisp.org>
115934         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
115936 2006-07-29  Bruno Haible  <bruno@clisp.org>
115938         * config/srclist.txt (*setenv.[ch]): Remove rules.
115940 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115942         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
115944 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115946         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
115947         arpa/inet.h.
115949 2006-07-28  Simon Josefsson  <jas@extundo.com>
115951         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
115952         * modules/inet_pton (Depends-on): Likewise.
115954 2006-07-28  Simon Josefsson  <jas@extundo.com>
115956         * m4/netinet_in_h.m4: New file.
115958 2006-07-28  Simon Josefsson  <jas@extundo.com>
115960         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
115961         #include's.
115963 2006-07-28  Simon Josefsson  <jas@extundo.com>
115965         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
115966         #include's.
115968 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
115970         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
115971         setgid on directories only if they set these bits.
115972         * lib/modechange.h: Remove obsolete comment about masks.
115974 2006-07-28  Eric Blake  <ebb9@byu.net>
115976         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
115977         macro expansion.
115979 2006-07-28  Bruno Haible  <bruno@clisp.org>
115981         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
115983 2006-07-28  Bruno Haible  <bruno@clisp.org>
115985         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
115987 2006-07-28  Bruno Haible  <bruno@clisp.org>
115989         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
115990         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
115991         Define fallbacks.
115992         Avoids link error on FreeBSD 4.x.
115993         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115995         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
115996         encoding.
115997         * lib/mbswidth.c (iswcntrl): Likewise.
115999 2006-07-27  Bruno Haible  <bruno@clisp.org>
116001         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
116002         test.
116004 2006-07-27  Bruno Haible  <bruno@clisp.org>
116006         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
116007         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
116008         defined.
116010 2006-07-26  Eric Blake  <ebb9@byu.net>
116012         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
116014 2006-07-26  Eric Blake  <ebb9@byu.net>
116016         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
116017         like mingw that lack mkstemp.
116018         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
116019         avoid compilation warning on mingw.
116021 2006-07-26  Bruno Haible  <bruno@clisp.org>
116023         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
116024         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
116025         INT_FAST*_MIN, INTPTR_MIN.
116027 2006-07-25  Bruno Haible  <bruno@clisp.org>
116029         * modules/version-etc (Depends-on): Add stdarg.
116031 2006-07-25  Bruno Haible  <bruno@clisp.org>
116033         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
116034         complex commands.
116036 2006-07-25  Bruno Haible  <bruno@clisp.org>
116038         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
116039         defined in <stdarg.h> or config.h.
116041 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
116043         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
116044         (gl_STDIO_SAFER): Remove.
116046 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
116048         * MODULES.html.sh (File stream based Input/Output):
116049         Add fopen-safer, tmpfile-safer; remove stdio-safer.
116050         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
116051         * modules/fopen-safer, modules/tmpfile-safer: New files.
116052         * modules/stdio-safer: Remove.
116054 2006-07-24  Bruno Haible  <bruno@clisp.org>
116056         * modules/tmpdir: New file.
116057         * MODULES.html.sh (File system functions): Add it.
116059 2006-07-24  Bruno Haible  <bruno@clisp.org>
116061         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
116062         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
116064 2006-07-24  Bruno Haible  <bruno@clisp.org>
116066         * modules/clean-temp: New file.
116068 2006-07-24  Bruno Haible  <bruno@clisp.org>
116070         * m4/tmpdir.m4: New file, from GNU gettext.
116072 2006-07-24  Bruno Haible  <bruno@clisp.org>
116074         * lib/tmpdir.h: New file, from GNU gettext.
116075         * lib/tmpdir.c: New file, from GNU gettext.
116077 2006-07-24  Bruno Haible  <bruno@clisp.org>
116079         * lib/clean-temp.h: New file, from GNU gettext.
116080         * lib/clean-temp.c: New file, from GNU gettext.
116082 2006-07-23  Eric Blake  <ebb9@byu.net>
116084         * modules/stdio-safer (Files): Add tmpfile-safer.c.
116085         (Depends-on): Add binary-io.
116087 2006-07-23  Eric Blake  <ebb9@byu.net>
116089         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
116091 2006-07-23  Eric Blake  <ebb9@byu.net>
116093         * lib/tmpfile-safer.c: New file.
116094         * lib/stdio-safer.h (fopen_safer): Add prototype.
116095         * lib/stdio--.h (tmpfile): Make safer.
116097 2006-07-23  Bruno Haible  <bruno@clisp.org>
116099         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
116100         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
116101         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
116102         gl_linked_remove_at): Use it.
116104 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116105         and Simon Josefsson <jas@extundo.com>
116107         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
116109         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
116111 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
116113         * modules/close-stream: New file.
116114         * modules/closeout (Description): Make it clear that it exits
116115         with a diagnostic on error.
116116         (Depends-on): Add close-stream.  Remove fpending, stdbool.
116117         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
116119 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
116121         * m4/close-stream.m4: New file.
116123 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
116125         * lib/close-stream.c, lib/close-stream.h: New files.
116127 2006-07-22  Bruno Haible  <bruno@clisp.org>
116129         Merge from GNU gettext 0.15.
116131         2006-05-01  Bruno Haible  <bruno@clisp.org>
116133                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
116135         2006-07-22  Bruno Haible  <bruno@clisp.org>
116137                 * modules/javaversion: New file.
116138                 * MODULES.html.sh (Java): Add javaversion.
116140         2006-03-12  Bruno Haible  <bruno@clisp.org>
116142                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
116144         2005-12-04  Bruno Haible  <bruno@clisp.org>
116146                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
116147                 (untested).
116149         2006-06-21  Bruno Haible  <bruno@clisp.org>
116151                 Avoid warnings from recent versions of mcs.
116152                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
116153                 -o, -L, -r any more. Use options documented since mcs-1.0
116154                 instead. Similarly for -g.
116156         2005-12-04  Bruno Haible  <bruno@clisp.org>
116158                 * build-aux/csharpcomp.sh.in: Suffix for resources is
116159                 .resources, not .resource.
116161         2005-07-09  Bruno Haible  <bruno@clisp.org>
116163                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
116164                 add a .dll suffix.
116165                 Reported by Mark Junker <mjscod@gmx.de>.
116167         2006-07-22  Bruno Haible  <bruno@clisp.org>
116169                 * modules/gettext: Upgrade to gettext-0.15.
116170                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
116171                 m4/visibility.m4.
116172                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
116174 2006-07-22  Bruno Haible  <bruno@clisp.org>
116176         Merge from GNU gettext 0.15.
116178         2006-03-25  Bruno Haible  <bruno@clisp.org>
116180                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
116182         2006-07-21  Bruno Haible  <bruno@clisp.org>
116184                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
116185                 "1.1".
116187         2006-05-09  Bruno Haible  <bruno@clisp.org>
116189                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
116190                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
116191                 for the conftestver execution.
116193         2006-05-01  Bruno Haible  <bruno@clisp.org>
116195                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
116196                 optional target-version argument. Verify that the compiler
116197                 groks source of the specified source-version, or add -source
116198                 option as necessary. Verify that the compiler produces
116199                 bytecode in the specified target-version, or add -target and
116200                 -source options as necessary. Make the result of the test
116201                 available as variable CONF_JAVAC. Also log error output in
116202                 config.log.
116204         2006-03-11  Bruno Haible  <bruno@clisp.org>
116206                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
116208         2006-05-09  Bruno Haible  <bruno@clisp.org>
116210                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
116211                 CLASSPATH_SEPARATOR to a semicolon.
116213         2006-03-12  Bruno Haible  <bruno@clisp.org>
116215                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
116216                 available as variable CONF_JAVA, for subsequent autoconf
116217                 tests. Also log error output in config.log.
116219         2006-07-19  Bruno Haible  <bruno@clisp.org>
116221                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
116222                 that getline works on glibc2 systems. Needed to avoid trouble
116223                 in relocatable.c.
116224                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
116226         2005-12-04  Bruno Haible  <bruno@clisp.org>
116228                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
116229                 launcher (untested).
116231         2005-12-04  Bruno Haible  <bruno@clisp.org>
116233                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
116235         2006-07-22  Bruno Haible  <bruno@clisp.org>
116237                 * gettext.m4: Update from GNU gettext-0.15.
116238                 * nls.m4: Likewise.
116239                 * po.m4: Likewise.
116240                 * inttypes-pri.m4: Likewise.
116241                 * inttypes-h.m4: Renamed from inttypes.m4.
116242                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
116244 2006-07-22  Bruno Haible  <bruno@clisp.org>
116246         Merge from GNU gettext 0.15.
116248         2005-07-05  Bruno Haible  <bruno@clisp.org>
116250                 * printf-args.c (printf_fetchargs): Work around broken
116251                 definition of wint_t on mingw.
116253         2005-02-12  Bruno Haible  <bruno@clisp.org>
116255                 * xallocsa.h: Add extern "C" for C++.
116257         2006-05-17  Bruno Haible  <bruno@clisp.org>
116259                 Cygwin portability.
116260                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
116262         2006-04-30  Bruno Haible  <bruno@clisp.org>
116264                 * progreloc.c: Include <mach-o/dyld.h> if available.
116265                 (find_executable): Use _NSGetExecutablePath when possible.
116267         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
116269                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
116270                 function.
116272         2005-12-29  Bruno Haible  <bruno@clisp.org>
116274                 * progreloc.c (set_program_name_and_installdir): Fix
116275                 compilation error.
116277         2005-12-04  Bruno Haible  <bruno@clisp.org>
116279                 Cygwin portability.
116280                 * progreloc.c: Include <windows.h> also on Cygwin.
116281                 (find_executable): Add support for Cygwin.
116282                 (set_program_name_and_installdir): Handle also platforms with
116283                 nonempty EXEEXT.
116285         2006-07-11  Bruno Haible  <bruno@clisp.org>
116287                 * javacomp.c: Fix a comment.
116288                 Reported by Jim Meyering.
116290         2006-04-30  Bruno Haible  <bruno@clisp.org>
116292                 * javacomp.h (compile_java_class): Add source_version,
116293                 target_version arguments.
116294                 * javacomp.c: Rewritten to choose only a compiler that
116295                 respects the specified source_version and target_version.
116297         2006-06-27  Bruno Haible  <bruno@clisp.org>
116299                 Assume correct S_ISDIR macro.
116300                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
116302         2006-07-22  Bruno Haible  <bruno@clisp.org>
116304                 * javaversion.h: New file, from GNU gettext.
116305                 * javaversion.c: New file, from GNU gettext.
116306                 * javaversion.java: New file, from GNU gettext.
116307                 * javaversion.class: New file, from GNU gettext.
116309         2006-05-17  Bruno Haible  <bruno@clisp.org>
116311                 Cygwin portability.
116312                 * javaexec.c (execute_java_class): Test for jview program
116313                 also on Cygwin.
116315         2006-04-09  Bruno Haible  <bruno@clisp.org>
116317                 * fatal-signal.c: Don't include string.h.
116318                 (at_fatal_signal): Use a copying loop instead of memcpy.
116320         2005-12-04  Bruno Haible  <bruno@clisp.org>
116322                 * csharpexec.c: Add support for 'clix' launcher (untested).
116323                 (execute_csharp_using_sscli): New function.
116324                 (execute_csharp_program): Call it.
116326         2006-06-21  Bruno Haible  <bruno@clisp.org>
116328                 Avoid warnings from recent versions of mcs.
116329                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
116330                 -o, -L, -r any more. Use options documented since mcs-1.0
116331                 instead. Similarly for -g.
116333         2005-07-09  Bruno Haible  <bruno@clisp.org>
116335                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
116336                 add a .dll suffix.
116337                 Reported by Mark Junker <mjscod@gmx.de>.
116339         2006-06-17  Bruno Haible  <bruno@clisp.org>
116341                 * config.charset: Update for NetBSD 3.0.
116343         2006-05-17  Bruno Haible  <bruno@clisp.org>
116345                 Cygwin portability.
116346                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
116348         2006-05-16  Bruno Haible  <bruno@clisp.org>
116350                 * localcharset.c [CYGWIN]: Include <windows.h>.
116351                 (get_charset_aliases): For Cygwin, return the same CPxxx
116352                 aliases list as under WIN32.
116353                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
116354                 the environment variables. Fall back to GetACP().
116356         2006-04-05  Bruno Haible  <bruno@clisp.org>
116358                 * config.charset: Update Juan Manuel Guerrero's address.
116360         2005-02-12  Bruno Haible  <bruno@clisp.org>
116362                 * allocsa.h: Add extern "C" for C++.
116364         2005-02-10  Bruno Haible  <bruno@clisp.org>
116366                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
116367                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
116369         2006-07-22  Bruno Haible  <bruno@clisp.org>
116371                 * gettext.h: Update to GNU gettext-0.15.
116373 2006-07-22  Bruno Haible  <bruno@clisp.org>
116375         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
116376         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
116377         lib-prefix.m4, longdouble.m4, ssize_t.m4.
116379 2006-07-21  Eric Blake  <ebb9@byu.net>
116381         * modules/stdlib-safer: New file.
116382         * MODULES.html.sh (File stream based Input/Output): Add
116383         stdlib-safer.
116385 2006-07-21  Eric Blake  <ebb9@byu.net>
116387         * lib/stdlib-safer.h: New file from coreutils, required by
116388         stdlib--.h.
116390 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
116392         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
116394 2006-07-20  Bruno Haible  <bruno@clisp.org>
116396         * gnulib-tool: Recognize new option --assume-autoconf.
116397         (autoconf_minversion): New variable.
116398         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
116400 2006-07-20  Bruno Haible  <bruno@clisp.org>
116402         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
116404 2006-07-19  Derek R. Price  <derek@ximbiot.com>
116406         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
116407         Reindent and repaginate.
116409 2006-07-19  Derek Price  <derek@ximbiot.com>
116411         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
116412         Correct grammar.
116414 2006-07-17  Bruno Haible  <bruno@clisp.org>
116416         * modules/list: New file.
116417         * modules/array-list: New file.
116418         * modules/carray-list, modules/carray-list-tests: New files.
116419         * modules/linked-list, modules/linked-list-tests: New files.
116420         * modules/avltree-list, modules/avltree-list-tests: New files.
116421         * modules/rbtree-list, modules/rbtree-list-tests: New files.
116422         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
116423         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
116424         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
116425         * modules/oset: New file.
116426         * modules/array-oset: New file.
116427         * modules/avltree-oset, modules/avltree-oset-tests: New files.
116428         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
116429         * tests/test-carray_list.c: New file.
116430         * tests/test-linked_list.c: New file.
116431         * tests/test-avltree_list.c: New file.
116432         * tests/test-rbtree_list.c: New file.
116433         * tests/test-linkedhash_list.c: New file.
116434         * tests/test-avltreehash_list.c: New file.
116435         * tests/test-rbtreehash_list.c: New file.
116436         * tests/test-avltree_oset.c: New file.
116437         * tests/test-rbtree_oset.c: New file.
116438         * MODULES.html.sh (Container data structures): New section.
116440 2006-07-17  Bruno Haible  <bruno@clisp.org>
116442         * m4/gl_list.m4: New file.
116444 2006-07-17  Bruno Haible  <bruno@clisp.org>
116446         * lib/gl_list.h: New file.
116447         * lib/gl_list.c: New file.
116448         * lib/gl_array_list.h: New file.
116449         * lib/gl_array_list.c: New file.
116450         * lib/gl_carray_list.h: New file.
116451         * lib/gl_carray_list.c: New file.
116452         * lib/gl_linked_list.h: New file.
116453         * lib/gl_linked_list.c: New file.
116454         * lib/gl_anylinked_list1.h: New file.
116455         * lib/gl_anylinked_list2.h: New file.
116456         * lib/gl_avltree_list.h: New file.
116457         * lib/gl_avltree_list.c: New file.
116458         * lib/gl_anyavltree_list1.h: New file.
116459         * lib/gl_anyavltree_list2.h: New file.
116460         * lib/gl_rbtree_list.h: New file.
116461         * lib/gl_rbtree_list.c: New file.
116462         * lib/gl_anyrbtree_list1.h: New file.
116463         * lib/gl_anyrbtree_list2.h: New file.
116464         * lib/gl_anytree_list1.h: New file.
116465         * lib/gl_anytree_list2.h: New file.
116466         * lib/gl_linkedhash_list.h: New file.
116467         * lib/gl_linkedhash_list.c: New file.
116468         * lib/gl_anyhash_list1.h: New file.
116469         * lib/gl_anyhash_list2.h: New file.
116470         * lib/gl_avltreehash_list.h: New file.
116471         * lib/gl_avltreehash_list.c: New file.
116472         * lib/gl_rbtreehash_list.h: New file.
116473         * lib/gl_rbtreehash_list.c: New file.
116474         * lib/gl_anytreehash_list1.h: New file.
116475         * lib/gl_anytreehash_list2.h: New file.
116477         * lib/gl_oset.h: New file.
116478         * lib/gl_oset.c: New file.
116479         * lib/gl_array_oset.h: New file.
116480         * lib/gl_array_oset.c: New file.
116481         * lib/gl_avltree_oset.h: New file.
116482         * lib/gl_avltree_oset.c: New file.
116483         * lib/gl_rbtree_oset.h: New file.
116484         * lib/gl_rbtree_oset.c: New file.
116485         * lib/gl_anytree_oset.h: New file.
116487 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116489         * m4/mkancesdirs.m4: New file.
116490         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
116491         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
116492         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
116493         it.
116495 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116497         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
116498         * lib/mkancesdirs.h: New files.
116499         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
116500         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
116501         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
116502         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
116503         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
116504         callers changed.  Revamp internals significantly, by not
116505         attempting to create directories that are temporarily more
116506         permissive than the final results.  Do not attempt to use
116507         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
116508         This removes some race conditions, fixes some bugs, and simplifies
116509         things.  Use new dirchownmod function to do owner and mode changes.
116510         * lib/mkdir-p.h: Likewise.
116511         * lib/modechange.c (octal_to_mode): New function.
116512         (struct mode_change): New member mentioned.
116513         (make_node_op_equals): New arg mentioned.  All callers changed.
116514         (mode_compile): Keep track of which mode bits the user has explicitly
116515         mentioned.
116516         (mode_adjust): New arg DIR, so that we implement the X op correctly.
116517         New arg PMODE_BITS, to keep track of which mode bits the user
116518         mentioned; it treats S_ISUID and S_ISGID speciall.
116519         All callers changed.
116520         * lib/modechange.h: Likewise.
116522 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116524         * MODULES.html.sh: Add mkancestors.
116525         * modules/mkancesdirs: New module.
116526         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
116527         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
116528         The chdir-safer and afs files are now orphans; I'll remove them
116529         unless someone speaks up.
116530         Add lib/dirchownmod.c, lib/dirchownmod.h.
116531         (Depends-on): Remove alloca, chown, save-cwd, dirname.
116532         Add lchown, mkancesdirs.
116533         (Maintainer): Add self.
116535 2006-07-15  Karl Berry  <karl@gnu.org>
116537         * gnulib-tool: help message wording/arrangement.
116539 2006-07-14  Simon Josefsson  <jas@extundo.com>
116541         * doc/gnulib.texi (Libtool and Windows): New section.
116543 2006-07-12  Simon Josefsson  <jas@extundo.com>
116545         * modules/gendocs (License): Fix license, approved by Karl.
116547 2006-07-12  Eric Blake  <ebb9@byu.net>
116549         * MODULES.html.sh: Add gendocs.
116551 2006-07-11  Eric Blake  <ebb9@byu.net>
116553         * modules/fdl: New module, to install doc/fdl.texi.
116554         * MODULES.html.sh: Add new section for documentation modules.
116555         * gnulib-tool: Avoid space-tab.
116556         (--doc-base): New option, to manage files from doc.
116558 2006-07-11  Eric Blake  <ebb9@byu.net>
116560         * m4/absolute-header.m4: Fix comments to match recent change.
116562 2006-07-11  Eric Blake  <ebb9@byu.net>
116564         * gnulib-tool: List --doc-base before --tests-base.
116566 2006-07-11  Derek R. Price  <derek@ximbiot.com>
116568         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
116570 2006-07-11  Bruno Haible  <bruno@clisp.org>
116572         * README: Mention where to put documentation.
116574 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116576         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
116578 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
116581         to stdint.m4.
116583 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116585         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
116586         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
116587         "no/such/file/stdint.h" when there is no such file, so that
116588         the resulting C code can be parsed by dodgy compilers.
116589         Problems reported by Bob Proulx.
116591 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116593         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
116594         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116595         macros into the GNU _D_EXACT_NAMLEN.
116596         * lib/savedir.c:  Likewise.
116597         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
116599 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116600         and Paul Eggert  <eggert@cs.ucla.edu>
116602         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
116603         * m4/savedir.m4:
116604         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116605         macros into the GNU _D_EXACT_NAMLEN.
116607 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116609         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
116610         around the absolute name, to work around a problem with the HP-UX
116611         11.23 native C compiler, reported by Bob Proulx.
116613 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116615         * doc/maintain.texi, make-stds.texi: Sync from
116616         <http://savannah.gnu.org/projects/gnustandards>.
116618 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116620         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
116622 2006-07-09  Jim Meyering  <jim@meyering.net>
116624         * m4/glob.m4: Remove a doubled word in a comment.
116626 2006-07-09  Jim Meyering  <jim@meyering.net>
116628         * lib/argp-pv.c: Remove a doubled word in a comment.
116629         * lib/check-version.c (check_version): Likewise.
116630         * lib/javacomp.c (compile_java_class): Likewise.
116632 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
116634         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
116635         for the benefit of people using Autoconf 2.60.  If you want to
116636         support older Autoconf versions you can copy m4/onceonly_2_57.m4
116637         (or m4/onceonly.m4, if pre-2.57) manually.
116639 2006-07-08  Jim Meyering  <jim@meyering.net>
116641         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
116642         comment.
116643         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
116644         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
116645         comment.
116647 2006-07-08  Jim Meyering  <jim@meyering.net>
116649         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
116651 2006-07-07  Simon Josefsson  <jas@extundo.com>
116653         * tests/test-crc.c: Change expected crc value, the test vector
116654         were probably computed using the old broken crc.c?
116656 2006-07-06  Simon Josefsson  <jas@extundo.com>
116658         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
116659         now the canonical place for the M4 file).
116661         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
116662         from the sys_socket dependency now.
116664         * modules/inet_pton (Files): Ditto.
116666         * modules/inet_ntop (Files): Ditto.
116668 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116670         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
116671         not gl_PREREQ_GETUSERSHELL.
116673 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116675         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
116676         with only one argument, for Autoconf 2.60.
116677         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
116678         expand to nothing, so add a shell command to avoid syntax error.
116679         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116681 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116683         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
116685 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116687         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
116688         no longer needed.  Check for isblank decl.
116689         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
116690         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
116691         of existence.
116693 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116695         * lib/getloadavg.c: Use __VMS, not VMS.
116696         * lib/getopt.c: Likewise.
116697         * lib/getpagesize.h: Likewise.
116698         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
116699         and probably does not work.
116701 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116703         * lib/.cppi-disable: Add wcwidth.
116704         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
116705         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
116706         (ISGRAPH): Remove.  All uses changed to isgraph.
116707         (FOLD) [!defined _LIBC]: Remove special case.
116708         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
116709         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
116710         HAVE_ISBLANK.
116711         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
116712         case.
116714 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116716         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
116717         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
116718         brackets.  Other minor changes to suppress some compiler
116719         warnings.
116721 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116722         and Paul Eggert  <eggert@cs.ucla.edu>
116724         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
116725         of invoking obsolescent AC_HEADER_DIRENT macro.
116726         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
116727         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
116728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
116729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
116730         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
116731         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
116732         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
116733         * m4/readdir.m4: Remove; no longer needed.
116735 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116736         and Paul Eggert  <eggert@cs.ucla.edu>
116738         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
116739         Don't worry about this obsolete case any more.
116740         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
116741         directories.
116742         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
116743         worry about this obsolete case any more.
116744         * lib/fts.c: Likewise.
116745         * lib/getcwd.c: Likewise.
116746         * lib/glob.h: Likewise.
116747         * lib/savedir.c: Likewise.
116749 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116751         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
116752         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
116753         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
116754         needed.
116755         All uses removed.
116756         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116757         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116758         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
116759         needed.
116760         * m4/getdate.m4 (gl_GETDATE): Likewise.
116761         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116762         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116763         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116764         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116765         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116766         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116767         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
116768         needed.
116770 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116772         * lib/memcasecmp.c: Include <limits.h>.
116773         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
116774         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
116775         Don't assume isdigit succeeds only on '0' through '9'.
116777 2006-07-05  Eric Blake  <ebb9@byu.net>
116779         * modules/getaddrinfo (Depends-on): Add snprintf.
116781 2006-07-05  Eric Blake  <ebb9@byu.net>
116783         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
116784         to avoid 'header present but could not be compiled' on cygwin.
116786 2006-07-05  Eric Blake  <ebb9@byu.net>
116788         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
116789         missing from netdb.h.
116790         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
116792 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116794         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
116795         no longer needed.
116796         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
116797         * m4/getdate.m4 (gl_GETDATE): Likewise.
116798         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116799         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116800         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116801         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116804 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116806         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
116807         All uses of is_space replaced by isspace.
116808         * lib/exit.h: Don't talk about STDC_HEADERS.
116809         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
116810         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
116811         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
116812         replaced by isprint etc.
116813         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
116814         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116815         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
116816         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
116817         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
116818         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116820 2006-07-05  Bruno Haible  <bruno@clisp.org>
116822         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
116823         the function exists, before testing against AIX.
116824         Reported by Martin Lambers <marlam@marlam.de>.
116826 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116828         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
116829         From Mark D. Baushke.
116831 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116833         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
116834         to the absolute name, not just one, to bypass Sun C 5.8's
116835         "warning: #include of /usr/include/... may be non-portable".
116837 2006-07-04  Eric Blake  <ebb9@byu.net>
116839         * modules/dirname-tests: New test module.
116840         * tests/test-dirname.c: New file, replacing dirname.c
116841         TEST_DIRNAME section that was recently deleted.
116843 2006-07-04  Bruno Haible  <bruno@clisp.org>
116845         Assume ANSI C header files and <ctype.h> functions.
116846         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
116847         (mbsnwidth): Use isprint, iscntrl instead.
116849 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116851         Merge from coreutils.
116852         * MODULES.html.sh: Add xstrtold.
116853         * modules/xstrtold: New file.
116854         * modules/cycle-check (Files): Add lib/same-inode.h.
116855         * modules/dirname (Files): Add m4/double-slash-root.m4.
116856         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
116857         * modules/mkdir-p (Files): Add lib/same-inode.h.
116858         * modules/same (Files): Add lib/same-inode.h.
116860 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116862         * m4/absolute-header.m4: Renamed from full-header-path.m4.
116863         This is to keep the terminology clean; POSIX talks about
116864         "absolute pathnames", not "full pathnames", but the GNU
116865         Coding Standards say to use "path" for something else;
116866         so use "absolute" to keep both sides happy.
116867         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
116868         Set gl_absolute_header, not gl_full_header_path.
116869         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
116870         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
116871         All uses changed.
116873         Merge from coreutils.
116875         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116877         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
116878         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
116879         want to require the building of c-strtod.o.
116880         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
116881         needs -lm directly.
116882         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
116884         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116886         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
116887         --as-needed option if available.  Problem reported by Albert Chin in
116888         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
116889         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
116890         cc merely issues a bunch of annoying warnings for --as-needed
116891         (this problem was reported by Bob Proulx).  Also, try linking with
116892         -lm to detect a bug in binutils 2.16 (this problem was reported
116893         by Ralf Wildenhues).
116895         2006-06-18  Jim Meyering  <jim@meyering.net>
116897         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
116898         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
116899         macro.
116900         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
116901         also check for glibc-2.4's abort-inducing bug.
116903         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
116904         Low-probability clean-up should be to use rmdir to get rid of
116905         the just-created directory, not unlink.
116907         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
116908         configure fail, and request a bug report to inform us about it.
116909         Add a comment that, barring reports to the contrary, in 2007 we'll
116910         assume ftruncate is universally available.
116912         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116914         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
116916         2006-03-12  Jim Meyering  <jim@meyering.net>
116918         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
116919         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
116920         * m4/same.m4 (gl_SAME): Likewise.
116921         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
116923         2006-03-11  Eric Blake  <ebb9@byu.net>
116925         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
116926         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
116927         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
116928         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
116930 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116932         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
116933         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
116934         reported by Mark D. Baushke, one in
116935         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
116937         Merge from coreutils.
116939         * lib/.cppi-disable: Add stdint_.h.
116940         * lib/.cvsignore: Add stdint.h.
116942         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116944         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
116945         both double and long double versions.
116946         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
116947         * lib/xstrtold.c: New file.
116948         * lib/xstrtod.h (xstrtold): New decl.
116950         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116952         * lib/filemode.c (setst): Remove.
116953         (strmode): Rewrite to avoid setst.  This makes the code shorter,
116954         (arguably) clearer, and the generated code is a bit smaller on my
116955         Debian GNU/Linux stable x86 host.
116957         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116959         * lib/filemode.c: Include "filemode.h" first, to test the interface.
116960         Assume that filemode.h includes sys/types.h and sys/stat.h.
116961         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
116962         (ftypelet): Reorder to put common cases first, for efficiency.
116963         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
116964         to do 'M'.
116965         (strmode): Renamed from mode_string, and now stores 12 bytes instead
116966         of 10, for compatibility with FreeBSD.  All callers changed.
116967         (filemodestring): Now stores 12 bytes instead of 10, and sets file
116968         types that can't be deduced solely from st_mode.  First arg is now a
116969         const pointer.
116970         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
116971         (strmode): Renamed from mode_string.
116972         (filemodestring): New decl.
116973         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
116974         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
116975         needed.
116976         (S_ISPORT, S_ISWHT): New macros, if not already defined.
116978         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116980         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
116981         fsusage.h now does that.  Include fsusage.h first, to test interface.
116982         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
116983         at most one method (the old code could have generated decls that
116984         didn't conform to C89, not that this was ever exercised).
116985         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
116987         2006-03-19  Jim Meyering  <jim@meyering.net>
116989         Work even in a chroot where d_ino values for entries in "/"
116990         don't match the stat.st_ino values for the same names.
116991         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
116992         number, iterate through all entries again, using lstat instead.
116993         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
116994         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
116996         * lib/getcwd.c (__getcwd): Clarify a comment.
116997         Use memcpy in place of a call to strcpy.
116999         2006-03-12  Jim Meyering  <jim@meyering.net>
117001         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
117002         matches that of the current directory (which we're about to chdir ".."
117003         out of), then save the dev-ino of the parent, instead.
117005         * lib/same-inode.h (SAME_INODE): New file/macro.
117006         * lib/chdir-safer.c (SAME_INODE): Remove definition.
117007         Include "same-inode.h", instead.
117008         * lib/same.c: Likewise.
117009         * lib/cycle-check.h: Include "same-inode.h".
117010         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
117011         * lib/cycle-check.c (SAME_INODE): Remove definition.
117012         * lib/root-dev-ino.h: Include "same-inode.h".
117014         2006-03-11  Eric Blake  <ebb9@byu.net>
117016         * lib/same.c (same_name): s/base_name/last_component/
117017         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
117018         * lib/filenamecat.c (file_name_concat): Likewise.
117020         2006-03-11  Eric Blake  <ebb9@byu.net>,
117021                     Paul Eggert  <eggert@cs.ucla.edu>
117023         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
117024         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
117025         drive prefix.
117026         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
117027         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
117028         (last_component): New method.
117029         * lib/dirname.c (dir_len): Determine when drive letters need a
117030         subsequent slash.  Preserve // when it is special.
117031         (dir_name): Don't append dot when drive letter is absolute.
117032         [TEST_DIRNAME]: Move into a full-blown gnulib test.
117033         * lib/basename.c (base_name): New semantics - malloc the result.
117034         Preserve // when it is special.  Preserve relative files that look
117035         like drive letters.
117036         (base_len): Preserve // when it is special.
117037         (last_component): New method, similar to old base_name semantics.
117038         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
117039         base_name.  Strip redundant slashes from ///.
117041 2006-07-03  Jim Meyering  <jim@meyering.net>
117043         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
117044         macro is used before the first cycle_check call.
117046 2006-07-03  Eric Blake  <ebb9@byu.net>
117048         * modules/dirname (Depends-on): Add xstrndup.
117050 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
117052         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
117053         test cases, so that config.log is a bit easier to follow.
117055 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
117057         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
117058         both are 64 bits, since this seems to be the tradition, and this
117059         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
117060         we ever run into a host that prefers long long to long in this
117061         case, we'll need another configure-time test.  Problem reported by
117062         Jim Meyering.
117064 2006-07-02  Eric Blake  <ebb9@byu.net>
117066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
117068 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117070         * modules/inttypes (Depends-on): No longer depends on stdint.
117071         * modules/stdint (Description): Say more about assumptions.
117072         Say that the fast types might differ.  Say macros are used.
117073         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
117074         (Makefile.am): Revise list of substituted symbols to match
117075         new stdint.m4.
117076         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
117077         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
117078         * tests/test-stdint.c (verify_same_types)
117079         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
117080         the code conforms to C99/C89.
117081         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
117082         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
117084 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117086         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
117087         but fix a bug, by requiring at least 64 bits.
117088         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
117089         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
117090         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
117091         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
117093         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
117094         changes.  Make 2.59 a prerequisite.  Check and substitute for
117095         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
117096         inttypes.h.  Do not use special include files; just use the
117097         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
117098         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
117099         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
117100         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
117101         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
117102         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
117103         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
117104         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
117105         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
117106         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
117107         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
117108         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
117109         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
117110         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
117111         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
117112         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
117113         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
117114         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
117115         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
117116         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
117117         WINT_MAX.  Check for C99 conformance more strictly, by detecting
117118         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
117119         not check for things that C99 does not require, e.g., int8_t.  If
117120         a test isn't needed unless <stdint.h> isn't working, and is
117121         unlikely to be needed for any other reason, then don't do it
117122         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
117123         size_t, since we assume C89 freestanding at least.  Do not check
117124         for sig_atomic_t, wchar_t, or wint_t, since the code now does
117125         the right thing even if the types are not defined.  Instead use:
117126         (gl_STDINT_TYPE_PROPERTIES): New macro.
117127         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
117128         testing whether <sys/types.h> clashes, as Autoconf does this for
117129         us now.  All uses removed.
117130         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
117131         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
117132         (gl_CHECK_TYPE_SAME):
117133         Remove; no longer needed.
117134         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
117135         exists, since we'll return 0 anyway in that case.
117136         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
117138 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117140         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
117141         possible collision with system files.
117142         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
117143         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
117144         WCHAR_MIN and WCHAR_MAX in this case.
117145         (<stddef.h>): Do not include; no longer needed.
117146         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
117147         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
117148         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
117149         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
117150         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
117151         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
117152         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
117153         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
117154         !defined(__c99))]: Include in this case too, since it's harmless
117155         now.
117156         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
117157         dangerous to do so.
117158         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
117159         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
117160         (_STDINT_MIN, _STDINT_MAX): New macros.
117161         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
117162         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
117163         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
117164         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
117165         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
117166         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
117167         macros, not typedefs; this simplifies things quite a bit.
117168         Use long int for all types narrower than int64_t.
117169         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
117170         Define in terms of long long int or int64_t or long int,
117171         not int64_t or int32_t.  This saves some compile-time testing.
117172         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
117173         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
117174         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
117175         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
117176         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
117177         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
117178         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
117179         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
117180         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
117181         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
117182         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
117183         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
117184         undef any previous version and define our own version, for
117185         simplicity and consistency with the new macros for types.
117186         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
117187         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
117188         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
117189         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
117190         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
117191         @WINT_T_SUFFIX@ to keep things simple here.
117192         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
117193         Simplify by assuming typical 8/16/32/64 host, since we're
117194         already doing that elsewhere anyway.
117195         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
117196         and assume long long int is 64 bits if available.  This
117197         speeds up 'configure'.
117199 2006-07-01  Eric Blake  <ebb9@byu.net>
117201         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
117202         Reported by Andreas Buening.
117204 2006-07-01  Eric Blake  <ebb9@byu.net>
117206         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
117208 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
117210         * lib/getaddrinfo.c: fixed typo
117212 2006-06-29  Jim Meyering  <jim@meyering.net>
117214         * modules/strftime (Maintainer): Add my name, since with the
117215         FPRINTFTIME changes strftime.c has forked from glibc.
117217 2006-06-29  Eric Blake  <ebb9@byu.net>
117219         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
117221 2006-06-29  Eric Blake  <ebb9@byu.net>
117223         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
117225 2006-06-29  Eric Blake  <ebb9@byu.net>
117227         * lib/stat_.h: New file.
117229 2006-06-29  Eric Blake  <ebb9@byu.net>
117231         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
117232         unused static function.
117234 2006-06-29  Eric Blake  <ebb9@byu.net>
117236         * doc/functions.texi (Function Portability): Document missing lstat
117237         on mingw.
117239 2006-06-29  Eric Blake  <ebb9@byu.net>
117241         * MODULES.html.sh: Add sys_stat.
117242         * modules/sys_stat: New module.
117243         * modules/mkstemp (Depends-on): Add sys_stat.
117245 2006-06-29  Derek R. Price  <derek@ximbiot.com>
117247         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
117249 2006-06-29  Derek R. Price  <derek@ximbiot.com>
117251         * m4/c-bs-a.m4: Removed.
117253 2006-06-29  Derek R. Price  <derek@ximbiot.com>
117255         * lib/strftime.c: Assume strftime() exists.
117257 2006-06-29  Derek Price  <derek@ximbiot.com>
117259         * modules/c-bs-a: Removed - \a is C89.
117260         * MODULES.html.sh: Remove c-bs-a.
117262 2006-06-29  Bruno Haible  <bruno@clisp.org>
117264         * modules/wcwidth (License): Change to LGPL.
117266 2006-06-28  Simon Josefsson  <jas@extundo.com>
117268         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
117269         on _WIN32.
117271         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
117272         getnameinfo.
117274 2006-06-28  Simon Josefsson  <jas@extundo.com>
117276         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
117278 2006-06-28  Simon Josefsson  <jas@extundo.com>
117280         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
117281         functions there.  It will succeed on Windows XP, but on Windows
117282         2000 and (presumably) earlier, it will fail, and use the internal
117283         re-implementation.
117284         (use_win32_p): New function.
117285         (getaddrinfo): Use strtoul on servname, to support numeric ports.
117286         Support AI_NUMERICSERV to disable getservbyname.
117287         (getnameinfo): New function, only supports
117288         NI_NUMERICHOST|NI_NUMERICSERV for now.
117290         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
117291         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
117292         getnameinfo.
117294 2006-06-28  Eric Blake  <ebb9@byu.net>
117296         * modules/wcwidth: New file.
117297         * modules/mbchar (Depends-on): Add wcwidth.
117298         * modules/mbswidth (Depends-on): Add wcwidth.
117299         * MODULES.html.sh: Add wcwidth.
117301 2006-06-28  Eric Blake  <ebb9@byu.net>
117303         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
117304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
117306 2006-06-28  Eric Blake  <ebb9@byu.net>
117308         * lib/xvasprintf.h: Fix comments.
117310 2006-06-28  Eric Blake  <ebb9@byu.net>
117312         * lib/mbchar.h (wcwidth): Include wcwidth.h.
117313         * lib/mbswidth.c (wcwidth): Move from here...
117314         * lib/wcwidth.h: ...to this new file.
117316 2006-06-28  Derek R. Price  <derek@ximbiot.com>
117318         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
117320         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
117321         it's obsolete.
117322         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
117324 2006-06-28  Derek R. Price  <derek@ximbiot.com>
117326         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
117327         Autoconf 2.60 says this stuff was obsolete.
117329 2006-06-28  Bruno Haible  <bruno@clisp.org>
117331         * modules/wcwidth (Files): Add m4/wchar_t.m4.
117333 2006-06-28  Bruno Haible  <bruno@clisp.org>
117335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
117336         gt_TYPE_WCHAR_T.
117338 2006-06-28  Bruno Haible  <bruno@clisp.org>
117340         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
117341         declaration for wcwidth.
117342         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
117344 2006-06-28  Bruno Haible  <bruno@clisp.org>
117346         * lib/mkdtemp.c [MINGW]: Include <io.h>.
117347         (mkdir): Define using _mkdir.
117349 2006-06-28  Bruno Haible  <bruno@clisp.org>
117351         * lib/getaddrinfo.h: Fix POSIX URL.
117352         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
117353         _WIN32.
117354         (use_win32_p): Make static.
117355         (getaddrinfo): Reject service name if it is empty or does not consist
117356         solely of decimal digits, or if its value is > 65535.
117357         (getnameinfo): Remove useless casts.
117359 2006-06-27  Simon Josefsson  <jas@extundo.com>
117361         * modules/sys_select: New file, suggested by Bruno Haible, Paul
117362         Eggert and Martin Lambers.
117364 2006-06-27  Simon Josefsson  <jas@extundo.com>
117366         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
117367         Eggert and Martin Lambers.
117369 2006-06-27  Bruno Haible  <bruno@clisp.org>
117371         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
117372         result to 0, not to empty.
117373         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
117375 2006-06-27  Bruno Haible  <bruno@clisp.org>
117377         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
117379 2006-06-26  Simon Josefsson  <jas@extundo.com>
117381         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
117382         present.
117384 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
117386         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
117387         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
117388         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
117390 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
117392         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
117394 2006-06-26  Bruno Haible  <bruno@clisp.org>
117396         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
117398 2006-06-26  Bruno Haible  <bruno@clisp.org>
117400         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
117402 2006-06-26  Bruno Haible  <bruno@clisp.org>
117404         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
117405         SGI C compiler in pre-C99 mode.
117406         Suggested by Mark D. Baushke and Larry Jones.
117408 2006-06-26  Bruno Haible  <bruno@clisp.org>
117410         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
117411         WCHAR_MAX.
117412         Reported by Mark D. Baushke and Larry Jones.
117414 2006-06-26  Bruno Haible  <bruno@clisp.org>
117416         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
117417         in pre-C99 mode.
117418         Suggested by Mark D. Baushke and Larry Jones.
117420 2006-06-23  Simon Josefsson  <jas@extundo.com>
117421             Bruno Haible  <bruno@clisp.org>
117423         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
117424         Emit mostlyclean-local rule.
117425         (func_emit_tests_Makefile_am): Likewise.
117426         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
117428 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
117430         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
117432 2006-06-23  Bruno Haible  <bruno@clisp.org>
117434         * tests/test-stdint.c: Update to match ISO C 99 Technical
117435         Corrigendum 1.
117437 2006-06-23  Bruno Haible  <bruno@clisp.org>
117439         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
117441 2006-06-23  Bruno Haible  <bruno@clisp.org>
117443         * lib/stdint_.h: Treat IRIX like OpenBSD.
117445 2006-06-23  Bruno Haible  <bruno@clisp.org>
117447         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
117448         ISO C 99 Technical Corrigendum 1.
117450 2006-06-22  Simon Josefsson  <jas@extundo.com>
117452         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
117453         MinGW.
117455 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117457         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
117458         needed.  Some compiler complained about some of them.  Problem reported
117459         by Larry Jones in
117460         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
117462 2006-06-21  Simon Josefsson  <jas@extundo.com>
117464         * tests/test-getaddrinfo.c: New file.
117466         * modules/getaddrinfo-tests: New file.
117468         * MODULES.html.sh: Add inet_pton.
117470         * modules/inet_pton: New file.
117472 2006-06-21  Simon Josefsson  <jas@extundo.com>
117474         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
117475         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
117476         of using the (limited) gnulib implementation on Windows XP.
117478         * m4/inet_pton.m4: New file.
117480 2006-06-21  Simon Josefsson  <jas@extundo.com>
117482         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
117483         variable.
117485         * lib/socket_.h: Don't define WINVER.
117487         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
117488         slightly modified to work in gnulib.
117490 2006-06-21  Simon Josefsson  <jas@extundo.com>
117492         * doc/gnulib.texi (Windows sockets): Add.
117494 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
117496         * lib/read-file.c (fread_file): Start with buffer allocation of
117497         0 bytes rather than 1 byte; this simplifies the code.
117498         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
117499         code to free buffer and save/restore errno.
117500         (internal_read_file): Remove unused local.
117502 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
117504         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
117505         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
117506         Problem reported by Denis Excoffier in
117507         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
117509 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117511         * modules/sys_socket, modules/socklen: Include sys/types since
117512         FreeBSD 4.x's sys/socket.h needs it.
117514 2006-06-19  Simon Josefsson  <jas@extundo.com>
117516         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
117518 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
117520         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
117522 2006-06-19  Bruno Haible  <bruno@clisp.org>
117524         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
117525         and FULL_PATH_INTTYPES_H in angle brackets.
117526         Reported by Mark D. Baushke <mdb@gnu.org>.
117528 2006-06-17  Eric Blake  <ebb9@byu.net>
117530         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
117531         errno.
117533 2006-06-17  Bruno Haible  <bruno@clisp.org>
117535         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
117536         <sys/inttypes.h>.
117538 2006-06-17  Bruno Haible  <bruno@clisp.org>
117540         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
117541         whether errno is declared. Assume <errno.h> declares errno.
117543 2006-06-17  Bruno Haible  <bruno@clisp.org>
117545         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
117547 2006-06-17  Bruno Haible  <bruno@clisp.org>
117549         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
117550         problem on Solaris 2.5.1.
117552 2006-06-16  Eric Blake  <ebb9@byu.net>
117554         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
117555         * lib/unicodeio.c [!defined errno]: Likewise.
117556         * lib/strtol.c [!defined errno]: Likewise.
117557         * lib/strtod.c [!defined errno]: Likewise.
117559 2006-06-15  Eric Blake  <ebb9@byu.net>
117561         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
117563 2006-06-15  Eric Blake  <ebb9@byu.net>
117565         * config/srclist.txt (ssize_t.m4): Lose sync.
117567 2006-06-15  Bruno Haible  <bruno@clisp.org>
117569         * modules/stdint (Files): Include m4/full-header-path.m4,
117570         m4/size_max.m4, m4/wchar_t.m4.
117571         (Makefile.am): Many more substitutions.
117572         * modules/stdint-tests: New file.
117573         * tests/test-stdint.c: New file.
117575 2006-06-15  Bruno Haible  <bruno@clisp.org>
117577         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
117578         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
117579         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
117580         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
117581         gl_CHECK_TYPE_SAME): New macros.
117583 2006-06-15  Bruno Haible  <bruno@clisp.org>
117585         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
117587 2006-06-15  Bruno Haible  <bruno@clisp.org>
117589         * lib/stdint_.h: Rewritten to be fully auto-configured.
117590         Fixes bug on HP-UX/IA64.
117592 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
117594         * lib/getdate.y (__attribute__): Don't define if already defined.
117595         Problem reported by Larry Jones.
117596         * lib/utimens.c (__attribute__): Likewise.
117598 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
117600         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
117601         reported by Andreas Schwab.
117603 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117604             Bruno Haible  <bruno@clisp.org>
117606         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
117607         check for the declaration of strnlen and a run test that exposes the
117608         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
117609         rpl_strndup.
117611 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117612             Bruno Haible  <bruno@clisp.org>
117614         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
117616 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117618         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
117619         compile test, for Tru64 4.0D.
117621 2006-05-28  Karl Berry  <karl@gnu.org>
117623         * config/srclist.txt (printf-args.c): lose sync.
117625 2006-05-26  Martin Lambers  <marlam@marlam.de>
117627         * lib/getpass.c: Updates the test for the native W32 API, and adds
117628         missing includes, thus fixing compilation warnings.
117630 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117632         * lib/exclude.c (exclude_fnmatch): New function.
117633         (excluded_file_name): Call exclude_fnmatch.
117634         * lib/exclude.h (excluded_file_name): New prototype
117636 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
117638         * lib/tempname.c (small_open, large_open): New macros.
117639         (__open, __open64) [!_LIBC]: Remove.
117640         (__gen_tempname): Use small_open and large_open instead of __open
117641         and __open64.  This fixes a portability bug on HP-UX 11.11i
117642         reported by Simon Wing-Tang in
117643         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
117645 2006-05-24  Bruno Haible  <bruno@clisp.org>
117647         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
117648         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
117649         Reported by Thorsten Maerz <torte@netztorte.de> via
117650         Aaron Stone <aaron@serendipity.cx>.
117652 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
117655         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
117656         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
117657         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
117658         not really conditional on the cache.
117659         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
117661 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117663         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
117664         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
117665         (my_usleep): Don't mishandle maximum value.
117667 2006-05-19  Jim Meyering  <jim@meyering.net>
117669         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
117671 2006-05-17  Bruno Haible  <bruno@clisp.org>
117673         Cygwin portability.
117674         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
117676 2006-05-17  Bruno Haible  <bruno@clisp.org>
117678         * lib/stdint_.h: Fix recognition of Cygwin.
117680 2006-05-15  Bruno Haible  <bruno@clisp.org>
117682         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
117683         on libtool patch by Ralf Wildenhues.
117685 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117687         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
117688         test for C99 conformance; (bool) 0.5 is an integer constant
117689         expression, but (bool) -0.5 is not.  Problem reported by Fedor
117690         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
117692 2006-05-11  Simon Josefsson  <jas@extundo.com>
117694         * m4/xvasprintf.m4: Fix obvious typo.
117696 2006-05-11  Jim Meyering  <jim@meyering.net>
117698         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
117699         James Lemley.
117701 2006-05-10  Simon Josefsson  <jas@extundo.com>
117703         * lib/md4.c: Typo fix, update copyright years.
117704         (K1, K2): Don't use L because it turn computations into 64-bit on
117705         64-bit platforms.
117707 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
117709         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
117710         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
117711         unwanted sign propagation, e.g., on hosts with 64-bit int.
117712         There still are some problems with reeelly weird theoretical hosts
117713         (e.g., 33-bit int) but it's not worth worrying about now.
117714         * lib/sha1.c (rol): Likewise.
117715         (K1, K2, K3, K4): Remove unnecessary L suffix.
117717 2006-05-10  Bruno Haible  <bruno@clisp.org>
117719         * lib/des.c: Cast to avoid warnings.
117721 2006-05-09  Bruno Haible  <bruno@clisp.org>
117723         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
117724         (Depends-on): Depend also on xsize, stdarg.
117725         (configure.ac): Add gl_XVASPRINTF.
117727 2006-05-09  Bruno Haible  <bruno@clisp.org>
117729         * m4/xvasprintf.m4: New file.
117731 2006-05-09  Bruno Haible  <bruno@clisp.org>
117733         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
117734         (EOVERFLOW): Define fallback value.
117735         (xstrcat): New function.
117736         (xvasprintf): Recognize the special case of a string concatenation.
117738 2006-05-08  Eric Blake  <ebb9@byu.net>
117740         * gnulib-tool (func_version): Base copyright year on CVS date.
117741         (func_emit_copyright_notice): New function.
117742         (func_emit_lib_Makefile_am): Use it.
117743         (func_emit_tests_Makefile_am): Likewise.
117744         (func_import): Likewise.
117746 2006-05-08  Bruno Haible  <bruno@clisp.org>
117748         * modules/stdarg: New file.
117749         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
117751 2006-05-08  Bruno Haible  <bruno@clisp.org>
117753         * m4/stdarg.m4: New file, from GNU gettext.
117755 2006-05-08  Bruno Haible  <bruno@clisp.org>
117757         * config/srclist.txt (build-aux/config.rpath): different from latest
117758         release.
117760 2006-05-08  Bruno Haible  <bruno@clisp.org>
117762         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
117764 2006-05-05  Jim Meyering  <jim@meyering.net>
117766         * m4/warning.m4: New file, derived from bison's file by the same name.
117768 2006-05-03  Bruno Haible  <bruno@clisp.org>
117770         * lib/stdint_.h: Shorter URL.
117771         * lib/inttypes.h: Likewise.
117773 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117775         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
117777 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117779         * lib/verify.h: Document the internals better.  Most of this change
117780         was written by Bruno Haible.
117782 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117784         * doc/verify.texi: New file, partly based on a proposal by
117785         Bruno Haible.
117787 2006-05-02  Bruno Haible  <bruno@clisp.org>
117789         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
117790         test from here...
117791         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
117793 2006-04-29  Bruno Haible  <bruno@clisp.org>
117795         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
117796         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
117798 2006-04-29  Bruno Haible  <bruno@clisp.org>
117800         * gnulib-tool: Make --update option actually work.
117802 2006-04-29  Bruno Haible  <bruno@clisp.org>
117804         * doc/gcd.texi: New file.
117805         * doc/gnulib.texi: Include it.
117807 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
117809         * lib/getdate.y (get_date): When adding relative date, start with the
117810         initial time, not with the result of the first mktime call.
117812 2006-04-25  Bruno Haible  <bruno@clisp.org>
117814         * gnulib-tool (func_import): Output the include directives in three
117815         blocks, sorted separately.
117816         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117818 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117820         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
117821         to define main with arguments, for C++.  Reported by Eric Blake.
117822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
117823         Prefer 'int main ()' to 'int main (void)', for C++.
117824         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
117825         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
117826         for 'main', for C99 and C++.
117828 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117830         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
117831         Don't assume that exit status -1 is valid.
117832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117833         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
117834         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
117835         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
117836         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
117837         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
117838         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
117839         functions can be used without declaring them, or that you can
117840         exit with status -1.
117841         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
117843 2006-04-24  Karl Berry  <karl@gnu.org>
117845         * config/srclist.txt (longdouble.m4): sync lost.
117847 2006-04-24  Eric Blake  <ebb9@byu.net>
117849         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
117851 2006-04-24  Bruno Haible  <bruno@clisp.org>
117853         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
117854         poll() implementation in AIX.
117855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117857 2006-04-24  Bruno Haible  <bruno@clisp.org>
117859         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
117860         assigned exactly once.
117862 2006-04-23  Claudio Fontana  <claudio@gnu.org>
117863             Bruno Haible  <bruno@clisp.org>
117865         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
117866         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
117867         for AM_CPPFLAGS.
117869 2006-04-23  Bruno Haible  <bruno@clisp.org>
117871         * modules/copy-file: Depend on unistd.
117872         * modules/execute: Likewise.
117873         * modules/fatal-signal: Likewise.
117874         * modules/findprog: Likewise.
117875         * modules/mkdtemp : Likewise.
117876         * modules/pipe: Likewise.
117877         * modules/wait-process: Likewise.
117879 2006-04-23  Bruno Haible  <bruno@clisp.org>
117881         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
117882         condition was already detected.
117883         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117885 2006-04-23  Bruno Haible  <bruno@clisp.org>
117887         * lib/copy-file.c: Include <unistd.h> unconditionally.
117888         * lib/execute.c: Likewise.
117889         * lib/fatal-signal.c: Likewise.
117890         * lib/findprog.c: Likewise.
117891         * lib/mkdtemp.c: Likewise.
117892         * lib/pipe.h: Likewise.
117893         * lib/pipe.c: Likewise.
117894         * lib/wait-process.h: Likewise.
117896 2006-04-23  Bruno Haible  <bruno@clisp.org>
117898         * gnulib-tool (func_usage): Fix --import description. Document
117899         --update.
117900         (func_import): Create temporary file in a temporary directory, if
117901         --dry-run is specified. Silence errors from 'grep' when there are no
117902         m4 files in $m4dir.
117903         (func_create_testdir): Silence errors from 'grep' when there are no
117904         m4 files in $m4dir.
117905         Reported by Karl Berry <karl@freefriends.org>.
117907 2006-04-20  Bruno Haible  <bruno@clisp.org>
117909         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
117910         one argument, so that the code will be portable to Autoconf 2.60.
117911         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
117912         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
117913         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
117915 2006-04-19  Derek Price  <derek@ximbiot.com>
117916             Eric Blake  <ebb9@byu.net>
117918         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
117919         rather than "/full/path.h".  Update comment to match.  Shorten &
117920         generalize m4_translit call via AS_TR_CPP.
117922 2006-04-19  Derek Price  <derek@ximbiot.com>
117923             Eric Blake  <ebb9@byu.net>
117925         * lib/inttypes.h: Correct grammar in comment.
117927 2006-04-18  Derek Price  <derek@ximbiot.com>
117928             Paul Eggert  <eggert@cs.ucla.edu>
117930         * modules/inttypes: New file.
117931         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
117933 2006-04-18  Derek Price  <derek@ximbiot.com>
117934             Paul Eggert  <eggert@cs.ucla.edu>
117936         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
117937         New files.
117939 2006-04-18  Derek Price  <derek@ximbiot.com>
117940             Paul Eggert  <eggert@cs.ucla.edu>
117942         * lib/inttypes.h: New file.
117943         * lib/strtoimax.c: Assume <inttypes.h>.
117945 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
117947         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
117948         isn't mounted.  Problem reported by Kir Kolyshkin.
117950 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
117952         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
117953         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
117954         Derek R. Price.
117955         * lib/regex.h (RE_DUP_MAX): Update comment to match current
117956         implementation.
117958 2006-04-12  Eric Blake  <ebb9@byu.net>
117960         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
117961         is now done automatically by the corresponding Autoconf macro.
117963 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
117965         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
117966         time_r.h.
117968 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117970         Merge regex changes from libc, removing some of our
117971         POSIX-conformance changes that were rejected and redoing them in a
117972         less-intrusive way.
117974         * lib/regcomp.c (re_compile_internal, init_dfa):
117975         Length arg is now size_t, not Idx.  All uses changed.
117976         (peek_token): Forward decl now says internal_function.
117977         (__re_error_msgid, __re_error_msgid_idx):
117978         Now static rather than extern with attribute_hidden.
117979         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
117980         For some reason libc prefers K&R style defns for external functions.
117981         (regerror) [!defined _LIBC]: Likewise.
117982         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
117983         (seek_collating_symbol_entry, lookup_collation_sequence_value):
117984         (build_range_exp, build_collating_symbol):
117985         Use K&R-style defn.
117986         (re_compile_fastmap): Use '\0' to memset, not 0.
117987         (utf8_sb_map): Make the calculations more obvious.
117988         (init_dfa, parse_bracket_exp, build_charclass_op):
117989         Call calloc and cast result, as glibc does.
117990         (init_word_char, fetch_token, peek_token, peek_token_bracket):
117991         (build_range_exp, build_collating_symbol):
117992         Now internal functions.
117994         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
117996         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
117997         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
117998         Don't depend on VMS; depend on __VMS instead, for POSIX
117999         namespace cleanness.
118000         (regoff_t): Define to ssize_t, not long int.
118002         Remove the REG_ macros named below.  Instead, make the old names
118003         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
118004         __USE_GNU_REGEX.
118005         (REG_BACKSLASH_ESCAPE_IN_LISTS):
118006         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
118007         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
118008         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
118009         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
118010         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
118011         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
118012         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
118013         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
118014         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
118015         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
118016         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
118017         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
118018         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
118019         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
118020         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
118021         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
118022         (REG_NREGS):
118023         Remove.  All uses replaced by the old RE_* names.
118024         (RE_BACKSLASH_ESCAPE_IN_LISTS):
118025         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
118026         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
118027         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
118028         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
118029         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
118030         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
118031         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
118032         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
118033         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
118034         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
118035         Don't bother having these macros be independent of each others'
118036         values, since they no longer exist in the POSIX name space.
118038         Rename the following member names back to their old names,
118039         unless !__USE_GNU_REGEX.  All uses changed back.
118040         (buffer): Renamed from re_buffer.
118041         (allocated): Renamed from re_allocated.
118042         (used): Renamed from re_used.
118043         (syntax): Renamed from re_syntax.
118044         (fastmap): Renamed from re_fastmap.
118045         (translate): Renamed from re_translate.
118046         (can_be_null): Renamed from re_can_be_null.
118047         (regs_allocated): Renamed from re_regs_allocated.
118048         (fastmap_accurate): Renamed from re_fastmap_accurate.
118049         (no_sub): Renamed from re_no_sub.
118050         (not_bol): Renamed from re_not_bol.
118051         (not_eol): Renamed from re_not_eol.
118052         (newline_anchor): Renamed from re_newline_anchor.
118053         (num_regs): Renamed from rm_num_regs.
118054         (start): Renamed from rm_start.
118055         (end): Renamed from rm_end.
118057         (free_state): Move up a bit.
118059         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
118060         #define to be empty.
118061         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
118062         when that is what is intended.
118063         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
118064         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
118065         (MAX): New macro.
118066         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
118067         All uses changed back to re_malloc, etc.  It's now the caller's
118068         responsibility to check for overflow; all callers changed.
118069         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
118070         (re_x2nrealloc): Remove.
118071         (free_state): Remove decl.
118073         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
118074         (re_set_registers, re_exec):
118075         Use K&R-style defn.
118077         2006-01-31  Roland McGrath  <roland@redhat.com>
118079         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
118080         Reported by Mike Frysinger <vapier@gentoo.org>.
118082         2006-01-15  Andreas Jaeger  <aj@suse.de>
118084         [BZ #1950]
118085         * lib/regex_internal.c (re_string_reconstruct): Adjust for
118086         build_wcs_upper_buffer change.
118087         (build_wcs_upper_buffer): Change return type.
118089         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
118091         * lib/regex_internal.h: Include <stdint.h> if available.
118093         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
118095         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
118097         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
118099         * lib/regcomp.c: Adjust for changed secondary hash function.
118101         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
118103         * lib/regex.h: Pretty printing.
118104         Clean up namespace a bit.
118106         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
118108         * lib/regexec.c (update_cur_sifted_state, check_arrival,
118109         check_arrival_add_next_nodes): Avoid using uninitialized variable.
118111         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118112                     Ulrich Drepper  <drepper@redhat.com>
118114         [BZ #1302]
118115         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
118116         changed.
118117         (bitset_word_t): Renamed from bitset_word.  All uses changed.
118119         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
118121         [BZ #281]
118122         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
118123         * lib/regcomp.c: Remove unnecessary uses of
118124         unsigned RE_TRANSLATE_TYPE.
118125         * lib/regex_internal.h: Likewise.
118126         * lib/regex_internal.c: Likewise.
118127         * lib/regexec.c: Likewise.
118128         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
118130         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
118132         * lib/regexec.c (find_recover_state): Remove unnecessary
118133         initialization.
118134         (transit_state_bkref): Make DFA a const pointer.
118135         (get_subexp): Likewise.
118136         (check_arrival): Likewise.
118137         (update_cur_sifted_state): Likewise.
118138         (re_search_internal): Likewise.
118139         (prune_impossible_nodes): Likewise.
118140         (acquire_init_state_context): Likewise.
118141         (proceed_next_node): Likewise.
118142         (set_regs): Likewise.
118143         (free_fail_stack_return): Likewise.
118144         (check_arrival_expand_ecl): Mark DFA parameter as const.
118145         (check_arrival_expand_ecl_sub): Likewise.
118146         (check_subexp_limits): Likewise.
118147         (sub_epsilon_src_nodes):  Likewise.
118148         (add_epsilon_src_nodes):  Likewise.
118149         (merge_state_array): Likewise.
118150         (update_regs): Likewise.
118151         (build_trtable): Likewise.
118152         (sift_states_backward): Mark MCTX parameter as const.
118153         (build_sifted_states): Likewise.
118154         (update_cur_sifted_state): Likewise.
118155         (sift_states_mkref): Likewise.
118156         (check_arrival_expand_ecl): Mark eclosure as const.
118157         (check_dst_limits_calc_pos_1): Likewise.
118158         * lib/regex_internal.h (re_match_context_t): Make dfa a const
118159         pointer.
118161         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
118163         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
118164         (transit_state_sb): Likewise.
118165         (transit_state_mb): Likewise.
118166         (sift_states_iter_mb): Likewise.
118167         (check_arrival_add_next_nodes): Likewise.
118168         (check_node_accept_bytes): Change first parameter to pointer-to-const.
118169         [_LIBC] (re_search_2_stub): Use mempcpy.
118171         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
118172         mbrtowc for very simple UTF-8 case.
118174         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
118175         a pointer-to-const.
118176         (re_acquire_state_context): Likewise.
118177         * lib/regex_internal.h: Adjust prototypes.
118179         * lib/regex.c: Prevent using C++ compilers.
118181         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
118182         (re_acquire_state_context): Likewise.
118184 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
118186         * modules/regex (Depends-on): Add ssize_t.
118188 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
118190         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
118191         translation table.
118193 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
118195         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
118197 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
118198             Bruno Haible  <bruno@clisp.org>
118200         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
118201         <sys/types.h> and <inttypes.h>.
118203 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118205         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
118206         `__error_t_defined', so argp.h will not typedef the former.
118208 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
118210         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
118211         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
118212         glibc names.  Even if glibc is changed to conform to POSIX, the
118213         traditional names will be available anyway, since regex depends on
118214         the extensions module.  Also, fix a longstanding typo in the
118215         implementation of Spencer ERE test #75 from grep 2.3.  Problems
118216         reported by Emanuele Giaquinta.  Also, change sense of cached
118217         variable, so that the message makes sense.
118219 2006-03-24  Simon Josefsson  <jas@extundo.com>
118221         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
118222         including some doc fixes.
118223         (base64_encode_alloc): Fix +1 bug on allocation failures.
118225 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118227         * lib/base64.c (base64_encode): Do not read past end of array with
118228         unsanitized input on systems with CHAR_BIT > 8.
118230 2006-03-24  Eric Blake  <ebb9@byu.net>
118232         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
118234 2006-03-22  Karl Berry  <karl@gnu.org>
118236         * config/srclist.txt (*setenv.[ch]): get from coreutils.
118237         * config/srclistvars.sh (COREUTILS): new var.
118239 2006-03-17  Jim Meyering  <jim@meyering.net>
118241         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
118242         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
118244 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
118246         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
118247         no longer needs it.  Instead, check that regoff_t is as least
118248         as wide as ptrdiff_t.
118250         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
118251         so that our regex.h stays compatible with the installed regex.
118252         This is helpful for installers who configure --without-included-regex.
118253         Problem reported by Emanuele Giaquinta.
118255 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
118257         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
118258         Typedef to long int, not to off_, as POSIX will likely change
118259         in that direction.
118261 2006-03-15  Eric Blake  <ebb9@byu.net>
118263         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
118265 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
118267         * lib/argp-help.c (validate_uparams): Fix typo
118268         * lib/argp-parse.c (argp_default_options): Consistently begin help
118269         messages with a lowercase letter.
118271 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
118273         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
118274         overrun buffers and shouldn't be used (much as gets shouldn't be
118275         used).
118276         * lib/time_r.c (asctime_r, ctime_r): Likewise.
118278 2006-03-08  Simon Josefsson  <jas@extundo.com>
118280         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
118281         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118283 2006-03-08  Simon Josefsson  <jas@extundo.com>
118285         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
118286         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118288 2006-03-08  Simon Josefsson  <jas@extundo.com>
118290         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
118291         signal that configure disabled the device.
118293 2006-03-08  Simon Josefsson  <jas@extundo.com>
118295         * build-aux/maint.mk: Fix refresh-po, to handle no translated
118296         languages.
118298 2006-03-07  Simon Josefsson  <jas@extundo.com>
118300         * modules/getopt (Depends-on): Add unistd.
118302         * modules/unistd: New file.
118304 2006-03-07  Simon Josefsson  <jas@extundo.com>
118306         * modules/gc-random: New file.
118308 2006-03-07  Simon Josefsson  <jas@extundo.com>
118310         * m4/unistd_h.m4: New file.
118312 2006-03-07  Simon Josefsson  <jas@extundo.com>
118314         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
118315         test to be side-effect free by storing the result in the cache
118316         variable gl_cv_lib_readline, and moving the assignment of
118317         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
118318         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118320 2006-03-07  Simon Josefsson  <jas@extundo.com>
118322         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
118323         error on missing devices (the functions will return an error).
118325         * m4/gc.m4: Move random stuff to gc-random.m4
118327 2006-03-07  Simon Josefsson  <jas@extundo.com>
118329         * lib/unistd_.h: New file.
118331 2006-03-07  Simon Josefsson  <jas@extundo.com>
118333         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
118335 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118337         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
118338         Problem reported by Juan Manuel Guerrero.
118340 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118342         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
118343         the unistd module.
118344         * lib/getlogin_r.c: Likewise.
118345         * lib/getlogin_r.h: Likewise.
118346         * lib/glob.c: Likewise.
118347         * lib/pagealign_alloc.c: Likewise.
118348         * lib/unistd_.h: Remove; no longer needed.
118350 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118352         * MODULES.html.sh (Support for systems lacking POSIX:2001):
118353         Add unistd.
118354         * modules/c-stack (Depends-on): Add unistd.
118355         * modules/getlogin_r: Likewise.
118356         * modules/glob: Likewise.
118357         * modules/pagealign_alloc: Likewise.
118358         * modules/unistd (Files): Remove lib/unistd_.h.
118359         (EXTRA_DIST): Remove.
118360         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
118361         need unistd_.h.
118362         (MOSTLYCLEANFILES): Remove unistd.h-t.
118364 2006-03-03  Simon Josefsson  <jas@extundo.com>
118366         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
118368 2006-03-03  Simon Josefsson  <jas@extundo.com>
118370         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
118371         libidn and bison.
118373 2006-03-03  Simon Josefsson  <jas@extundo.com>
118375         * build-aux/maint.mk: Add indent target.
118377 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
118379         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
118380         our replacement poll.h in any case, to avoid a differing
118381         declaration from a system header.  Seen on AIX.
118383 2006-03-01  Simon Josefsson  <jas@extundo.com>
118385         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
118386         <kasal@ucw.cz>.
118388 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118390         * modules/gettime (Depends-on): Add extensions module.
118391         * modules/nanosleep (Depends-on): Likewise.
118392         * modules/settime (Depends-on): Likewise.
118394 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118396         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
118397         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
118398         pedantically.
118399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
118400         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
118402         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
118403         not "==".  Reported by Ralf Wildenhues.
118405 2006-03-01  Karl Berry  <karl@gnu.org>
118407         * doc/Copyright/request-*: new files, synced from gnuorg.
118409 2006-03-01  Karl Berry  <karl@gnu.org>
118411         * config/srclist.txt (Copyright/*): new entries.
118413 2006-02-28  Simon Josefsson  <jas@extundo.com>
118415         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
118417 2006-02-27  Simon Josefsson  <jas@extundo.com>
118419         * lib/base64.h: Indent #define's.  From Jim Meyering
118420         <jim@meyering.net>.
118422 2006-02-27  Jim Meyering  <jim@meyering.net>
118424         Revert the change of 2006-02-24, so these files can continue
118425         to be sync'd from gettext.
118426         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
118427         of `config.h'.
118429 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118431         * modules/intprops: New file.
118432         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
118433         Add intprops.
118434         * modules/getloadavg (Files): Remove lib/intprops.h.
118435         (Depends-on): Add intprops.
118436         * modules/human: Likewise.
118437         * modules/inttostr: Likewise.
118438         * modules/openat: Likewise.
118439         * modules/sig2str: Likewise.
118440         * modules/userspec: Likewise.
118441         * modules/utimecmp: Likewise.
118442         * modules/xnanosleep: Likewise.
118443         * modules/xstrtol: Likewise.
118445 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
118447         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
118448         * modules/lock-tests (TESTS): Use $(EXEEXT).
118449         * modules/tls-tests: Likewise.
118450         * modules/argp-tests: Likewise.
118451         (check_PROGRAMS): New var, replacing...
118452         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
118454 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118456         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
118457         `config.h'.
118459 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
118461         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
118463 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118465         Sync from coreutils.
118466         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
118467         gl_CHDIR_SAFER.
118469 2006-02-22  Jim Meyering  <jim@meyering.net>
118471         Sync from coreutils.
118472         * m4/chdir-safer.m4: New file.
118474 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
118476         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
118477         AT_FDCWD exceeds INT_MAX.
118478         * lib/openat.h (AT_FDCWD): Likewise.
118480 2006-02-17  Eric Blake  <address@hidden>
118482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
118484 2006-02-16  Simon Josefsson  <jas@extundo.com>
118486         * modules/getaddrinfo (Depends-on): Add sys_socket.
118488 2006-02-15  Simon Josefsson  <jas@extundo.com>
118490         * build-aux/maint.mk: Add dsyntax-check rule.
118492 2006-02-15  Eric Blake  <ebb9@byu.net>
118494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
118495         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
118496         'present but cannot compile' warnings on cygwin.
118497         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
118498         use ws2tcpip.h if sys/socket.h works.
118499         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
118500         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
118502 2006-02-14  Simon Josefsson  <jas@extundo.com>
118504         * modules/maintainer-makefile (Files): Rename.
118506         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
118507         and (the local) Makefile.cfg to maint-cfg.mk.
118509         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
118510         to the latter.
118512         * modules/maintainer-makefile: New module.
118514         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
118515         severaly stripped to make it possible to build it up from scratch
118516         with reliable tests.
118518         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
118519         fixes to permit overriding the default actions when configure and
118520         makefile are not available.
118522 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
118524         Sync from coreutils.
118525         * modules/lstat (Depends-on): Don't depend on xalloc.
118526         (License): Change from GPL to LGPL, since this is now simply a
118527         replacement for a libc function.
118529 2006-02-14  Jim Meyering  <jim@meyering.net>
118531         Sync from coreutils.
118533         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
118534         failure on deficient systems, and simplify gnulib lgpl dependencies.
118535         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
118536         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
118538         * lib/xalloc-die.c: Remove unused definition of N_.
118540 2006-02-14  Jim Meyering  <jim@meyering.net>
118542         Sync from coreutils.
118543         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
118544         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
118545         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
118546         double-quote uses of that variable, to accommodate the rare case in
118547         which getmntent is available in none of the libraries checked.  This
118548         happens at least on FreeBSD 5.0.
118550 2006-02-13  Simon Josefsson  <jas@extundo.com>
118552         * gnulib-tool (Usage): Fix --import, from
118553         karl@freefriends.org (Karl Berry).
118555 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
118557         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
118559 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
118561         * lib/argp-namefrob.h: Restore changes accidentally lost during the
118562         "autoupdate" on 2005-12-12.
118564 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118566         * modules/closeout (Depends-on): Remove atexit.
118568 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118570         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
118571         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
118573 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
118575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
118576         __EXTENSIONS__ if this causes compilation to fail.  Problem
118577         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
118578         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
118580 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
118582         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
118583         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
118584         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
118585         All uses changed.
118587 2006-01-26  Simon Josefsson  <jas@extundo.com>
118589         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
118590         prototype is visible on mingw32.
118592         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
118593         for mingw32.
118595         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
118596         mingw32).
118598 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
118600         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
118601         attempt to open for write; this always fails, at least on POSIX
118602         hosts.  This reinstates the 2006-01-09 change, which was
118603         inadvertently removed.
118605 2006-01-26  Bruno Haible  <bruno@clisp.org>
118607         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
118608         Reported by Paul Eggert.
118610 2006-01-26  Bruno Haible  <bruno@clisp.org>
118611             Paul Eggert  <eggert@cs.ucla.edu>
118613         * lib/stdbool_.h (_Bool)
118614         [(! (defined __cplusplus || defined __BEOS__)
118615           && !defined __GNUC__
118616           && !(defined __HP_cc || defined __xlc__
118617                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
118618                || defined __sgi))]:
118619         #define to signed char in these cases too; this simplifies
118620         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
118621         etc., separately) and makes it more conservative.
118623 2006-01-25  Simon Josefsson  <jas@extundo.com>
118625         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
118626         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
118627         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
118629 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
118631         * lib/argp-namefrob.h: Bugfix. Remove stray #
118633 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
118635         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
118636         so that we test the test.
118637         Check for yet another HP-UX cc bug involving *bool |= bool.
118639 2006-01-25  Karl Berry  <karl@gnu.org>
118641         * config/srclist.txt (vasnprintf.c): sync lost.
118643 2006-01-25  Jim Meyering  <jim@meyering.net>
118645         Sync from the stable (b5) branch of coreutils:
118647         * lib/fts.c (fts_children): Don't let close() clobber errno from
118648         failed fchdir().
118650         * lib/fts.c (fts_stat): When following a symlink-to-directory,
118651         don't necessarily interpret stat-fails+lstat-succeeds as indicating
118652         a dangling symlink.  That can also happen at least for ELOOP.
118653         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
118654         FYI, this bug predates the inclusion of fts.c in coreutils.
118656         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
118657         in their own block, so pre-c99 compilers don't object.
118659         Avoid the double-free (first in fts_read, second in fts_close) that
118660         would occur when an `active' directory is made inaccessible (e.g.,
118661         via chmod a-x) during a traversal.
118662         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118663         before returning.  Reproduce this failure by
118664         mkdir -p a/b; cd a; chmod a-x . b
118665         Reported by Stavros Passas.
118667 2006-01-25  Jim Meyering  <jim@meyering.net>
118669         * lib/fileblocks.c: Remove more useless parentheses.
118670         * lib/readutmp.h: Likewise.
118672 2006-01-25  Bruno Haible  <bruno@clisp.org>
118674         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
118675         warnings.
118676         Reported by Paul Eggert.
118678 2006-01-25  Bruno Haible  <bruno@clisp.org>
118680         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
118681         rid of a trap command. For Solaris sh.
118682         Reported by Mark D. Baushke <mdb@gnu.org>.
118684 2006-01-24  Simon Josefsson  <jas@extundo.com>
118686         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
118687         Bruno.
118689 2006-01-24  Karl Berry  <karl@gnu.org>
118691         * config/srclist.txt (argp-namefrob.h): sync lost.
118693 2006-01-24  Jim Meyering  <jim@meyering.net>
118695         * modules/openat (Files): Add lib/intprops.h.
118696         From Mark D. Baushke.
118698 2006-01-24  Jim Meyering  <jim@meyering.net>
118700         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
118701         Reported by Mark D. Baushke.
118703 2006-01-24  Jim Meyering  <jim@meyering.net>
118705         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
118707 2006-01-24  Bruno Haible  <bruno@clisp.org>
118709         * modules/strnlen (Maintainer): Change from glibc to all.
118711 2006-01-24  Bruno Haible  <bruno@clisp.org>
118713         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
118714         Patch by Paul Eggert.
118716 2006-01-24  Bruno Haible  <bruno@clisp.org>
118718         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
118719         already has it.
118720         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
118721         2005-11-26.
118723         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
118724         'signed char' to avoid problems with the built-in _Bool type.
118725         Reported by Paul Eggert on 2005-11-26.
118727 2006-01-24  Bruno Haible  <bruno@clisp.org>
118729         * gnulib-tool (func_import): Avoid constructing complicated sed
118730         expressions inside backquote.
118731         Report and solution by Mark D. Baushke <mdb@gnu.org>.
118733 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
118735         These changes imported from libc.
118736         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
118737         test and two separate function calls.
118738         * lib/strndup.c (__strndup): Add libc_hidden_def.
118740 2006-01-23  Simon Josefsson  <jas@extundo.com>
118742         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
118743         Remove the test_*_SOURCES variable: automake infers it by default.
118744         * modules/tls-tests: Likewise.
118746 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118748         Work around porting bugs reported by Dieter in
118749         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
118750         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
118751         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
118752         Include "getopt.h" first, to check interface.
118753         (getenv): Declare only if defined HAVE_DECL_GETENV &&
118754         !HAVE_DECL_GETENV.
118755         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
118756         (__strndup): Revert to K&R-style function dfns, the glibc style.
118757         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
118758         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
118759         Include strnlen.h first, to get prototype properly.
118760         (strnlen): Renamed from __strnlen.
118761         Remove weak alias.
118763 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118765         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
118767 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118769         * config/srclist.txt: Adjust to reflect glibc reorganization.
118770         This affects only comments.
118772 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118774          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
118775          Reported by Bruce Korb <bkorb@gnu.org>.
118777 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
118779         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
118780         to pacify gcc -Wswitch-default.
118782 2006-01-22  Bruno Haible  <bruno@clisp.org>
118784         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
118785         temporary buffer for sprintf, take into account the precision also
118786         for 'd', 'i', 'u', 'o', 'x', 'X'.
118788 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118790         * modules/argp-tests: New module
118791         * tests/test-argp.c: New file
118792         * tests/test-argp-2.sh: New file
118794 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118796         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
118797         (__argp_base_name): Removed
118798         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
118799         typo.
118800         (__argp_base_name): Provide macro definition or extern declaration
118801         depending on the configuration
118803 2006-01-20  Simon Josefsson  <jas@extundo.com>
118805         * modules/inet_ntop (Depends-on): Depend on sys_socket.
118807 2006-01-20  Simon Josefsson  <jas@extundo.com>
118809         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
118811 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118813         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
118814         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
118815         Suggested by Bruno Haible.
118817 2006-01-20  Karl Berry  <karl@gnu.org>
118819         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
118820         until changes propagate, I guess.
118822 2006-01-19  Simon Josefsson  <jas@extundo.com>
118824         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
118826 2006-01-19  Simon Josefsson  <jas@extundo.com>
118828         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
118830 2006-01-19  Simon Josefsson  <jas@extundo.com>
118832         * gnulib-tool: Set check_PROGRAMS.
118834         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118835         modules/des-tests, modules/gc-arcfour-tests,
118836         modules/gc-arctwo-tests, modules/gc-des-tests,
118837         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118838         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118839         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118840         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118841         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118842         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
118843         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
118844         test_*_SOURCES.
118846 2006-01-18  Simon Josefsson  <jas@extundo.com>
118848         * modules/socklen (Depends-on): Depend on sys_socket.
118850 2006-01-18  Simon Josefsson  <jas@extundo.com>
118852         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118853         modules/des-tests, modules/gc-arcfour-tests,
118854         modules/gc-arctwo-tests, modules/gc-des-tests,
118855         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118856         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118857         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118858         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118859         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118860         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
118861         $(EXEEXT) to automake TESTS variable, for mingw32.
118863 2006-01-17  Simon Josefsson  <jas@extundo.com>
118865         * modules/socklen (Include): Need sys/socket.h.
118867 2006-01-17  Bruno Haible  <bruno@clisp.org>
118869         * modules/ssize_t (Include): Add <sys/types.h>.
118871 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
118873         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
118874         it's not portable and it doesn't work with cross-compiles.
118875         Problem reported by Bruno Haible.  Fix missing-$ typo in
118876         'test "gl_cv_ignore_unused_libraries" ...' that prevented
118877         -zignore from being used with Sun's C compiler.
118879 2006-01-12  Simon Josefsson  <jas@extundo.com>
118881         * lib/base64.c: Fix warning, reported by Bruno Haible
118882         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
118884 2006-01-12  Bruno Haible  <bruno@clisp.org>
118886         * modules/ldd: New file.
118887         * build-aux/ldd.sh.in: New file.
118888         * MODULES.html.sh (Support for building libraries and executables): Add
118889         ldd.
118891 2006-01-12  Bruno Haible  <bruno@clisp.org>
118893         * m4/ldd.m4: New file.
118895 2006-01-12  Bruno Haible  <bruno@clisp.org>
118897         * gnulib-tool (func_import, func_create_testdir): Don't go into an
118898         endless loop while replacing $auxdir with build-aux.
118900 2006-01-11  Simon Josefsson  <jas@extundo.com>
118902         * lib/stdint_.h (SIZE_MAX): Add missing (.
118904 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
118906         Sync from coreutils.
118907         * lib/md5.c: Fix commentary typos.
118908         (alignof, UNALIGNED_P): No need for a GCC-specific version.
118909         * lib/md5.h (__attribute__): Remove; unused.
118910         * lib/sha1.c: Fix commentary to match md5 better.
118911         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
118912         so that we don't need to worry about alignment.  All uses changed.
118913         This merges the 2005-10-28 md5 change into sha1.
118915 2006-01-11  Jim Meyering  <jim@meyering.net>
118917         Sync from coreutils.
118918         * lib/md5.c (OP): Fix spacing.
118920 2006-01-11  Bruno Haible  <bruno@clisp.org>
118922         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118923         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
118924         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
118926 2006-01-11  Bruno Haible  <bruno@clisp.org>
118928         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118929         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
118930         the "early" section as well.
118932 2006-01-11  Bruno Haible  <bruno@clisp.org>
118934         Avoid "ar: no archive members specified" error on MacOS X.
118935         * gnulib-tool (func_modules_add_dummy): New function.
118936         (func_import, func_create_testdir): Invoke it.
118938 2006-01-11  Bruno Haible  <bruno@clisp.org>
118940         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
118941         with $auxdir in AC_CONFIG_FILES statements.
118943 2006-01-11  Bruno Haible  <bruno@clisp.org>
118945         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
118946         Initialize also noinst_HEADERS to empty.
118948 2006-01-11  Bruno Haible  <bruno@clisp.org>
118950         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
118951         variables.
118952         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
118953         autoreconf.
118955 2006-01-11  Bruno Haible  <bruno@clisp.org>
118957         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
118958         overridable by the user.
118959         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118961 2006-01-10  Simon Josefsson  <jas@extundo.com>
118963         * modules/sys_socket: New file.
118965 2006-01-10  Simon Josefsson  <jas@extundo.com>
118967         * m4/sys_socket_h.m4: New file.
118969 2006-01-10  Simon Josefsson  <jas@extundo.com>
118971         * lib/socket_.h: New file.
118973 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118975         * modules/readutmp (Maintainer): Add myself.
118977 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118979         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
118980         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
118981         People who are still concerned with buggy memcmp implementations
118982         can invoke gl_FUNC_MEMCMP themselves.
118984 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118986         * lib/regex_internal.h (BITSET_WORD_BITS):
118987         Work around a bug in 64-bit PGC (before version 6.1-2), where the
118988         preprocessor mishandles large unsigned values as if they were signed.
118989         Problem reported by Claudio Fontana in
118990         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
118992 2006-01-10  Jim Meyering  <jim@meyering.net>
118994         Avoid the double-free (first in fts_read, second in fts_close) that
118995         would occur when an `active' directory is made inaccessible (e.g.,
118996         via chmod a-x) during a traversal.
118997         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118998         before returning.  Reproduce this failure by
118999         mkdir -p a/b; cd a; chmod a-x . b
119000         Reported by Stavros Passas.
119002         Sync from coreutils.
119003         * lib/sha1.c: Tweak grammar in a comment.
119005 2006-01-10  Jim Meyering  <jim@meyering.net>
119007         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
119008         Patch by Joerg Sonnenberger.
119010 2006-01-10  Bruno Haible  <bruno@clisp.org>
119012         * modules/readutmp: Depend on module free.
119013         * modules/strtok_r: Depend on module restrict.
119015 2006-01-10  Bruno Haible  <bruno@clisp.org>
119017         * modules/gettext (configure.ac): Add an invocation of
119018         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
119020 2006-01-10  Bruno Haible  <bruno@clisp.org>
119022         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
119023         Reported by Werner Lemberg <wl@gnu.org>.
119025 2006-01-10  Bruno Haible  <bruno@clisp.org>
119027         * lib/localcharset.c: Update from GNU gettext.
119029 2006-01-10  Bruno Haible  <bruno@clisp.org>
119031         * lib/argp.h (__const): Remove macro. Use const instead.
119032         * lib/argp-fmtstream.h (__const): Likewise.
119033         * lib/glob_.h (__const): Remove macro.
119034         * lib/glob-libc.h: Use const instead of __const.
119036 2006-01-10  Bruno Haible  <bruno@clisp.org>
119038         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
119039         variable.
119040         Needed to avoid an automake error regarding the 'gettext' module.
119042 2006-01-09  Simon Josefsson  <jas@extundo.com>
119044         * modules/inet_ntop (Depends-on): Add restrict.
119046 2006-01-09  Simon Josefsson  <jas@extundo.com>
119048         * modules/gc-rijndael-tests (License): Put under LGPL.
119050         * modules/gc-des-tests (License): Likewise.
119052         * modules/gc-arcfour-tests (License): Likewise.
119054         * modules/gc-arctwo-tests (License): Likewise.
119056         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
119058         * modules/gc-hmac-sha1-tests (Files): Likewise.
119060         * modules/gc-hmac-md5-tests (License): Likewise.
119062         * modules/gc-sha1-tests (License): Likewise.
119064         * modules/gc-md5-tests (License): Likewise.
119066         * modules/gc-md4-tests (License): Likewise.
119068         * modules/gc-md2-tests (License): Likewise.
119070         * modules/gc-tests (License): Likewise.
119072         * modules/des-tests (License): Likewise.
119074         * modules/md4-tests (License): Likewise.
119076         * modules/md2-tests (License): Likewise.
119078 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
119080         Sync from coreutils:
119082         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
119083         * modules/lib-ignore: New file.
119084         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
119085         chdir-safer.m4, lchmod.m4.
119086         * modules/openat: Add mkdirat.c, openat-priv.h.
119088 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
119090         Sync from coreutils.
119091         * m4/lib-ignore.m4: New file.
119092         * m4/lchmod.m4: New file.
119094 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
119096         Sync from coreutils.
119097         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
119098         for write access: POSIX says that must fail.
119099         * lib/fts.c (diropen): Likewise.
119100         * lib/save-cwd.c (save_cwd): Likewise.
119101         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
119102         well, for minor improvements on hosts that lack O_DIRECTORY.
119103         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
119104         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
119105         Fall back on chown if open failed with EACCES.
119107         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
119108         Report an error at compile-time if only a 1-second nominal clock
119109         resolution is found.
119111         * lib/lchmod.h: New file.
119112         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
119113         (make_dir_parents): Use lchown rather than chown, and
119114         lchmod rather than chmod.
119116         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
119117         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
119118         "proc" reported by n0dalus.
119120         * lib/mountlist.c: Include <limits.h>.
119121         (dev_from_mount_options)
119122         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
119123         New function.  It no longer assumes "dev=" has the System V meaning
119124         on Linux (since it doesn't).  It also parses "dev=" more carefully.
119125         (read_file_system_list)
119126         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
119127         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
119128         dev= in that case.
119130         * lib/posixtm.h (PDS_PRE_2000): New macro.
119131         * lib/posixtm.c (year): Arg is now syntax_bits rather than
119132         allow_century.  All usages changed.  Reject dates outside the range
119133         1969-1999 if PDS_PRE_2000 is used.
119135 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
119137         Sync from coreutils.
119138         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
119139         (Time of day items): Mention the possibility of leap seconds.
119140         Problem reported by Dr. David Alan Gilbert.
119142 2006-01-09  Jim Meyering  <jim@meyering.net>
119144         Sync from coreutils.
119146         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
119148         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
119150         * lib/modechange.c (mode_compile): Reject an invalid mode string
119151         that starts with an octal digit.  From Andreas Gruenbacher.
119153         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
119154         and dup to open_safer and dup_safer, respectively.
119155         (openat_permissive): Fix typo in comment.
119157         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
119158         "gettext.h"; either no longer needed or are guaranteed by openat.h.
119159         (_): Remove; no longer needed.
119160         (openat): Renamed from rpl_openat; no need for rpl_openat
119161         since openat.h renames openat for us.
119162         Replace most of the body with a call to openat_permissive,
119163         to avoid duplicate code.
119164         Port to (probably hypothetical) environments were mode_t is
119165         wider than int.
119166         (openat_permissive): Require mode arg, so that we can check
119167         types better.  Put it just after flags.  Change cwd failure
119168         indicator from pointer-to-bool to pointer-to-errno-value.
119169         All callers changed.
119170         Invoke openat_save_fail and/or openat_restore_fail if
119171         cwd_errno is null, so that openat can call us.
119172         (openat_permissive, fdopendir, fstatat, unlinkat):
119173         Simplify errno handling to avoid some duplicate code,
119174         as it's OK to set errno on success.
119175         * lib/openat.h: Revamp code so that function macros depend on
119176         __OPENAT_PREFIX only, not also on AT_FDCWD.
119177         (openat_ro): Remove.  Caller changed to use openat_permissive.
119178         (openat_permissive): Now a macro, if not a function.
119179         (openat_restore_fail, openat_save_fail): Now always functions,
119180         since mkdirat needs them even if __OPENAT_PREFIX is defined.
119182         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
119183         and openat.c.
119184         * lib/mkdirat.c: Include openat-priv.h.
119185         Remove definitions of macros defined therein.
119186         * lib/openat.c: Likewise.
119188         * lib/mkdirat.c (mkdirat): New file and function.
119189         * lib/openat.h (mkdirat): Declare.
119191         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
119193         * lib/openat.h (openat_permissive): Declare.
119194         (openat_ro): Define.
119196         * lib/openat.c (EXPECTED_ERRNO): New macro.
119197         (openat_permissive): New function -- used in remove.c rewrite.
119198         (all functions): Set errno just before returning, only if there
119199         was an actual failure.
119200         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
119202         Emulate openat-family functions using Linux's procfs, if possible.
119203         Idea and some code based on Ulrich Drepper's glibc changes.
119205         * lib/openat.c: (BUILD_PROC_NAME): New macro.
119206         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
119207         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
119208         before falling back on save_cwd and restore_cwd.
119209         (fdopendir, fstatat, unlinkat): Likewise.
119211         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
119212         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
119214         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
119215         as second argument to va_arg.  Otherwise, some versions of gcc
119216         warn that `if this code is reached, the program will abort'.
119218 2006-01-09  Jim Meyering  <jim@meyering.net>
119220         Sync from coreutils.
119221         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
119222         Require openat-priv.h.
119224 2006-01-09  Bruno Haible  <bruno@clisp.org>
119226         * modules/strnlen (Include): Use strnlen.h.
119228 2006-01-09  Bruno Haible  <bruno@clisp.org>
119230         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
119232 2006-01-09  Bruno Haible  <bruno@clisp.org>
119234         * lib/sysexit_.h (EX_OK): New macro.
119235         Suggested by Martin Lambers <marlam@marlam.de>.
119237 2006-01-09  Bruno Haible  <bruno@clisp.org>
119239         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
119240         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
119242 2006-01-09  Bruno Haible  <bruno@clisp.org>
119244         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
119245         numbers.
119247 2006-01-09  Bruno Haible  <bruno@clisp.org>
119249         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
119250         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
119251         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
119252         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
119254 2006-01-09  Bruno Haible  <bruno@clisp.org>
119256         * build-aux/javacomp.sh.in: New file, moved from lib/.
119257         * modules/javacomp-script (Files): Update.
119258         (configure.ac): Add AC_CONFIG_FILES invocation.
119259         (EXTRA_DIST): Remove variable.
119261         * build-aux/javaexec.sh.in: New file, moved from lib/.
119262         * modules/javaexec (Files): Update.
119263         (configure.ac): Add AC_CONFIG_FILES invocation.
119264         (EXTRA_DIST): Remove javaexec.sh.in.
119266         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
119267         * modules/csharpcomp-script (Files): Update.
119268         (configure.ac): Add AC_CONFIG_FILES invocation.
119269         (EXTRA_DIST): Remove variable.
119271         * build-aux/csharpexec.sh.in: New file, moved from lib/.
119272         * modules/csharpexec (Files): Update.
119273         (configure.ac): Add AC_CONFIG_FILES invocation.
119274         (EXTRA_DIST): Remove csharpexec.sh.in.
119276 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
119278         Sync from coreutils.
119280         Add POSIX ACL support
119281         * lib/acl.h (copy_acl, set_acl): Add declarations.
119282         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
119283         systems other than Linux.
119284         (chmod_or_fchmod): New function: use fchmod when possible,
119285         and chmod otherwise.
119286         (file_has_acl): Add a POSIX ACL implementation, with a
119287         Linux-specific subcase.
119288         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
119289         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
119290         acls are unsupported.
119291         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
119292         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
119293         are unsupported.
119295 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
119297         Sync from coreutils.
119298         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
119300 2006-01-07  Bruno Haible  <bruno@clisp.org>
119302         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
119303         gl_EARLY.
119305 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119307         * lib/strftime.c (tzname): Don't declare if it is already #defined.
119308         Problem reported for Mingw by Mark Junker.
119310 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119312         * README: Gnulib normally doesn't generate a tarball.
119314 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
119316         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
119317         long int, not int, for nanosecond counts, so that people who are
119318         used to POSIX struct timespec won't be surprised.  Reported by Jim
119319         Meyering.
119321 2005-12-28  Bruno Haible  <bruno@clisp.org>
119323         * build-aux/config.rpath: Update from GNU gettext.
119325 2005-12-16  Jim Meyering  <jim@meyering.net>
119327         * modules/fprintftime: New module.
119328         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
119330 2005-12-16  Jim Meyering  <jim@meyering.net>
119332         * m4/fprintftime.m4: New file.
119334 2005-12-16  Jim Meyering  <jim@meyering.net>
119336         * lib/fprintftime.c, lib/fprintftime.h: New files.
119338 2005-12-15  Simon Josefsson  <jas@extundo.com>
119340         * modules/socklen (configure.ac): Fix M4 macro name, to align with
119341         new m4/socklen.m4.
119343 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
119345         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
119346         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
119348 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
119350         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
119351         * lib/argp-help.c (fill_in_uparams): Check if the constructed
119352         struct uparams is valid. Fall back to the default values if it is
119353         not.
119355 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119357         * modules/argp (Files): Add argp-pin.c
119358         (Depends-on): dirname
119359         (lib_SOURCES): Add argp-pin.c
119361 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119363         * m4/argp.m4:  Check if program_invocation_name and
119364         program_invocation_short_name are declared and define appropriate
119365         macros if they are not.
119367 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119369         * lib/argp-help.c (__argp_base_name): New function
119370         (__argp_short_program_name): Rewrite using __argp_base_name
119371         * lib/argp-namefrob.h: Define program_invocation_name and
119372         program_invocation_short_name if requested
119373         (__argp_base_name): Add prototype
119374         * lib/argp-parse.c (argp_def): Use gettext wrappers
119375         (argp_default_parser): Use __argp_base_name
119376         * lib/argp-pin.c: New file. Defines program_invocation_name and
119377         program_invocation_short_name on systems that lack them.
119379 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119381         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
119382         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
119383         porting problem reported by Georg Schwarz in
119384         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
119386 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119388         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
119389         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
119390         porting problem reported by Georg Schwarz in
119391         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
119393 2005-12-05  Bruno Haible  <bruno@clisp.org>
119395         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
119396         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
119397         Reported by Mark Junker <mjscod@gmx.de>.
119399 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
119401         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
119402         Use implementation from Albert Chin, with some
119403         comments/corrections by Stepan Kasal and myself.
119405 2005-12-02  Bruno Haible  <bruno@clisp.org>
119407         * gnulib-tool (func_import): Accept GPLed build tool modules when
119408         --lgpl is given.
119409         * modules/csharpcomp-script: New file.
119410         * modules/csharpcomp: Depend on it.
119411         * modules/javacomp-script: New file.
119412         * modules/javacomp: Depend on it.
119413         Suggested by Simon Josefsson.
119415 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
119417         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
119418         statement, to work around an HP-UX 10.20 compiler bug reported by
119419         Peter O'Gorman.
119421 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
119423         * modules/savedir (Depends-on): Add openat.
119425 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
119427         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
119428         (uintmax_t) [defined uintmax_t]: Do not declare.
119429         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
119430         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
119431         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
119432         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
119433         sake of portability to weird hosts that C allows (though we don't
119434         know of any practical examples).
119436         * lib/savedir.h (fdsavedir): New decl.
119437         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
119438         contains most of the former guts of savedir.
119439         (savedir): Use savedirstream.
119440         Include "openat.h".
119442 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119444         * modules/obstack (Files): Add m4/ulonglong.m4.
119445         Problem reported by Davide Angelocola.
119447 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
119449         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
119450         coreutils no longer futzes with rounding modes.
119452 2005-11-14  Jim Meyering  <jim@meyering.net>
119454         * lib/mkstemp-safer.c: Include <config.h>, required for possible
119455         replacement of mkstemp.
119457 2005-11-10  Simon Josefsson  <jas@extundo.com>
119459         * lib/readline.c: Remove EOL.
119461 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119463         * modules/gethrxtime (Depends-on): Add gettime.
119465 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119467         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
119468         or gettimeofday; no longer needed.
119470 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119472         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
119473         time business.
119474         (gethrxtime) [! (HAVE_NANOUPTIME
119475         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
119476         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
119477         our own approximation.
119479 2005-11-08  Eric Blake  <ebb9@byu.net>
119481         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
119483 2005-11-08  Eric Blake  <ebb9@byu.net>
119485         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
119487 2005-11-04  Bruno Haible  <bruno@clisp.org>
119489         * gnulib-tool: Implement --update mode.
119491 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
119493         Fix porting problem reported by Theodoros V. Kalamatianos.
119494         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
119495         Don't assume that futimes failing means we must fail.
119497 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
119499         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
119500         variables to suggest the intended function of the PATH_MAX check.
119502 2005-10-30  Kean Johnston  <jkj@sco.com>
119504         Trivial changes to support SCO systems.
119505         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
119506         as PATH_MAX.
119507         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
119508         where __ptr is null when no I/O is pending.
119510 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119512         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
119513         leave errno alone.  Problem reported by Dmitry V. Levin.
119515 2005-10-28  Simon Josefsson  <jas@extundo.com>
119517         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
119518         Test more.
119520         * tests/test-gc-md2.c, tests/test-md2.c: New files.
119522         * modules/md2, modules/md2-tests: New files.
119524 2005-10-28  Simon Josefsson  <jas@extundo.com>
119526         * m4/inet_ntop.m4: More tests.
119528         * m4/gc-md2.m4, md2.m4: New file.
119530 2005-10-28  Simon Josefsson  <jas@extundo.com>
119532         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
119533         "restrict" keywords, as per POSIX.  Protect the function
119534         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
119535         Don't use K&R prototypes.  Check the sprintf return values.
119536         Re-define EAFNOSUPPORT if not present.  Indent.
119538         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
119539         suggested by Bruno Haible <bruno@clisp.org>.
119541         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
119543         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
119545         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
119546         libgcrypt).
119548         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
119550         * lib/md2.h, lib/md2.c: New files.
119552 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
119554         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
119555         errno alone.  Problem reported by Frederic Jolliton.
119557 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
119559         * modules/verify (License): Change from GPL to LGPL.  This is a
119560         tiny module and there are apparently near-equivalents that are
119561         under the BSD license.
119563 2005-10-24  Simon Josefsson  <jas@extundo.com>
119565         * modules/sha1: Relicense to LGPL.
119567 2005-10-24  Simon Josefsson  <jas@extundo.com>
119569         * lib/md4.h: Shrink buffer size, now that we changed the type.
119571 2005-10-23  Simon Josefsson  <jas@extundo.com>
119573         * gnulib-tool (func_import): Fix --tests-base.
119575 2005-10-22  Simon Josefsson  <jas@extundo.com>
119577         * modules/arcfour (Depends-on): Need stdint.
119579 2005-10-22  Simon Josefsson  <jas@extundo.com>
119581         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
119582         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
119584 2005-10-22  Simon Josefsson  <jas@extundo.com>
119586         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
119587         suggested by Bruno Haible <bruno@clisp.org>.
119589 2005-10-22  Simon Josefsson  <jas@extundo.com>
119591         * lib/crc.h: Include stddef.h, for size_t.
119593 2005-10-22  Simon Josefsson  <jas@extundo.com>
119595         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
119596         arcfour_context struct (simplify test vector testing in GNU
119597         Shishi).
119599 2005-10-21  Simon Josefsson  <jas@extundo.com>
119601         * modules/des, modules/des-tests: New files.
119603         * modules/gc-des, modules/gc-des-tests: New files.
119605         * tests/test-des.c, tests/test-gc-des.c: New file.
119607 2005-10-21  Simon Josefsson  <jas@extundo.com>
119609         * modules/arctwo, modules/arctwo-tests: New files.
119611         * tests/test-arctwo.c: New file.
119613         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
119615         * tests/test-gc-arctwo.c: New file.
119617 2005-10-21  Simon Josefsson  <jas@extundo.com>
119619         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
119620         Bruno Haible <bruno@clisp.org>.
119622         * m4/gc-des.m4: New file.
119624 2005-10-21  Simon Josefsson  <jas@extundo.com>
119626         * m4/arctwo.m4: New file.
119628         * m4/gc-arctwo.m4: New file.
119630 2005-10-21  Simon Josefsson  <jas@extundo.com>
119632         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
119633         block.
119635 2005-10-21  Simon Josefsson  <jas@extundo.com>
119637         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
119638         <bruno@clisp.org>.
119640         * lib/hmac-sha1.c (hmac_sha1): Likewise.
119642         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
119643         Bruno Haible <bruno@clisp.org>.
119645         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
119646         <bruno@clisp.org>.
119648 2005-10-21  Simon Josefsson  <jas@extundo.com>
119650         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
119652 2005-10-21  Simon Josefsson  <jas@extundo.com>
119654         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
119656 2005-10-21  Simon Josefsson  <jas@extundo.com>
119658         * lib/des.h, lib/des.c: New files.
119660         * lib/gc-gnulib.c: Support DES.c
119662 2005-10-21  Simon Josefsson  <jas@extundo.com>
119664         * lib/arctwo.h, lib/arctwo.c: New files.
119666         * lib/gc-gnulib.c: Support ARCTWO.
119668 2005-10-21  Simon Josefsson  <jas@extundo.com>
119670         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
119671         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
119673 2005-10-21  Simon Josefsson  <jas@extundo.com>
119675         * gnulib-tool (func_import, func_create_testdir): Define automake
119676         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
119677         Makefile.am snippet),
119678         suggested by Bruno Haible <bruno@clisp.org>.
119680         * modules/gc (Makefile.am): Use it.
119682 2005-10-21  Bruno Haible  <bruno@clisp.org>
119684         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
119685         patch.
119687 2005-10-19  Simon Josefsson  <jas@extundo.com>
119689         * tests/test-gc-rijndael.c: New file.
119691         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
119693 2005-10-19  Simon Josefsson  <jas@extundo.com>
119695         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
119696         interface too.
119698 2005-10-19  Simon Josefsson  <jas@extundo.com>
119700         * tests/test-gc-arcfour.c: New file.
119702         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
119704 2005-10-19  Simon Josefsson  <jas@extundo.com>
119706         * modules/gc-md4, modules/gc-md4-tests: New file.
119708         * tests/test-gc-md4.c: New file.
119710 2005-10-19  Simon Josefsson  <jas@extundo.com>
119712         * m4/gc-md4.m4: New file.
119714 2005-10-19  Simon Josefsson  <jas@extundo.com>
119716         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
119717         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
119718         <kasal@ucw.cz>.
119720 2005-10-19  Simon Josefsson  <jas@extundo.com>
119722         * m4/gc-arcfour.m4: New file.
119724         * m4/gc-rijndael.m4: New file.
119726 2005-10-19  Simon Josefsson  <jas@extundo.com>
119728         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
119730 2005-10-19  Simon Josefsson  <jas@extundo.com>
119732         * lib/gc-gnulib.c: Support ARCFOUR.
119734 2005-10-19  Simon Josefsson  <jas@extundo.com>
119736         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
119737         support.
119739         * lib/gc.h: Add ECB enum type.
119741         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
119743 2005-10-18  Simon Josefsson  <jas@extundo.com>
119745         * tests/test-md5.c: New file.
119747         * modules/md5-tests: New file.
119749 2005-10-18  Simon Josefsson  <jas@extundo.com>
119751         * tests/test-md4.c: New file.
119753         * modules/md4, modules/md4-tests: New files.
119755 2005-10-18  Simon Josefsson  <jas@extundo.com>
119757         * m4/md4.m4: New file.
119759 2005-10-18  Simon Josefsson  <jas@extundo.com>
119761         * lib/md4.h, lib/md4.c: New files, based on md5.?.
119763 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
119765         * gnulib-tool (func_create_testdir): Omit the second check whether
119766         BUILT_SOURCES in nonempty.
119768 2005-10-17  Simon Josefsson  <jas@extundo.com>
119770         * tests/test-rijndael.c: New file.
119772 2005-10-17  Simon Josefsson  <jas@extundo.com>
119774         * modules/sha1: Depend on stdint instead of md5.
119776         * modules/md5: Depend on stdint, remove uint32_t.
119778 2005-10-17  Simon Josefsson  <jas@extundo.com>
119780         * modules/gc-sha1-tests: New file.
119782         * tests/test-gc-sha1.c: New file.
119784 2005-10-17  Simon Josefsson  <jas@extundo.com>
119786         * m4/md5.m4: Remove call to uint32_t.m4.
119788 2005-10-17  Simon Josefsson  <jas@extundo.com>
119790         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
119792         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
119793         md5.h.
119795         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
119797         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
119799 2005-10-17  Simon Josefsson  <jas@extundo.com>
119801         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
119803 2005-10-17  Simon Josefsson  <jas@extundo.com>
119805         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
119807 2005-10-17  Simon Josefsson  <jas@extundo.com>
119809         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
119811         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
119813 2005-10-17  Bruno Haible  <bruno@clisp.org>
119815         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
119816         that it can also be used in a test.
119818 2005-10-16  Bruno Haible  <bruno@clisp.org>
119820         * gnulib-tool (func_emit_tests_Makefile_am): Also define
119821         TESTS_ENVIRONMENT, so that individual tests can augment it.
119823         * gnulib-tool (func_create_testdir): Use an intermediate target for
119824         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
119825         macros, like $(ALLOCA_H), which cannot be passed through the command
119826         line.
119828 2005-10-15  Simon Josefsson  <jas@extundo.com>
119830         * modules/rijndael-tests: New file.
119832         * modules/rijndael: New file.
119834 2005-10-15  Simon Josefsson  <jas@extundo.com>
119836         * m4/rijndael.m4: New file.
119838 2005-10-15  Simon Josefsson  <jas@extundo.com>
119840         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
119842         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
119844 2005-10-14  Simon Josefsson  <jas@extundo.com>
119846         * tests/test-arcfour.c: New file.
119848         * modules/arcfour, modules/arcfour-tests: New files.
119850 2005-10-14  Simon Josefsson  <jas@extundo.com>
119852         * m4/arcfour.m4: New file.
119854 2005-10-14  Simon Josefsson  <jas@extundo.com>
119856         * lib/arcfour.h, lib/arcfour.c: New files.
119858 2005-10-14  Roland McGrath  <roland@redhat.com>
119860         Import from libc.  [BZ #1331]
119861         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
119862         macro argument.
119863         Reported by Matej Vela <vela@debian.org>.
119865 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119867         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
119868         include <wchar.h>; no longer needed.
119870 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119872         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
119874 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
119875         and  Ulrich Drepper  <drepper@redhat.com>
119877         Import from libc.
119878         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
119879         instead of inline stream orientation test and two separate
119880         function calls.  Pay no attention to USE_IN_LIBIO.
119882 2005-10-13  Simon Josefsson  <jas@extundo.com>
119884         * modules/gc-hmac-md5-tests: New file.
119886         * tests/test-gc-hmac-sha1.c: New file.
119888         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
119890         * modules/gc-hmac-md5-tests: New file.
119892         * tests/test-gc-md5.c: New file.
119894         * modules/gc-md5-tests: New file.
119896 2005-10-13  Simon Josefsson  <jas@extundo.com>
119898         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
119899         Move memory allocation outside of loop.
119901 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
119903         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
119904         intermediate directory is in a read-only file system.  Problem
119905         reported by Eric Blake.
119907 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
119909         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
119911 2005-10-12  Simon Josefsson  <jas@extundo.com>
119913         * tests/test-hmac-sha1.c: New file.
119915         * modules/hmac-sha1-tests: New file.
119917         * modules/hmac-sha1: New file.
119919 2005-10-12  Simon Josefsson  <jas@extundo.com>
119921         * modules/gc-sha1: New file.
119923 2005-10-12  Simon Josefsson  <jas@extundo.com>
119925         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
119927         * tests/test-gc-pbkdf2-sha1.c: New file.
119929 2005-10-12  Simon Josefsson  <jas@extundo.com>
119931         * modules/gc-md5, modules/gc-hmac-md5: New files.
119933         * modules/gc (Files): Remove md5, memxor and hmac files.
119935 2005-10-12  Simon Josefsson  <jas@extundo.com>
119937         * m4/gc-pbkdf2-sha1.m4: New file.
119939         * m4/gc-hmac-sha1.m4: New file.
119941         * m4/gc-sha1: New file.
119943         * m4/hmac-sha1.m4: New file.
119945 2005-10-12  Simon Josefsson  <jas@extundo.com>
119947         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
119949         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
119951 2005-10-12  Simon Josefsson  <jas@extundo.com>
119953         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
119954         suggested by Bruno Haible <bruno@clisp.org>.
119956 2005-10-12  Simon Josefsson  <jas@extundo.com>
119958         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
119960 2005-10-12  Simon Josefsson  <jas@extundo.com>
119962         * lib/gc-pbkdf2-sha1.c: New file.
119964         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
119966 2005-10-12  Simon Josefsson  <jas@extundo.com>
119968         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
119970         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
119972 2005-10-12  Simon Josefsson  <jas@extundo.com>
119974         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
119975         GC_USE_HMAC_MD5, respectively.
119977         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
119978         (gc_md5): Fix typo.
119980         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
119982         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
119984         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
119986 2005-10-12  Bruno Haible  <bruno@clisp.org>
119988         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
119989         Reported by Stepan Kasal <kasal@ucw.cz>.
119991 2005-10-11  Simon Josefsson  <jas@extundo.com>
119993         * tests/test-crc.c: New file.
119995         * modules/crc, modules/crc-tests: New files.
119997 2005-10-11  Simon Josefsson  <jas@extundo.com>
119999         * m4/crc.m4: New file.
120001 2005-10-11  Simon Josefsson  <jas@extundo.com>
120003         * lib/gc.h: Add gc_hash and gc_hash_buffer.
120005         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
120007         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
120009 2005-10-11  Simon Josefsson  <jas@extundo.com>
120011         * lib/crc.h, lib/crc.c: New files.
120013         * lib/gc.h (gc_hash_buffer): Add doc.
120015 2005-10-11  Bruno Haible  <bruno@clisp.org>
120017         * modules/c-strcasestr: New file.
120018         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
120020 2005-10-11  Bruno Haible  <bruno@clisp.org>
120022         * modules/c-strcase: New file.
120023         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
120025 2005-10-11  Bruno Haible  <bruno@clisp.org>
120027         * lib/strcasecmp.c: Include limits.h.
120028         (strcasecmp): Avoid integer overflow on exotic platforms.
120029         * lib/strncasecmp.c: Include limits.h.
120030         (strncasecmp): Avoid integer overflow on exotic platforms.
120031         Reported by Paul Eggert.
120033 2005-10-11  Bruno Haible  <bruno@clisp.org>
120035         * lib/c-strcasestr.h: New file, from GNU gettext.
120036         * lib/c-strcasestr.c: New file, from GNU gettext.
120038 2005-10-11  Bruno Haible  <bruno@clisp.org>
120040         * lib/c-strcase.h: New file, from GNU gettext.
120041         * lib/c-strcasecmp.c: New file, from GNU gettext.
120042         * lib/c-strncasecmp.c: New file, from GNU gettext.
120044 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120046         * modules/mempcpy (License): GPL -> LGPL.
120047         * modules/strchrnul (License): Likewise.
120048         * modules/sysexits (License): Likewise.
120050 2005-10-08  Simon Josefsson  <jas@extundo.com>
120052         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
120054 2005-10-07  Simon Josefsson  <jas@extundo.com>
120056         * m4/memxor.m4: Remove gl_C_RESTRICT call.
120058 2005-10-06  Simon Josefsson  <jas@extundo.com>
120060         * tests/test-hmac-md5.c: New file.
120062         * modules/hmac-md5-tests: New file.
120064         * modules/hmac-md5: New file.
120066 2005-10-06  Simon Josefsson  <jas@extundo.com>
120068         * m4/hmac-md5.m4: New file.
120070         * m4/memxor.m4: Require gl_C_RESTRICT.
120072 2005-10-06  Simon Josefsson  <jas@extundo.com>
120074         * lib/memxor.c (memxor): Avoid casts and warnings.
120076 2005-10-06  Simon Josefsson  <jas@extundo.com>
120078         * lib/hmac-md5.c: New file.
120080         * lib/hmac.h: New file.
120082 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
120085         promotes to int, not unsigned int, to catch the AIX 5.3
120086         compiler bug.
120088 2005-10-05  Simon Josefsson  <jas@extundo.com>
120090         * modules/memxor: New file.
120092         * modules/iconv (Files): Move config.rpath to havelib, it is used
120093         there.
120095         * modules/havelib (Files): Add config.rpath.
120097 2005-10-05  Simon Josefsson  <jas@extundo.com>
120099         * m4/memxor.m4: New file.
120101 2005-10-05  Simon Josefsson  <jas@extundo.com>
120103         * lib/memxor.c (memxor): Fix compiler error.
120105         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
120106         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
120108         * lib/memxor.h, lib/memxor.c: New files.
120110         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
120111         we assume all systems have it, suggested by Jim Meyering
120112         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
120113         any systems lack sys/socket.h; mingw32 is known to lack it, but we
120114         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
120115         same reasons.
120117 2005-10-05  Simon Josefsson  <jas@extundo.com>
120119         * config/srclist.txt: Add glibc bug 1423 for md5.h.
120121 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
120123         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
120124         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
120125         needed, since the source code now assumes these .h files.
120127 2005-10-05  Derek Price  <derek@ximbiot.com>
120129         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
120131 2005-10-05  Bruno Haible  <bruno@clisp.org>
120133         * modules/stdint (License): Change to LGPL.
120135 2005-10-04  Simon Josefsson  <jas@extundo.com>
120137         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
120138         D. Baushke" <mdb@gnu.org>.
120140 2005-10-04  Bruno Haible  <bruno@clisp.org>
120142         * lib/verify.h (verify_true): Provide alternative definition for C++.
120144 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
120146         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
120147         (SSIZE_MAX): New macro, if not already defined.
120148         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
120149         than 2 GiB.
120151 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
120153         Sync from coreutils.
120154         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
120155         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
120156         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
120157         ULLONG_MAX doesn't work with 2.7.2.1.
120159 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
120161         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
120162         From Ben Pfaff.
120164         * modules/exclude (Depends-on): Depend on verify.
120165         * modules/strtoimax (Depends-on): Likewise.
120166         * modules/utimecmp (Depends-on): Likewise.
120168 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
120170         * lib/exclude.c: Include verify.h.
120171         (verify): Remove.  All callers changed to use verify.h's version.
120172         * lib/strtoimax.c: Likewise.
120173         * lib/utimecmp.c: Likewis.e
120175         Sync from coreutils.
120176         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
120177         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
120178         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
120179         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
120180         bother returning ENOSYS if settimeofday or stime fails; just let
120181         them return whatever errno they want to return.
120182         * lib/utimens.c: Include unistd.h, for dup2.
120183         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
120184         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
120186 2005-10-02  Jim Meyering  <jim@meyering.net>
120188         Sync from coreutils.
120189         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
120190         from glibc-2.2.5 that fails for read-only files.
120192 2005-10-02  Jim Meyering  <jim@meyering.net>
120194         Sync from coreutils.
120195         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
120196         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
120197         `#if HAVE_CONFIG_H'.
120198         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
120199         Remove AT_FDCWD test.
120200         Do not consume the fd unless successful.
120201         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
120202         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
120203         block, so that we don't even try to compile it if settimeofday is
120204         available.  This works around a compilation failure on OSF1 V5.1,
120205         due to stime requiring a `long int*' while tv_sec is `int'.
120207 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
120209         Sync from coreutils.
120210         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
120211         against `yes', rather than just testing for nonempty.
120213 2005-10-01  Simon Josefsson  <jas@extundo.com>
120215         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
120216         and Darwin.
120218         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
120219         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
120220         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
120221         freeaddrinfo and gai_strerror are declared by the POSIX headers.
120222         Check if struct addrinfo is declared.
120224 2005-10-01  Simon Josefsson  <jas@extundo.com>
120226         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
120227         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
120228         AI_* and EAI_* definitions.  Protect function declarations.
120230 2005-10-01  Jim Meyering  <jim@meyering.net>
120232         Sync from coreutils.
120234         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
120235         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
120236         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
120237         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
120238         in the inet and nsl libraries.  Required on Solaris 5.7.
120240 2005-10-01  Jim Meyering  <jim@meyering.net>
120242         Sync from coreutils.
120243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
120244         in the inet and nsl libraries.  Required on Solaris 5.7.
120246 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
120248         * lib/getdelim.c (getdelim): Remove unused variables.
120250 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
120252         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
120253         so that the code works even with ancient cpp.  Portability problem
120254         with GCC 2.7.2.1 reported by Thomas M.Ott.
120256 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
120258         * modules/regex (Depends-on): Add strcase.
120260         * modules/gethostname (Licence): Change from GPL to LGPL, since
120261         gethostname.c is a trivial implementation of a standard library
120262         function.
120263         * modules/poll (License): Change from GPL to LGPL, since it's
120264         derived from LGPL code.
120266 2005-09-27  Jim Meyering  <jim@meyering.net>
120268         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
120269         HAVE_CONFIG_H.
120271         * lib/intprops.h (signed_type_or_expr__): Define.
120272         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
120273         for unsigned types.
120275 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
120277         * lib/verify.h (verify_expr): Remove, replacing with:
120278         (verify_true): New macro that returns true instead of void.
120279         (verify_type__): Remove.
120280         (verify): Use verify_true rather than verify_type__.
120282 2005-09-26  Bruno Haible  <bruno@clisp.org>
120284         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
120285         is necessary.
120286         (lib_SOURCES): Remove mbchar.c.
120287         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
120288         (Files): Add m4/mbrtowc.m4.
120289         * modules/mbiter: Likewise.
120290         * modules/mbuiter: Likewise.
120292 2005-09-26  Bruno Haible  <bruno@clisp.org>
120294         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
120295         compile mbchar.c if they are not both present.
120296         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
120297         * m4/mbiter.m4 (gl_MBITER): Likewise.
120298         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
120299         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
120300         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
120302 2005-09-25  Jim Meyering  <jim@meyering.net>
120304         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
120305         also uses socklen_t.
120307 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
120309         * lib/utimens.c (ENOSYS): Define if not already defined.
120310         (futimens): Support having a null PATH if the file descriptor
120311         is nonnegative.
120313         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
120314         Remove.
120315         (__attribute): Define to empty unless GCC 3.1 or later.
120316         This works around a core dump on OpenBSD 3.4, which has GCC
120317         2.95.3, which dumps core when given __attribute__(()).  It also
120318         simplifies other tests, since we really don't want to bother with
120319         worrying about which ancient version of GCC supported what.
120320         Original problem reported by Yoann Vandoorselaere, with part of
120321         the fix suggested by Derek Price.
120323 2005-09-24  Jim Meyering  <jim@meyering.net>
120325         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
120326         so we can once again use a positive bitfield width of 1 -- now we
120327         don't have to explain why we were using a bitfield width of 2.
120329 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
120331         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
120332         and similarly for the other external symbols.  Problem reported
120333         by James Gallager.
120335         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
120336         bug reported by Jim Meyering.
120338         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
120339         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
120340         not needed, since socklen is a prerequisite module.
120342 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
120344         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
120345         Problem reported by Eric Blake.
120346         (getaddrinfo): Initialize se so that it's not garbage.
120347         Redo internal storage allocation so that it doesn't make unportable
120348         assumptions about alignment.
120349         Fix a memory leak.
120351         * lib/utimens.c (futimens): Use futimesat if available.
120352         Prefer it to futimes since it doesn't have the futimes bug.
120354         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
120355         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
120356         Instead, declare a function that returns a pointer to an array,
120357         and use verify_type__ to declare the size of the array.
120358         Problem and germ of a solution reported by Bruno Haible.
120359         (verify_type__): Use 2, not 1, for bitfield size, to avoid
120360         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
120362 2005-09-23  Jim Meyering  <jim@meyering.net>
120364         Sync from coreutils.
120365         Correct build failure (socklen_t not defined) on at least
120366         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
120367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
120369 2005-09-23  Jim Meyering  <jim@meyering.net>
120371         * modules/getaddrinfo (Depends-on): Add socklen.
120373 2005-09-23  Bruno Haible  <bruno@clisp.org>
120375         * tests/test-verify.c: New file.
120377 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120379         Sync from coreutils.
120381         * modules/argmatch (Depends-on): Add verify.
120382         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
120383         unistd-safer.
120384         * modules/save-cwd (Depends-on): Likewise.
120386         * modules/openat (Files): Add lib/openat-die.c.
120387         (Depends-on): Remove error, exitfail.
120388         Add dirname.
120390         * modules/verify: New file.
120391         * MODULES.html.sh (Diagnostics <assert.h>): New section,
120392         with "verify" module.
120394 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120396         Sync from coreutils.
120398         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
120399         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
120400         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
120401         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
120402         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
120403         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
120404         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
120405         Don't bother checking for string.h, stdlib.h, unistd.h.
120406         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
120407         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
120408         module's job.
120409         * m4/jm-macros.m4 (gl_MACROS): Likewise.
120410         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
120412         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
120413         (gl_GETDATE): Use it.
120415         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
120417 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120419         Sync from coreutils.
120421         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
120422         stat-time.h.
120423         * lib/argmatch.h: Include verify.h
120424         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
120425         (ARGMATCH_ASSERT): Remove; unused.
120426         * lib/canonicalize.c: Assume STDC_HEADERS.
120427         * lib/exclude.c: Include "strcase.h".
120428         * lib/regex_internal.h [!defined _LIBC]: Likewise.
120429         * lib/getusershell.c: Include stdio--.h rather than stdio.h
120430         and stdio-safer.h.
120431         (getusershell): Call fopen, not fopen_safer.
120432         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
120433         Do not include unistd-safer.h.
120434         (save_cwd): Don't call fd_safer; no longer needed
120435         now that we include fcntl--.h.
120437         * lib/getdate.y (relative_time): New type.
120438         (RELATIVE_TIME_0): New constant.
120439         (parser_control): Use relative_time instead of doing it ourselves.
120440         (%union): Add new relative_time rel member.
120441         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
120442         Now typeless.
120443         (relunit, relunit_snumber): Now of type rel.
120444         (zone, rel, relunit, get_date): Adjust to above changes.
120446         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
120447         Do not include unistd-safer.h.
120448         (getloadavg): Don't call fd_safer; no longer needed
120449         now that we include fcntl--.h.
120451         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
120452         (make_dir_parents): Treat ENOSYS like EEXIST.
120454         Improve quality of diagnostics on restore_cwd failure.
120455         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
120456         (make_dir_parents): Last arg is now int * (for errno), not bool *.
120457         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
120458         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
120459         each time through the loop.  Do not diagnose restore_cwd failure;
120460         that is the caller's job (and perhaps the caller does not care).
120462         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
120463         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
120464         If the file already exists but is not a directory, don't bother
120465         to try to make its parents.
120466         Close potential file descriptor leak if we can't chdir("/") (!).
120467         Don't always return true if chdir($PWD) fails; return true only
120468         if the requested action was done successfully (except for the
120469         chdir($PWD)).
120470         Don't log final directory unless we actually made it.
120471         Refactor to avoid duplicate code to fix up permissions.
120472         Don't attempt to fix up parent permissions if chdir($PWD) fails.
120474         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
120475         to make it a bit faster and (I hope) clearer.
120476         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
120477         Fix bug in formats like %2N.
120479         * lib/verify.h: New file.
120481 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120483         Sync from coreutils.
120484         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
120486 2005-09-22  Jim Meyering  <jim@meyering.net>
120488         Sync from coreutils.
120490         * m4/lstat.m4 (gl_FUNC_LSTAT):
120491         Use AC_LIBSOURCES to require lstat.c and lstat.h.
120492         Remove obsolete comment.
120493         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
120494         * m4/xstrtod.m4: Likewise.
120496         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
120498 2005-09-22  Jim Meyering  <jim@meyering.net>
120500         Sync from coreutils.
120502         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
120504         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
120505         the .tm_year member, since otherwise gcc-4.0 would now warn about
120506         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
120508         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
120509         order to avoid an unsuppressible warning from gcc on 64-bit systems.
120511         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
120512         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
120513         when run in a time zone for which daylight savings time is in effect
120514         for the starting date.
120516         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
120517         stop us from restricting permissions of just-created absolute-named
120518         directories.
120519         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
120520         to restore initial working directory.
120521         * lib/mkdir-p.c (make_dir_parents): New parameter:
120522         different_working_dir, to tell caller if/when we change the working
120523         directory and are unable to return to the initial one.
120524         * lib/mkdir-p.h (make_dir_parents): Update prototype.
120525         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
120526         `return false'.  This fixes a bug introduced on 2004-07-30.
120528         * lib/openat.c (fdopendir): Be sure to close the supplied
120529         file descriptor before returning.  This makes our replacement
120530         implementation a little closer to Solaris's, where fdopendir
120531         ties the file descriptor to the returned DIR* pointer.
120532         * lib/openat.c (unlinkat): New function.
120533         * lib/openat.h (unlinkat): Add prototype.
120534         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
120535         (openat_restore_fail): Rename from openat_restore_die.
120536         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
120538         Provide an alternative to exiting immediately upon save_cwd or
120539         restore_cwd failure.  Now, an application can arrange e.g.,
120540         to perform a longjump in that case.
120541         * lib/openat.c: Include dirname.h.
120542         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
120543         (rpl_openat, fdopendir, fstatat): Call openat_save_die
120544         and openat_restore_die rather than calling error directly.
120545         Don't include "error.h" or "exitfail.h"; they're no longer needed.
120547         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
120548         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
120549         define.
120551         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
120552         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
120553                             int utc, int nanoseconds);
120554         Background:
120555         date should not have to allocate a megabyte of virtual memory to
120556         handle a format argument like +%1048575T.  When implemented with
120557         strftime, it must allocate such a buffer, use strftime to fill it
120558         in, print it, then free it.
120559         With fprintftime, it simply prints everything and exits.
120560         With no need for memory allocation, that's one fewer way to fail.
120561         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
120562         optional field width, not before, so we accept %9:z, not %:9z.
120563         (my_strftime): Be sure to use L_('x') for literals.
120565         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
120566         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
120567         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
120568         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
120569         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
120570         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
120571         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
120572         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
120573         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
120574         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
120575         * lib/xgethostname.c, lib/xreadlink.c:
120576         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
120578         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
120579         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
120580         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
120581         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120582         and don't include <sys/file.h>).
120584 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
120586         Sync from coreutils.
120588         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
120589         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
120590         [!LDAV_DONE]: Avoid unused variable warning.
120592 2005-09-21  Bruno Haible  <bruno@clisp.org>
120594         * lib/unicodeio.h (unicode_to_mb): New declaration.
120596 2005-09-20  Derek Price  <derek@ximbiot.com>
120598         * lib/getaddrinfo.c: Don't include <netdb.h> included from
120599         getaddrinfo.h.
120601 2005-09-20  Bruno Haible  <bruno@clisp.org>
120603         * gnulib-tool: Remove trailing slashes from the values specified for
120604         --source-base, --m4-base, --tests-base, --aux-dir.
120605         Suggested by Simon Josefsson <jas@extundo.com>.
120607 2005-09-20  Bruno Haible  <bruno@clisp.org>
120609         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
120610         func_modules_to_filelist, func_import, func_create_testdir): Make all
120611         sorting results locale-independent, so that gnulib-cache.m4 doesn't
120612         change when gnulib-tool is invoked in a different locale.
120614 2005-09-19  Simon Josefsson  <jas@extundo.com>
120616         * m4/socklen.m4: Fix typo.
120618 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
120620         Use a consistent style for including <config.h>.
120621         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
120622         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
120623         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
120624         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
120625         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
120626         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
120627         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
120628         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
120629         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
120630         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
120631         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
120632         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
120633         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
120634         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
120635         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
120636         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
120637         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
120638         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
120639         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
120640         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
120641         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
120642         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
120643         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
120644         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
120645         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
120646         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
120647         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
120648         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
120649         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
120650         lib/xstrtoumax.c, lib/yesno.c:
120651         Standardize inclusion of config.h.
120652         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
120653         lib/inttostr.h:  Removed inclusion of config.h from header files.
120654         * lib/inttostr.c:  Adjusted in-tree users.
120655         * lib/timespec.h: Remove superfluous warning to include config.h.
120656         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
120657         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
120658         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
120659         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
120660         config.h with HAVE_CONFIG_H.
120662 2005-09-19  Jim Meyering  <jim@meyering.net>
120664         * modules/pathmax (License): Change to LGPL.
120666 2005-09-19  Derek Price  <derek@ximbiot.com>
120668         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
120670 2005-09-19  Bruno Haible  <bruno@clisp.org>
120672         * gnulib-tool (import): Provide default for --tests-base.
120674 2005-09-19  Bruno Haible  <bruno@clisp.org>
120676         * doc/quote.texi: New file, extracted from gnulib.texi.
120677         * doc/ctime.texi: New file, extracted from gnulib.texi.
120678         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
120679         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
120680         * doc/gnulib.texi: Include them.
120682 2005-09-18  Bruno Haible  <bruno@clisp.org>
120684         Portability fix.
120685         * gnulib-tool (func_readlink): New function.
120686         (func_ln_if_changed): Use it.
120688 2005-09-18  Bruno Haible  <bruno@clisp.org>
120690         * gnulib-tool: Support --with-tests also with --import.
120691         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
120692         (func_import): Use variables $testsbase and $inctests. Emit a
120693         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
120694         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
120695         SUBDIRS += $testsdir.
120696         (func_create_testdir): Update.
120698 2005-09-18  Bruno Haible  <bruno@clisp.org>
120700         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
120701         instead of $dry_run.
120702         (func_cp_if_changed, func_mv_if_changed): Remove functions.
120703         (func_ln_if_changed): Don't handle dry-run here.
120704         (func_import): In dry-run mode, detect more precisely which actions
120705         would be performed, and don't use "...ing" verbs.
120707 2005-09-18  Bruno Haible  <bruno@clisp.org>
120709         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
120710         (func_import): Use join on two temporary files instead of three nested
120711         loops, in order to determine which files are new or old.
120713 2005-09-18  Bruno Haible  <bruno@clisp.org>
120715         * gnulib-tool (func_import): Comment out code that spits out the
120716         new files with --dry-run.
120718 2005-09-18  Bruno Haible  <bruno@clisp.org>
120720         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
120722 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120724         * lib/stat-time.h: New file.
120725         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
120726         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
120727         in a different way.
120728         (timespec_cmp): New function.
120729         * lib/utimecmp.c: Include stat-time.h.
120730         (SYSCALL_RESOLUTION): Depend on whether various struct stat
120731         members exist, not on the obsolescent ST_MTIM_NSEC.
120732         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
120734 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120736         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
120738 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120740         * MODULES.html.sh (File system functions): Add stat-time.
120741         * modules/stat-time: New file.
120742         * modules/timespec (Files): Remove m4/st_mtim.m4; this
120743         is now done in a different way, by the stat-time module.
120744         * modules/utimecmp (Depends-on): Add stat-time.
120746 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
120748         * m4/st_mtim.m4: Remove.  Superseded by...
120749         * m4/stat-time.m4: New file.
120750         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
120751         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
120753 2005-09-15  Derek Price  <derek@ximbiot.com>
120755         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
120757 2005-09-15  Derek Price  <derek@ximbiot.com>
120759         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
120760         * lib/regex_internal.c: Ditto, using this...
120761         (__GNUC_PREREQ): ...new macro.
120762         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
120763         using...
120764         (__GNUC_PREREQ): ...this new macro.
120766         * lib/strstr.h: Include string.h. Define strstr as a macro here.
120768 2005-09-15  Derek Price  <derek@ximbiot.com>
120769             Paul Eggert  <eggert@cs.ucla.edu>
120771         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
120772         changes, consolidating in...
120773         * lib/regex_internal.h: ...this file.
120775 2005-09-13  Jim Meyering  <jim@meyering.net>
120777         * lib/canon-host.c: Filter through gnu indent and reword comments
120778         slightly.
120779         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
120781 2005-09-13  Derek Price  <derek@ximbiot.com>
120783         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
120784         failure.
120785         Reported by Jim Meyering  <jim@meyering.net>.
120787 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120789         * lib/base64.c: Typo.
120790         (base64_encode): Put b64str in initialized data section.
120792 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
120794         Merge glibc and coreutils changes into gnulib, plus a few
120795         extra fixes.
120796         * lib/md5.c: Use #error rather than a string.
120797         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
120798         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
120799         (__attribute__): Define to empty for non recent-GCC.
120800         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
120801         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
120802         Renamed from their non-__ counterparts, with new macros replacing
120803         them if not _LIBC.  Add __THROW attribute.
120804         (rol): Remove.
120805         (struct md5_ctx): Align buffer if using GCC.
120806         * lib/sha1.h (struct sha1_ctx): Likewise.
120807         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
120808         The old name was backwards.
120809         (NOTSWAP): Remove; not used.
120810         (rol): New macro, moved here from md5.h.
120811         (sha1_process_block): Remove a FIXME that doesn't make sense.
120813 2005-09-12  Derek Price  <derek@ximbiot.com>
120815         Return usable errors from canon-host.
120816         * lib/canon-host.h: New file.
120817         * lib/canon-host.c (canon_host): Wrap...
120818         (canon_host_r): ...this new function, which now relies exclusively on
120819         getaddrinfo.
120820         (ch_strerror): New function.
120821         (last_cherror): New global.
120822         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
120823         interface.
120824         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
120825         void *.
120826         (freeaddrinfo): Free ai->ai_canonname when set.
120828 2005-09-12  Derek Price  <derek@ximbiot.com>
120830         Make canon-host require getaddrinfo.
120831         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
120832         AC_LIBSOURCE canon-host.h.  Call...
120833         (gl_PREREQ_CANON_HOST): ...this new function, which requires
120834         gl_GETADDRINFO.
120835         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
120837 2005-09-12  Derek Price  <derek@ximbiot.com>
120839         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
120840         LGPL.
120841         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
120843 2005-09-12  Derek Price  <derek@ximbiot.com>
120845         * lib/gai_strerror.c: Include config.h when available.  Include
120846         getaddrinfo.h before other headers to test interface.
120847         Reported by Larry Jones <lawrence.jones@ugs.com>.
120849 2005-09-12  Derek Price  <derek@ximbiot.com>
120850             Paul Eggert  <eggert@cs.ucla.edu>
120852         * modules/glob (Files): Add glob-libc.h.
120854 2005-09-12  Derek Price  <derek@ximbiot.com>
120855             Paul Eggert  <eggert@cs.ucla.edu>
120857         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
120858         glob_.h, glob-libc.h.
120859         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
120861 2005-09-12  Derek Price  <derek@ximbiot.com>
120862             Paul Eggert  <eggert@cs.ucla.edu>
120864         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
120865         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
120866         protecting things that should be done only in gnulib contexts.
120867         * lib/glob_.h: New file, containing only the glob things needed for
120868         gnulib.
120869         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
120870         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
120871         (glob, globfree, glob_pattern_p): Now defined simply in terms of
120872         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
120873         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
120874         and to respect the namespace rules better.
120876 2005-09-08  Simon Josefsson  <jas@extundo.com>
120878         * modules/socklen: New file.
120880 2005-09-08  Simon Josefsson  <jas@extundo.com>
120882         * m4/socklen.m4: New file.
120884 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120886         * modules/utimens (Files): Add m4/utimbuf.m4, since
120887         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
120888         Reported by Sergey Poznyakoff.
120890 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120892         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
120893         definitions, since that's the preferred style in glibc.
120894         Fix a minor spacing issue, and update copyright notice to match
120895         glibc's.
120897 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120899         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
120901 2005-09-06  Simon Josefsson  <jas@extundo.com>
120903         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
120904         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
120906 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120908         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
120909         warning.
120911 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120913         * config/srclist.txt: Add glibc bug 1302.
120915 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
120917         Change bitset word type from unsigned int to unsigned long int,
120918         as this has better performance on typical 64-bit hosts.
120919         Port bitset code to hosts with unusual word sizes.
120920         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
120921         (build_collating_symbol):
120922         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
120923         argument is a bitset.  This is merely a style issue, but it makes
120924         it clearer that an entire array is expected.
120925         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
120926         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
120927         Port to the case where bitset_word is not the same as unsigned int.
120928         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120929         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
120930         Likewise.
120931         * lib/regexec.c (check_dst_limits_calc_pos_1,
120932         check_subexp_matching_top):
120933         (build_trtable, group_nodes_into_DFAstates):
120934         Likewise.
120935         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
120936         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
120937         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
120938         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
120939         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
120940         * lib/regcomp.c (optimize_subexps, lower_subexp):
120941         Work even if bitset_word has holes in its bitwise representation.
120942         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
120943         * lib/regexec.c (check_dst_limits_calc_pos_1,
120944         check_subexp_matching_top):
120945         Likewise.
120946         * lib/regex_internal.c (re_string_reconstruct):
120947         Don't assume UCHAR_MAX == 255.
120948         * lib/regex_internal.h (bitset_set_all): Likewise.
120949         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
120950         All uses changed.
120951         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
120952         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
120953         All uses changed.
120954         (BITSET_WORD_MAX): New macro.
120955         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
120956         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
120957         (bitset_empty, bitset_copy):
120958         Prefer sizeof (bitset) to multiplying it out ourselves.
120959         (bitset_not_merge): Remove; unused.
120960         (bitset_contain): Return bool, not unsigned int with one bit on.
120961         All callers changed.
120962         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
120963         alignment than re_node_set; do this by defining a new internal
120964         type struct dests_alloc and using it to allocate memory.
120966 2005-09-05  Bruno Haible  <bruno@clisp.org>
120968         * gnulib-tool (func_import): Fix comparison in handling of symbolic
120969         links.
120971 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
120973         * modules/size_max (Makefile.am): Add size_max.h
120975 2005-09-04  Derek Price  <derek@ximbiot.com>
120977         * gnulib-tool (func_import): Fix reversed $symbolic logic.
120979 2005-09-03  Simon Josefsson  <jas@extundo.com>
120981         * gnulib-tool: Fix typo.
120983 2005-09-03  Simon Josefsson  <jas@extundo.com>
120985         * config/srclist.txt: Add glibc bug 1293.
120987 2005-09-03  Derek Price  <derek@ximbiot.com>
120989         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
120990         From Larry Jones <lawrence.jones@ugs.com>.
120992 2005-09-02  Simon Josefsson  <jas@extundo.com>
120994         * modules/socklen: New file.
120996 2005-09-02  Simon Josefsson  <jas@extundo.com>
120998         * modules/havelib: New module.
121000         * modules/gettext, modules/iconv, modules/lock, modules/readline:
121001         Use havelib.
121003 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
121005         Check for arithmetic overflow when calculating sizes, to prevent
121006         some buffer-overflow issues.  These patches are conservative, in the
121007         sense that when I couldn't determine whether an overflow was possible,
121008         I inserted a run-time check.
121009         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
121010         macros.
121011         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
121012         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
121013         (re_xnrealloc, re_x2nrealloc): New inline functions.
121014         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
121015         parse_bracket_exp):
121016         (build_equiv_class, build_charclass): Check for arithmetic overflow
121017         in size expression calculations.
121018         * lib/regex_internal.c (re_string_realloc_buffers):
121019         (build_wcs_upper_buffer, re_node_set_add_intersect):
121020         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
121021         (re_dfa_add_node, register_state): Likewise.
121022         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
121023         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
121024         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
121025         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
121027 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
121029         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
121030         m4/ulonglong.m4.  Problem reported by Martin Lambers.
121032 2005-09-02  Bruno Haible  <bruno@clisp.org>
121034         Support for lib vs. lib64 distinction on biarch platforms.
121035         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
121036         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
121037         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
121039 2005-09-02  Bruno Haible  <bruno@clisp.org>
121041         * gnulib-tool (import): In the other first-use case, provide defaults
121042         as well.
121044 2005-09-02  Bruno Haible  <bruno@clisp.org>
121046         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
121047         patches not yet found in the latest gettext release.
121049 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
121051         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
121052         to avoid a collision with bits/local_lim.h in glibc.
121053         All uses changed.  Problem reported by Dmitry V. Levin in
121054         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
121056         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
121057         bugs in int versus size_t comparisons.
121058         (re_string_context_at): Fix bug where the code assumed that
121059         Idx is signed.
121061         Use bool where appropriate.
121062         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
121063         All callers changed.
121064         (calc_eclosure_iter): Likewise, for ROOT arg.
121065         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
121066         (build_charclass_op): Likewise, for NON_MATCH arg.
121067         * lib/regex_internal.c (re_string_allocate, re_string_construct):
121068         (re_string_construct_common): Likewise, for ICASE arg.
121069         * lib/regexec.c (re_search_2_stub, re_search_stub):
121070         Likewise, for RET_LEN arg.
121071         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
121072         (set_regs): Likewise, for FL_BACKTRACK arg.
121073         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
121074         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
121075         (calc_eclosure_iter, parse_bracket_exp):
121076         Use bool for internal variables that are booleans.
121077         * lib/regexec.c (re_search_internal, check_matching,
121078         proceed_next_node):
121079         (set_regs, build_sifted_states, sift_states_bkref):
121080         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
121081         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121082         (find_collation_sequence_value):
121083         Likewise.
121084         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
121085         (re_node_set_compare):
121086         Return bool, not int. All callers changed.
121087         * lib/regexec.c (check_halt_node_context, check_dst_limits):
121088         (build_trtable, check_node_accept): Likewise.
121089         * lib/regex_internal.h: Include stdbool.h.
121091         Fix bugs uncovered when converting to bool.
121092         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
121093         failure instead of charging ahead blindly.
121094         * lib/regex_internal.c (register_state): Likewise.
121095         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
121096         for freeing internal storage.
121097         (group_nodes_into_DFA_states): Use unsigned int, not int, for
121098         bitset pieces used as boolean, to avoid undefined behavior
121099         on hosts that do int overflow checking.
121101 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
121103         * config/srclist.txt: Add glibc bugs 1285-1287.
121105 2005-09-01  Jim Meyering  <jim@meyering.net>
121107         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
121108         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
121109         Require gl_STAT_MACROS, too.
121111 2005-09-01  Bruno Haible  <bruno@clisp.org>
121113         * gnulib-tool (import): In the first-use case, provide defaults.
121115 2005-09-01  Bruno Haible  <bruno@clisp.org>
121117         * gnulib-tool (func_import): Remove the .tmp files.
121119 2005-09-01  Bruno Haible  <bruno@clisp.org>
121121         * gnulib-tool (func_import): Fix handling of symbolic links.
121123 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
121125         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
121126         old glibc regex code mishandles strings longer than 2**31 bytes.
121127         This patch fixes this when the regex code is used in gnulib
121128         (i.e., outside glibc).
121130         This patch should not affect the use of the regex code inside
121131         glibc.  No doubt this problem also needs to be handled for glibc
121132         as well, but the result will be an incompatible change to the
121133         glibc ABI, and the old ABI will have to be supported too.  That
121134         can be the subject for another patch.
121136         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
121137         governing whether the rest of this patch is active.  By default,
121138         the macro is disabled and the patch has no effect.
121139         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
121140         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
121141         (struct re_pattern_buffer, re_search, re_search_2, re_match):
121142         (re_match_2, re_set_registers): Use the new types.
121143         * lib/regex_internal.h (Idx, re_hashval_t): New types.
121144         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
121145         New macros.
121146         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
121147         (re_string_context_at, bin_tree_t, re_dfastate_t):
121148         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
121149         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
121150         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
121151         (re_string_char_size_at, re_string_wchar_at):
121152         (re_string_elem_size_at):
121153         Use the new types and macros to port to 64-bit hosts.
121154         Use unsigned types for internal values, so that the code
121155         mostly works even for arrays larger than SSIZE_MAX.
121156         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
121157         (search_duplicated_node, calc_eclosure_iter, fetch_number):
121158         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
121159         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
121160         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
121161         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
121162         (calc_inveclosure, parse_dup_op, build_range_exp):
121163         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
121164         (fetch_number, create_token_tree, mark_opt_subexp):
121165         Likewise.
121166         * lib/regex_internal.c (re_string_construct_common,
121167         create_ci_newstate):
121168         (create_cd_newstate, re_string_allocate, re_string_construct):
121169         (re_string_realloc_buffers, build_wcs_upper_buffer):
121170         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121171         (re_string_reconstruct, re_string_peek_byte_case):
121172         (re_string_fetch_byte_case, re_string_context_at):
121173         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121174         (re_node_set_init_copy, re_node_set_add_intersect):
121175         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121176         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121177         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121178         (re_acquire_state, re_acquire_state_context, register_state):
121179         Likewise.
121180         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
121181         search_cur_bkref_entry):
121182         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
121183         (re_search_internal, re_search_2_stub, re_search_stub)
121184         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
121185         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
121186         (update_cur_sifted_state, check_dst_limits):
121187         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
121188         (check_subexp_limits, sift_states_bkref, merge_state_array):
121189         (check_subexp_matching_top, get_subexp, get_subexp_sub):
121190         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
121191         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121192         (expand_bkref_cache, check_node_accept_bytes):
121193         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
121194         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
121195         (acquire_init_state_context, check_halt_node_context):
121196         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
121197         (sift_states_backward, clean_state_log_if_needed):
121198         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
121199         (find_recover_state, transit_state_sb, transit_state_mb):
121200         (transit_state_bkref, build_trtable, match_ctx_clean):
121201         Likewise.
121202         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
121203         to work around an assumption that REG_MISSING is negative.
121205         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
121206         (seek_collating_symbol_entry) [defined _LIBC]:
121207         (lookup_collation_sequence_value) [defined _LIBC]:
121208         (build_range_exp, build_collating_symbol) [defined _LIBC]:
121209         Use prototypes rather than old-style function definitions.
121210         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
121211         (transit_state_sb) [0]:
121212         (find_collation_sequence_value) [defined _LIBC]: Likewise.
121214         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
121215         rm_eo.
121217         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
121218         (optimize_subexps, lower_subexp):
121219         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
121220         since the signed shift might overflow.  Use 1u<<31 instead.
121221         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
121222         Likewise.
121223         * lib/regexec.c (check_dst_limits_calc_pos_1,
121224         check_subexp_matching_top): Likewise.
121226         * lib/regcomp.c (optimize_subexps, lower_subexp):
121227         Use CHAR_BIT rather than 8, for clarity.
121228         * lib/regexec.c (check_dst_limits_calc_pos_1):
121229         (check_subexp_matching_top): Likewise.
121230         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
121231         have to worry about portability issues when shifting it left.
121232         Remove no-longer-needed test for table_size > 0.
121233         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
121234         in a word, as the resulting behavior is undefined.
121235         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
121236         in one case, a <= should have been an <, and in another case the
121237         whole test was missing.
121238         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
121239         the standard name CHAR_BIT.
121240         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
121241         this is not true on one's complement and signed-magnitude hosts.
121243         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
121244         next_last_offset.
121245         (struct re_dfa_t): Remove unused member states_alloc.
121246         * lib/regcomp.c (init_dfa): Don't initialize unused members.
121248 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
121250         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
121251         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
121252         and large-file glibc and in 32-bit large-file Solaris.
121254 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
121256         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
121257         lengths fit in regoff_t; this isn't true if regoff_t is the same
121258         width as size_t.
121259         * lib/regex.c (re_search_internal): 5th arg is LAST_START
121260         (= START + RANGE) instead of RANGE.  This avoids overflow
121261         problems when regoff_t is the same width as size_t.
121262         All callers changed.
121263         (re_search_2_stub): Check for overflow when adding the
121264         sizes of the two strings.
121265         (re_search_stub): Check for overflow when adding START
121266         to RANGE; if it occurs, substitute the extreme value.
121268 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
121270         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
121272 2005-08-31  Jim Meyering  <jim@meyering.net>
121274         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
121275         a pointer-to-const.
121276         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
121277         (register_state): Likewise.
121278         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
121279         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
121280         (group_nodes_into_DFAstates): Likewise.
121282 2005-08-31  Jim Meyering  <jim@meyering.net>
121284         * check-module: Add a FIXME comment.
121286 2005-08-31  Eric Blake  <ebb9@byu.net>
121288         * modules/unistd-safer (Files): Add unistd--.h.
121289         * modules/stdio-safer (Files): Add stdio--.h.
121291 2005-08-31  Derek Price  <derek@ximbiot.com>
121293         * lib/getdelim.c (getdelim): Return EOF on EOF.
121294         Reported by Larry Jones <lawrence.jones@ugs.com>.
121296 2005-08-31  Bruno Haible  <bruno@clisp.org>
121298         Avoid unnecessary diffs in the generated lib/Makefile.am.
121299         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
121300         the generated files.
121301         (func_import): Don't set cmd.
121303 2005-08-31  Bruno Haible  <bruno@clisp.org>
121305         * lib/strstr.c: Include <stddef.h>, for NULL.
121306         * lib/strcasestr.c: Likewise.
121307         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121309 2005-08-31  Bruno Haible  <bruno@clisp.org>
121311         * gnulib-tool: New option --macro-prefix.
121312         (func_import): Use macro_prefix.
121313         (import): Handle option --macro-prefix.
121315 2005-08-31  Bruno Haible  <bruno@clisp.org>
121317         * gnulib-tool (import): Rename most ac_* variables to cached_*.
121318         Also use new variables cached_lgpl, cached_libtool.
121320 2005-08-31  Bruno Haible  <bruno@clisp.org>
121322         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
121323         always instantiating them.
121325 2005-08-31  Bruno Haible  <bruno@clisp.org>
121327         * gnulib-tool (func_import): Read the previous cached settings
121328         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
121329         earlier added by gnulib but are now dropped. Warn when a gnulib file
121330         overwrites a non-gnulib file.
121332 2005-08-31  Bruno Haible  <bruno@clisp.org>
121334         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
121335         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
121336         projects that don't keep autogenerated files in CVS. Put into
121337         actioncmd only the specified modules, not the transitive closure.
121339 2005-08-31  Bruno Haible  <bruno@clisp.org>
121341         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
121342         Create directories that shall be filled.
121343         (import): Don't look for gl_* macros in configure.ac. Recurse across
121344         all directories containing a gnulib-cache.m4 files, if meaningful.
121346 2005-08-31  Bruno Haible  <bruno@clisp.org>
121348         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
121349         (import): Set seen_libtool when we see gl_LIBTOOL.
121351 2005-08-31  Bruno Haible  <bruno@clisp.org>
121353         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
121354         declaration macro definitions from generated gnulib.m4.
121356 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
121358         * lib/iconvme.h: Add prototype for iconv_alloc.
121360 2005-08-29  Simon Josefsson  <jas@extundo.com>
121362         * lib/iconvme.c: Fix errno.
121364 2005-08-29  Bruno Haible  <bruno@clisp.org>
121366         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
121367         that it works when the directory contains spaces.
121369 2005-08-29  Bruno Haible  <bruno@clisp.org>
121371         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
121373 2005-08-29  Bruno Haible  <bruno@clisp.org>
121375         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
121376         Emit more advice.
121378 2005-08-29  Bruno Haible  <bruno@clisp.org>
121379         and Stepan Kasal  <kasal@ucw.cz>
121381         * check-module: If more parameters are given, check each of them
121382         separately; add more exceptions, as noted by Jim Meyering.
121383         (check_module): New procedure.
121384         (%exempt_header): Now contains all exceptions.
121386 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
121388         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
121390 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
121392         * lib/iconvme.c: Split iconv_string into iconv_alloc.
121394 2005-08-28  Bruno Haible  <bruno@clisp.org>
121396         * m4/gnulib-tool.m4: New file.
121398 2005-08-27  Jim Meyering  <jim@meyering.net>
121400         * modules/unistd-safer (Files): Add pipe-safer.c.
121401         * modules/fcntl-safer (Files): Add creat-safer.c.
121403 2005-08-27  Jim Meyering  <jim@meyering.net>
121405         * m4/stdlib-safer.m4: New file.  From coreutils.
121406         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
121407         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
121408         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
121409         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
121410         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
121412 2005-08-27  Jim Meyering  <jim@meyering.net>
121414         * lib/fopen-safer.c: Merge minor changes from coreutils.
121415         * lib/dup-safer.c: Likewise.
121416         * lib/fd-safer.c: Likewise.
121418         Merge from coreutils.
121419         * lib/stdio--.h: New file.
121420         * lib/stdlib--.h: New file.
121421         * lib/mkstemp-safer.c: New file.
121423         GNU tar needs these.
121424         * lib/pipe-safer.c: New file.
121425         * lib/creat-safer.c: New file.
121426         * lib/fcntl--.h (creat): Define to creat_safer.
121427         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
121428         * lib/unistd--.h (pipe): Define to pipe_safer.
121429         * lib/unistd-safer.h: Declare pipe_safer.
121431 2005-08-26  Simon Josefsson  <jas@extundo.com>
121433         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
121434         Haible <bruno@clisp.org>.
121436 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
121438         * lib/regex_internal.h: Remove all references to
121439         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
121440         or better.
121441         (bitset_not, bitset_merge, bitset_not_merge):
121442         (bitset_mask, re_string_allocate, re_string_construct):
121443         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
121444         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
121445         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
121446         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
121447         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121448         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121449         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
121450         (re_acquire_state_context):
121451         Remove unnecessary forward decls.
121452         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
121453         Put __attribute at function definition,
121454         now that the function decl has been removed.
121455         * lib/regex_internal.c (re_string_peek_byte_case):
121456         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
121457         Likewise.
121459 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
121461         * m4/regex.m4: Add AC_PREREQ(2.50).
121462         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
121464 2005-08-25  Simon Josefsson  <jas@extundo.com>
121466         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
121467         __fsetlocking.
121469 2005-08-25  Simon Josefsson  <jas@extundo.com>
121471         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
121472         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
121473         GLIBC specific code.
121475 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121477         Make regex safe for g++.  This fixes one real bug (an "err"
121478         that should have been "*err").  g++ problem reported by
121479         Sam Steingold.
121480         * lib/regex_internal.h (re_calloc): New macro, consistent with
121481         re_malloc etc.  All callers of calloc changed to use re_calloc.
121482         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
121483         not int.  All callers changed.
121484         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
121485         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
121486         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
121487         (find_recover_state): Change "err" to "*err"; this fixes what
121488         appears to be a real bug.
121489         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
121490         versus int.
121492 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121494         * modules/regex (Depends-on): Add malloc, since the code
121495         assumes that !malloc(0) means failure.
121497 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121499         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
121501         alloca modernization/simplification for regex.
121502         * lib/regex.c: Remove portability cruft for alloca.  This no longer
121503         needs to be at the start of the file, and can be moved into
121504         regex_internal.h and simplified.
121505         * lib/regex_internal.h: Include <alloca.h>.
121506         (__libc_use_alloca) [!defined _LIBC]: New macro.
121507         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
121508         now works outside glibc.
121510 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121512         * config/srclist.txt: Add glibc bugs 1241, 1245.
121514 2005-08-25  Jim Meyering  <jim@meyering.net>
121516         * lib/open-safer.c: Include <config.h>.
121517         Otherwise, we'd lose LARGEFILE support in any file using
121518         e.g. "fcntl--.h"
121520 2005-08-25  Bruno Haible  <bruno@clisp.org>
121522         * m4/minmax.m4: Require autoconf 2.52.
121523         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
121524         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
121525         alternatives of translit over the alphabet.
121526         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
121528 2005-08-24  Simon Josefsson  <jas@extundo.com>
121530         * tests/test-getpass.c: New file.
121532 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121534         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
121535         for GNU regex features.
121537 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121539         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
121540         * lib/regex.h (regerror): Likewise.
121542         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
121543         requires this.  (The code never needed it.)
121545         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
121546         All uses of recently-renamed identifiers changed to use the new,
121547         POSIX-compliant names.  The code will build and run just fine
121548         without these changes, but it's better to eat our own dog food
121549         and use the standard-conforming names.
121551         * lib/regex.h: Fix a multitude of POSIX name space violations.
121552         These changes have an effect only for programs that define
121553         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
121554         do not change anything for programs compiled in the normal way.
121555         Also, there is no effect on the ABI.
121557         (_REGEX_SOURCE): New macro.
121558         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
121559         defined and _GNU_SOURCE is not; this fixes a name space violation.
121561         Rename the following macros to obey POSIX requirements.
121562         The old names are still visible as macros if _REGEX_SOURCE is defined.
121563         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
121564         RE_BACKSLASH_ESCAPE_IN_LISTS.
121565         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
121566         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
121567         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
121568         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
121569         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
121570         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
121571         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
121572         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
121573         (REG_INTERVALS): renamed from RE_INTERVALS.
121574         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
121575         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
121576         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
121577         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
121578         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
121579         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
121580         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
121581         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
121582         RE_UNMATCHED_RIGHT_PAREN_ORD.
121583         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
121584         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
121585         (REG_DEBUG): renamed from RE_DEBUG.
121586         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
121587         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
121588         unusual, since we can't clash with the POSIX REG_ICASE.
121589         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
121590         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
121591         (REG_NO_SUB): renamed from RE_NO_SUB.
121592         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
121593         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
121594         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
121595         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
121596         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
121597         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
121598         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
121599         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
121600         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
121601         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
121602         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
121603         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
121604         RE_SYNTAX_POSIX_MINIMAL_BASIC.
121605         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
121606         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
121607         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
121608         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
121609         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
121610         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
121611         (REG_FIXED): Renamed from REGS_FIXED.
121612         (REG_NREGS): Renamed from RE_NREGS.
121614         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
121615         of other REG_* macros, since POSIX says the user is allowed to
121616         #undef these macros selectively.
121618         (reg_errcode_t): Update comment stating what other tables need
121619         to be consistent.
121621         Rename the following enum values to obey POSIX requirements.
121622         The old names are still visible as macros.
121623         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
121624         is not defined, since GNU is supposed to be a superset of POSIX as
121625         much as possible, and since we want reg_errcode_t to be a signed
121626         type for implementation consistency.
121627         (_REG_NOERROR): Renamed from REG_NOERROR.
121628         (_REG_NOMATCH): Renamed from REG_NOMATCH.
121629         (_REG_BADPAT): Renamed from REG_BADPAT.
121630         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
121631         (_REG_ECTYPE): Renamed from REG_ECTYPE.
121632         (_REG_EESCAPE): Renamed from REG_EESCAPE.
121633         (_REG_ESUBREG): Renamed from REG_ESUBREG.
121634         (_REG_EBRACK): Renamed from REG_EBRACK.
121635         (_REG_EPAREN): Renamed from REG_EPAREN.
121636         (_REG_EBRACE): Renamed from REG_EBRACE.
121637         (_REG_BADBR): Renamed from REG_BADBR.
121638         (_REG_ERANGE): Renamed from REG_ERANGE.
121639         (_REG_ESPACE): Renamed from REG_ESPACE.
121640         (_REG_BADRPT): Renamed from REG_BADRPT.
121641         (_REG_EEND): Renamed from REG_EEND.
121642         (_REG_ESIZE): Renamed from REG_ESIZE.
121643         (_REG_ERPAREN): Renamed from REG_ERPAREN.
121644         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
121645         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
121646         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
121647         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
121649         (_REG_RE_NAME, _REG_RM_NAME): New macros.
121650         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
121651         changed.  But support the old name if the new one is not defined
121652         and if _REGEX_SOURCE.
121654         Change the following member names in struct re_pattern_buffer.
121655         The old names are still supported if !_REGEX_SOURCE.
121656         The new names are always supported, regardless of _REGEX_SOURCE.
121657         (re_buffer): Renamed from buffer.
121658         (re_allocated): Renamed from allocated.
121659         (re_used): Renamed from used.
121660         (re_syntax): Renamed from syntax.
121661         (re_fastmap): Renamed from fastmap.
121662         (re_translate): Renamed from translate.
121663         (re_can_be_null): Renamed from can_be_null.
121664         (re_regs_allocated): Renamed from regs_allocated.
121665         (re_fastmap_accurate): Renamed from fastmap_accurate.
121666         (re_no_sub): Renamed from no_sub.
121667         (re_not_bol): Renamed from not_bol.
121668         (re_not_eol): Renamed from not_eol.
121669         (re_newline_anchor): Renamed from newline_anchor.
121671         Change the following member names in struct re_registers.
121672         The old names are still supported if !_REGEX_SOURCE.
121673         The new names are always supported, regardless of _REGEX_SOURCE.
121674         (rm_num_regs): Renamed from num_regs.
121675         (rm_start): Renamed from start.
121676         (rm_end): Renamed from end.
121678         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
121679         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
121680         Prepend __ to parameter names.
121682         Undo yesterday's changes.
121684 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121686         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
121687         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
121688         lib/regex.c.
121690 2005-08-24  Jim Meyering  <jim@meyering.net>
121692         Sync from coreutils.
121693         * m4/fcntl-safer.m4: New file.
121695         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
121696         and object files for this module.
121698 2005-08-24  Jim Meyering  <jim@meyering.net>
121700         Sync from coreutils.
121701         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
121703 2005-08-24  Jim Meyering  <jim@meyering.net>
121705         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
121706         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
121708 2005-08-24  Jim Meyering  <jim@meyering.net>
121710         * modules/fcntl-safer: New module.
121711         * modules/fts (Depends-on): Add fcntl-safer.
121712         * MODULES.html.sh (File descriptor based Input/Output):
121713         Add fcntl-safer.
121715 2005-08-24  Bruno Haible  <bruno@clisp.org>
121717         Support for unit test modules.
121718         * modules/README: Mention tests modules.
121719         * modules/TEMPLATE-TESTS: New file.
121720         * gnulib-tool: New options --extract-tests-module, --with-tests and
121721         --tests-base (unused for the moment).
121722         (testsbase, inctests): New variables.
121723         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
121724         (func_verify_module): Exclude TEMPLATE-TESTS.
121725         (func_verify_nontests_module, func_verify_tests_module): New functions.
121726         (func_get_dependencies): Add implicit dependency for tests modules.
121727         (func_get_tests_module): New function.
121728         (func_modules_transitive_closure): When --with-tests was specified,
121729         include the unit tests as well, unless explicitly avoided.
121730         (func_emit_lib_Makefile_am): Ignore the tests modules here.
121731         (func_emit_tests_Makefile_am): New function.
121732         (func_create_testdir): When --with-tests was specified, emit a
121733         tests/ directory.
121734         * MODULES.html.sh (Future developments): Update.
121736 2005-08-24  Bruno Haible  <bruno@clisp.org>
121738         * modules/tls-tests: New file.
121739         * tests/test-tls.c: New file, from GNU gettext.
121741 2005-08-24  Bruno Haible  <bruno@clisp.org>
121743         * modules/lock-tests: New file.
121744         * tests/test-lock.c: New file, from GNU gettext.
121746 2005-08-24  Bruno Haible  <bruno@clisp.org>
121748         * lib/lock.h: Add multiple inclusion guard.
121749         * lib/tls.h: Add multiple inclusion guard.
121751 2005-08-24  Bruno Haible  <bruno@clisp.org>
121753         * gnulib-tool: Add support for the --aux-dir option to
121754         --create-testdir, --create-megatestdir, --test, --megatest.
121755         (func_create_testdir, func_create_megatestdir): Optionally emit a
121756         AC_CONFIG_AUX_DIR directive.
121757         (create-testdir, create-megatestdir, test, megatest): Provide a
121758         default value for $auxdir.
121760 2005-08-24  Bruno Haible  <bruno@clisp.org>
121762         * gnulib-tool (import): Use compound statement instead of subshell
121763         where possible.
121765 2005-08-24  Bruno Haible  <bruno@clisp.org>
121767         * gnulib-tool (import): Change --aux-dir default to "build-aux".
121769 2005-08-24  Bruno Haible  <bruno@clisp.org>
121771         * gnulib-tool (func_version): Update.
121773 2005-08-24  Bruno Haible  <bruno@clisp.org>
121775         * gnulib-tool (func_import, func_create_testdir,
121776         func_create_megatestdir): Quote all autoconf macro arguments.
121778 2005-08-24  Bruno Haible  <bruno@clisp.org>
121780         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
121781         option --force, because --force causes the aclocal.m4 of each
121782         subdirectory to be newer than the corresponding config.h.in.
121784 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121786         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
121787         All contents moved to gl_REGEX.
121788         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
121789         assume that it does.
121791 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121793         * lib/regex.h (REG_NOSYS)
121794         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
121795         Define, since POSIX requires it as of 2001.
121796         (_REG_ENOSYS)
121797         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
121798         New private symbol, used to keep the enum signed in all cases.
121799         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
121800         Youngman in
121801         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
121803         * lib/regex_internal.c (re_string_skip_chars, register_state):
121804         (calc_state_hash):
121805         Remove forward decls; no longer needed now that we use prototypes.
121806         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
121807         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
121808         (clean_state_log_if_needed): Likewise.
121810 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121812         * config/srclist.txt: Add glibc bugs 1231-1233.
121814 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121816         Fix problems reported by Sam Steingold in
121817         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
121818         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
121819         assumed that reg_errcode_t is a signed type, which is not
121820         necessarily true if _XOPEN_SOURCE is not defined.
121821         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
121822         since some compilers warn about it otherwise.
121824 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121826         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
121827         (init_word_char, create_initial_state, duplicate_node_closure):
121828         (fetch_token, peek_token_bracket, build_range_exp):
121829         (build_collating_symbol): Remove forward decls; no longer needed
121830         now that we use prototypes.
121832         * lib/regcomp.c:
121833         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
121834         (re_compile_fastmap_iter, regcomp, regerror, regfree):
121835         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
121836         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
121837         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
121838         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
121839         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
121840         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
121841         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
121842         (build_range_exp, build_collating_symbol, parse_bracket_exp):
121843         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
121844         (build_charclass, build_charclass_op, fetch_number, create_tree):
121845         (create_token_tree, mark_opt_subexp, duplicate_tree):
121846         Use prototypes rather than old-style definitions.
121848         * lib/regex_internal.c:
121849         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
121850         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
121851         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121852         (re_string_reconstruct, re_string_peek_byte_case):
121853         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
121854         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121855         (re_node_set_init_copy, re_node_set_add_intersect):
121856         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121857         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121858         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121859         (re_acquire_state, re_acquire_state_context, register_state):
121860         (create_ci_newstate, create_cd_newstate, free_state):
121861         Likewise.
121862         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
121863         re_search_2):
121864         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
121865         (re_search_internal, prune_impossible_nodes):
121866         (acquire_init_state_context, check_matching, static):
121867         (check_halt_node_context, check_halt_state_context, proceed_next_node):
121868         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
121869         (update_regs, sift_states_backward, build_sifted_states):
121870         (clean_state_log_if_needed, merge_state_array):
121871         (update_cur_sifted_state, add_epsilon_src_nodes):
121872         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
121873         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
121874         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
121875         (find_recover_state, check_subexp_matching_top, transit_state_mb):
121876         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
121877         (check_arrival, check_arrival_add_next_nodes):
121878         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121879         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121880         (check_node_accept_bytes, check_node_accept, extend_buffers):
121881         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
121882         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
121883         (sift_ctx_init):
121884         Likewise.
121886         * lib/regex_internal.h:
121887         (re_string_allocate, re_string_construct, re_string_reconstruct):
121888         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
121889         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
121890         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
121891         (re_string_context_at, re_string_peek_byte_case):
121892         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
121893         is defined, since we now use prototypes always.
121895         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
121896         C89 or better.  All uses removed.
121898 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121900         * config/srclist.txt: Add glibc bugs 1220-1227.
121902 2005-08-20  Jim Meyering  <jim@meyering.net>
121904         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
121905         of unused local, dfa.
121907 2005-08-20  Bruno Haible  <bruno@clisp.org>
121909         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
121911 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121913         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
121914         (re_node_set_insert_last, re_dfa_add_node):
121915         Rename local variables to avoid GCC shadowing warnings.
121917 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121919         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
121920         [defined lint]: Suppress bogus uninitialized-variable warnings.
121922         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
121923         and let the caller return REG_ESPACE if out of space.  This
121924         removes an uninitialied-variable warning with GCC 4.0.1, and also
121925         avoids taking the address of a local variable.  All callers
121926         changed.
121928 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121930         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
121931         $LIBCSRC/posix/regexec.c.
121932         Add glibc bug 1217 for regcomp.c.
121934 2005-08-19  Jim Meyering  <jim@meyering.net>
121936         * lib/regexec.c (proceed_next_node): Redo local variables to
121937         avoid GCC shadowing warnings.
121939 2005-08-18  Bruno Haible  <bruno@clisp.org>
121941         * lib/strstr.c (strstr): Fix return value in multibyte case.
121942         * lib/strcasestr.c (strcasestr): Likewise.
121944 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121946         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
121948 2005-08-17  Jim Meyering  <jim@meyering.net>
121950         Make the %s format (seconds since the epoch) work for a negative
121951         number and when used with a zero-padded field width, e.g. %015s.
121953         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
121954         label so that it precedes the code to set `digits'.  Otherwise,
121955         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
121956         print `00-22'.  Now, it prints `-0022', as it should.
121958 2005-08-17  Bruno Haible  <bruno@clisp.org>
121960         * modules/strstr (Files): Add m4/mbrtowc.m4.
121961         (Depends-on): Add mbuiter.
121963 2005-08-17  Bruno Haible  <bruno@clisp.org>
121965         * modules/strcasestr: New file.
121966         * MODULES.html.sh (String handling, based on ANSI C 89): Add
121967         strcasestr.
121969 2005-08-17  Bruno Haible  <bruno@clisp.org>
121971         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
121973 2005-08-17  Bruno Haible  <bruno@clisp.org>
121975         * modules/mbuiter: New file.
121976         * MODULES.html.sh (Extended multibyte and wide character utilities):
121977         Add mbuiter.
121979 2005-08-17  Bruno Haible  <bruno@clisp.org>
121981         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
121982         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
121984 2005-08-17  Bruno Haible  <bruno@clisp.org>
121986         * m4/strcasestr.m4: New file.
121988 2005-08-17  Bruno Haible  <bruno@clisp.org>
121990         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
121991         * lib/strstr.c: Completely rewritten, with multibyte locale support.
121993 2005-08-17  Bruno Haible  <bruno@clisp.org>
121995         * lib/strcasestr.h: New file.
121996         * lib/strcasestr.c: New file.
121998 2005-08-17  Bruno Haible  <bruno@clisp.org>
122000         * lib/strcasecmp.c: Use mbuiter.h.
122002 2005-08-17  Bruno Haible  <bruno@clisp.org>
122004         * lib/mbuiter.h: New file.
122006 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
122008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
122009         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
122010         and gl_GETOPT are both invoked via different paths (as happens
122011         with GNU tar CVS because it uses both argp and getopt), the former
122012         wins.
122014 2005-08-16  Bruno Haible  <bruno@clisp.org>
122016         * modules/tls: New file.
122017         * MODULES.html.sh (Multithreading): Add tls.
122019 2005-08-16  Bruno Haible  <bruno@clisp.org>
122021         * modules/strnlen1: New file.
122022         * MODULES.html.sh (String handling): Add strnlen1.
122024 2005-08-16  Bruno Haible  <bruno@clisp.org>
122026         * modules/strcase (Files): Add m4/mbrtowc.m4.
122027         (Depends-on): Add strnlen1, mbchar.
122029 2005-08-16  Bruno Haible  <bruno@clisp.org>
122031         * modules/mbiter: New file.
122032         * MODULES.html.sh (Extended multibyte and wide character utilities):
122033         Add mbiter.
122035 2005-08-16  Bruno Haible  <bruno@clisp.org>
122037         * modules/mbfile: New file.
122038         * MODULES.html.sh (Extended multibyte and wide character utilities):
122039         Add mbfile.
122041 2005-08-16  Bruno Haible  <bruno@clisp.org>
122043         * modules/mbchar: New file.
122044         * MODULES.html.sh (Extended multibyte and wide character utilities):
122045         New section.
122047 2005-08-16  Bruno Haible  <bruno@clisp.org>
122049         * m4/tls.m4: New file, from GNU gettext.
122051 2005-08-16  Bruno Haible  <bruno@clisp.org>
122053         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
122054         always.
122055         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
122057 2005-08-16  Bruno Haible  <bruno@clisp.org>
122059         * m4/mbiter.m4: New file.
122061 2005-08-16  Bruno Haible  <bruno@clisp.org>
122063         * m4/mbfile.m4: New file.
122065 2005-08-16  Bruno Haible  <bruno@clisp.org>
122067         * m4/mbchar.m4: New file.
122069 2005-08-16  Bruno Haible  <bruno@clisp.org>
122071         * lib/tls.h: New file, from GNU gettext.
122072         * lib/tls.c: New file, from GNU gettext.
122074 2005-08-16  Bruno Haible  <bruno@clisp.org>
122076         * lib/strnlen1.h: New file.
122077         * lib/strnlen1.c: New file.
122079 2005-08-16  Bruno Haible  <bruno@clisp.org>
122081         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
122082         (mbi_init): Update.
122083         (mbi_avail, mbi_advance): Let the iteration end before the terminating
122084         NUL byte, not after it.
122086 2005-08-16  Bruno Haible  <bruno@clisp.org>
122088         * lib/strcase.h (strcasecmp): Add note in comments.
122089         * lib/strncasecmp.c: Use code from strcasecmp.c.
122090         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
122091         (strcasecmp): Work correctly in multibyte locales.
122093 2005-08-16  Bruno Haible  <bruno@clisp.org>
122095         * lib/mbiter.h: New file.
122097 2005-08-16  Bruno Haible  <bruno@clisp.org>
122099         * lib/mbfile.h: New file.
122101 2005-08-16  Bruno Haible  <bruno@clisp.org>
122103         * lib/mbchar.h: New file.
122104         * lib/mbchar.c: New file.
122106 2005-08-16  Bruno Haible  <bruno@clisp.org>
122108         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
122109         the valid ones. Makes the comparison operations transitive:
122110         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
122111         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
122113 2005-08-15  Simon Josefsson  <jas@extundo.com>
122115         * modules/ssize_t (License): Change to 'unlimited'.
122117         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
122119 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
122121         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
122122         Add comments for each pending glibc patch.
122124 2005-08-15  Bruno Haible  <bruno@clisp.org>
122126         * lib/regex.h (__restrict_arr): Don't define to __restrict if
122127         __cplusplus is defined.
122129 2005-08-14  Jim Meyering  <jim@meyering.net>
122131         Sync from coreutils.
122133         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
122134         Use the hash-table-based cycle-detection code not just when
122135         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
122136         Reported by James Youngman in
122137         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
122138         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
122139         FTS_TIGHT_CYCLE_CHECK.
122140         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
122141         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
122142         once again.
122143         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
122144         * lib/fts.c (fd_safer): Remove decl.
122145         Include fcntl--.h rather than unistd-safer.h
122146         (fts_safe_changedir): Don't call fd_safer; no longer needed
122147         now that we include fcntl--.h.
122149 2005-08-12  Simon Josefsson  <jas@extundo.com>
122151         * modules/getndelim2: Use ssize_t module.
122152         * modules/getnline: Likewise.
122153         * modules/safe-read: Likewise.
122154         * modules/xreadlink: Likewise.
122156         * modules/ssize_t: New file.
122158 2005-08-12  Simon Josefsson  <jas@extundo.com>
122160         * m4/readline.m4: Look for termcap, curses or ncurses if required.
122162 2005-08-12  Simon Josefsson  <jas@extundo.com>
122164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122165         ssize_t.
122167 2005-08-12  Simon Josefsson  <jas@extundo.com>
122169         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
122170         readline, getdelim and check_version.
122171         (Support for systems lacking ISO C 99: Sizes of integer types):
122172         Add size_max.
122174 2005-08-12  Bruno Haible  <bruno@clisp.org>
122176         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
122178 2005-08-11  Simon Josefsson  <jas@extundo.com>
122180         * modules/readline: New file.
122182         * modules/strnlen (Files): Add strnlen.h.
122184 2005-08-11  Simon Josefsson  <jas@extundo.com>
122186         * m4/readline.m4: New file.
122188 2005-08-11  Simon Josefsson  <jas@extundo.com>
122190         * lib/readline.h, readline.c: New file.
122192 2005-08-11  Simon Josefsson  <jas@extundo.com>
122194         * doc/gnulib.texi (Initial import, Finishing touches): Mention
122195         gl_AVOID.
122197 2005-08-11  Bruno Haible  <bruno@clisp.org>
122199         * lib/strnlen.h (strnlen): Change parameter name to match comment.
122201 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
122203         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
122205 2005-08-10  Simon Josefsson  <jas@extundo.com>
122207         * tests/test-iconvme.c: New file.
122209 2005-08-10  Simon Josefsson  <jas@extundo.com>
122211         * m4/strnlen.m4: New file.
122213         * m4/strndup.m4: Don't check for strnlen declaration, done in
122214         strnlen.m4.
122216 2005-08-10  Simon Josefsson  <jas@extundo.com>
122218         * lib/strndup.c: Use strnlen.h.
122220         * lib/strnlen.h: New file.
122222 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
122224         * README: Typos.
122226 2005-08-02  Simon Josefsson  <jas@extundo.com>
122228         * modules/readline: New file.
122230 2005-08-02  Simon Josefsson  <jas@extundo.com>
122232         * modules/getdelim: New file.
122234         * modules/getline: Rewrite, don't use getndelim2.
122236 2005-08-02  Simon Josefsson  <jas@extundo.com>
122238         * m4/getline.m4: Separate out getdelim stuff into separate module.
122240         * m4/getdelim.m4: New file.
122242 2005-08-02  Simon Josefsson  <jas@extundo.com>
122244         * lib/getline.h, getline.c: Rewrite.
122246         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
122248 2005-07-31  Bruno Haible  <bruno@clisp.org>
122250         * lib/lock.h (gl_lock_initializer): New macro.
122251         (gl_lock_define_initialized): Use it.
122252         (gl_rwlock_initializer): New macro.
122253         (gl_rwlock_define_initialized): Use it.
122254         (gl_recursive_lock_initializer): New macro.
122255         (gl_recursive_lock_define_initialized): Use it.
122257 2005-07-30  Karl Berry  <karl@gnu.org>
122259         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
122260         Report from Ben Pfaff, regarding getopt.
122262 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
122264         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
122265         normal way.
122266         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
122267         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
122268         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
122269         (gl_GETOPT): Use the new macros.  Most of the implementation
122270         is moved to the new macros.  This is for programs like Emacs
122271         that don't want all the functionality of gl_GETOPT.
122273 2005-07-26  Bruno Haible  <bruno@clisp.org>
122275         * m4/lock.m4: Update from GNU gettext.
122277 2005-07-26  Bruno Haible  <bruno@clisp.org>
122279         * lib/lock.h: Update from GNU gettext.
122280         * lib/lock.c: Update from GNU gettext.
122282 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
122284         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
122285         obsolescent AC_TRY_RUN.  Include the default includes files, for
122286         'exit'.
122288 2005-07-24  Bruno Haible  <bruno@clisp.org>
122290         * modules/visibility: New file.
122291         * MODULES.html.sh (Misc): Add visibility.
122293 2005-07-24  Bruno Haible  <bruno@clisp.org>
122295         * m4/visibility.m4: New file.
122297 2005-07-24  Bruno Haible  <bruno@clisp.org>
122299         * doc/visibility.texi: New file.
122301 2005-07-22  Bruno Haible  <bruno@clisp.org>
122303         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
122304         $(ALLOCA_H), redundant through BUILT_SOURCES.
122305         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
122306         redundant through BUILT_SOURCES.
122307         * modules/byteswap (Makefile.am): Remove explicit dependency on
122308         $(BYTESWAP_H), redundant through BUILT_SOURCES.
122309         * modules/fnmatch (Makefile.am): Remove explicit dependency on
122310         $(FNMATCH_H), redundant through BUILT_SOURCES.
122311         * modules/getopt (Makefile.am): Remove explicit dependency on
122312         $(GETOPT_H), redundant through BUILT_SOURCES.
122313         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
122314         redundant through BUILT_SOURCES.
122315         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
122316         redundant through BUILT_SOURCES.
122317         * modules/stdbool (Makefile.am): Remove explicit dependency on
122318         $(STDBOOL_H), redundant through BUILT_SOURCES.
122319         * modules/stdint (Makefile.am): Remove explicit dependency on
122320         $(STDINT_H), redundant through BUILT_SOURCES.
122321         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
122322         Remove explicit dependency on $(SYSEXITS_H).
122323         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
122325 2005-07-18  Simon Josefsson  <jas@extundo.com>
122327         * lib/check-version.c (check_version): Accept identical versions too.
122329 2005-07-18  Bruno Haible  <bruno@clisp.org>
122331         * modules/lock: New file.
122332         * MODULES.html.sh (Multithreading): New section.
122334 2005-07-18  Bruno Haible  <bruno@clisp.org>
122336         * m4/lock.m4: New file, from GNU gettext.
122338 2005-07-18  Bruno Haible  <bruno@clisp.org>
122340         * lib/lock.h: New file, from GNU gettext.
122341         * lib/lock.c: New file, from GNU gettext.
122343 2005-07-18  Bruno Haible  <bruno@clisp.org>
122345         * lib/lock.h (gl_once_t): New type.
122346         (gl_once_define, gl_once): New macros.
122347         * lib/lock.c (fresh_once): New variable.
122348         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
122349         functions.
122351 2005-07-16  Simon Josefsson  <jas@extundo.com>
122353         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
122354         workaround, suggested by Bruno.
122356 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
122358         * modules/xalloc (Depends-on): Add xalloc-die.
122359         * modules/xvasprintf (Depends-on): Add xalloc-die.
122361 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
122363         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
122364         with a minor change.
122366 2005-07-15  Bruno Haible  <bruno@clisp.org>
122368         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
122369         When using lib/poll.c, define poll as rpl_poll.
122371 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
122373         * modules/argp (Depends-on): Remove unlocked-io.
122375 2005-07-14  Derek Price  <derek@ximbiot.com>
122377         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
122378         for glob symlink bug.
122380 2005-07-14  Bruno Haible  <bruno@clisp.org>
122382         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
122383         Instead, test for *_unlocked function declarations directly.
122385 2005-07-11  Simon Josefsson  <jas@extundo.com>
122387         * modules/size_max: New file.
122389         * modules/xsize: Depend on size_max module for size_max.m4.
122391 2005-07-11  Simon Josefsson  <jas@extundo.com>
122393         * lib/size_max.h: New file.
122395 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
122397         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
122398         copyright symbol and the year.
122399         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
122400         (version_etc_va): Use parameterized copyright notice.
122401         Reword to conform to the current GNU coding standards.
122403 2005-07-11  Karl Berry  <karl@gnu.org>
122405         * doc/gnulib.texi (Quoting): new node.
122406         (Initial import): more info, from Patrice.
122408 2005-07-11  Bruno Haible  <bruno@clisp.org>
122410         * gnulib-tool (func_usage): Document option --avoid.
122411         (Command line options): Handle --avoid.
122412         (func_acceptable): New function.
122413         (func_modules_transitive_closure): Use it.
122415 2005-07-11  Bruno Haible  <bruno@clisp.org>
122417         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
122418         Reported by Jim Meyering.
122420 2005-07-10  Bruno Haible  <bruno@clisp.org>
122422         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
122423         Needed when size_t is smaller than 'unsigned int'.
122424         Reported by Paul Eggert.
122426 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
122428         * modules/argp (Depends-on): Add unlocked-io
122430 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
122432         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
122433         block of defines.
122435 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
122437         * config/srclist.txt: Comment out regcomp.c, since we have a porting
122438         fix now.
122440 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
122441         and Paul Eggert  <eggert@cs.ucla.edu>
122443         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
122444         in wint_t, not wchar_t.  Remove now-unnecessary cast.
122446 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122448         * modules/regex (Files): Add lib/regex_internal.c,
122449         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
122450         (Depends-on): Add extensions.
122451         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
122453 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122455         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
122456         pathconf.
122457         * m4/same.m4 (gl_SAME): Likewise.
122458         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
122460         * m4/regex.m4: Adjust to new libc regex implementation.
122461         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
122462         all the .c and .h parts of (the new) regex.
122463         Quote the m4 stuff better.
122464         Check for RE_ICASE bug of old gnulib.
122465         Check for REG_STARTEND of recent libc.
122466         Rename local variables from jm_* to gl_*.
122467         Quote operand of "test -f".
122468         Say "recent enough" version of libc, not "version 2".
122469         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
122470         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
122471         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
122472         Remove check for btowc, isascii.
122473         Require AM_LANGINFO_CODESET.
122475 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122477         * lib/regex.c, regex.h: Sync from libc.
122478         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
122479         * lib/regexec.c:
122480         New files, synced from libc, except that regex_internal.h
122481         currently has a small porting fix.
122483 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122485         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
122486         regex_internal.c, regexec.c.
122487         Add regex_internal.h too, but as a comment, since the libc version
122488         is currently broken in gnulib mode.
122490 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
122492         Support programs like Emacs that use gnulib but not gettext.
122493         * MODULES.html.sh (Internationalization functions): Add gettext-h.
122494         * modules/gettext-h: New file.
122495         * modules/gettext (Files): Remove lib/gettext.h.
122496         (Depends-on): Add gettext-h.
122497         (Makefile.am): Remove lib_SOURCES.
122498         * modules/argmatch, modules/c-stack, modules/closeout:
122499         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
122500         * modules/execute, modules/file-type, modules/getaddrinfo:
122501         * modules/getopt, modules/human, modules/javacomp:
122502         * modules/javaexec, modules/mkdir-p, modules/obstack:
122503         * modules/openat, modules/pagealign_alloc, modules/pipe:
122504         * modules/quotearg, modules/regex, modules/rpmatch:
122505         * modules/unicodeio, modules/userspec, modules/version-etc:
122506         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
122507         * modules/xsetenv:
122508         Depend on gettext-h, not gettext.
122510 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
122512         * gnulib-tool (func_import): Add support for 'public domain' license.
122513         * modules/alloca, modules/atexit, modules/memmove:
122514         Now public domain, not GPL.
122515         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
122516         * modules/realloc, modules/strerror, modules/strtod:
122517         Now LGPL, not GPL.
122519 2005-07-05  Bruno Haible  <bruno@clisp.org>
122521         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
122522         autoconf CVS. Needed for mingw.
122524 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122526         Remove the dependency of the strftime module on the tzset module.
122527         * modules/strftime (Depends-on): Remove dependency on tzset.
122529 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122531         Remove the dependency of the strftime module on the tzset module.
122532         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
122533         gl_FUNC_TZSET_CLOBBER.
122535 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122537         Remove the dependency of the strftime module on the tzset module.
122538         * lib/strftime.c (my_strftime)
122539         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
122540         Copy the input structure, to work around some of the bug with
122541         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
122542         Solaris releases, you should also use the tzset module, but we won't
122543         require it as a dependency any more since we don't want LGPLed code
122544         to depend on GPLed code.
122546 2005-07-02  Jim Meyering  <jim@meyering.net>
122548         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
122549         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
122550         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
122551         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
122553 2005-07-02  Jim Meyering  <jim@meyering.net>
122555         * lib/backupfile.c (backup_args): Change a `0' to NULL.
122557 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
122559         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
122560         declares only 'struct timespec;' (!).
122562 2005-07-01  Jim Meyering  <jim@meyering.net>
122564         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
122565         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
122566         * lib/save-cwd.c, tempname.c:
122567         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
122568         and don't include <sys/file.h>).
122570 2005-06-29  Jim Meyering  <jim@meyering.net>
122572         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
122573         type name.  Use the variable name instead.
122574         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
122575         Likewise.
122577 2005-06-28  Simon Josefsson  <jas@extundo.com>
122579         * modules/check-version (Files): Add check-version.m4.
122581 2005-06-28  Simon Josefsson  <jas@extundo.com>
122583         * m4/check-version.m4: New file, suggested by Jim Meyering
122584         <jim@meyering.net>.
122586 2005-06-28  Simon Josefsson  <jas@extundo.com>
122588         * lib/check-version.h, lib/check-version.c: New files.
122590 2005-06-28  Simon Josefsson  <jas@extundo.com>
122592         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
122593         collision with global variable.  Better indentation.  Don't
122594         increment buffer pointer beyond buffer end.  Based on comments
122595         from Paul Eggert <eggert@cs.ucla.edu>.
122597         * lib/base64.h: Indent.
122599 2005-06-28  Simon Josefsson  <jas@extundo.com>
122601         * doc/gnulib.texi (Library version handling): New section.
122603 2005-06-28  Jim Meyering  <jim@meyering.net>
122605         * check-module (find_included_lib_files): Hard-code another
122606         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
122607         but modules/fts-lgpl (correctly) does not list those files.
122609         * modules/canonicalize (Files): Add lib/pathmax.h.
122611 2005-06-25  Simon Josefsson  <jas@extundo.com>
122613         * modules/check-version: New file.
122615 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
122617         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
122618         initializer of struct addrinfo, as an indication that we don't
122619         care how many members the structure has.
122621 2005-06-24  Derek Price  <derek@ximbiot.com>
122622         and Bruno Haible  <bruno@clisp.org>
122624         Remove stat module & update lstat.
122625         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
122626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
122627         * m4/stat.m4: Remove this file.
122629 2005-06-24  Derek Price  <derek@ximbiot.com>
122630         and Bruno Haible  <bruno@clisp.org>
122632         Remove stat module & update lstat.
122633         * lib/stat.c: Remove this file...
122634         (slash_aware_lstat): ...moving this content and its support...
122635         * lib/lstat.c (rpl_lstat): ...into here.
122636         * lib/lstat.h: New file.
122638 2005-06-24  Derek Price  <derek@ximbiot.com>
122639         and Bruno Haible  <bruno@clisp.org>
122641         Remove stat module & update lstat.
122642         * config/srclist.txt (libc sources): Remove stat.
122644 2005-06-24  Derek Price  <derek@ximbiot.com>
122645         and Bruno Haible  <bruno@clisp.org>
122647         Remove stat module & update lstat.
122648         * MODULES.html.sh (stat): Remove.
122649         * MODULES.html: Regenerated.
122650         * modules/lstat (Description): Correct function name.
122651         (Files): Add "lstat.h".
122652         (Depends-on): Remove stat, add xalloc, stat-macros.
122653         * modules/stat: Remove this file.
122654         (Include): Add "lstat.h", remove <sys/stat.h>.
122656 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
122658         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
122659         (ranged_convert): Don't save conversion in a temporary struct.
122660         This causes a warning with GCC 4.0.0, and anyway in the typical
122661         case it's not worth the extra 100 bytes or so of code.
122662         (ranged_convert, __mktime_internal): When calling a function via a
122663         pointer P, use P () rather than (*P) (), as we now assume C89 or
122664         better.
122666 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122668         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
122669         "who -r" failed to give output.  Problem reported by Tim Waugh.
122671         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
122672         (xcalloc): Use it to avoid needless tests.
122673         Problem reported by Jim Meyering.
122675 2005-06-20  Derek Price  <derek@ximbiot.com>
122677         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
122678         unnecessary for Autoconfs > 2.59c.
122680 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122682         * lib/argp.h (__option_is_short): Check upper limit of
122683         __key. Isprint() requires its argument to have the value
122684         of an unsigned char or EOF.
122686 2005-06-16  Jim Meyering  <jim@meyering.net>
122688         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
122689         when either N or S is zero.
122691 2005-06-16  Derek Price  <derek@ximbiot.com>
122693         * m4/bison.m4: Declare YACC & YFLAGS precious.
122695 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
122697         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
122698         multibyte string or pattern, fall back on unibyte matching.
122699         Problem reported by James Youngman.
122701 2005-06-08  Bruno Haible  <bruno@clisp.org>
122703         * modules/csharpcomp: New file.
122704         * MODULES.html.sh (C#): Add csharpcomp.
122706 2005-06-08  Bruno Haible  <bruno@clisp.org>
122708         * m4/csharpcomp.m4: New file, from GNU gettext.
122710 2005-06-08  Bruno Haible  <bruno@clisp.org>
122712         * lib/csharpcomp.h: New file, from GNU gettext.
122713         * lib/csharpcomp.c: New file, from GNU gettext.
122714         * lib/csharpcomp.sh.in: New file, from GNU gettext.
122716 2005-06-08  Bruno Haible  <bruno@clisp.org>
122718         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
122719         warning on mingw.
122721 2005-06-07  Derek Price  <derek@ximbiot.com>
122723         Sync from CVS.
122724         * lib/glob_.h: Indent nested #ifdef.
122726 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122728         Sync from coreutils.
122729         Use "file name" when talking about file names, instead of "filename"
122730         or "path", as per the GNU coding standards.
122731         * lib/mkdir-p.c: Renamed from makepath.c.
122732         (make_dir_parents): Renamed from make_path.  All callers changed.
122733         * lib/mkdir-p.h: Likewise.  All includers changed.
122734         * lib/filenamecat.c: Renamed from path-concat.c.
122735         (file_name_concat): Renamed from path_concat.  All callers changed.
122736         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
122737         * lib/filenamecat.h: Likewise.  All includers changed.
122738         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
122739         in comments or local variable names.
122740         * lib/basename.c: Likewise.
122741         * lib/canonicalize.c, canonicalize.h: Likewise.
122742         * lib/dirname.c, dirname.h: Likewise.
122743         * lib/euidaccess.c: Likewise.
122744         * lib/exclude.c: Likewise
122745         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
122746         * lib/fsusage.c, fsuage.h: Likewise.
122747         * lib/fts.c, fts_.h: Likewise.
122748         * lib/getcwd.c: Likewise.
122749         * lib/getloadavg.c: Likewise.
122750         * lib/mkstemp.c: Likewise.
122751         * lib/mountlist.c, mountlist.h: Likewise.
122752         * lib/openat.c, openat.h: Likewise.
122753         * lib/readlink-stub.c: Likewise.
122754         * lib/readutmp.c, readutmp.h: Likewise.
122755         * lib/rename.c: Likewise.
122756         * lib/rmdir.c: Likewise.
122757         * lib/same.c: Likewise.
122758         * lib/savedir.c: Likewise.
122759         * lib/stripslash.c: Likewise.
122760         * lib/tempname.c: Likewise.
122761         * lib/xreadlink.c: Likewise.
122762         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
122763         All uses changed.
122764         * lib/exclude.h: Likewise.
122766         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
122767         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122768         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
122769         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122770         * lib/pathmax.h: Include <limits.h> unconditionally, since other
122771         files have been getting away with it for years (MORE/BSD 4.3
122772         is extinct now).
122773         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
122774         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122776         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
122777         Define to 256, not 255, as per modern POSIX.
122779 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122781         Sync from coreutils.
122782         Use "file name" when talking about file names, instead of "filename"
122783         or "path", as per the GNU coding standards.
122784         * MODULES.html.sh: mkdir-p renamed from makepath.
122785         filenamecat renamed from path-concat.
122786         * modules/filenamecat: Renamed from modules/path-concat.
122787         (Files): filenamecat.h and filenamecat.c renamed from
122788         path-concat.h and path-concat.c.
122789         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
122790         (Include): filenamecat.h, not path-concat.h.
122791         * modules/mkdir-p: Renamed from modules/makepath.
122792         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
122793         makepath.c.
122794         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
122795         (Include): mkdir-p.h, not makepath.h.
122797 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122799         Sync from coreutils.
122800         * m4/mkdir-p.m4: Renamed from makepath.m4.
122801         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
122802         Rename files from makepath.c to mkdir-p.c, and from
122803         makepath.h to mkdir-p.h.
122804         * m4/filenamecat.m4: Renamed from path-concat.m4.
122805         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
122806         Rename files from path-concat.c to filenamecat.c,
122807         and from path-concat.h to filenamecat.h.
122808         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
122809         "file name" in local variables or comments.
122810         * m4/rename.m4: Likewise.
122812 2005-06-01  Bruno Haible  <bruno@clisp.org>
122814         * modules/csharpexec: New file.
122815         * MODULES.html.sh (C#): New section.
122817 2005-06-01  Bruno Haible  <bruno@clisp.org>
122819         * m4/csharp.m4: New file, from GNU gettext.
122820         * m4/csharpexec.m4: New file, from GNU gettext.
122822 2005-06-01  Bruno Haible  <bruno@clisp.org>
122824         * lib/csharpexec.h: New file, from GNU gettext.
122825         * lib/csharpexec.c: New file, from GNU gettext.
122826         * lib/csharpexec.sh.in: New file, from GNU gettext.
122828 2005-05-31  Derek Price  <derek@ximbiot.com>
122829             Paul Eggert  <eggert@cs.ucla.edu>
122831         Sync from cvs.
122832         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122834 2005-05-31  Derek Price  <derek@ximbiot.com>
122835             Paul Eggert  <eggert@cs.ucla.edu>
122837         Sync from cvs.
122838         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122840 2005-05-29  Derek Price  <derek@ximbiot.com>
122842         * config/srclist.txt (glob_.h, glob.c): Add these files.
122844 2005-05-29  Derek Price  <derek@ximbiot.com>
122846         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
122847         * modules/glob: New file.
122848         * modules/getlogin_r: Add link to POSIX spec in description.
122850 2005-05-29  Derek Price  <derek@ximbiot.com>
122851             Paul Eggert  <eggert@cs.ucla.edu>
122853         * m4/glob.m4: New file.
122855 2005-05-29  Derek Price  <derek@ximbiot.com>
122856             Paul Eggert  <eggert@cs.ucla.edu>
122858         * lib/glob_.h, lib/glob.c: New files.
122860 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122862         * modules/fts (Files): Remove m4/inttypes-pri.m4.
122863         * modules/fts-lgpl (Depends-on): Remove gettext.
122865 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122867         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
122868         and don't require gt_INTTYPES_PRI.
122870 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122872         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
122874         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
122875         the configuration hassle isn't worth it.
122876         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
122877         (LONGEST_MODIFIER, PRIuMAX): Remove.
122879 2005-05-27  Bruno Haible  <bruno@clisp.org>
122881         * lib/getlogin_r.h: Remove second include of <stddef.h>.
122883 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
122885         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
122886         _POSIX_PTHREAD_SEMANTICS for Solaris.
122888 2005-05-25  Derek Price  <derek@ximbiot.com>
122890         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
122892 2005-05-25  Derek Price  <derek@ximbiot.com>
122893             Paul Eggert  <eggert@cs.ucla.edu>
122895         * modules/getlogin_r, m4/getlogin_r.m4: New files.
122896         * lib/getlogin_r.c, getlogin_r.h: New files.
122898 2005-05-25  Bruno Haible  <bruno@clisp.org>
122899             Derek Price  <derek@ximbiot.com>
122901         * lib/getlogin_r.h: Simplify API documentation.
122903 2005-05-23  Derek Price  <derek@ximbiot.com>
122905         * modules/minmax (Files): Add m4/minmax.m4.
122906         (configure.ac): Add gl_MINMAX.
122908 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
122910         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
122911         so that unistd-safer.h (GPL'ed code) need not be included.
122913 2005-05-22  Bruno Haible  <bruno@clisp.org>
122915         * m4/minmax.m4: New file.
122916         Based on a patch by Derek Price <derek@ximbiot.com>.
122918 2005-05-22  Bruno Haible  <bruno@clisp.org>
122920         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
122921         (INT64_MIN): Fix definition.
122922         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
122924         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
122925         NEED_SIGNED_INT_TYPES.
122927         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
122928         HAVE_SYSTEM_INTTYPES.
122930 2005-05-22  Bruno Haible  <bruno@clisp.org>
122932         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
122933         Also include <sys/param.h> if it defines MIN, MAX.
122934         Based on a patch by Derek Price <derek@ximbiot.com>.
122936 2005-05-21  Jim Meyering  <jim@meyering.net>
122938         * modules/fts (Files): Add m4/inttypes-pri.m4.
122939         (Depends-on): Add lstat and remove gettext.  Alphabetize.
122941 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122943         New fts module.
122944         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
122945         (setup_dir, free_dir): New functions.
122946         (enter_dir, leave_dir): Define trivial
122947         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
122948         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
122949         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
122950         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
122951         Move to fts-cycle.c.
122952         (fts_open): Use setup_dir.
122953         (fts_close): Use free_dir.
122954         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
122955         This adds a label and some gotos, but the alternatives were messier.
122956         Check for memory allocation failure when entering a dir.
122957         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
122958         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
122959         (FTS): New member fts_cycle, that is a union that contains the
122960         old active_dir_ht and cycle_state.  All uses changed to mention
122961         fts_cycle.ht and fts_cycle.state.
122962         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
122963         fts.c, with the following changes:
122964         (setup_dir, free_dir): New functions.
122965         (enter_dir): Now returns bool.  Return true if successful, false
122966         if memory exhausted.  All callers changed.
122967         Do not bother partly cleaning up on
122968         memory allocation failure; that is free_dir's job.
122969         However, free ad if hash_insert fails, to avoid memory leak.
122970         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
122971         fts->fts_options to see which union member to use.
122973 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122975         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
122976         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
122978 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122980         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
122982 2005-05-20  Jim Meyering  <jim@meyering.net>
122984         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
122985         Now a macro, to pacify GCC.
122987 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122989         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
122990         of -1.
122992 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122994         * lib/chown.c (rpl_chown): Return -1 on failure.
122996 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122998         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
122999         Don't check for stddef.h.
123000         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
123001         don't use its results.
123002         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
123003         since we include them unconditionally.  Don't require
123004         AM_STDBOOL_H, since stdbool is a prerequisite.
123005         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
123006         since we assume C89 or better.
123007         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
123008         as we don't use their results.
123009         Don't check for fchdir, memmove, memset, strrchr, as we use
123010         them unconditionally.
123011         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
123012         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
123014 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
123016         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
123017         Include <stddef.h> unconditionally, since we assume C89 now.
123018         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
123019         * lib/fts.c: Include fts_.h first, to check interface.
123020         Do not include intprops.h; no longer needed.
123021         Include cycle-check.h and hash.h, since fts_.h no longer does.
123022         Remove unnecessary casts of closedir to void.
123023         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
123024         decide whether to decrement nlinks.
123025         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
123026         (FTS): Use struct hash_table * instead of Hash_table, so that
123027         we no longer need to include hash.h here.
123029 2005-05-18  Jim Meyering  <jim@meyering.net>
123031         * modules/dirfd (License): Change to LGPL.  Most of the code
123032         is already in the public domain.
123034 2005-05-18  Jim Meyering  <jim@meyering.net>
123036         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
123037         Reported by Yoann Vandoorselaere.
123039 2005-05-17  Jim Meyering  <jim@meyering.net>
123041         * m4/fts.m4: New file, from coreutils.
123043 2005-05-17  Jim Meyering  <jim@meyering.net>
123045         * lib/fts.c, lib/fts_.h: New files, from coreutils.
123047 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
123049         Sync from coreutils.
123050         * m4/unlinkdir.m4: New file.
123052 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
123054         Sync from coreutils.
123055         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
123056         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
123057         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
123058         White space changes only.
123059         * lib/makepath.c (make_path): Port to hosts where leading "//" is
123060         special.
123061         * lib/yesno.c: Include getline.h, not ctype.h.
123062         (yesno): Don't remove leading white space; POSIX doesn't allow it.
123063         Use getline to remove arbitrary restriction on response length.
123065 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
123067         * config/srclist-update: Spell out "Street" in FSF postal
123068         mail address; this is the style the FSF seems to prefer.
123070         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
123071         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
123072         this updates FSF postal mail address.
123074         Sync from coreutils.
123075         * modules/unlinkdir: New file.
123076         * modules/yesno (Depends-on): Add getline.
123077         * MODULES.html.sh (File system functions): Add unlinkdir.
123079 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
123081         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
123082         lib/strsep.h:
123083         Change the initial comment to refer to GPL, not LGPL.
123084         gnulib-tool will change it to LGPL as needed.
123086         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
123087         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
123088         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
123089         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
123090         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
123091         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
123092         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
123093         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
123094         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
123095         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
123096         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
123097         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
123098         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
123099         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
123100         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
123101         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
123102         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
123103         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
123104         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
123105         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
123106         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
123107         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
123108         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
123109         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
123110         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
123111         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
123112         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
123113         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
123114         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
123115         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
123116         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
123117         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
123118         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
123119         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
123120         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
123121         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
123122         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
123123         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
123124         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
123125         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
123126         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
123127         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
123128         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
123129         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
123130         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
123131         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
123132         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
123133         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
123134         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
123135         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
123136         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
123137         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
123138         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
123139         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
123140         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
123141         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
123142         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
123143         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
123144         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
123145         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
123146         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
123147         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
123148         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
123149         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
123150         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
123151         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
123152         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
123153         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
123154         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
123155         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
123156         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
123157         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
123158         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
123159         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
123160         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
123161         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
123162         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
123163         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
123164         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
123165         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
123166         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
123167         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
123168         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
123169         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
123170         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
123171         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
123172         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
123173         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
123174         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
123175         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
123176         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
123177         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
123178         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
123179         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
123180         lib/yesno.c, lib/yesno.h:
123181         Update FSF postal mail address.
123183 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
123185         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
123186         tests/test-memmem.c, tests/test-stpncpy.c:
123187         Update FSF postal mail address.
123189 2005-05-13  Bruno Haible  <bruno@clisp.org>
123191         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
123192         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
123193         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
123194         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
123195         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
123196         Add support for 64-bit integers in the MSVC compiler.
123198 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123200         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
123202 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
123204         * gnulib-tool (func_import): Sort and uniquify recommended includes.
123206 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
123208         * doc/getdate.texi (General date syntax): Don't say that date
123209         date --iso-8601=ns generates acceptable dates; it doesn't yet.
123210         Problem reported by Nic Ferrier.
123212 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
123214         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
123215         specified in ai_socktype. Fix invalid ai_protocol
123216         check. ai_protocol is usually set to 0 or depending on
123217         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
123218         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
123219         ai_socktype / ai_protocol in the returned addrinfo structure.
123221 2005-05-10  Simon Josefsson  <jas@extundo.com>
123223         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
123224         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
123226 2005-05-10  Karl Berry  <karl@gnu.org>
123228         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
123229         (from http://www.gnu.org/licenses).
123230         * doc/COPYING.LIB: also rename to COPYING.LESSER.
123231         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
123232         fdl.texi suffices.
123234 2005-05-10  Karl Berry  <karl@gnu.org>
123236         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
123237         (COPYING.DOC): remove.
123239         * config/srclist-update: new FSF address.
123241 2005-05-10  Derek Price  <derek@ximbiot.com>
123243         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
123244         possible.
123246 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
123247             Bruno Haible  <bruno@clisp.org>
123249         * modules/inet_ntop: New file.
123250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123251         inet_ntop.
123253 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
123254             Bruno Haible  <bruno@clisp.org>
123256         * m4/inet_ntop.m4: New file.
123258 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
123259             Bruno Haible  <bruno@clisp.org>
123261         * lib/inet_ntop.h: New file.
123262         * lib/inet_ntop.c: New file, from glibc with modifications.
123264 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
123266         * modules/time_r (License): Change to LGPL.
123267         * modules/extensions (License): Change to LGPL.  Actually,
123268         the license is more permissive than that, but currently gnulib-tool
123269         doesn't know how to handle more-permissive licenses.
123271         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
123272         Problem reported by Dave Love.
123274 2005-05-08  Jim Meyering  <jim@meyering.net>
123276         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
123277         blank.
123279 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
123281         * modules/argmatch (Depends-on): Add stdbool.
123282         * modules/backupfile (Depends-on): Likewise.
123283         * modules/chdir-long (Depends-on): Likewise.
123284         * modules/closeout (Depends-on): Likewise.
123285         * modules/cycle-check (Depends-on): Likewise.
123286         * modules/dirname (Depends-on): Likewise.
123287         * modules/fnmatch (Depends-on): Likewise.
123288         * modules/fsusage (Depends-on): Likewise.
123289         * modules/fwriteerror (Depends-on): Likewise.
123290         * modules/getcwd (Depends-on): Likewise.
123291         * modules/getloadavg (Depends-on): Likewise.
123292         * modules/hard-locale (Depends-on): Likewise.
123293         * modules/makepath (Depends-on): Likewise.
123294         * modules/mountlist (Depends-on): Likewise.
123295         * modules/nanosleep (Depends-on): Likewise.
123296         * modules/posixtm (Depends-on): Likewise.
123297         * modules/quotearg (Depends-on): Likewise.
123298         * modules/readtokens (Depends-on): Likewise.
123299         * modules/readtokens0 (Depends-on): Likewise.
123300         * modules/readutmp (Depends-on): Likewise.
123301         * modules/save-cwd (Depends-on): Likewise.
123302         * modules/strftime (Depends-on): Likewise.
123303         * modules/userspec (Depends-on): Likewise.
123304         * modules/utimecmp (Depends-on): Likewise.
123305         * modules/xgetcwd (Depends-on): Likewise.
123306         * modules/xnanosleep (Depends-on): Likewise.
123307         * modules/xstrtod (Depends-on): Likewise.
123308         * modules/yesno (Depends-on): Likewise.
123310 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
123312         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
123313         needless checks.
123315 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123317         Merge from coreutils.  Among other things,
123318         add bulletproofing for cases where stdin, stdout, or stderr are closed.
123319         * lib/fd-safer.c: New file.
123320         * lib/fcntl-safer.h, open-safer.c: Remove.
123321         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
123322         * lib/dup-safer.c: Include unistd-safer.h first.
123323         Don't include errno.h.
123324         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
123325         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
123326         * lib/file-type.c: Rely on file-type.h change.
123327         * lib/getloadavg.c: Include unistd-safer.h.
123328         (getloadavg): Use safer open.
123329         * lib/getusershell.c: Include "stdio-safer.h".
123330         (getusershell): Use safer fopen.
123331         * lib/long-options.c (long_options): Use NULL rather than 0.
123332         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
123333         'free'.
123334         * lib/modechange.c: Likewise.
123335         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
123336         (MODE_DONE): New constant.
123337         (struct mode_change): Remove 'next' member.
123338         (make_node_op_equals): New function; like the old one of the
123339         same name, except it allocates an array.
123340         (mode_compile, mode_create_from_ref): Use it.
123341         (mode_compile): Allocate result as an array, not a linked list.
123342         Parse octal string ourself, so that we catch mistakes like "+0".
123343         (mode_adjust): Arg is an array, not a linked list.
123344         * lib/modechange.c: Include stat-macros.h, xalloc.h.
123345         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
123346         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
123347         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
123348         Remove.  This is now stat-macros.h's job.
123349         (talloc): Remove.  All callers replaced by xalloc, so that
123350         our invokers don't have to worry about reporting memory failures.
123351         (make_node_op_equals): Remove.
123352         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
123353         New constants.
123354         (struct mode_change): Moved here from modechange.h.
123355         (mode_append_entry): Remove.
123356         (mode_compile): Remove MASKED_OPS arg, since it encouraged
123357         apps to have incorrect behavior.  Use simpler algorithm for head
123358         and tail.  Don't futz with umask; that's now the job of mode_adjust.
123359         Detect more invalid usages rather than having somewhat-random behavior.
123360         Don't insert an "a=" action, as that leads to incorrect behavior.
123361         (mode_compile, mode_create_from_ref): Return NULL on error instead
123362         of an enum, since now there's only one way to have an error.  All
123363         callers changed.
123364         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
123365         at the correct time.  Simplify calculation of "+u" and its ilk.
123366         Don't mishandle "+X".
123367         (mode_free): Remove "register" and localize decls.
123368         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
123369         (struct mode_change): Move to modechange.c; callers don't
123370         need to see this stuff.
123371         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
123372         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
123373         (mode_change, mode_adjust): Reflect the new signatures noted above.
123374         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
123375         that might redefine system include files.
123376         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
123377         (my_usleep): Use NULL rather than (void *) 0.
123378         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
123379         Use siginterrupt to specify that system calls should be interrupted.
123380         (rpl_nanosleep): Move initialization of suspended closer to call of
123381         my_usleep.
123382         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
123383         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
123384         (desirable_utmp_entry): New function.
123385         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
123386         using x2nrealloc, to simplify logic.
123387         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
123388         size calculation.  Do not assume utmp file is a regular file.
123389         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
123390         (READ_UTMP_CHECK_PIDS): New constant.
123391         * lib/save-cwd.c: Include unistd-safer.h.
123392         (save_cwd): Use fd_safer.
123393         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
123394         [!_LIBC] Include "stat-macros.h" instead.
123395         * lib/unistd-safer.h (fd_safer): New decl.
123397 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123399         * modules/getloadavg (Depends-on): Add unistd-safer.
123400         * modules/getusershell (Depends-on): Add stdio-safer.
123401         * modules/lstat (Depends-on): Remove xalloc.
123402         * modules/mkstemp (Depends-on): Add stat-macros.
123403         * modules/modechange (Depends-on): Remove xstrtol.
123404         Add stat-macros, xalloc.
123405         * modules/save-cwd (Depends-on): Add unistd-safer.
123406         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
123407         * modules/unistd-safer (Files): Add lib/fd-safer.c
123408         (Makefile.am): Remove lib_SOURCES.
123410         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
123411         Remove fcntl-safer; unistd-safer supersedes it.
123413 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123415         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
123416         AC_HEADER_STAT.
123417         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
123418         (gl_PREREQ_CHOWN): Remove.
123419         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
123420         it.  Don't require AC_HEADER_STAT.
123421         (gl_PREREQ_LSTAT): Remove.
123422         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
123423         Don't require AC_HEADER_STAT.
123424         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
123425         (gl_PREREQ_RMDIR): Remove.
123426         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
123427         mention stat-macros.h or AC_HEADER_STAT, since we'll make
123428         the stat-macros module a prerequisite.
123429         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
123430         * m4/filemode.m4 (gl_FILEMODE): Likewise.
123431         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
123432         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
123433         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
123434         variable names.
123435         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
123436         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
123437         variable prefixes.
123438         * m4/fcntl-safer.m4: Remove.
123439         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
123440         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
123441         Invoke gl_PREREQ_FD_SAFER.
123442         (gl_PREREQ_FD_SAFER): New macro.
123443         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
123444         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
123445         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
123446         Remove duplicate call to AC_LIBOBJ(readutmp).
123447         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
123449         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
123450         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
123452 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123454         * MODULES.html.sh (Misc): Add byteswap.
123456 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123458         * modules/getcwd (Depends-on): Add extensions.
123459         * modules/openat (Depends-on): Likewise.
123461 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123463         * modules/byteswap: New file.
123465 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123467         * m4/byteswap.m4: New file.
123469 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123471         * lib/byteswap_.h: New file.
123473 2005-04-25  Karl Berry  <karl@gnu.org>
123475         * m4/gettext.m4: Update from GNU gettext 0.14.4.
123477 2005-04-25  Albert Chin  <china@thewrittenword.com>
123479         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
123480         Toolkit C bug.
123482 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
123484         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
123485         (func_ln_if_changed): Remove forcibly for no error message
123486         in case file does not exist.
123488 2005-04-19  Simon Josefsson  <jas@extundo.com>
123490         * gnulib-tool (Options): Make --symlink mean --symbolic.
123492 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
123494         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
123496 2005-04-16  Simon Josefsson  <jas@extundo.com>
123498         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
123500 2005-04-15  Simon Josefsson  <jas@extundo.com>
123502         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
123504 2005-04-15  Simon Josefsson  <jas@extundo.com>
123506         * gnulib-tool: Rename --symlink to --symbolic.
123508 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
123510         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
123511         symbolic links to files instead of copying/moving.  Add --aux-dir,
123512         specifying directory relative --dir where auxiliary build tools
123513         are placed.
123515 2005-04-14  Bruno Haible  <bruno@clisp.org>
123517         * modules/allocsa (License): Change to LGPL.
123518         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
123520 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
123522         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
123523         that "UTC +1 second" continues to work.  Problem reported
123524         by Dmitry V. Levin.
123525         (relunit_snumber): New rule.
123526         (relunit): Use it.
123528 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
123530         * lib/getdate.y (universal_time_zone_table): New constant.
123531         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
123532         universal_time_zone_table.
123533         (lookup_zone): Prefer universal_time_zone_table to
123534         local_time_zone_table, so that "GMT" time stamps are allowed in
123535         London during the summer.  Problem reported by Ian Abbott.
123537 2005-04-12  Jim Meyering  <jim@meyering.net>
123539         * lib/human.c (humblock): Set *options even when returning due to
123540         xstrtoumax conversion failure.  Thanks to a used-uninitialized
123541         warning from gcc-4.
123543 2005-04-09  Jim Meyering  <jim@meyering.net>
123545         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
123546         -Wuninitialized: initialize tm0.tm_year.
123548 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
123550         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
123551         count, since there's no maximum.  All uses changed.
123552         Add member dsts_seen.
123553         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
123554         not being INT_MAX.
123555         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
123556         Use pc_rels_seen to decide whether a date is absolute.
123558         * lib/getdate.y (number): Don't overwrite year.
123559         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
123560         check.
123562 2005-04-02  Simon Josefsson  <jas@extundo.com>
123564         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
123565         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
123567 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
123569         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
123570         where no absolute path name can be longer than PATH_MAX.
123572 2005-03-27  Jim Meyering  <jim@meyering.net>
123574         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
123576 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
123578         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
123579         "one's complement" -> "ones' complement" in comment, as per Knuth.
123580         "value of type" -> "type or expression" in comment.
123581         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
123583 2005-03-26  Jim Meyering  <jim@meyering.net>
123585         Comment nits.
123586         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
123587         Correct typos: s/or/of/.
123589 2005-03-26  Jim Meyering  <jim@meyering.net>
123591         * modules/check-include-files: Move to ../ and rename to...
123592         * check-module: ...this.
123594 2005-03-25  Jim Meyering  <jim@meyering.net>
123596         * modules/xvasprintf (Files): Add xalloc.h.
123598 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
123600         * modules/gettext (Files): config/config.rpath ->
123601         build-aux/config.rpath
123602         * modules/iconv (Files): Likewise.
123603         Problem reported by Oskar Liljeblad.
123605 2005-03-23  Jim Meyering  <jim@meyering.net>
123607         * modules/check-include-files: New script to check for
123608         missing dependencies, multiple includes, etc.
123610         * modules/c-strtold (Depends-on): Add xalloc.
123611         * modules/c-strtod (Depends-on): Add xalloc.
123612         * modules/hash (Depends-on): Add xalloc.
123613         (Files): Remove lib/xalloc.h.
123615         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
123616         * modules/userspec (Files): Add lib/inttostr.h.
123618 2005-03-23  Jim Meyering  <jim@meyering.net>
123620         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
123622 2005-03-22  Jim Meyering  <jim@meyering.net>
123624         * modules/stat-macros: New module.
123625         * modules/canonicalize, modules/euidaccess, modules/file-type,
123626         * modules/filemode, modules/lchown, modules/makepath,
123627         * modules/rmdir, modules/stat: Depend on new stat-macros module
123628         rather than listing lib/stat-macros.h manually.
123629         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
123631 2005-03-22  Jim Meyering  <jim@meyering.net>
123633         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
123635 2005-03-22  Bruno Haible  <bruno@clisp.org>
123637         * config/srclist.txt: Replace target directory 'config' with
123638         'build-aux'.
123639         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
123640         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
123641         ../build-aux/.
123643 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
123645         * modules/chdir-long (Depends-on): Add mempcpy.
123647         * modules/acl, modules/backupfile, modules/c-strtod,
123648         modules/c-strtold, modules/canon-host, modules/canonicalize,
123649         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
123650         modules/exclude, modules/exitfail, modules/file-type,
123651         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
123652         modules/getdate, modules/getline, modules/getpagesize,
123653         modules/getpass, modules/getugroups, modules/group-member,
123654         modules/hard-locale, modules/hash, modules/human, modules/idcache,
123655         modules/inttostr, modules/long-options, modules/makepath,
123656         modules/md5, modules/memcasecmp, modules/memcoll,
123657         modules/modechange, modules/mountlist, modules/path-concat,
123658         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
123659         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
123660         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
123661         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
123662         modules/strftime, modules/strndup, modules/strverscmp,
123663         modules/timespec, modules/unlocked-io, modules/userspec,
123664         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
123665         modules/yesno:
123666         Remove lib_SOURCES line from Makefile.am section, as this is now
123667         done automatically by the corresponding Autoconf macro.
123669 2005-03-21  Jim Meyering  <jim@meyering.net>
123671         Changes imported from coreutils.
123673         * lib/cycle-check.c: Don't include xalloc.h.
123675         * lib/path-concat.c: Don't include assert.h.
123676         (path_concat): Remove assertion that would have triggered
123677         for ABASE starting with more than one slash.
123678         Reported by Andreas Schwab.
123680         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
123681         properly when ABASE is an absolute file name.
123682         Correct the description of this function.
123683         Include <assert.h>.
123684         Add an assertion and a test driver.
123685         This fixes a bug introduced on 2004-07-02.
123686         Andreas Schwab reported the resulting failure of cp --parents:
123687         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
123689 2005-03-21  Jim Meyering  <jim@meyering.net>
123691         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
123692         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
123694 2005-03-21  Jim Meyering  <jim@meyering.net>
123695         and  Paul Eggert  <eggert@cs.ucla.edu>
123697         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
123698         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
123699         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
123700         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
123701         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
123702         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
123703         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
123704         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
123705         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
123706         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
123707         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
123708         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
123709         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
123710         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
123711         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
123712         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
123713         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
123714         for these modules.
123716 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
123718         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
123719         (which shouldn't happen), generate nothing instead of returning 0
123720         immediately, so that nstrftime (NULL, ...) doesn't return 0.
123722 2005-03-16  Bruno Haible  <bruno@clisp.org>
123724         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
123725         HAVE_LONGLONG_64BIT.
123727 2005-03-16  Bruno Haible  <bruno@clisp.org>
123729         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
123730         HAVE_LONGLONG_64BIT.
123732 2005-03-16  Bruno Haible  <bruno@clisp.org>
123734         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
123735         HAVE_LONGLONG_64BIT.
123737 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123739         * lib/strftime.c (my_strftime): Prepend space to format so that we can
123740         reliably distinguish strftime failure from empty output on POSIX
123741         hosts.
123743 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123745         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
123746         (iconv_string): Don't guess a size-zero buffer, as that might cause
123747         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
123748         result would be 'too large', where 'too large' is (heuristically)
123749         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
123750         overflow concerns.  This will prevent some unwanted malloc failures
123751         when the inputs are very large.
123753 2005-03-15  Karl Berry  <karl@gnu.org>
123755         * config/srclist.txt (config.rpath): from gettext.
123756         * config/config.rpath: update.
123758 2005-03-15  Bruno Haible  <bruno@clisp.org>
123760         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
123761         to 'negate'.
123763         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
123764         variable.
123766         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
123767         results.
123769 2005-03-14  Simon Josefsson  <jas@extundo.com>
123771         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
123772         <fx@gnu.org>.
123774 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
123776         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
123777         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
123778         intprops.h.
123779         * lib/strtol.c: Likewise.
123781 2005-03-14  Jim Meyering  <jim@meyering.net>
123783         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
123784         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
123785         to be nonzero so that we (and caller) can detect the difference
123786         between a valid zero-length expansion and an error return, even
123787         when the underlying strftime fails before writing anything into
123788         that location.
123790 2005-03-14  Bruno Haible  <bruno@clisp.org>
123792         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
123793         Update from GNU gettext 0.14.3.
123795 2005-03-10  Jim Meyering  <jim@meyering.net>
123797         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
123799 2005-03-10  Jim Meyering  <jim@meyering.net>
123801         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
123802         so that this module works on systems without fchdir.
123804 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
123806         Factor int-properties macros into a single file, except for
123807         glibc-related files.
123808         * lib/intprops.h: New file.
123809         * lib/getloadavg.c: Include it instead of limits.h.
123810         (INT_STRLEN_BOUND): Remove.
123811         * lib/human.c: Include intprops.h.
123812         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
123813         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
123814         302/1000.
123815         * lib/inttostr.h: Include intprops.h instead of limits.h.
123816         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
123817         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
123818         for consistency with intprops.h.
123819         (time_t_is_integer, twos_complement_arithmetic): Use them.
123820         * lib/sig2str.h: Include <signal.h>, intprops.h.
123821         (INT_STRLEN_BOUND): Remove.
123822         * lib/strftime.c (TYPE_SIGNED): Remove.
123823         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
123824         * lib/strtol.c: Adjust comments to match intprops.h.
123825         * lib/userspec.c: Include intprops.h.
123826         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
123827         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
123828         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
123829         instead of rolling our own expressions.
123830         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
123832         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
123833         instead of int.
123834         (my_strftime): Do not mishandle years close to INT_MAX, by doing
123835         the right thing even if adding 1900 would overflow.  Similarly
123836         for tm_mon + 1 and tm_yday + 1.
123837         Make %Y always equivalent to %C%y, and similarly for %G and %g.
123838         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
123839         (DO_SIGNED_NUMBER): New macro.
123840         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
123842 2005-03-07  Bruno Haible  <bruno@clisp.org>
123844         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
123846 2005-03-07  Bruno Haible  <bruno@clisp.org>
123848         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
123850 2005-03-04  Derek R. Price  <derek@ximbiot.com>
123852         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
123853         (func_import): Only replace files via --import when they have actually
123854         changed.
123856 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123858         * m4/mmap-anon.m4: New file.
123859         * m4/pagealign_alloc.m4: New file.
123861 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123862             Bruno Haible  <bruno@clisp.org>
123864         * modules/pagealign_alloc: New file.
123865         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
123867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123868             Bruno Haible  <bruno@clisp.org>
123870         * lib/pagealign_alloc.h: New file.
123871         * lib/pagealign_alloc.c: New file.
123873 2005-03-03  Bruno Haible  <bruno@clisp.org>
123875         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
123876         Use an all-permissive copyright notice, recommended by RMS.
123878 2005-03-02  Bruno Haible  <bruno@clisp.org>
123880         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
123881         of AIX, the replacement has to be done only after <string.h> is
123882         included, therefore not in config.h. stpncpy.h does the replacement,
123883         and stpncpy.c uses it.
123885 2005-03-02  Bruno Haible  <bruno@clisp.org>
123887         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
123888         stpncpy.c uses it.
123890 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123892         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
123893         The workaround isn't strictly needed for POSIX conformance, and
123894         it's too much of a pain to configure and maintain.  We'll ask
123895         people to fix their kernels instead.
123896         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
123897         (NANOSLEEP_BUG_WORKAROUND): Remove.
123898         (xnanosleep): Remove the workaround.
123900 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123902         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
123903         Reported by Derek Price.
123904         (Include): Add "timespec.h".
123906         * modules/xnanosleep (Depends-on): Remove gethrxtime.
123908 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123910         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
123911         to detect nanosleep bug.
123913 2005-03-01  Bruno Haible  <bruno@clisp.org>
123915         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
123917 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
123919         * modules/gethrxtime: New file.
123920         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
123921         (Depends-on): Add gethrxtime.
123922         (configure.ac): Add gl_XNANOSLEEP.
123923         (Makefile.am): Remove lib_SOURCES line.
123925 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123927         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
123928         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
123930 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123932         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
123933         * lib/timespec.h (gettime): Return void, since it always
123934         succeeds now.  All uses changed.
123935         * lib/gettime.c (gettime): Likewise.
123936         [HAVE_NANOTIME]: Prefer nanotime.
123937         Assume gettimeofday succeeds, as POSIX requires.
123938         Assime time () succeeds, since other code already does.
123939         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
123940         (timespec_subtract): Remove.
123941         (NANOSLEEP_BUG_WORKAROUND): New constant.
123942         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
123943         things considerably.  Use it only on GNU/Linux hosts, since the
123944         workaround shouldn't be needed elsewhere.
123946 2005-02-24  Bruno Haible  <bruno@clisp.org>
123948         * modules/gettext (Files): Add m4/glibc2.m4.
123950 2005-02-24  Bruno Haible  <bruno@clisp.org>
123952         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
123953         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
123954         * m4/progtest.m4:
123955         Update from GNU gettext 0.14.2.
123956         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
123958 2005-02-24  Bruno Haible  <bruno@clisp.org>
123960         * lib/localcharset.c: Update from GNU gettext 0.14.2.
123961         * lib/config.charset: Update from GNU gettext 0.14.2.
123963 2005-02-24  Bruno Haible  <bruno@clisp.org>
123965         * lib/gettext.h: Update from GNU gettext 0.14.2.
123967 2005-02-23  Simon Josefsson  <jas@extundo.com>
123969         * m4/iconvme.m4: New file.
123971 2005-02-23  Jim Meyering  <jim@meyering.net>
123973         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
123974         change.
123975         Thanks to Bruno Haible for catching it.
123977 2005-02-22  Simon Josefsson  <jas@extundo.com>
123979         * modules/iconvme: New file.
123981         * MODULES.html.sh: Add iconvme.
123983 2005-02-22  Simon Josefsson  <jas@extundo.com>
123985         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
123987 2005-02-22  Simon Josefsson  <jas@extundo.com>
123989         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
123991 2005-02-22  Jim Meyering  <jim@meyering.net>
123993         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
123994         s/ifndef/ifdef/.
123996 2005-02-20  Neil Conway  <neilc@samurai.com>
123998         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
123999         returned by OSX/Darwin if the specified buffer is not large
124000         enough for the hostname.
124002 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124004         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
124005         pass it to _help, otherwise the latter coredumps trying to
124006         dereference state.root_argp.
124008 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
124010         * modules/chdir-long (Depends-on): Add memrchr.
124011         * modules/memrchr (Files): Add lib/memrchr.h.
124012         (Include): "memrchr.h".
124014 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
124016         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
124018 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
124020         * lib/memrchr.h: New file.
124021         * lib/chdir-long.c: Include it.
124022         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
124023         Don't bother including stddef.h.
124025 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
124027         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
124028         inclusion.
124029         Include <sys/types.h>, for dev_t.
124030         (ME_DUMMY, ME_REMOTE): Move from here....
124031         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
124032         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
124033         Dmitry V. Levin.
124034         Include mountlist.h first, to test the interface.
124036 2005-01-29  Bruno Haible  <bruno@clisp.org>
124038         * lib/progname.c (program_name): Initialize.
124039         Needed when linking statically on MacOS X.
124041 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
124043         Sync from coreutils.
124044         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
124045         (Depends-on): Add c-strtod.
124046         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
124048 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
124050         Sync from coreutils.
124051         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
124053         Remove files that are specific to coreutils.
124054         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
124056 2005-01-28  Bruno Haible  <bruno@clisp.org>
124058         * modules/javacomp: New file.
124059         * MODULES.html.sh (Java): Add javacomp.
124061 2005-01-28  Bruno Haible  <bruno@clisp.org>
124063         * m4/javacomp.m4: New file, from GNU gettext.
124065 2005-01-28  Bruno Haible  <bruno@clisp.org>
124067         * lib/javacomp.sh.in: New file, from GNU gettext.
124068         * lib/javacomp.h: New file, from GNU gettext.
124069         * lib/javacomp.c: New file, from GNU gettext.
124071 2005-01-26  Simon Josefsson  <jas@extundo.com>
124073         * lib/gai_strerror.c: Use GPL in header.
124075 2005-01-26  Bruno Haible  <bruno@clisp.org>
124077         * modules/javaexec: New file.
124078         * MODULES.html.sh (Java): Add javaexec.
124080 2005-01-26  Bruno Haible  <bruno@clisp.org>
124082         * m4/javaexec.m4: New file, from GNU gettext.
124084 2005-01-26  Bruno Haible  <bruno@clisp.org>
124086         * lib/javaexec.sh.in: New file, from GNU gettext.
124087         * lib/javaexec.h: New file, from GNU gettext.
124088         * lib/javaexec.c: New file, from GNU gettext.
124090 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124092         * modules/lchown (Depends-on): Remove lchown.h
124094 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124096         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
124097         must be defined if the header file was not found, in order
124098         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
124100 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124102         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
124103         initializers for struct pentry_state.
124104         (__argp_error): Check return value of __asprintf
124105         (__argp_failure): Translate error message
124107         * lib/argp-parse.c: Removed braces around the expansion of N_()
124109 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
124111         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
124112         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
124113         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
124114         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
124115         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
124116         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
124117         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
124118         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
124119         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
124120         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
124121         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
124122         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
124123         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
124124         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
124125         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
124126         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
124127         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
124128         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
124129         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
124130         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
124131         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
124132         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
124133         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
124134         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
124135         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
124136         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
124137         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
124138         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
124139         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
124140         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
124141         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
124142         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
124143         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
124144         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
124145         xstrtol.m4, xstrtoumax.m4, yesno.m4:
124146         Use an all-permissive copyright notice, recommended by RMS.
124148 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
124150         * modules/chdir-long (Depends-on): Remove mempcpy.
124152 2005-01-21  Jim Meyering  <jim@meyering.net>
124154         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
124155         same value as for Solaris 9.
124157         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
124158         component length.  This included changing the parameter to be
124159         of type `char *' rather than `char const *'.
124160         * lib/chdir-long.h (chdir_long): Update prototype.
124162         * lib/openat.c (fdopendir, fstatat): New functions.
124163         * lib/openat.h: Include headers required for use of DIR and struct
124164         stat.
124165         [AT_SYMLINK_NOFOLLOW]: Define.
124166         (fdopendir, fstatat): Add prototypes.
124168 2005-01-21  Bruno Haible  <bruno@clisp.org>
124170         * modules/classpath: New file.
124171         * MODULES.html.sh (Java): Add classpath.
124173 2005-01-21  Bruno Haible  <bruno@clisp.org>
124175         * lib/classpath.h: New file, from GNU gettext.
124176         * lib/classpath.c: New file, from GNU gettext.
124178 2005-01-20  Simon Josefsson  <jas@extundo.com>
124180         * modules/version-etc-fsf: New file.
124182 2005-01-20  Simon Josefsson  <jas@extundo.com>
124184         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
124185         * lib/version-etc.c: Remove version_etc_copyright.
124186         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
124187         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
124189 2005-01-20  Simon Josefsson  <jas@extundo.com>
124191         * lib/base64.h (isbase64): Add.
124193         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
124194         using a unsigned prototype, don't inline.
124195         (base64_decode): Use it.
124197 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
124199         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
124200         it.
124202 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
124204         * lib/save-cwd.c (save_cwd): Remove code to support the case
124205         where fchdir is missing or flaky.
124207 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
124209         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
124211 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
124213         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
124214         AC_LIBSOURCES now does this.
124215         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
124216         with new ullong_max module.
124218 2005-01-19  Bruno Haible  <bruno@clisp.org>
124220         * modules/sh-quote: New file.
124221         * MODULES.html.sh (Executing programs): Add sh-quote.
124223 2005-01-19  Bruno Haible  <bruno@clisp.org>
124225         * lib/sh-quote.h: New file, from GNU gettext.
124226         * lib/sh-quote.c: New file, from GNU gettext.
124228 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
124230         Merge from coreutils.
124231         * m4/ullong_max.m4: New file.
124232         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
124233         (gl_MACROS): Assume localeconv exists.
124235 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
124237         Merge changes from coreutils, as described below in several
124238         changelogs dated today.
124240         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
124241         (O_DIRECTORY): Remove; not needed here, since "." must be
124242         a directory.  All uses removed.
124243         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
124244         universal on Suns, and we also need to test for IRIX.
124245         Revamp code to use 'if' rather than '#if'.
124246         Avoid unnecessary comparison of cwd->desc to 0.
124248         * lib/utimens.c (futimens): Robustify the previous patch, by checking
124249         for known valid error numbers rather than observed invalid ones.
124251 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
124253         * modules/ullong_max: New file.
124255         * modules/chdir-long, modules/openat: New files.
124256         * modules/save-cwd (Depends-on): Depend on chdir-long.
124257         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
124259 2005-01-18  Jim Meyering  <jim@meyering.net>
124261         Merge from coreutils.
124262         * m4/chdir-long.m4, m4/openat.m4: New files.
124263         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
124264         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
124265         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
124266         is sane and DOES follow symlinks.  Besides, testing 20 different
124267         systems found no broken chown implementations.
124268         Prompted by a change in rsync's copy of this macro.
124269         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
124271         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
124273         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
124274         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
124275         NULL-means-set-to-current-time semantics.
124276         Remove temporary file immediately, rather than waiting
124277         for configure's at-exit trap code to do it.
124279 2005-01-18  Jim Meyering  <jim@meyering.net>
124281         * lib/version-etc.c (version_etc_copyright): Update copyright date.
124283         * lib/utimens.c (futimens): Account for the fact that futimes
124284         can also fail with errno == ENOSYS or errno == ENOENT.
124285         Patch from Dmitry V. Levin.
124287         Change the name of the robust chdir function from chdir to chdir_long.
124288         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
124289         (restore_cwd): Use chdir_long, not chdir.
124290         * lib/chdir-long.c: Renamed from chdir.c.
124291         * lib/chdir-long.h: Renamed from chdir.h.
124292         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
124293         Hurd.
124295 2005-01-18  Bruno Haible  <bruno@clisp.org>
124297         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
124298         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
124299         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
124300         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
124301         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
124302         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
124303         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
124304         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
124305         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
124306         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
124307         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
124308         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
124309         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
124310         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
124311         Use an all-permissive copyright notice, recommended by RMS.
124313 2005-01-18  Bob Proulx  <bob@proulx.com>
124315         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
124316         simplify offsetof() macro construct to avoid compile failure with
124317         native HP-UX 11.0 ANSI C compiler.
124319 2005-01-17  Bruno Haible  <bruno@clisp.org>
124321         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
124322         redundant because stpncpy.m4 takes care of it.
124324 2005-01-17  Bruno Haible  <bruno@clisp.org>
124326         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
124328 2005-01-17  Bruno Haible  <bruno@clisp.org>
124330         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
124331         used.
124333 2005-01-17  Bruno Haible  <bruno@clisp.org>
124335         * lib/fwriteerror.h (fwriteerror): Change specification to include
124336         fclose.
124337         * lib/fwriteerror.c: Include <stdbool.h>.
124338         (fwriteerror): At the end, close the file stream. Record whether
124339         stdout was already closed.
124341 2005-01-17  Bruno Haible  <bruno@clisp.org>
124343         * lib/execute.c (environ): Declare if needed.
124344         * lib/pipe.c (environ): Likewise.
124345         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
124347 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124349         * modules/argp: Depend on vsnprintf
124351 2005-01-10  Jim Meyering  <jim@meyering.net>
124353         * modules/closeout (Depends-on): Add atexit.
124355 2005-01-06  Bruno Haible  <bruno@clisp.org>
124357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
124359 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
124361         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
124362         definitions to be after all include files, to avoid collisions.
124363         Problem reported by Bob Proulx.
124365 2005-01-04  Jim Meyering  <jim@meyering.net>
124367         Changes imported from coreutils.
124368         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
124369         as the mkstemp template, use a temporary directory and an
124370         8.3-friendly template to avoid trouble on systems like DJGPP.
124371         Reported by Juan M. Guerrero via Stepan Kasal.
124372         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
124373         close. Remove the temporary directory right away, rather than waiting
124374         for configure's at-exit trap code to do it.
124375         Suggestion from Stepan Kasal.
124377 2005-01-01  Simon Josefsson  <jas@extundo.com>
124379         * gnulib-tool: Print #include directives when --import'ing.
124381 2004-12-28  Simon Josefsson  <jas@extundo.com>
124383         * tests/test-base64.c: Include required header files.  Remove
124384         unused variables.
124386 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
124388         * modules/error (Depends-on): Remove gettext.
124390 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
124392         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
124393         not needed.  This removes a dependency on the gettext module.
124394         [defined _LIBC]: Do not include <libintl.h>; not needed.
124396 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
124398         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
124399         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
124401 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
124403         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
124404         HAVE_DECL_STRTOLD.
124406 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124408         * modules/getdate (Depends-on): Remove alloca-opt.
124410 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124412         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
124414 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124416         * lib/argp-parse.c: Include <stddef.h>.
124417         (alignof, alignto): New macros.
124418         (parser_init): Don't assume that void * is aligned sufficiently
124419         for struct option.
124421         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
124422         need to extend the stack.
124423         (YYINITDEPTH): New macro, so that the initial stack isn't overly
124424         large.
124426 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124428         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
124430 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
124432         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
124433         (2004-10-24) change.  Apparently this was a false alarm.
124435         * modules/getdate: Depend on alloca-opt, not alloca.
124437 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
124439         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
124440         Remove now-obsolete comment about AIX.
124441         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
124442         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
124443         (YYMAXDEPTH): New macro.
124445 2004-12-18  Simon Josefsson  <jas@extundo.com>
124447         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
124449 2004-12-18  Bruno Haible  <bruno@clisp.org>
124451         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
124453 2004-12-18  Bruno Haible  <bruno@clisp.org>
124455         * lib/fatal-signal.c (fatal_signals): Make non-const.
124456         (init_fatal_signals): New function.
124457         (uninstall_handlers, install_handlers): Ignore signals that were set to
124458         SIG_IGN.
124459         (at_fatal_signal): Call init_fatal_signals.
124460         (init_fatal_signal_set): Likewise. Ignore signals that were set to
124461         SIG_IGN.
124462         Reported by Paul Eggert.
124464 2004-12-18  Bruno Haible  <bruno@clisp.org>
124466         * doc/alloca.texi: New file.
124467         * doc/alloca-opt.texi: New file.
124469 2004-12-17  Jim Meyering  <jim@meyering.net>
124471         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
124472         Otherwise, install-sh could exit with improper exit status when
124473         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
124475 2004-12-16  Simon Josefsson  <jas@extundo.com>
124477         * tests/test-base64.c: Add license.
124479 2004-12-15  Stepan Kasal  <address@hidden>
124481         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
124483 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
124485         * modules/getcwd (Files): Add m4/d-ino.m4.
124486         Suggested by Mark D. Baushke.
124488 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
124490         * lib/getdate.y (textint): New member "negative".
124491         (time_zone_hhmm): New function.
124492         Expect 14 shift-reduce conflicts, not 13.
124493         (o_colon_minutes): New rule.
124494         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
124495         (yylex): Set the "negative" member of signed numbers.
124497 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
124499         * doc/getdate.texi (Time of day items, Time zone items):
124500         Describe new formats +00:00, UTC+00:00.
124502 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
124504         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
124505         spurious "-l"s.  Problem reported by Stepan Kasal.
124507 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
124509         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
124510         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
124512 2004-12-04  Simon Josefsson  <jas@extundo.com>
124514         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
124515         Vandoorselaere <yoann@prelude-ids.org>.
124517 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124519         Changes imported from coreutils.
124520         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
124521         exist.
124522         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
124524 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124526         Changes imported from coreutils.
124527         * lib/hard-locale.c: Assume <locale.h> exists.
124528         Include "strdup.h".
124529         (GLIBC_VERSION): New macro.
124530         (hard_locale): Assume setlocale exists.
124531         Rewrite to avoid #ifdef.
124532         Use strdup rather than malloc + strcpy.
124533         * lib/human.c: Assume <locale.h> exists.
124534         (human_readable): Assume localeconv exists.
124536 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124538         * modules/hard-locale (Depends-on): Add strdup.
124540 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
124542         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
124543         convert T2, not T.  (Imported from libc.)
124545 2004-11-30  Simon Josefsson  <jas@extundo.com>
124547         * modules/restrict (License): Change to LGPL.
124549 2004-11-30  Simon Josefsson  <jas@extundo.com>
124551         * m4/restrict.m4: Add copyright and copying conditions.
124553 2004-11-30  Simon Josefsson  <jas@extundo.com>
124555         * m4/base64.m4: New file.
124557 2004-11-30  Simon Josefsson  <jas@extundo.com>
124559         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
124560         base64.
124562         * tests/test-base64.c: New file.
124564         * modules/base64: New file.
124566 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124568         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
124569         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
124571         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
124573 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124575         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
124576         (__getcwd.c): Don't restore errno; glibc doesn't.
124577         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
124578         first, falling back to our code only if its results look suspicious.
124579         Ensure that the resulting buffer is only as large as necessary.
124581         * lib/readutmp.c: Include readutmp.h first.
124582         Include <errno.h>, since readutmp.h no longer does that.
124583         * lib/readutmp.h: Don't include <errno.h>,
124584         <sys/param.h>, <time.h>; not needed to establish interface.
124585         (errno): Remove decl.
124586         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
124587         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
124588         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
124590 2004-11-28  Simon Josefsson  <jas@extundo.com>
124592         * lib/base64.h, base64.c: New file.
124594 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
124596         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
124598 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
124600         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
124601         (Depends-on): Remove pathmax, same.  Add mempcpy.
124602         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
124603         (Makefile.am): Append getcwd.h to lib_SOURCES.
124604         (Include): Add getcwd.h.
124605         (Maintainer): Change from Jim Meyering to "all, glibc",
124606         since getdate now uses intended-for-glibc code.
124607         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
124608         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
124610 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124612         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
124613         HP's ANSI C compiler.
124614         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
124615         Declaring int functions causes warnings on some modern systems and
124616         shouldn't be needed to compile on ancient ones.
124617         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
124618         defined.
124620         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
124621         with the following changes.
124622         (__set_errno): Parenthesize properly.
124623         Include <stdbool.h>.
124624         (MIN, MAX, MATCHING_INO): New macros.
124625         (__getcwd): Define with prototype, not K&R form.
124626         Use heuristics to allocate default buffer on stack if possible.
124627         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
124628         behavior, and to avoid the PATH_MAX limit when computing
124629         ../../../../...
124630         Use MATCHING_INO to compare inode number to file.
124631         Check for arithmetic overflow in size calculations.
124632         Fix bug in reallocation of dot array that caused getcwd to fail
124633         on directories nested deeper than 75.
124634         Be more careful about saving errno on error.
124635         Do not use realloc; use only free+malloc, as this is a bit
124636         more flexible and avoids a needless copy operation.
124637         Do not inspect st_dev and st_ino for symbolic links; POSIX
124638         doesn't specify the latter.
124639         Check for closedir errors.
124640         Avoid needless casts.
124641         Use "#ifdef weak_alias" around weak_alias, to be like other
124642         glibc code.
124643         The following changes to getcwd.c have effect only when used in
124644         gnulib; they have no effect inside glibc proper.
124645         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
124646         as alloca isn't used.
124647         (alloca, __alloca): Likewise.
124648         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
124649         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
124650         unconditionally, as gnulib assumes C89 or better.
124651         Do not include <sys/param.h>.
124652         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
124653         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
124654         better.
124655         (NULL) [!defined NULL]: Remove; we assume C89 or better.
124656         Include <dirent.h> in a way that is compatible with modern Autoconf.
124657         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
124658         New macros, if not already defined.
124659         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
124660         Use "_LIBC", not "defined _LIBC", for consistency.
124661         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
124662         a mempcpy module.
124663         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
124664         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
124665         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
124666         credit only to Jim Meyering and adjust the copyright dates.
124667         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
124668         <stdlib.h>, <unistd.h>, "pathmax.h".
124669         Instead, include "xgetcwd.h" (first) and "getcwd.h".
124670         (INITIAL_BUFFER_SIZE): Remove.
124671         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
124673 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124675         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
124676         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
124677         Use the _ONCE methods, for efficiency.
124678         Check for fcntl.h.  In test program, include <errno.h>
124679         and <fcntl.h> if available.  Remove old K&R cruft from
124680         test program.  Check for common errors in GNU/Linux,
124681         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
124682         don't do AC_LIBOBJ, as that's getcwd.m4's job.
124683         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
124684         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
124685         name accordingly.
124686         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
124687         accommodate new getcwd.c.
124688         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
124689         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
124690         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
124691         that's all we need now.
124693 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124695         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
124696         argp-parse.c depends on getopt internals, that means we should
124697         always use our getopt, to be on the safe side.
124698         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
124699         order not to spoil the result of an eventual previous invocation
124700         of gl_GETOPT_SUBSTITUTE.
124702 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124704         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
124705         redefinition warnings. To avoid them, include the defines
124706         in `#if !defined __need_getopt ... #endif'. The only place
124707         where __getopt_argv_const is used is in definitions
124708         of getopt_long and getopt_long_only below, which are as well
124709         protected by `#ifndef __need_getopt'.
124710         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
124711         __need_getopt after including <stdio.h> and <unistd.h> These
124712         headers might have defined it.
124714 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124716         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
124718 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124720         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
124721         (futimens): New function, which uses futimes if available.
124722         (futimens, utimens): Support timespec==NULL, with same semantics
124723         as utime and utimens.
124724         * lib/utimens.h (futimens): New decl.
124726 2004-11-23  Jim Meyering  <jim@meyering.net>
124728         * lib/getopt_.h: Remove trailing blanks.
124730 2004-11-23  Jim Meyering  <jim@meyering.net>
124732         * lib/__fpending.c: Add comment.
124734 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
124736         * modules/canonicalize (Depends-on): Add xreadlink.
124737         Problem reported by James Youngman.
124739 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
124741         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
124742         New macros.
124743         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
124744         optopt): Use them instead of invoking ## directly; otherwise, the
124745         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
124747 2004-11-19  Bruno Haible  <bruno@clisp.org>
124749         * lib/strtok_r.c: Move comments from here...
124750         * lib/strtok_r.h: ... to here.
124752 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124754         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
124755         implementations that mishandle size_t overflow.
124757 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124759         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
124760         might fail.  Problem reported by Yoann Vandoorselaere.
124761         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
124762         implementations that mishandle size_t overflow.
124764 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124766         * modules/canon-host (Depends-on): Add strdup.
124768 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124770         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
124772 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124774         * lib/canon-host.c: Include "strdup.h".
124775         (canon_host): Use getaddrinfo if available, so that IPv6 works.
124776         Use strdup instead of malloc/strcpy to duplicate strings.
124778         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
124779         (human_space_before_unit): New constant.
124780         * lib/human.c (human_readable): Support it.
124782         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
124783         (xgetcwd): Set errno correctly when failing.
124784         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
124785         the failure is actually due to a PATH_MAX problem.
124787         Further getopt changes to make it more likely that glibc will
124788         buy the changes back.
124789         * lib/getopt.c (POSIXLY_CORRECT): New constant.
124790         (getopt): Use it, so to preserve glibc semantic
124791         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
124792         when compiling for libc.
124793         * lib/getopt_.h (__getopt_argv_const): Bring it back.
124794         (getopt_long, getopt_long_only): Use it.
124796         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124797         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
124798         (getopt): Argv is now char * const *, as per standard.
124799         (_getopt_internal_r, _getopt_internal): Argv is now char **,
124800         not char *__getopt_argv_const *.
124801         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124802         _getopt_long_only_r): Likewise.
124803         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
124804         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124805         _getopt_long_r, _getopt_long_only_r): Likewise.
124806         * lib/getopt_.h (__getopt_argv_const): Remove.
124807         (getopt): Argv is now char * const *, as per standard.
124809         * lib/getdate.y (tORDINAL): New token.
124810         (day, relunit): Allow it for relative times.
124811         (relative_time_table): Use tORDINAL for ordinals.
124813 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124815         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
124816         Document that "second" isn't allowed as an ordinal number.
124818 2004-11-16  Jim Meyering  <jim@meyering.net>
124820         * modules/closeout (Depends-on): Add fpending.
124822 2004-11-15  Jim Meyering  <jim@meyering.net>
124824         * lib/closeout.c: Include "__fpending.h" once again.
124825         Include <stdbool.h>.
124826         (close_stdout): Don't fail just because stdout was closed initially,
124827         since some programs don't write to stdout in the normal course of
124828         operation (other than --version and --help), and we don't want this
124829         function to make e.g. `touch file >&-' fail.
124830         But do fail if it was closed and someone has tried to write to it.
124831         E.g., `printf foo >&-' must fail.
124833 2004-11-13  Jim Meyering  <jim@meyering.net>
124835         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
124837 2004-11-12  Simon Josefsson  <jas@extundo.com>
124839         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
124840         small doc fix is still pending.
124842 2004-11-11  Simon Josefsson  <jas@extundo.com>
124844         * modules/strtok_r: New file.
124846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124847         strtok_r.
124849 2004-11-11  Simon Josefsson  <jas@extundo.com>
124851         * m4/strtok_r.m4: New file.
124853         * m4/getopt.m4: Replace opterr.
124855 2004-11-11  Simon Josefsson  <jas@extundo.com>
124857         * lib/strtok_r.h, strtok_r.c: New file.
124859 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124861         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
124862         of replacing opterr, getopt, etc.  This should handle the
124863         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
124865 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124867         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
124868         we can stop lying to compilers about the constness of argv when we
124869         are compiled outside glibc.
124870         (getopt, getopt_long, getopt_long_only): Use it.
124871         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124872         _getopt_internal, getopt): Likewise.
124873         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124874         _getopt_long_only_r): Likewise.
124875         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124876         _getopt_long_r, _getopt_long_only_r): Likewise.
124878         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
124879         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
124880         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
124881         the other external symbols.
124882         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
124883         declaration, since the above renaming now works around collisions.
124885 2004-11-11  Jim Meyering  <jim@meyering.net>
124887         * lib/linebreak.c: Remove trailing blanks.
124888         * lib/alloca_.h: Likewise.
124889         * lib/acosl.c: Likewise.
124890         * lib/euidaccess.c: Likewise.
124891         * lib/allocsa.h: Likewise.
124893 2004-11-10  Simon Josefsson  <jas@extundo.com>
124895         * m4/getaddrinfo.m4: New file.
124897 2004-11-10  Simon Josefsson  <jas@extundo.com>
124899         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
124901 2004-11-10  Simon Josefsson  <jas@extundo.com>
124903         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124904         getaddrinfo.
124906         * modules/getaddrinfo: New file.
124908 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124910         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
124912 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124914         * lib/mktime.c (SHR): New macro, which is a portable
124915         substitute for >> that should work even on Crays.
124916         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
124917         Problem reported by Mark D. Baushke in
124918         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
124919         * lib/getdate.y (SHR): Likewise.
124920         (tm_diff): Use it.
124921         * lib/strftime.c (SHR): Likewise.
124922         (tm_diff): Use it.
124923         * lib/quotearg.c (struct quoting_options): Use unsigned int for
124924         quote_these_too, so that right shifts are well defined.  All uses
124925         changed.
124927 2004-11-10  Jim Meyering  <jim@meyering.net>
124929         Ensure that no close failure goes unreported.
124930         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
124931         return early when it seems there's nothing to flush.
124932         Don't include __fpending.h.
124934 2004-11-10  Jim Meyering  <jim@meyering.net>
124936         * modules/closeout (Depends-on): Remove fpending.
124938 2004-11-10  Jim Meyering  <jim@meyering.net>
124940         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
124942 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124944         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
124945         gl_FUNC_STRFTIME.
124946         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
124947         and AC_REQUIRE when possible, to avoid duplicate checks.
124948         Check for <wchar.h>.
124950 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124952         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
124954 2004-11-09  Bruno Haible  <bruno@clisp.org>
124956         * m4/sockpfaf.m4: New file.
124958 2004-11-05  Bruno Haible  <bruno@clisp.org>
124960         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
124961         Reported by Mark D. Baushke <mdb@cvshome.org>.
124963 2004-11-04  Bruno Haible  <bruno@clisp.org>
124965         2004-09-11  Bruno Haible  <bruno@clisp.org>
124966                 * allocsa.valgrind: New file.
124967         2004-02-06  Bruno Haible  <bruno@clisp.org>
124968                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
124969                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
124970                 Reported by Christopher Seip <chris.seip@hp.com>.
124972 2004-11-04  Bruno Haible  <bruno@clisp.org>
124974         * modules/allocsa (Files): Add lib/allocsa.valgrind.
124975         (Makefile.am): Distribute it.
124977 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
124979         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
124980         with errno == ERANGE if the buffer is too small.
124981         Problem reported by Mark D. Baushke.
124983 2004-11-03  Albert Chin  <china@thewrittenword.com>
124984             Paul Eggert  <eggert@cs.ucla.edu>
124986         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
124987         equivalent, substitute $ac_type for equivalent type rather than
124988         blindly using uint32_t *always* which won't work if uint32_t is not
124989         available.  Define _UINT32_T to work around typedef of uint32_t if
124990         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
124991         2.5.1.
124993 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124995         * m4/jm-macros.m4: Sync from coreutils.
124996         (gl_MACROS): Check for mbrlen, for pathchk.
124997         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
124999 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
125001         * lib/xreadlink.c (MAXSIZE): New macro.
125002         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
125003         size does not exceed MAXSIZE.  Avoid cast.
125004         As suggested by Mark D. Baushke in
125005         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
125006         if readlink fails with buffer size just under MAXSIZE, try again
125007         with MAXSIZE.
125009 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
125011         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
125013 2004-11-02  Derek R. Price  <derek@ximbiot.com>
125014         and  Paul Eggert  <eggert@cs.ucla.edu>
125016         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
125017         (get_date): Overparenthesize to avoid GCC warning.
125019 2004-11-02  Bruno Haible  <bruno@clisp.org>
125021         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
125022         returns void.
125024 2004-11-02  Bruno Haible  <bruno@clisp.org>
125026         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
125027         function returns void.
125029 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
125031         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
125032         fflush_unlocked, flockfile, funlockfile, funlockfile,
125033         fputs_unlocked, putc_unlocked.
125035 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
125037         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
125038         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
125039         already declared.
125041 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
125043         * modules/getdate (Files): Add doc/getdate.texi.
125044         (Depends-on): Add setenv, xalloc.
125046 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
125048         * lib/getdate.y: Add support for TZ="foo" within a date string.
125049         Fix some bugs near time_t boundaries.  Reject dates with
125050         out-of-range components, e.g., "Sept 31".
125051         Include <stdlib.h>, "setenv.h", "xalloc.h".
125052         (ISDIGIT_LOCALE): Remove; unused.
125053         Note that the TZ and time functions used here are not reentrant.
125054         (mktime_ok, get_tz): New functions.
125055         (TZBUFSIZE): New constant.
125056         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
125057         This requires that we sometimes generate our own TZ="XXX..." setting.
125059 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
125061         * doc/getdate.texi: New file, from coreutils with modifications for
125062         the new TZ parsing.
125064 2004-10-27  Derek R. Price  <derek@ximbiot.com>
125066         * lib/mktime.c (not_equal_tm): Remove redundant check.
125068 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
125070         * modules/regex (lib_SOURCES): Add regex.c.
125071         Reported by James Youngman in
125072         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
125074 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
125076         * lib/getdate.y: Use Bison 1.875 features, and some minor
125077         code cleanups.  This change does not affect semantics.
125078         Don't include <stdlib.h>; no longer needed.
125079         Don't include unlocked-io.h; only the "#if TEST" code uses
125080         stdio, and performance isn't crucial there.
125081         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
125082         Bison 1.875 features as described below.
125083         All uses of "PC." replaced by "pc->".
125084         (YYSTYPE): Add a forward declaration.
125085         (yylex, yyerror): Use full prototypes in forward decls.
125086         Use "%pure-parser" rather than obsolescent "%pure_parser".
125087         Use %parse-param and %lex-param instead of obsolescent
125088         YYPARSE_PARAM and YYLEX_PARAM.
125089         (meridian_table, month_and_day_table, time_units_table,
125090         relative_time_table, time_zone_table, military_table,
125091         lookup_zone, lookup_word, get_date):
125092         Use NULL instead of 0 where appropriate.
125093         (to_hour): Avoid abort (), to avoid a dependency on
125094         stdlib.h.
125095         (yyerror, yylex): Now accepts parser_control * arg.
125096         (main) [TEST]: Use '\0' rather than 0 for char.
125098 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
125100         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
125102 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
125104         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
125105         It's now the caller's responsibility to handle the case where
125106         !HAVE_GETPAGESIZE && !defined getpagesize.
125108         * lib/mktime.c (leapyear): Arg is long int, not int.
125110 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
125112         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
125114 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
125116         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
125117         missing.  Problem reported by James Youngman.
125119 2004-10-16  Simon Josefsson  <jas@extundo.com>
125121         * gnulib-tool: Fix comments.  Fix parse problem.
125122         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
125124 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
125126         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
125127         implementation of getopt_long.  Problem reported by Alexander Taler in:
125128         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
125130 2004-10-15  Bruno Haible  <bruno@clisp.org>
125132         * gnulib-tool: Untabify. Initialize supplied_libname.
125133         (func_usage): More homogenous output.
125134         (func_modules_transitive_closure, func_modules_to_filelist,
125135         func_emit_lib_Makefile_am): New functions.
125136         (func_import): New function, extracted from big case statement. Use
125137         func_get_license, func_modules_transitive_closure,
125138         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
125139         opt_lgpl. Don't use test -a, as it's not portable.
125140         (func_create_testdir): Use func_modules_transitive_closure,
125141         func_modules_to_filelist, func_emit_lib_Makefile_am.
125143 2004-10-15  Bruno Haible  <bruno@clisp.org>
125145         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
125147 2004-10-15  Bruno Haible  <bruno@clisp.org>
125149         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
125150         the portions belonging to each module.
125151         Suggested by Derek Robert Price <derek@ximbiot.com>.
125153 2004-10-12  Simon Josefsson  <jas@extundo.com>
125155         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
125156         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
125157         to real functions.
125159 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125161         * modules/vsnprintf: New file.
125163 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125165         * m4/vsnprintf.m4: New file.
125167 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125169         * lib/vsnprintf.h: New file.
125170         * lib/vsnprintf.c: New file.
125172 2004-10-11  Bruno Haible  <bruno@clisp.org>
125174         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
125175         vsnprintf.
125177 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
125179         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
125181 2004-10-07  Bruno Haible  <bruno@clisp.org>
125183         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
125184         fits into the provided buffer.
125186 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
125188         * lib/diacrit.c, diacrit.h: Add GPL notice.
125190         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
125191         notice.
125192         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
125193         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
125194         This avoids a potential constant-folding bug.
125196 2004-10-05  Bruno Haible  <bruno@clisp.org>
125198         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
125199         for the declaration of strsep.
125201 2004-10-05  Bruno Haible  <bruno@clisp.org>
125203         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
125205 2004-10-04  Simon Josefsson  <jas@extundo.com>
125207         * modules/memmem: New file.
125208         * tests/test-memmem.c: New file.
125209         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
125211 2004-10-04  Simon Josefsson  <jas@extundo.com>
125213         * m4/memmem.m4: New file.
125215 2004-10-04  Simon Josefsson  <jas@extundo.com>
125217         * lib/memmem.h: New file.
125218         * lib/memmem.c: New file, taken from glibc.
125220 2004-10-04  Simon Josefsson  <jas@extundo.com>
125222         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
125223         '#ifdef USE_UNLOCKED_IO'.
125225 2004-10-04  Simon Josefsson  <jas@extundo.com>
125227         * config/srclist.txt: Add memmem from glibc.
125229 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
125231         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
125233         * modules/argmatch, modules/argp, modules/closeout, modules/error,
125234         modules/exclude, modules/getdate, modules/getline,
125235         modules/getndelim2, modules/getpass, modules/getpass-gnu,
125236         modules/getusershell, modules/linebuffer, modules/md5,
125237         modules/mountlist, modules/posixtm, modules/readtokens,
125238         modules/readutmp, modules/regex, modules/sha1,
125239         modules/version-etc, modules/yesno:
125240         Remove dependency on unlocked-io.
125242 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
125244         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
125246         * m4/unlocked-io.m4: Add copyright notice.
125247         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
125249 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
125251         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
125252         * lib/xmalloc.c (xmemdup): Likewise.
125253         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
125254         XFREE): Remove these long-obsolescent macros.
125255         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
125256         * lib/xstrdup.c: Remove.
125258         * lib/regex.c (re_comp): Cast gettext return value to char *,
125259         Problem reported by Martin Neitzel via Mark D. Baushke.
125261 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
125263         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
125264         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
125265         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
125266         regex.c, sha1.c, version-etc.c, yesno.c:
125267         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
125268         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
125269         the includer's responsibility.
125271         Sync from coreutils.
125273         * lib/modechange.c (mode_compile): Don't decrement a pointer that
125274         points to the start of a string, as the C Standard says the
125275         resulting behavior is undefined.
125277         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
125278         simple -> simple_backups, numbered_existing ->
125279         numbered_existing_backups, numbered -> numbered_backups
125280         to avoid shadowing problems.  All uses changed.
125281         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
125282         * lib/backupfile.c (check_extension, numbered_backup):
125283         Rename locals to avoid shadowing 'basename'.
125284         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
125285         once.
125287         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
125288         * lib/.cvsignore: Add getopt.h.
125290 2004-10-04  Bruno Haible  <bruno@clisp.org>
125292         * modules/README: New file.
125293         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
125294         not a module.
125296 2004-10-02  Jim Meyering  <jim@meyering.net>
125298         * lib/dirfd.h, getpagesize.h: Add copyright notice.
125300 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125302         * modules/strsep: New file.
125304 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125306         * m4/strsep.m4: New file.
125308 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125310         * lib/strsep.h: New file.
125311         * lib/strsep.c: New file.
125313 2004-10-01  Simon Josefsson  <jas@extundo.com>
125315         * lib/snprintf.c (snprintf): Handle size==0.
125317 2004-10-01  Simon Josefsson  <jas@extundo.com>
125318             Bruno Haible  <bruno@clisp.org>
125320         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
125321         (snprintf): Declare 'args'.
125323 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
125325         * lib/snprintf.c: Remove comments as to why each header is needed.
125327 2004-10-01  Bruno Haible  <bruno@clisp.org>
125329         * MODULES.html.sh: Add strsep.
125331 2004-09-30  Simon Josefsson  <jas@extundo.com>
125333         * modules/snprintf: New file.
125335 2004-09-30  Simon Josefsson  <jas@extundo.com>
125337         * m4/snprintf.m4: New file.
125339 2004-09-30  Simon Josefsson  <jas@extundo.com>
125341         * lib/snprintf.h, lib/snprintf.c: New files.
125343 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
125345         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
125346         (hol_entry_help): Never translate an empty string.
125347         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
125348         * lib/argp.h (OPTION_NO_TRANS): New option.
125350 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125352         * modules/argp (Maintainer): Replace Simon Josefsson
125353         by Sergey Poznyakoff.
125355 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125357         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
125358         changes merged back into glibc.
125360 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125362         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
125364 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
125366         * lib/xvasprintf.c: Include xalloc.h.
125367         (xvasprintf): Use xalloc_die, not xmalloc_die.
125369 2004-09-29  Bruno Haible  <bruno@clisp.org>
125371         * modules/alloca-opt: New file, derived from modules/alloca.
125372         * modules/allocsa: Depend on alloca-opt instead of alloca.
125373         * modules/setenv: Likewise.
125374         * modules/vasnprintf: Likewise.
125375         * MODULES.html.sh: Add alloca-opt.
125377 2004-09-28  Simon Josefsson  <jas@extundo.com>
125379         * gnulib-tool: New parameter --lgpl, to asseert that modules are
125380         LGPL, and to replace license template from GPL to LGPL.
125382 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
125384         * modules/dummy: Change license to LGPL.
125386 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
125388         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
125390 2004-09-24  Simon Josefsson  <jas@extundo.com>
125392         * modules/minmax (License): Change from GPL to LGPL.
125394 2004-09-23  Simon Josefsson  <jas@extundo.com>
125396         * gnulib-tool (--import): Typo.
125398 2004-09-23  Simon Josefsson  <jas@extundo.com>
125400         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
125402 2004-09-22  Bruno Haible  <bruno@clisp.org>
125404         * modules/*: Add 'License' field.
125405         * gnulib-tool: Accept --extract-license option.
125406         (func_get_license): New function.
125408 2004-09-21  Bruno Haible  <bruno@clisp.org>
125410         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
125411         Reported by Simon Josefsson.
125413 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
125415         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
125416         gl_AC_TYPE_LONG_LONG.
125418 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
125420         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
125422 2004-09-18  Simon Josefsson  <jas@extundo.com>
125423         and  Paul Eggert  <eggert@cs.ucla.edu>
125425         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
125426         calls with autoreconf.  Define GL_LIB.
125428 2004-09-14  Karl Berry  <karl@gnu.org>
125430         * config/srclist.txt: unsync setenv.c, sigh.
125432 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
125434         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
125435         Problem reported by Bruno Haible in:
125436         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
125438 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
125440         * config/srclist.txt: Comment out argp-pvh.c.
125442 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
125444         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
125445         in case some system header has #define'd it.  Problem reported by
125446         Soeren D. Schulze in
125447         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
125449 2004-09-09  Karl Berry  <karl@gnu.org>
125451         * regex.[ch]: delete from the root.  These were supposed to be
125452                 synced with emacs cvs, but this has not happened for about
125453                 a year, and anyway nothing else uses emacs regex.[ch].
125454                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
125455                 lib/regex[.ch] is untouched.
125457 2004-09-09  Bruno Haible  <bruno@clisp.org>
125459         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
125461 2004-09-09  Bruno Haible  <bruno@clisp.org>
125463         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
125464         modifications.
125465         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
125467 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
125469         * modules/xvasprintf: New file.
125470         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
125472 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
125474         * lib/xvasprintf.h: New file.
125475         * lib/xvasprintf.c: New file.
125476         * lib/xasprintf.c: New file.
125478 2004-09-08  Bruno Haible  <bruno@clisp.org>
125480         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
125482 2004-09-08  Bruno Haible  <bruno@clisp.org>
125484         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
125485         length is > INT_MAX.
125486         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
125487         more.
125489 2004-09-08  Bruno Haible  <bruno@clisp.org>
125491         * lib/stdint_.h: New file, taken from GNU clisp.
125493 2004-09-08  Bruno Haible  <bruno@clisp.org>
125494             Oskar Liljeblad  <oskar@osk.mine.nu>
125496         * modules/stdint: New file.
125497         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
125499 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125501         Import from coreutils.
125502         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
125503         strings on unbounded length.  alloca's performance benefits aren't
125504         that important here.
125505         (V_STRDUP): Remove.
125506         (parse_with_separator): New function, with most of the internals
125507         of the old parse_user_spec.  Allow user to omit both user and group,
125508         for compatibility with FreeBSD.
125509         Clone only the user name, not the entire spec.
125510         Do not set *uid, *gid unless entirely successful.
125511         Avoid memory leak in some failing cases.
125512         Fix regression for USER.GROUP reported by Dmitry V. Levin in
125513         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
125514         (parse_user_spec): Rewrite to use parse_with_separator.
125516 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125518         * modules/userspec: Don't depend on alloca.
125520 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125522         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
125524 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
125526         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
125527         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
125528         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
125530 2004-08-16  Simon Josefsson  <jas@extundo.com>
125532         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
125533         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
125534         Add --dry-run for --import.
125535         Let user provided command line parameters override configure.ac
125536         settings.
125538 2004-08-12  Simon Josefsson  <jas@extundo.com>
125540         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
125541         as discussed with Paul Eggert in threads rooted at
125542         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
125543         and
125544         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
125545         Before, the test was empty, and relied on ELIDE_CODE in source
125546         code.)
125547         (gl_PREREQ_GETOPT): New macro.
125548         (gl_GETOPT): Use them.
125550 2004-08-12  Simon Josefsson  <jas@extundo.com>
125552         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
125553         * lib/getopt_.h: Renamed from getopt.h.
125555 2004-08-12  Simon Josefsson  <jas@extundo.com>
125557         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
125558         Change default library name from libfoo to libgnu.
125559         Now, if you have a configure.ac that says:
125560                 gl_SOURCE_BASE(gl)
125561                 gl_M4_BASE(gl/m4)
125562                 gl_MODULES(error getopt etcetera)
125563                 gl_INIT
125564         you can import all you need by running:
125565                 ../gnulib/gnulib-tool --import
125567         * modules/getopt (Files): Rename getopt.h to getopt_.h.
125568         (Makefile.am): Rewrite, use logic from argz.
125569         (Include): Use <getopt.h> instead of "getopt.h".
125571 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125573         * modules/argp (Files): Add m4/unlocked-io.m4.
125574         (Depends-on): Add extensions.
125576 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125578         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
125579         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
125580         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
125581         Check for program_invocation_name, program_invocation_short_name,
125582         flockfile, funlockfile, features.h, _getopt_long_only_r.
125584 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125586         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
125587         its complicated substitute.
125588         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
125589         and program_invocation_name.
125590         (__argp_basename) [!_LIBC]: Remove; the only use was
125591         replaced by its body.
125592         (__argp_short_program_name): Change condition from
125593         !defined __argp_short_program_name to
125594         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
125595         to match argp-namefrob.h.
125596         (__argp_failure): Don't assume strerror_r returns char *.
125597         * lib/argp-parse.c (N_): Define unconditionally.
125598         (argp_default_options): Fill out initializers with 0 to avoid
125599         gcc warnings.
125601 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125603         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
125604         getopt1.c.
125606 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125608         Merge from coreutils.
125610         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
125612         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
125613         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
125615 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125617         Merge from coreutils.
125619         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
125620         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
125621         for Reliant Unix 5.43.
125623         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
125624         (union fooround): Use uintmax_t, not long int.
125625         The rest is a merge from libc:
125626         [defined _LIBC]: Include <shlib-compat.h>.
125627         (_obstack) [defined _LIBC]: Remove after 2.3.4.
125629         * lib/settime.c (settime): Recode to avoid warning with
125630         Sun Forte C 6U2.
125632         * lib/strverscmp.c: Convert to UTF-8.
125634 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125636         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
125637         m4/uintmax_t.m4.
125639 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125641         * modules/xalloc-die: New file.
125642         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
125644         * modules/md5 (Files): Add m4/uint32_t.m4.
125645         * modules/sha1: Renamed from modules/sha.
125646         (Files):
125647         Rename lib/sha.h to lib/sha1.h.
125648         Rename lib/sha.c to lib/sha1.c.
125649         Rename m4/sha.m4 to m4/sha1.m4.
125650         (lib_SOURCES): Likewise.
125651         (configure.ac): Rename gl_SHA to gl_SHA1.
125652         (Include): sha.h -> sha1.h.
125654 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125656         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
125657         * m4/sha1.m4: Renamed from sha.m4.
125658         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
125660 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125662         * lib/obstack.h (obstack_empty_p):
125663         Don't assume that chunk->contents is suitably aligned.
125664         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
125665         Likewise. Problem reported by Benno in
125666         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
125668         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
125669         readable.  This could be improved further but it'd take some work.
125671 2004-08-08  Simon Josefsson  <jas@extundo.com>
125673         * modules/xgethostname (Depends-on): Remove exit and error (not
125674         used).
125676         * modules/getpass-gnu: Add getpass.h.
125677         (Depends-on): Add stdbool.
125678         * modules/getpass: Add getpass.h.
125680 2004-08-08  Simon Josefsson  <jas@extundo.com>
125682         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
125683         Check getpass declaration.
125685 2004-08-08  Simon Josefsson  <jas@extundo.com>
125687         * lib/xgethostname.c: Don't include error.h (not used).
125689         * lib/getpass.h: Add.
125690         * lib/getpass.c: Include getpass.h first.
125692 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
125694         * lib/xalloc-die.c: New file.
125695         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
125696         All uses removed.
125697         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
125698         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
125699         xalloc-die.c.
125700         (_, N_, xalloc_die): Move to xalloc-die.c.
125701         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
125702         so that we needn't mess with xalloc_msg_memory_exhausted.
125704         * lib/sha1.h: Renamed from sha.h.
125705         (SHA1_H): Renamed from _SHA_H.
125706         (sha1_ctx): Renamed from sha_ctx.
125707         (sha1_init_ctx): Renamed from sha_init_ctx.
125708         (sha1_process_block): Renamed from sha_process_block.
125709         (sha1_process_bytes): Renamed from sha_process_bytes.
125710         (sha1_finish_ctx): Renamed from sha_finish_ctx.
125711         (sha1_read_ctx): Renamed from sha_read_ctx.
125712         (sha1_stream): Renamed from sha_stream.
125713         (sha1_buffer): Renamed from sha_buffer.
125714         * lib/sha1.c: Likewise; renamed from sha.c.
125715         Do not include <sys/types.h>.
125716         Include <stddef.h> rather than <stdlib.h>.
125718 2004-08-08  Bruno Haible  <bruno@clisp.org>
125720         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
125721         FILESYSTEM_PREFIX_LEN.
125722         * lib/progreloc.c: Likewise.
125723         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
125725 2004-08-06  Simon Josefsson  <jas@extundo.com>
125727         * modules/progname (Depends-on): Don't depend on stdbool.
125729 2004-08-06  Simon Josefsson  <jas@extundo.com>
125731         * modules/getsubopt: New file.
125732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
125733         getsubopt.
125735 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125737         More merge from coreutils.
125739         * m4/utimens.m4, m4/utimecmp.m4: New files.
125740         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
125741         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
125742         prereq.m4, sha.m4: Import changes from coreutils.
125744 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125746         More merge from coreutils.
125747         * modules/raise, modules/readtokens0, modules/utimens:
125748         * modules/utimecmp, module/xnanosleep: New files.
125749         * modules/strftime: Add lib/strftime.h.
125750         Change include from <time.h> to "strftime.h".
125751         * modules/yesno: Add lib/yesno.h.
125752         * modules/backupfile: Remove lib/addext.c.
125753         * modules/euidaccess: Add stat-macros.h.
125754         * modules/canonicalize, modules/euidaccess,
125755         modules/filemode, modules/lchown, modules/makepath,
125756         modules/rmdir, modules/stat: Likewise.
125758 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125760         Merge from tar.
125761         * lib/argp-help.c (make_hol, hol_append): Don't assume that
125762         SIZE_MAX is a valid preprocessor constant.
125763         (__argp_basename): Change from "#ifndef _LIBC"
125764         to "#ifndef __argp_short_program_name", so that
125765         we don't compile these functions for tar.
125767         More merges from coreutils.
125768         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
125769         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
125770         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
125771         * lib/addext.c: Remove; no longer needed.
125772         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
125773         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
125774         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
125775         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
125776         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
125777         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
125778         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
125779         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
125780         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
125781         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
125782         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
125783         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
125784         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
125785         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
125786         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
125787         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
125788         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
125789         Import changes from coreutils.
125791 2004-08-05  Simon Josefsson  <jas@extundo.com>
125793         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
125795 2004-08-05  Simon Josefsson  <jas@extundo.com>
125797         * m4/getsubopt.m4: New file.
125799 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125801         Merge from coreutils.
125803         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
125804         * m4/getcwd-path-max.m4: New files.
125806         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
125807         FILESYSTEM_PREFIX_LEN ->
125808         FILE_SYSTEM_PREFIX_LEN.
125809         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
125810         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
125811         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
125812         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
125814         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
125815         prerequisite modules now handle the DOS stuff.
125816         Don't check for unistd.h.
125818 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125820         Merge from coreutils.
125822         * lib/.gdb-history: Remove; this doesn't belong here.
125824         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
125825         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
125826         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
125827         * lib/getcwd.c: New files.
125829         * lib/dirname.h: Include <stdbool.h>.
125830         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
125831         for consistency with POSIX terminology.  All uses changed.
125832         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
125833         (strip_trailing_slashes): Use bool for booleans.
125834         * lib/stripslash.c (strip_trailing_slashes): Likewise.
125836         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
125837         sometimes returns a positive errno value even when it succeeds.
125838         (print_errno_message) [!LIBC]: Fall back on strerror if
125839         __strerror_r fails.
125841         * lib/path-concat.c (mempcpy): Don't define if a system header defines
125842         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
125843         (longest_relative_suffix): New function.
125844         (path_concat): Use it.  Assume first argument is not NULL.
125845         Port to DOS.  Omit redundant separators.
125846         Report an error instead of returning NULL.
125847         Use mempcpy instead of memcpy.
125848         (xpath_concat): Remove: not declared or used.
125850         * lib/same.h: Include <stdbool.h>
125851         (same_name): Return bool, not int.
125852         * lib/same.c (same_name): Likewise.
125853         (errno): Don't declare; we assume C89 or better now.
125855         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
125856         if not already defined.
125858         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
125859         * lib/dup-safer.c (errno): Likewise.
125861 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125863         Merge from coreutils.
125864         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
125865         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
125866         * modules/path-concat: Don't depend on strdup.
125868 2004-08-03  Simon Josefsson  <jas@extundo.com>
125870         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
125871         * lib/progname.h: Don't include stdbool.h.
125873 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125875         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
125876         * MODULES.html.sh (func_all_modules): Remove fatal.
125878 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125880         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
125882 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125884         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
125885         working.
125887 2004-08-02  Simon Josefsson  <jas@extundo.com>
125889         * lib/getsubopt.h: New file, with comments from Bruno Haible.
125890         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
125891         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
125893 2004-08-01  Simon Josefsson  <jas@extundo.com>
125895         * lib/xgetdomainname.c: Include stdlib.h, for free().
125897 2004-07-19  Bruno Haible  <bruno@clisp.org>
125899         * MODULES.html.sh (func_all_modules): Add dummy.
125901 2004-07-16  Simon Josefsson  <jas@extundo.com>
125903         * modules/dummy: New file.
125905 2004-07-16  Simon Josefsson  <jas@extundo.com>
125907         * lib/dummy.c: New file.
125909 2004-07-16  Bruno Haible  <bruno@clisp.org>
125911         * lib/backupfile.h: Add extern "C" for C++.
125912         * lib/closeout.h: Likewise.
125913         * lib/copy-file.h: Likewise.
125914         * lib/findprog.h: Likewise.
125915         * lib/full-write.h: Likewise.
125916         * lib/pathname.h: Likewise.
125917         * lib/progname.h: Likewise.
125918         * lib/stpcpy.h: Likewise.
125919         * lib/stpncpy.h: Likewise.
125920         * lib/strcase.h: Likewise.
125921         * lib/strstr.h: Likewise.
125922         * lib/xalloc.h: Likewise.
125924         * lib/mbswidth.h: Add extern "C" for C++.
125925         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
125927 2004-07-13  Robert Millan  <robertmh@gnu.org>
125929         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
125931 2004-07-09  Simon Josefsson  <jas@extundo.com>
125933         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
125934         failed without this.)
125936 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125938         * modules/chown (Files): Add lib/fchown-stub.c, since
125939         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
125941 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125943         * lib/fchown-stub.c: New file.
125945 2004-06-24  Jim Meyering  <jim@meyering.net>
125947         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
125949 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125951         * modules/argz: Omit "#include".
125953         * MODULES.html.sh (func_all_modules): Add calloc, to match
125954         2004-06-01 addition of calloc module.
125956 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125958         * m4/argz.m4: New file, which is autoupdated from libtool.
125960 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125962         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
125963         libtool.
125965 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125967         * config/srclist-update: Don't insist on "USA." before the
125968         close-comment, as libtool omits the period and puts the */ on a
125969         separate line.
125970         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
125971         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
125973 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
125975         * modules/argz: New file.
125976         * MODULES.html.sh (func_all_modules): Add argz.
125978 2004-06-12  Jim Meyering  <jim@meyering.net>
125979         and  Paul Eggert  <eggert@cs.ucla.edu>
125981         * modules/hash (Files): Add lib/xalloc.h.
125982         * modules/pipe (Depends-on): Add wait-process.
125983         * modules/stat (Depends-on): Add xalloc.
125984         * modules/userspec (Files): Add lib/userspec.h.
125985         * modules/xstrto
125987         Upgrade from gettext-0.13.
125988         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
125989         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
125990         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
125992 2004-06-10  Jim Meyering  <jim@meyering.net>
125994         * lib/calloc.c: New file.
125996 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
125998         * lib/getdate.y (yylex): Allow space between sign and number.
125999         Problem reported by Dan Jacobson.
126001 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
126003         Merge from coreutils CVS.
126005         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
126006         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
126007         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
126008         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
126009         xstrtol.m4: Fix copyright date and/or serial number.
126011         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
126012         See if we need an fchown replacement.
126013         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
126014         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
126015         and use the replacement function if we detect either defect.
126017         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
126018         gl_UTIMECMP.
126020 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
126021         and  Jim Meyering  <jim@meyering.net>
126023         Merge from coreutils CVS.
126025         * lib/stat-macros.h: New file, with contents from file-type.h
126026         and coreutils' system.h.
126027         * lib/file-type.c: Include "stat-macros.h".
126028         * lib/file-type.h (file_type): Move all macro definitions to new file,
126029         stat-macros.h.
126031         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
126032         Wrap old code with this conditional.
126033         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
126034         function that does not dereference symlinks.
126035         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
126037         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
126038         dependency problems.
126039         (xreadlink): Accept new arg SIZE, for efficiency.
126040         All decls and uses changed.
126041         * lib/xreadlink.h: Include <stddef.h>, for size_t.
126043         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
126044         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
126046         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
126047         sysexits.h.
126049 2004-06-01  Jim Meyering  <jim@meyering.net>
126051         * m4/calloc.m4: New file.
126053 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
126055         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
126056         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
126057         Also, fix a typo in a diagnostic.
126059 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
126061         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
126062         or AC_FUNC_REALLOC.
126064 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
126066         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
126067         macros to be defined.
126068         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
126069         the allocator returns NULL because the requested size is zero.
126071 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
126073         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
126074         var.  Add comment explaining why libc still defines it.  This
126075         merges the following patch from glibc:
126076         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
126078 2004-05-20  Andreas Schwab  <schwab@suse.de>
126080         * m4/free.m4: Replace free if it not known to work, not the other
126081         way round.
126083 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
126085         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
126086         present in glibc since revision 1.1 of this file.
126087         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
126088         obstack_alignment_mask, obstack_alloc, obstack_base,
126089         obstack_blank, obstack_blank_fast, obstack_chunk_size,
126090         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
126091         obstack_grow0, obstack_init, obstack_int_grow,
126092         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
126093         obstack_next_free, obstack_object_size, obstack_ptr_grow,
126094         obstack_ptr_grow_fast, obstack_room): Remove declarations of
126095         nonexistent functions.
126097 2004-05-18  Karl Berry  <karl@gnu.org>
126099         * config/srclist.txt: break link for vasnprintf.c.
126101 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
126103         Port obstack to the AS/400, where pointers are 16 bytes wide and
126104         you cannot cast an integer to a valid pointer.  This patch is
126105         currently waiting to be integrated into glibc; see
126106         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
126108         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
126109         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
126110         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
126111         (struct obstack): temp member is now a union of a pointer and
126112         an integer, instead of an integer.  All integer uses changed.
126113         This does not affect the physical layout of struct obstack,
126114         except on hosts (like the AS/400) where the size or alignment of
126115         void * is greater than that of ptrdiff_t.
126116         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
126117         __STDC__)]: Store temporary in pointer member of union, not
126118         integer member.
126119         * lib/obstack.c: Include <stddef.h>, for offsetof.
126120         (struct fooalign): Remove; it doesn't need a name.
126121         (union fooround): Change double to long double, and add void *.
126122         (DEFAULT_ALIGNMENT): Use offsetof to compute.
126123         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
126124         not a macro.  Hence the values are always int; so remove all
126125         casts-to-int in uses.
126127 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
126129         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
126130         we can get this patch merged into glibc.
126132 2004-05-17  Derek R. Price  <derek@ximbiot.com>
126133             Paul Eggert  <eggert@cs.ucla.edu>
126135         * m4/argp: Depend on alloca.
126137 2004-05-17  Derek R. Price  <derek@ximbiot.com>
126138             Paul Eggert  <eggert@cs.ucla.edu>
126140         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
126141         freecoding.
126143 2004-05-17  Bruno Haible  <bruno@clisp.org>
126145         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
126146         precision that consists of a '.' followed by an empty digit string.
126147         Patch by Tor Lillqvist <tml@iki.fi>.
126149 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
126151         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
126152         for backward compatibility with older code.  We need our own
126153         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
126154         it under some other name, and our alloca.h will define it.
126156 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
126157             Derek Price  <derek@ximbiot.com>
126159         * lib/alloca.c: Include <alloca.h>, to get our interface.
126160         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
126161         include <alloca.h> first.  Use C89 prototype for alloca; this
126162         requires including <stddef.h> for size_t.  Use extern "C" if C++.
126163         Use #elif for simplicity, since we can assume C89 now.
126164         Don't try to source the system alloca.h since it will not be found
126165         and to prevent recursively including its replacement.
126166         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
126167         * lib/regex.c: Likewise.
126169 2004-05-16  Derek Price  <derek@ximbiot.com>
126170             Paul Eggert  <eggert@cs.ucla.edu>
126172         getline cleanup.  This changes the getndelim2 API: both order of
126173         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
126174         no delimiter).
126176         * lib/getline.c: Don't include stddef.h or stdio.h, since our
126177         interface does that.
126178         (getline): Always use getdelim, so that we don't have two
126179         copies of this code.
126180         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
126181         if available.
126182         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
126183         (GETNDELIM2_MAXIMUM): New macro.
126184         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
126185         instead of the old practice of delim2==0.  All callers changed.
126186         Return -1 on overflow, instead of returning junk.
126187         Do not set *linesize unless allocation succeeds.
126188         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
126189         that we include sys/types.h.
126190         * lib/getnline.h: Likewise.
126191         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
126192         (getndelim2): Reorder arguments.
126193         * lib/getnline.c (getnline, getndelim):
126194         Don't discard the NMAX argument.
126195         (getnline): Invoke getndelim, to avoid code duplication.
126196         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
126197         of (size_t) -1 by callers of the getnline family.
126199 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
126201         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
126202         Check for gettimeofday.
126203         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
126204         Check for settimeofday, stime.
126206 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
126208         * lib/nanosleep.c (suspended): Change its type from int to
126209         sig_atomic_t volatile.
126210         (first_call): Make it private to rpl_nanosleep, and have it
126211         be zero initially as that's a bit faster.
126212         (my_usleep): Round up fractional times instead of truncating them,
126213         as this is the usual meaning for 'sleep'.
126215         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
126216         doesn't work.
126217         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
126218         (ENOSYS): Define if not defined.
126219         (settime): Fall back on stime if it exists and settimeofday fails.
126220         But don't bother with fallbacks if a method fails with errno == EPERM.
126222 2004-05-11  Jim Meyering  <jim@meyering.net>
126224         Prior to this change, the save_cwd caller required read access to the
126225         current directory on most systems (ones with the fchdir function).
126227         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
126228         fails, try write-only, and finally, resort to using xgetcwd.
126230 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
126232         * lib/obstack.c, obstack.h: Import changes from libc.
126234 2004-04-28  Bruno Haible  <bruno@clisp.org>
126236         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
126237         also implicitly appends .exe to executables.
126238         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
126239         accepts Windows pathnames.
126240         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
126241         Treat Cygwin like Windows, since it now accepts Windows pathnames.
126242         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
126243         Treat Cygwin like Windows, since it now accepts Windows pathnames.
126244         Reported by Derek Robert Price <derek@ximbiot.com>.
126246 2004-04-21  Karl Berry  <karl@gnu.org>
126248         * config/srclist.txt (localcharset.c): break sync.
126250 2004-04-20  Paul Eggert  <eggert@twinsun.com>
126252         * m4/host-os.m4: Add a copyright notice.
126254 2004-04-20  Jim Meyering  <jim@meyering.net>
126256         Change UTILS_ to gl_ in AC_DEFINE'd names.
126257         Change utils_- and jm_-prefixed variables, too.
126258         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
126259         UTILS_FUNC_MKDIR_TRAILING_SLASH.
126260         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
126262         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
126263         Don't emit trailing blanks.
126264         Also rename jm_-prefixed variables to have gl_ prefix.
126266         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
126267         Also rename jm_-prefixed variables to have gl_ prefix.
126269         * m4/jm-macros.m4: Reflect the renamings.
126270         * m4/prereq.m4: Likewise.
126272 2004-04-20  Jim Meyering  <jim@meyering.net>
126274         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
126275         memory.
126277 2004-04-20  Jim Meyering  <jim@meyering.net>
126278             Bruno Haible  <bruno@clisp.org>
126280         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
126281         memory when realloc fails.
126283 2004-04-19  Jim Meyering  <jim@meyering.net>
126285         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
126286         now that readutmp.c may call `free (0)'.
126288 2004-04-19  Bruno Haible  <bruno@clisp.org>
126290         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
126291         * m4/inttypes_h.m4: Likewise.
126292         * m4/stdint_h.m4: Likewise.
126293         * m4/intmax_t.m4: Likewise.
126294         * m4/uintmax_t.m4: Likewise.
126296 2004-04-18  Jim Meyering  <jim@meyering.net>
126298         * m4/prereq.m4: Don't forbid jm_ prefix.
126300         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
126301         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
126302         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
126303         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
126304         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
126305         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
126306         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
126307         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
126308         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
126309         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
126310         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
126311         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
126312         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
126313         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
126314         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
126315         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
126316         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
126317         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
126318         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
126320 2004-04-18  Jim Meyering  <jim@meyering.net>
126322         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
126323         failure, don't leak memory and do call END_UTMP_ENT.
126325 2004-04-16  Jim Meyering  <jim@meyering.net>
126327         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
126328         coreutils' stat program.
126329         (gl_PREREQ): Don't require jm_PREREQ_STAT.
126331 2004-04-11  Paul Eggert  <eggert@twinsun.com>
126333         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
126334         C89.
126335         (CHAR_BIT): Remove, since we assume C89.
126336         Include <stdint.h> if available, as per current Autoconf CVS advice.
126338 2004-03-31  Jim Meyering  <jim@meyering.net>
126340         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
126341         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
126342         * m4/xalloc.m4: Likewise.
126344 2004-03-30  Paul Eggert  <eggert@twinsun.com>
126346         Merge from coreutils.
126348         * m4/inttostr.m4: New file.
126349         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
126350         Require AM_STDBOOL_H and gl_TIMESPEC instead.
126351         Require gl_CLOCK_TIME.
126352         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
126354 2004-03-30  Paul Eggert  <eggert@twinsun.com>
126356         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
126357         not bool, to be more consistent with Unix conventions.
126358         Suggested by Bruno Haible.
126360         Merge from coreutils.
126362         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
126363         * lib/umaxtostr.c: New files.
126365         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
126366         the usual <time.h> dance.
126367         (get_date): Change signature to support fractional time stamps.
126368         All callers changed.
126369         * lib/getdate.y: Include "getdate.h" first, as we can now
126370         assume C89 and don't need to worry about 'const'.
126371         Similarly, include "unlocked-io.h" near start, not in middle.
126372         Include <limits.h>.
126373         (textint.value): Use long int rather than int.
126374         (textint.digits): Use size_t rather than int.
126375         (BILLION, LOG10_BILLION): New constants.
126376         (parser_control): New member rel_ns.  Members day_ordinal,
126377         time_zone, month, day, hour, minutes, rel_year, rel_month,
126378         rel_day, rel_hour, rel_minutes, rel_seconds
126379         are now long int, not int.  Member seconds is now struct timespec,
126380         not int.  New member timespec_seen.  Members dates_seen, days_seen,
126381         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
126382         not int.
126383         (%union.intval): Now long int, not int.
126384         New member timespec.
126385         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
126386         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
126387         (spec): Now is a timespec or an item list.
126388         (timespec, items): New nonterminals.
126389         (time, rel, relunit, number, get_date):
126390         Add support for fractional seconds.
126391         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
126392         (gmtime, localtime, mktime): Remove decls; not needed with C89.
126393         (to_hour): First arg is now long int, not int.
126394         (to_year): Returns long int, not int.
126395         Don't treat year -70 like 70.
126396         (tm_diff): Returns long int, not int.
126397         (lookup_word): Use bool instead of int when appropriate.
126398         (yylex): Use size_t for count, not int.
126399         Detect overflow when parsing large integer constants.
126400         Add support for fractions.
126401         (get_date): Make pointers 'const' if possible.
126402         Use more-portable code to detect integer overflow.
126403         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
126404         Don't use ctime; it's not reliable if the year has >4 digits.
126406         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
126407         This is for compatibility with BSD.
126409         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
126410         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
126411         From coreutils' system.h.
126413         * lib/userspec.c: Don't include "posixver.h".
126414         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
126415         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
126416         compatible extension.  Simplify code by removing a boolean int
126417         that was always nonzero if a string was nonnull.
126419 2004-03-30  Jim Meyering  <jim@meyering.net>
126421         Merge from coreutils.
126423         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
126424         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
126425         on some systems one must include <grp.h> before it.
126426         Reported by Christian Krackowizer.
126428 2004-03-30  Jim Meyering  <jim@meyering.net>
126430         Merge from coreutils.
126432         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
126434         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
126435         an empty input stream.
126437         * lib/readtokens.c: Include <stdbool.h>.
126438         (readtoken): Use `size_t' rather than int/long.
126439         All callers adjusted.
126440         Use `bool' rather than `int' where appropriate.
126441         Use memset rather than an explicit loop.
126442         Use x2nrealloc rather than xrealloc.
126443         Allow the use of `\0' as a delimiter.
126444         (readtokens): Likewise.
126445         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
126447 2004-03-30  Jim Meyering  <jim@meyering.net>
126449         * m4/realloc.m4: Remove file, since now it does no more than
126450         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
126451         the `configure.ac' section of module/realloc.
126452         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
126454 2004-03-30  Bruno Haible  <bruno@clisp.org>
126456         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
126457         nonnull.
126459 2004-03-29  Paul Eggert  <eggert@twinsun.com>
126461         Merge changes to getloadavg.c from coreutils and Emacs.
126463         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
126464         Define to an expression, not to the empty string.
126465         Include cloexec.h and xalloc.h.
126466         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
126467         Use set_cloexec_flag rather than rolling our own.
126468         * lib/cloexec.c, lib/cloexec.h: New files.
126470 2004-03-29  Paul Eggert  <eggert@twinsun.com>
126472         * m4/cloexec.m4: New file.
126474 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126476         * lib/getopt.h: Sync with libc CVS.
126478 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126479             Bruno Haible  <bruno@clisp.org>
126481         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
126482         mbswidth.
126484 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126485             Bruno Haible  <bruno@clisp.org>
126487         * lib/mbswidth.h: Include <wchar.h> only if
126488         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
126489         <wchar.h>.
126490         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
126492 2004-03-09  Paul Eggert  <eggert@twinsun.com>
126494         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
126495         Sync with libc CVS.
126496         * lib/getopt_int.h: New file, also synced from libc.
126498 2004-03-09  Paul Eggert  <eggert@twinsun.com>
126500         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
126501         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
126502         Bring back getopt.c, getopt.h, getopt1.c.
126504 2004-03-07  Paul Eggert  <eggert@twinsun.com>
126506         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
126507         All uses changed.  Check for sa_sigaction member; this fixes
126508         a bug first reported by Jason Andrade in
126509         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
126511 2004-03-07  Paul Eggert  <eggert@twinsun.com>
126513         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
126514         '#if' expressions.  Unlike the code it replaces, it does not
126515         depend on (defined _SC_PAGESIZE).  However, it does depend on
126516         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
126517         first reported by Jason Andrade in
126518         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
126520 2004-02-25  Simon Josefsson  <jas@extundo.com>
126522         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
126524 2004-02-25  Simon Josefsson  <jas@extundo.com>
126526         * lib/strdup.h: New file.
126527         * lib/strdup.c: Include it.
126528         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
126529         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
126531 2004-02-23  Karl Berry  <karl@gnu.org>
126533         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
126534         (from fencepost.gnu.org:/gd/gnuorg).
126536 2004-02-23  Karl Berry  <karl@gnu.org>
126538         * config/srclistvars.sh (GNUORG) [karl]: redefine.
126539         * config/srclist.txt: add maintain/standards documents.
126541 2004-02-18  Bruno Haible  <bruno@clisp.org>
126543         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
126544         Reported by Derek Robert Price <derek@ximbiot.com>.
126546 2004-02-16  Karl Berry  <karl@gnu.org>
126548         * config/mkinstalldirs, install-sh: update from automake.
126550 2004-02-06  Karl Berry  <karl@gnu.org>
126552         * m4/po.m4: update from gettext 0.14.1.
126554 2004-02-06  Karl Berry  <karl@gnu.org>
126556         * lib/config.charset: update from gettext 0.14.1.
126558 2004-02-05  Paul Eggert  <eggert@twinsun.com>
126560         Add comments and code, prompted by suggestions from Bruno Haible
126561         for sh-quote.
126562         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
126563         describing the enum quoting_style values.
126564         * lib/quotearg.c (quotearg_alloc): New function.
126565         (quotearg_buffer_restyled): Treat lone { and } as special.
126566         Treat = as special.  Work around bug with older shells
126567         that "see" a '\' that is really the 2nd byte of a multibyte char.
126568         Quote empty string with shell_quoting_style.
126570 2004-02-03  Bruno Haible  <bruno@clisp.org>
126572         * m4/pipe.m4: New file, from GNU gettext.
126574 2004-02-03  Bruno Haible  <bruno@clisp.org>
126576         * lib/pipe.h: New file, from GNU gettext.
126577         * lib/pipe.c: New file, from GNU gettext.
126579 2004-01-27  Bruno Haible  <bruno@clisp.org>
126581         * m4/execute.m4: New file, from GNU gettext.
126583 2004-01-27  Bruno Haible  <bruno@clisp.org>
126585         * lib/execute.h: New file, from GNU gettext.
126586         * lib/execute.c: New file, from GNU gettext.
126587         * lib/w32spawn.h: New file, from GNU gettext.
126589 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126591         Merge from diffutils.
126593         * lib/file-type.c (file_type): Add typed memory objects.
126594         * lib/file-type.h (S_TYPEISTMO): New macro.
126596         * lib/c-stack.h (c_stack_action): Remove argv argument.
126597         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
126598         (die): Don't calculate message unless segv_action returns.
126599         (get_stack_location, min_address_from_argv, max_address_from_argv,
126600         volatile stack_base, volatile_stack_size): Remove.
126601         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
126602         that every segmentation violation is a stack overflow.  (Ouch!)
126603         See Debian bug 136249 (still outstanding) for more info about why
126604         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
126606 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126608         Exit-status fix from coreutils.
126610         Use exit_failure consistently in place of EXIT_FAILURE,
126611         so that program exit statuses are consistent on failure.
126613         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
126614         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
126615         * lib/argmatch.h: Comment fix to match the above.
126616         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
126617         Now a macro referring to exit_failure, instead of a separate
126618         variable.  Include "exitfail.h" to get it.
126619         * lib/xstrtol.h: Include "exitfail.h".
126620         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
126622         * lib/long-options.c (parse_long_options): Use prototype
126623         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
126624         for clarity.
126626 2004-01-21  Jim Meyering  <jim@meyering.net>
126628         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
126629         so as not to conflict with a different-sized __mktime_internal
126630         function in GNU libc.
126631         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
126632         Problem building statically-linked `ls' reported by Michael Brunnbauer.
126634 2004-01-20  Karl Berry  <karl@gnu.org>
126636         * config/config.guess: update from config.
126638         * config/srclistvars.sh: GNUWWWLICENSES for karl.
126640 2004-01-20  Bruno Haible  <bruno@clisp.org>
126642         Safer stack allocation.
126643         * lib/setenv.c: Include allocsa.h.
126644         (alloca): Remove fallback definition.
126645         (freea): Remove macro.
126646         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
126647         instead of freea.
126649 2004-01-20  Bruno Haible  <bruno@clisp.org>
126651         * m4/eealloc.m4: New file, from GNU gettext.
126653 2004-01-20  Bruno Haible  <bruno@clisp.org>
126655         * m4/allocsa.m4: New file, from GNU gettext.
126657 2004-01-20  Bruno Haible  <bruno@clisp.org>
126659         * lib/xallocsa.h: New file, from GNU gettext.
126660         * lib/xallocsa.c: New file, from GNU gettext.
126662 2004-01-20  Bruno Haible  <bruno@clisp.org>
126664         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
126666 2004-01-20  Bruno Haible  <bruno@clisp.org>
126668         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
126669         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
126670         specially.
126672 2004-01-20  Bruno Haible  <bruno@clisp.org>
126674         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
126675         patch.
126677 2004-01-20  Bruno Haible  <bruno@clisp.org>
126679         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
126681 2004-01-20  Bruno Haible  <bruno@clisp.org>
126683         * lib/eealloc.h: New file.
126685 2004-01-20  Bruno Haible  <bruno@clisp.org>
126687         * lib/binary-io.h: Avoid warnings on Cygwin.
126689 2004-01-20  Bruno Haible  <bruno@clisp.org>
126691         * lib/allocsa.h: New file, from GNU gettext.
126692         * lib/allocsa.c: New file, from GNU gettext.
126694 2004-01-18  Karl Berry  <karl@gnu.org>
126696         * doc/gpl.texi, doc/lgpl.texi: new files.
126698 2004-01-18  Karl Berry  <karl@gnu.org>
126700         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
126701         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
126703 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126705         Merge from coreutils.
126707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
126708         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
126709         (gl_DEFAULT_POSIX2_VERSION): Move
126710         the documentation from 'configure' into 'config.hin',
126711         so that 'configure --help' isn't burdened by it and
126712         we don't have to worry about its formatting there.
126713         Reword the documentation so that it's more succinct
126714         and can be run together into a single paragraph.
126715         * m4/same.m4 (gl_SAME): Check for pathconf.
126717 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126719         Merge from coreutils.
126721         * lib/posixver.c: Include posixver.h.
126723         * lib/same.c: Include <stdbool.h>, <limits.h>.
126724         (_POSIX_NAME_MAX): Define if not defined.
126725         (MIN): New macro.
126726         (same_name): If file names are silently truncated, report
126727         that the file names are the same if they are the same after
126728         the silent truncation.
126730         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
126731         conversion function.
126732         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
126733         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
126734         longer needed.
126736 2004-01-15  Jim Meyering  <jim@meyering.net>
126738         Merge from coreutils.
126740         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
126741         if no library is required.
126742         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
126743         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
126744         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
126745         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
126746         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
126747         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
126748         value, $ac_cv_search_crypt, if it's "none required".
126749         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
126750         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
126751         not gl_FUNC_GETLOADAVG.
126752         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
126753         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
126755 2004-01-15  Jim Meyering  <jim@meyering.net>
126757         Merge from coreutils.
126759         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
126760         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
126761         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
126763         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
126764         optional configure-time default.
126766         * lib/version-etc.c (version_etc_copyright): Update copyright date.
126768         * lib/xreadlink.c (xreadlink): Correct outdated comment.
126770 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
126772         Merge from coreutils.
126774         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
126775         value, $ac_cv_search_nanosleep, if it's "none required".
126777 2004-01-14  Paul Eggert  <eggert@twinsun.com>
126779         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
126780         with like-named macro in fnmatch.c.
126781         (EXT): Use an internal constant instead.
126783         Merge fnmatch patches from glibc.
126784         * lib/fnmatch.c (mbsinit): Remove define.
126785         Add libc_hidden_ver (__fnmatch, fnmatch).
126786         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
126787         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
126789 2004-01-14  Karl Berry  <karl@gnu.org>
126791         * config/install-sh: update from automake.
126793 2004-01-13  Karl Berry  <karl@gnu.org>
126795         * config/install-sh: update from automake.
126797 2004-01-09  Karl Berry  <karl@gnu.org>
126799         * config/install-sh: update from automake.
126801 2004-01-05  Karl Berry  <karl@gnu.org>
126803         * config/config.{sub,guess}: update from config.
126805 2003-12-31  Karl Berry  <karl@gnu.org>
126807         * config/depcomp: update from automake.
126809 2003-12-14  Karl Berry  <karl@gnu.org>
126811         * lib/config.charset: update from gettext-runtime.
126813 2003-12-03  Paul Eggert  <eggert@twinsun.com>
126815         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
126816         Bug reported by Alfred M. Szmidt.
126818 2003-12-03  Bruno Haible  <bruno@clisp.org>
126820         * m4/gettext.m4: Upgrade from gettext-0.13.
126821         * m4/po.m4: Upgrade from gettext-0.13.
126822         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
126823         * m4/intmax.m4: New file, from gettext-0.13.
126824         * m4/printf-posix.m4: New file, from gettext-0.13.
126826 2003-11-29  Karl Berry  <karl@gnu.org>
126828         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
126830 2003-11-25  Paul Eggert  <eggert@twinsun.com>
126831             Bruno Haible  <bruno@clisp.org>
126833         * lib/printf-parse.h: Don't include sys/types.h.
126834         (ARG_NONE): New macro.
126835         (char_directive): Change type of *arg_index fields to size_t.
126836         * lib/printf-parse.c: Don't include sys/types.h.
126837         (SSIZE_MAX): Remove macro.
126838         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
126839         Remove unnecessary overflow check.
126840         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
126841         fields.
126843 2003-11-25  Bruno Haible  <bruno@clisp.org>
126845         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
126847 2003-11-25  Bruno Haible  <bruno@clisp.org>
126849         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
126850         gt_TYPE_SSIZE_T.
126852 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126854         * modules/alloca: Remove dependency on xalloc.
126856 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126858         * lib/alloca.c: Remove dependency on xalloc module.
126859         (xalloc_die): Remove.
126860         (memory_full) [!defined emacs]: New macro.
126861         [!defined emacs]: Don't include xalloc.h.
126862         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
126863         address arithmetic overflows.  Change datatypes a bit to avoid
126864         unnecessary casts.
126866 2003-11-22  Jim Meyering  <jim@meyering.net>
126868         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
126869         s/size/size_t/.
126871 2003-11-21  Karl Berry  <karl@gnu.org>
126873         * config/config.{sub,guess}: update from config.
126875 2003-11-18  Karl Berry  <karl@gnu.org>
126877         * config/config.{sub,guess}: update from config.
126879         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
126881 2003-11-17  Paul Eggert  <eggert@twinsun.com>
126883         * README: Mention that S+T cannot overflow if S is the size of
126884         an existing object and T is sufficiently small.
126886 2003-11-17  Jim Meyering  <jim@meyering.net>
126888         On systems without utime and without a utimes function capable of
126889         dealing with a NULL struct utimbuf* argument, this utime replacement
126890         could -- in unusual circumstances -- leak a file descriptor.
126891         * lib/utime.c: Include <unistd.h> and <errno.h>.
126892         (utime_null): Be sure to close `fd' and to preserve errno.
126893         Reported by Geoff Collyer via Arnold Robbins.
126895 2003-11-17  Bruno Haible  <bruno@clisp.org>
126897         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
126898         (Depends-on): Add xsize.
126900 2003-11-17  Bruno Haible  <bruno@clisp.org>
126902         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
126904 2003-11-17  Bruno Haible  <bruno@clisp.org>
126906         * lib/vasnprintf.c (alloca): Remove fallback definition.
126907         (freea): Remove definition.
126908         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
126909         Reported by Paul Eggert.
126911 2003-11-16  Paul Eggert  <eggert@twinsun.com>
126912             Bruno Haible  <bruno@clisp.org>
126914         Protect against address arithmetic overflow.
126915         * lib/printf-args.h: Include stddef.h.
126916         (arguments): Change type of field 'count' to size_t.
126917         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
126918         'unsigned int' where appropriate.
126919         * lib/printf-parse.h: Include sys/types.h.
126920         (char_directive): Change type of *arg_index fields to ssize_t.
126921         (char_directives): Change type of fields 'count', max_*_length to
126922         size_t.
126923         * lib/printf-parse.c: Include sys/types.h and xsize.h.
126924         (SSIZE_MAX): Define fallback value.
126925         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
126926         instead of 'int' where appropriate. Check a_allocated, d_allocated
126927         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
126928         * lib/vasnprintf.c: Include xsize.h.
126929         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
126930         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
126931         overflow. Avoid wraparound when converting a width or precision from
126932         decimal to binary.
126934 2003-11-16  Bruno Haible  <bruno@clisp.org>
126936         Update from GNU gettext.
126937         * lib/printf-parse.c: Generalize to it can be compiled for wide
126938         strings.
126939         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
126940         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
126941         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
126942         SNPRINTF): New macros.
126943         Don't include <alloca.h> if the file is used inside libintl.
126944         (local_wcslen): New function, for Solaris 2.5.1.
126945         (VASNPRINTF): Use it instead of wcslen.
126947 2003-11-16  Bruno Haible  <bruno@clisp.org>
126949         * lib/xsize.h (xmax): New function.
126950         (xsum, xsum3, xsum4): Declare as "pure" functions.
126952 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126954         * modules/xalloc (Files): Undo latest change, since xalloc.h
126955         no longer needs SIZE_MAX or PTRDIFF_MAX.
126957 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126959         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
126960         gl_PTRDIFF_MAX.
126962 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126964         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
126965         "return", to pacify some unknown compiler.  Problem reported
126966         by Joerg Schilling.
126968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126970         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
126971         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
126972         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
126973         heuristic is just as accurate as far as we know, and it removes a
126974         dependency on size_max.m4 and ptrdiff_max.m4.
126976 2003-11-11  Bruno Haible  <bruno@clisp.org>
126978         * modules/xsize (Files): Add m4/size_max.m4.
126979         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
126981 2003-11-11  Bruno Haible  <bruno@clisp.org>
126983         * m4/size_max.m4: New file.
126984         * m4/ptrdiff_max.m4: New file.
126985         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
126986         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
126987         (gl_XALLOC): Invoke it.
126989 2003-11-11  Bruno Haible  <bruno@clisp.org>
126991         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
126992         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
126993         defined.
126995 2003-11-10  Paul Eggert  <eggert@twinsun.com>
126997         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
126998         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
126999         rejected some allocations of exactly SIZE_MAX - 2 bytes.
127000         From Bruno Haible.
127001         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
127002         not (size_t) -1, since it's defined here.
127004 2003-11-09  Karl Berry  <karl@gnu.org>
127006         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
127008 2003-11-06  Paul Eggert  <eggert@twinsun.com>
127010         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
127011         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
127012         Reject sizes of exactly SIZE_MAX bytes.
127013         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
127014         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
127016 2003-11-05  Bruno Haible  <bruno@clisp.org>
127018         * lib/xsize.h: Include limits.h, to avoid a possible collision with
127019         SIZE_MAX defined in <limits.h> on Solaris.
127021 2003-11-04  Jim Meyering  <jim@meyering.net>
127023         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
127024         variable names, rather than @VAR@.
127025         * modules/poll: Likewise.
127027 2003-11-04  Bruno Haible  <bruno@clisp.org>
127029         * modules/xsize: New file.
127030         * modules/linebreak: Depend on xsize.
127031         * MODULES.html.sh (func_all_modules): Add xsize.
127033 2003-11-04  Bruno Haible  <bruno@clisp.org>
127035         * m4/xsize.m4: New file.
127037 2003-11-04  Bruno Haible  <bruno@clisp.org>
127039         * lib/xsize.h: New file.
127040         * lib/linebreak.c: Include xsize.h.
127041         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
127042         argument for overflow.
127043         Suggested by Paul Eggert.
127045 2003-11-03  Karl Berry  <karl@gnu.org>
127047         * config/config.{guess,sub}: update from config.
127049 2003-11-03  Jim Meyering  <jim@meyering.net>
127051         * modules/userspec (lib_SOURCES): Add userspec.h.
127052         (Include): Add "userspec.h".
127053         Improve description.
127055 2003-11-03  Jim Meyering  <jim@meyering.net>
127057         * lib/userspec.c: Include "userspec.h".
127058         * lib/userspec.h: New file.
127060 2003-11-03  Bruno Haible  <bruno@clisp.org>
127062         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
127064 2003-11-03  Bruno Haible  <bruno@clisp.org>
127066         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
127067         available, to avoid (extremely rare) race condition.
127068         Suggested by Paul Eggert.
127070 2003-11-02  Karl Berry  <karl@gnu.org>
127072         * config/srclist.txt (vasprintf.c): sync broken, sigh.
127074 2003-10-31  Paul Eggert  <eggert@twinsun.com>
127076         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
127077         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
127078         (read_filesystem_list): Set and use me_type_malloced.
127079         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
127080         whatever the type happens to be), for brevity and consistency.
127081         Check for size calculation overflow on Alphas running OSF/1.
127083 2003-10-31  Jim Meyering  <jim@meyering.net>
127085         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
127087         * lib/linebuffer.c: Include <string.h> for declaration of memset.
127089 2003-10-30  Paul Eggert  <eggert@twinsun.com>
127090             Bruno Haible  <bruno@clisp.org>
127092         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
127093         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
127095 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
127097         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
127098         netbsd*-gnu*.  Suggested by Robert Millan.
127100 2003-10-29  Paul Eggert  <eggert@twinsun.com>
127102         * modules/group-member: Depend on stdbool.
127104 2003-10-29  Paul Eggert  <eggert@twinsun.com>
127106         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
127108 2003-10-29  Paul Eggert  <eggert@twinsun.com>
127110         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
127111         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
127112         after the 'gnu' in these cases.  This fixes some bugs in the
127113         previous change, and is based on suggestions by Robert Millan.
127115 2003-10-29  Paul Eggert  <eggert@twinsun.com>
127117         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
127118         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
127119         no longer needed.
127120         * lib/quotearg.c (quotearg_n_options): Use it.
127121         * lib/group-member.c: Include <stdbool.h>.
127122         (free_group_info): Arg is now const *; don't free arg.
127123         (get_group_info): Now returns bool and accepts struct group_info *,
127124         rather than returning a malloc'ed struct group_info *.
127125         All uses changed.  Check for overflow in internal size calculation.
127127         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
127128         rather than xmalloc/xrealloc.
127129         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
127130         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
127131         conformance bug: the old code used a pointer after freeing the
127132         storage that it addressed.
127133         * lib/hash.c (hash_initialize): Simplify the code by using
127134         xalloc_oversized rather than doing it by hand.
127135         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
127136         the buffer preserved.  Use free and xmalloc instead.
127137         * lib/quotearg.c (quotearg_n_options): Likewise.
127138         Use a simpler test for size overflow.  Don't use xalloc_oversized
127139         because unsigned int might be wider than size_t (!); this suggests
127140         that we should switch from unsigned int to size_t for slot numbers.
127142 2003-10-28  Paul Eggert  <eggert@twinsun.com>
127144         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
127145         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
127146         NetBSD kernels.  Requested by Richard Stallman.
127148 2003-10-27  Paul Eggert  <eggert@twinsun.com>
127150         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
127151         to allocate the returned structure.  Do not allocate a subarray,
127152         as x2nrealloc will do that.
127153         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
127154         instead of xnrealloc.
127155         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
127157 2003-10-27  Bruno Haible  <bruno@clisp.org>
127159         * lib/stdbool_.h: Better support for BeOS.
127161 2003-10-26  Paul Eggert  <eggert@twinsun.com>
127163         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
127164         now uses inline.
127166 2003-10-26  Paul Eggert  <eggert@twinsun.com>
127168         * lib/xalloc.h (xalloc_oversized): New static inline function, for
127169         callers that want to do their own size-overflow checking.  Include
127170         <stdbool.h>, since xalloc_oversized returns bool.
127171         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
127172         to use xalloc_oversized.
127174         Add two functions x2realloc, x2nrealloc, for programs that grow
127175         arrays dynamically by doubling their sizes.
127176         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
127177         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
127178         New functions.
127180         Port to C99 semantics for 'inline' of external functions.
127181         Bug reported by Bruno Haible.
127182         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
127183         with the old contents of xnmalloc.
127184         (xnmalloc, xmalloc): Use it.
127185         (xnrealloc_inline): New static inline function,
127186         with the old contents of xnrealloc.
127187         (xnrealloc, xrealloc): Use it.
127189         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
127190         that.
127192 2003-10-26  Karl Berry  <karl@gnu.org>
127194         * config/srclist.txt (COPYING.DOC): no longer available from
127195         /gd/gnuorg; don't know where the ultimate source is.
127197 2003-10-25  Paul Eggert  <eggert@twinsun.com>
127199         Fix several address-calculation bugs in the hash modules,
127200         plus some minor code cleanup.
127202         * lib/hash.h: Include <stdbool.h>, for bool.
127203         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
127204         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
127205         hash_get_n_entries, hash_get_max_bucket_length,
127206         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
127207         hash_rehash): Use size_t rather than unsigned.
127208         * lib/hash.c (struct hash_table, hash_get_n_buckets,
127209         hash_get_n_buckets_used, hash_get_n_entries,
127210         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
127211         hash_get_entries, hash_do_for_each, hash_string, is_prime,
127212         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
127213         Likewise.
127214         (SIZE_MAX): Define if not defined.
127215         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
127216         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
127217         hash_print):
127218         Use const * when possible.
127219         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
127220         (check_tuning): Fix bug: if tuning parameters were very close to
127221         0 or 1, rounding errors could have caused subscript violations.
127222         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
127223         (hash_initialize): Add 'fail:' label
127224         to free table and return NULL, and use it to simplify code.
127225         Use calloc rather than clearing the storage ourself.
127226         (hash_initialize, hash_rehash): Check for arithmetic overflow in
127227         buffer size calculations.
127228         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
127229         Include <stddef.h>, for size_t.
127230         * lib/hash-pjw.c (hash_pjw): Likewise.
127231         Switch to method described by Bruno Haible.
127232         Include <limits.h>, for CHAR_BIT.
127233         (SIZE_BITS): New macro.
127235 2003-10-23  Paul Eggert  <eggert@twinsun.com>
127237         * m4/getline.m4 (AM_FUNC_GETLINE):
127238         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
127239         hosts.  Problem reported by Derek Robert Price in
127240         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
127241         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
127242         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
127244 2003-10-21  Paul Eggert  <eggert@twinsun.com>
127246         * lib/getndelim2.c (getndelim2): When size calculation overflows,
127247         ceiling the allocation at NMAX bytes rather than silently
127248         discarding input bytes before NMAX is reached.  This makes
127249         a difference only if NMAX exceeds SIZE_MAX / 2.
127251         * lib/obstack.c: Merge from glibc.
127252         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
127253         Add libc_hidden_def (_obstack_newchunk).
127254         (_obstack_free) [! defined _LIBC]: Remove.
127255         [defined _LIBC]: Make a strong alias from obstack_free, rather than
127256         a clone of the function body.
127257         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
127258         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
127260         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
127261         glibc.
127262         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
127263         arg to memcpy.
127265         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
127266         (obstack_ptr_grow_fast, obstack_int_grow_fast):
127267         Don't use lvalue casts, as GCC plans to remove support for them
127268         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
127269         was also present in the non-GCC version, indicating that this
127270         code had always been buggy and had never been widely used.
127271         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
127272         Use the fast variant of each macro, rather than copying the
127273         definiens of the fast variant; that way, we'll be more likely to
127274         catch future bugs in the fast variants.
127276 2003-10-20  Bruno Haible  <bruno@clisp.org>
127278         * modules/wait-process: New file.
127279         * MODULES.html.sh (func_all_modules): Add wait-process.
127281 2003-10-20  Bruno Haible  <bruno@clisp.org>
127283         * m4/wait-process.m4: New file.
127285 2003-10-20  Bruno Haible  <bruno@clisp.org>
127287         * lib/wait-process.h: New file, from GNU gettext.
127288         * lib/wait-process.c: New file, from GNU gettext.
127290 2003-10-19  Jim Meyering  <jim@meyering.net>
127292         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
127293         HPUX 10.20.
127295 2003-10-18  Karl Berry  <karl@gnu.org>
127297         * config/config.guess: update from config.
127299 2003-10-16  Paul Eggert  <eggert@twinsun.com>
127301         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
127302         (getgroups): First arg is int, not size_t.
127303         Don't let 'free' mangle errno.
127305 2003-10-16  Paul Eggert  <eggert@twinsun.com>
127307         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
127309 2003-10-16  Karl Berry  <karl@gnu.org>
127311         * config/config.{guess,sub}: update from config.
127313 2003-10-16  Jim Meyering  <jim@meyering.net>
127315         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
127316         memcpy.
127318 2003-10-15  Paul Eggert  <eggert@twinsun.com>
127320         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
127321         (SIZE_MAX): Remove.
127322         (new_exclude, add_exclude_file): Initial size no longer needs to
127323         be a power of 2.
127324         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
127325         our own address arithmetic overflow checking.
127327         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
127328         (fnmatch): Do not alloca more than 2000 wide characters;
127329         instead, use malloc for large buffers.
127330         Check for address arithmetic overflow, and return -1
127331         with errno set to ENOMEM in that case.
127332         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
127333         (NEW_PATTERN): Do not alloca more than 8000 bytes;
127334         instead, return -1.  Check for address arithmetic overflow.
127336 2003-10-14  Paul Eggert  <eggert@twinsun.com>
127338         Handle invalid suffixes and overflow independently, so that
127339         callers can treat them independently as needed.  Fix some bugs in
127340         suffix handling, e.g., "100k@" was not diagnosed as an invalid
127341         suffix for a human-readable blocksize.  The major caller-visible
127342         change is the addition of a new
127343         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
127344         that both overflow and suffix chars were found.
127346         * lib/human.c (humblock): Don't check separately for invalid suffix
127347         char; that is xstrtoumax's job (now that its bug is fixed).
127348         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
127349         INTMAX_MAX]: New macros.
127350         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
127351         TYPE_MAXIMUM): New macros.
127352         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
127353         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
127354         if overflow occurs, as it's what __strtol does and it's more useful
127355         in practice.
127356         (__xstrtol): If __strtol reports some error other than ERANGE,
127357         reflect it to the caller as LONGINT_INVALID.  If it reports
127358         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
127359         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
127360         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
127361         value.
127362         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
127363         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
127364         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
127365         [defined UINTMAX_MAX]: New macros.
127367 2003-10-14  Bruno Haible  <bruno@clisp.org>
127369         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
127371 2003-10-14  Bruno Haible  <bruno@clisp.org>
127373         * m4/sig_atomic_t: New file, from GNU gettext.
127374         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
127376 2003-10-14  Bruno Haible  <bruno@clisp.org>
127378         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
127379         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
127380         Also use volatile where needed.
127382 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127384         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
127385         Change maintainer from Bruno Haible to 'all'.
127387 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127389         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
127391 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127393         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
127394         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
127395         and define in terms of the other primitives.
127396         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
127397         (SIZE_MAX): Define if not already defined.
127398         (array_size_overflow): New function.
127399         (xalloc_die): Abort instead of exiting if 'error' returns.
127400         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
127401         (xmalloc, xrealloc): Use them.
127402         (xcalloc): Check for address arithmetic overflow.
127403         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
127404         a bit faster than strcpy.
127406 2003-10-10  Simon Josefsson  <jas@extundo.com>
127408         * modules/argp (Depends-on): Add restrict and strcase.
127410 2003-10-10  Simon Josefsson  <jas@extundo.com>
127412         * m4/argp.m4: Add AC_C_INLINE.
127414 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127416         Merge getpass from libc, plus a few fixes.
127418         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
127419         Include <stdbool.h>.
127420         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
127421         __fsetlocking to empty.
127422         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
127423         do include <bits/libc-lock.h>.
127424         Do not include <fcntl.h>; not needed.
127425         [_LIBC]: Include <wchar.h>.
127426         (NOTCANCEL_MODE): New macro.
127427         (flockfile, funlockfile) [_LIBC]: New macros.
127428         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
127429         [!_LIBC]: New macros.
127430         (call_fclose): New function.
127431         (getpass): Use it.  Save tty stream separately; this simplifies the
127432         code and makes it more reliable if stdin happens to equal stdout.
127433         Invoke __fsetlocking on tty.
127434         Handle thread cancellation if needed.
127435         Namespace cleanup (use __tcgetattr, __getline).
127436         Use bool for Booleans.
127437         [USE_IN_LIBIO]: Handle wide streams.
127438         [!_LIBC]: Unconditionally do the fseek, since we don't know what
127439         stream might go where.
127441         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
127442         doesn't have to include <stdio.h> before us.
127443         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
127444         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
127445         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
127446         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
127447         if not declared, so that we can use getpass.c code from libc without
127448         rewriting it.
127449         (flockfile, ftrylockfile, funlockfile): New macros.
127451 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127453         * modules/getpass: Depend on stdbool.
127455 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127457         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
127459 2003-10-07  Karl Berry  <karl@gnu.org>
127461         * config/config.{guess,sub}: update from config.
127463 2003-10-06  Jim Meyering  <jim@meyering.net>
127464             Bruno Haible  <bruno@clisp.org>
127466         This lets translators provide better translations for the
127467         "Written by ..." part of --version output.
127468         * lib/version-etc.h: Include stdarg.h.
127469         (version_etc_copyright): Declare as readonly.
127470         (version_etc): Make this function variadic with a NULL-terminated list
127471         of author name strings.
127472         (version_etc_va): New declaration.
127473         * lib/version-etc.c: Include stdarg.h, stdlib.h.
127474         (version_etc_copyright): Declare as readonly.
127475         (version_etc_va): New function. Provide a different translatable string
127476         for each possible number of authors < 10. Abbreviate when there are 10
127477         authors or more.
127478         (version_etc): Make this function variadic. Call version_etc_va.
127479         Suggestion from Gary V. Vaughan.
127481         * lib/long-options.h (parse_long_options): Change prototype: the
127482         authors string is moved to the end and becomes variadic.
127483         * lib/long-options.c: Include stdarg.h.
127484         (parse_long_options): Make this function variadic, too.
127485         Call version_etc_va, not version_etc.
127487 2003-10-06  Bruno Haible  <bruno@clisp.org>
127489         * modules/version-etc-2: Remove file.
127490         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
127492 2003-10-06  Bruno Haible  <bruno@clisp.org>
127494         * modules/fatal-signal: New file.
127495         * MODULES.html.sh (func_all_modules): Add fatal-signal.
127497 2003-10-06  Bruno Haible  <bruno@clisp.org>
127499         * m4/fatal-signal.m4: New file.
127500         * m4/signalblocking.m4: New file, from GNU gettext.
127502 2003-10-06  Bruno Haible  <bruno@clisp.org>
127504         * lib/version-etc-2.h: Remove file.
127505         * lib/version-etc-2.c: Remove file.
127507 2003-10-06  Bruno Haible  <bruno@clisp.org>
127509         * lib/fatal-signal.h: New file, from GNU gettext.
127510         * lib/fatal-signal.c: New file, from GNU gettext.
127512 2003-10-05  Paul Eggert  <eggert@twinsun.com>
127514         * README: Rework advice for preventing empty .o files.
127515         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
127516         not <sys/types.h>.
127518 2003-10-04  Karl Berry  <karl@gnu.org>
127520         * lib/argp*: update from libc.
127522 2003-10-04  Karl Berry  <karl@gnu.org>
127524         * config/config.{guess,sub}: update from config.
127526 2003-10-02  Bruno Haible  <bruno@clisp.org>
127528         * modules/lchown (Include): Add lchown.h.
127529         * modules/time_r (Include): Use "..." syntax.
127530         * modules/xgetdomainname (Include): Add xgetdomainname.h.
127532 2003-10-01  Simon Josefsson  <jas@extundo.com>
127534         * MODULES.html.sh (func_all_modules): Move gethostname from section
127535         'based on' to section 'lacking' POSIX:2001.
127537 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
127539         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
127540         to output mode on the same stream.
127542 2003-09-29  Paul Eggert  <eggert@twinsun.com>
127544         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
127545         Fix arg typo in previous patch.
127547 2003-09-28  Jim Meyering  <jim@meyering.net>
127549         * lib/error.c: Correct cpp indentation.
127551 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127553         * modules/free: New file.
127555 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127557         * m4/free.m4: New file.
127559 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127561         * lib/minmax.h (MIN, MAX)
127562         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
127563         Omit the special code that used __typeof__, since we worry that
127564         it could be more trouble than it's worth.  See:
127565         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
127566         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
127568         * lib/free.c: New file.
127570 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
127572         Trivial fixes to Makefile.am parts of module listings.
127573         * modules/strstr: Append strstr.h to lib_SOURCES.
127574         * modules/strcase: Likewise, for strcase.h.
127576 2003-09-27  Karl Berry  <karl@gnu.org>
127578         * config/mkinstalldirs: update from automake.
127580 2003-09-26  Paul Eggert  <eggert@twinsun.com>
127582         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
127583         (error_tail): Do not loop, reallocating temporary buffer, since
127584         the output cannot contain more wide characters than the input
127585         contains bytes, the size must be big enough already.  This avoids
127586         one potential size overflow calculation.  Check for size overflow
127587         when calculating temporary buffer size.  Free temporary buffer
127588         when done, if it was allocated with malloc; this plugs a memory
127589         leak.  Remove casts from void * to pointers, that are no longer
127590         needed now that we're assuming C89 or better.
127592         Merge error changes from glibc.
127594         * lib/error.c, error.h: Update copyright notice header to match glibc.
127595         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
127596         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
127597         Disable cancellation while printing error.
127598         * lib/error.h: Prepend __ to parameter names.
127600 2003-09-26  Jim Meyering  <jim@meyering.net>
127602         * lib/error.c (error_tail): Move some declarations
127603         into inner scope where the local variables are used.
127605 2003-09-26  Bruno Haible  <bruno@clisp.org>
127607         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
127608         stpncpy().
127609         Don't define stpncpy through config.h; it's now done through stpncpy.h.
127611 2003-09-26  Bruno Haible  <bruno@clisp.org>
127613         * lib/stpncpy.h (gnu_stpncpy): New declaration.
127614         (stpncpy): Define as alias for gnu_stpncpy.
127615         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
127617 2003-09-25  Simon Josefsson  <jas@extundo.com>
127619         * lib/xgetdomainname.h: New file.
127620         * lib/xgetdomainname.c: New file.
127622 2003-09-25  Simon Josefsson  <jas@extundo.com>
127623             Bruno Haible  <bruno@clisp.org>
127625         * modules/getdomainname: New file.
127626         * modules/xgetdomainname: New file.
127627         * MODULES.html.sh (func_all_modules): Add getdomainname,
127628         xgetdomainname.
127630 2003-09-25  Simon Josefsson  <jas@extundo.com>
127631             Bruno Haible  <bruno@clisp.org>
127633         * m4/getdomainname.m4: New file.
127635 2003-09-25  Simon Josefsson  <jas@extundo.com>
127636             Bruno Haible  <bruno@clisp.org>
127638         * lib/getdomainname.h: New file.
127639         * lib/getdomainname.c: New file.
127641 2003-09-25  Karl Berry  <karl@gnu.org>
127643         * lib/argp-fmtstream.c, argp-help.c: update from libc.
127645 2003-09-25  Karl Berry  <karl@gnu.org>
127647         * config/install-sh: update from automake.
127649 2003-09-25  Bruno Haible  <bruno@clisp.org>
127651         * modules/version-etc-2: New file, from modules/version-etc with
127652         modifications.
127653         * MODULES.html.sh (func_all_modules): Add version-etc-2.
127655 2003-09-25  Bruno Haible  <bruno@clisp.org>
127657         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
127658         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
127660 2003-09-24  Simon Josefsson  <jas@extundo.com>
127662         * modules/xgethostname: Add xgethostname.h.
127664 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127666         * lib/linebuffer.c (freebuffer): Don't free the argument, just
127667         the buffer associated with the argument.  Bug reported by
127668         Simon Josefsson.
127670 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127672         * README: Document assumptions that 'int' is at least 32 bits
127673         wide, that integer arithmetic is 2's complement without overflow,
127674         that there are no holes in integer values, that adding sizes of
127675         two nonoverlapping objects can't overflow, and that all-bits-zero
127676         yields scalar zero.  Fix spelling and capitalization typos.
127678 2003-09-19  Karl Berry  <karl@gnu.org>
127680         * lib/argp.h: update from libc.
127682 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
127685         to avoid spurious warnings like "AC_RUN_IFELSE was called before
127686         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
127688 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127690         * gnulib-tool: Use "test -h", not "test -L", for portability
127691         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
127692         (tags_regexp): Remove, since \| doesn't conform to POSIX.
127693         (sed_extract_prog): Issue s commands one-by-one, rather than
127694         using \| in one s command.
127696 2003-09-16  Paul Eggert  <eggert@twinsun.com>
127698         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
127699         input error, instead of returning NULL the next time we are called
127700         (and therefore losing track of errno).
127702 2003-09-16  Bruno Haible  <bruno@clisp.org>
127704         * gnulib-tool (func_create_testdir): Warn about duplicated
127705         dependencies.
127707 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127709         * modules/argmatch, modules/fatal, modules/obstack,
127710         modules/xalloc, modules/xgethostname: Sort dependencies by
127711         importance, not alphabetically.
127713 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127715         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
127716         fails, so that the caller gets the proper errno.
127718         * lib/readutmp.c (read_utmp): Likewise.
127719         Check for fstat error.  Close stream and free storage
127720         when failing.
127722 2003-09-14  Karl Berry  <karl@gnu.org>
127724         * config/srclist.txt (strdup.c): disable for c89 changes.
127726 2003-09-14  Jim Meyering  <jim@meyering.net>
127728         * lib/getloadavg.c: Correct cpp indentation.
127729         * lib/strdup.c: Likewise.
127730         * lib/vasnprintf.c: Likewise.
127732 2003-09-14  Bruno Haible  <bruno@clisp.org>
127734         * modules/fwriteerror: New file.
127735         * MODULES.html.sh (func_all_modules): Add fwriteerror.
127737 2003-09-14  Bruno Haible  <bruno@clisp.org>
127739         * lib/fwriteerror.h: New file.
127740         * lib/fwriteerror.c: New file.
127742 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127744         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
127745         modules/xgethostname, modules/xalloc: Depend on exit.
127747 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127749         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
127751         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
127752         and AC_MINIX, too, so that their extensions are available.
127754         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
127755         This macro has been superseded by gl_BACKUPFILE.
127757         More patches to assume C89 or better.
127759         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
127761         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
127762         unconditionally.
127763         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
127764         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
127765         Include <string.h>, <stdlib.h> unconditionally.
127766         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
127767         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
127768         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
127769         headers or for string.h.
127770         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
127771         or strtoul.
127773         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
127774         headers.
127775         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
127776         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127777         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
127778         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
127779         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127780         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
127781         memcpy, memset.
127782         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
127783         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
127784         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
127785         strtol.
127786         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
127787         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
127788         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
127789         strtoul.
127791 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127793         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
127794         * lib/obstack.c [!defined _LIBC]: Likewise.
127795         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
127796         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
127797         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
127799         More changes to assume C89 or better.
127801         * lib/error.c (error_tail): Assume vprintf.
127803         * lib/argmatch.c (getenv): Remove decl.
127804         * lib/progreloc.c (get_full_program_name): Define via prototype.
127805         * lib/setenv.c (clearenv): Likewise.
127806         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
127807         needed.
127808         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
127809         (malloc, memcpy): Remove decls.
127810         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
127811         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
127812         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127813         (memcpy): Remove macro.
127814         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
127815         (__P): Remove.  All uses removed.
127816         (PTR): Remove.  All uses changed to void *.
127817         (CHAR_BIT, NULL): Remove.
127818         (spaces, zeros, memset_space, memset_zero)
127819         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
127820         Remove.
127821         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
127822         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
127823         Define with prototype.
127824         Remove now-unnecessary prototype decl.
127825         (extra_args_spec): Assume ANSI C.  All uses changed.
127826         (extra_args_spec_iso): Remove.
127827         (my_strftime, emacs_strftimeu): Define via prototype.
127828         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
127829         unconditionally.
127830         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
127831         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
127832         (strtoul, strtol): Remove decls.
127833         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
127834         LONG_MAX): Remove.
127835         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127836         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
127837         (LOCALE_PARAM_PROTO): New macro.
127838         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
127839         (INTERNAL (strtol), strtol): Define with a prototype.
127840         (PARAMS): Remove.  All uses removed.
127841         * lib/tempname.c: Include <string.h> unconditionally.
127842         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
127843         * lib/xgethostname.c (main): Define with a prototype.
127844         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
127845         Include <stdlib.h> unconditionally.
127846         (calloc, malloc, realloc, free): Remove decls.
127847         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
127848         Include <stdlib.h> unconditionally.  Sort include file names.
127849         (strtod): Remove.
127850         (xstrtod): Define with a prototype.
127851         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
127852         (strtol, strtoul): Remove decls.
127854 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127856         More patches to assume C89 or better.
127857         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
127858         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
127859         string.h, memchr, STDC_HEADERS.
127861 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127863         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
127864         Include <stdlib.h>, <string.h> unconditionally.
127865         Remove now-unnecessary cast to char *.
127866         * lib/strnlen.c: Include <string.h> unconditionally.
127867         * lib/yesno.c (yesno): Define with a prototype.
127869 2003-09-11  Bruno Haible  <bruno@clisp.org>
127871         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
127873 2003-09-10  Jim Meyering  <jim@meyering.net>
127875         * lib/error.c: Correct indentation of cpp directives.
127877 2003-09-10  Bruno Haible  <bruno@clisp.org>
127879         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
127880         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
127881         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
127882         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
127883         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
127884         <stdlib.h> and <string.h> checks.
127885         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
127886         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
127888 2003-09-10  Bruno Haible  <bruno@clisp.org>
127890         * lib/strcspn.c: Include <string.h> unconditionally.
127891         * lib/strpbrk.c: Include <string.h> unconditionally.
127892         * lib/strstr.c: Include <string.h> unconditionally.
127893         * lib/unicodeio.c: Include <string.h> unconditionally.
127894         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
127895         * lib/unsetenv.c: Likewise.
127896         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
127897         * lib/yesno.c: Include <stdlib.h> unconditionally.
127898         (rpmatch): Add prototype.
127900 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127902         More patches to assume C89 or better.
127903         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
127904         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
127905         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
127906         or for string.h.
127907         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
127908         stdlib.h.
127909         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
127910         C headers.
127911         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
127912         string.h.
127913         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
127914         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
127915         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
127916         or for string.h.
127917         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
127918         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
127919         C headers.
127920         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
127921         memcpy.
127922         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
127923         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
127924         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
127925         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
127926         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
127927         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
127928         string.h, free.
127929         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
127930         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
127931         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
127932         C headers, or for string.h.
127933         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
127934         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
127935         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
127936         headers, memory.h, stdlib.h, string.h, strings.h.
127937         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
127938         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
127939         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
127940         strchr.
127941         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
127942         headers, memory.h, string.h.
127943         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
127944         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
127945         free.
127946         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
127947         headers.
127948         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
127949         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
127950         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
127951         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
127952         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
127954 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127956         More K&R removal.
127958         * lib/acosl.c (main): Use a prototype.
127959         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
127960         tanl.c: Likewise.
127962         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
127964         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
127965         (getopt, etopt_long, getopt_long_only, _getopt_internal)
127966         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
127967         with a prototype.
127968         * lib/getopt.c (const): Remove macro.
127969         Include <string.h> unconditionally.
127970         (my_index): Remove; all uses changed to strchr.
127971         (strlen): Remove decl.
127972         (exchange): Remove forward decl; no longer needed.
127973         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
127974         Define with prototype.
127975         * lib/getopt1.c (const): Remove macro.
127976         (getopt_long, getopt_long_only, main): Define with prototype.
127978         * lib/getugroups.c: Include <string.h> unconditionally.
127980         * lib/getusershell.c: Include <stdlib.h> unconditionally.
127981         (getusershell, setusershell, endusershell, readname, main):
127982         Define with prototypes.
127984         * lib/group-member.c: Include group-member.h first.
127985         Include <stdlib.h> unconditionally.
127987         * lib/hard-locale.c: Include hard-locale.h first.
127988         Include <stdlib.h>, <string.h> unconditionally.
127990         * lib/hash.c (free, malloc): Remove decls.
127991         Include <stdlib.h> unconditionally.
127993         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
127994         (getenv): Do not declare.
127996         * lib/idcache.c: Include <string.h> unconditionally.
127998         * lib/long-options.c: Include long-options.h first, to test interface.
127999         Include <stdlib.h> unconditionally.
128001         * lib/makepath.c: Include makepath.h first, to test interface.
128002         Include <stdlib.h> and <string.h> unconditionally.
128004         * lib/linebuffer.c: Include <stdlib.h>.
128005         (free): Remove decl.
128007         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
128008         stddef.h. rpl_malloc returns void *, not char *.
128009         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
128010         prototype.
128012         * lib/md5.h: Include <limits.h> unconditionally.
128013         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
128014         (__P): Remove; all uses removed.
128015         * lib/md5.c: Include "md5.h" first.
128016         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
128017         md5_buffer, md5_process_bytes, md5_process_block):
128018         Define with prototypes.
128019         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
128020         * lib/sha.c: Include "sha.h" first.
128021         Include <stdlib.h>, <string.h> unconditionally.
128023         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
128024         * lib/memcmp.c (__ptr_t): Likewise.
128025         * lib/memrchr.c (__ptr_t): Likewise.
128026         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
128027         Include <string.h> unconditionally.
128028         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
128029         * lib/memchr.c: Include <stdlib.h> unconditionally.
128030         * lib/memchr.c (LONG_MAX): Remove.
128031         * lib/memrchr.c (LONG_MAX): Likewise.
128032         * lib/memchr.c (__memchr): Define via a prototype.
128033         * lib/memrchr.c (__memrchr): Likewise.
128034         * lib/memcmp.c (__P): Remove, and remove all uses.
128035         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
128036         Remove forward decls; no longer needed.
128037         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
128038         Use types required by C89 in prototype.
128040         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
128041         * lib/savedir.c: Likewise.
128042         * lib/mkdir.c (free): Remove decl.
128043         * lib/rmdir.c (rmdir): Define with a prototype.
128044         * lib/savedir.c: Include savedir.h first, to test interface.
128046         * lib/mktime.c (STDC_HEADERS): Remove.
128047         Include <stdlib.h>, <string.h> unconditionally.
128049         * lib/modechange.c: Include <stdlib.h> unconditionally.
128050         (malloc): Remove decl.
128052         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
128053         (free): Remove decl.
128055         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
128056         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
128057         (This type really should be intptr_t, but that's a C99ism.)
128058         (_obstack_memcpy): Remove: all uses changed to memcpy.
128059         Include <string.h> unconditionally.
128060         (struct obstack): Assume __STDC__ for types of members
128061         chunkfun, freefun, extra_arg.
128062         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
128063         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
128064         obstack_begin, obstack_specify_allocation,
128065         obstack_specify_allocation_with_arg, obstack_chunkfun,
128066         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
128067         Remove unprototyped decls and the macros that use them.
128068         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
128069         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
128070         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
128071         (defined __STDC__ && __STDC__)]:
128072         Remove nonprototyped code.
128073         Include <stdlib.h> unconditionally.
128074         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
128075         _obstack_allocated_p, _obstack_free, obstack_free,
128076         _obstack_memory_used, print_and_abort):
128077         Define using prototypes.
128078         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
128079         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
128080         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
128081         obstack_next_free, obstack_object_size, obstack_room) [0]:
128082         Remove unused, unprototyped code.
128084         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
128086         * lib/physmem.c (physmem_total, physmem_available, main): Define
128087         with prototypes.
128089         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
128090         (main): Define with a prototype.
128092         * lib/posixver.c (getenv): Remove decl.
128094         * lib/putenv.c (malloc): Returns void *, not char *.
128095         Include <string.h> unconditionally.
128096         (strchr, memcpy, NULL): Do not define.
128098         * lib/readtokens.c: Include readtokens.h first, to test interface.
128099         Include <stdlib.h>, <string.h> unconditionally.
128100         (init_tokenbuffer): Define with a prototype.
128102         * lib/regex.c (PARAMS): Remove.  All uses removed.
128103         All uses of _RE_ARGS removed, too.
128104         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
128105         unconditionally.
128106         (bzero): Assume memset exists.
128107         (memcmp, memcpy, NULL): Remove.
128108         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
128109         char, or assignments to local vars of type signed char.
128110         (init_syntax_once, PREFIX(extract_number_and_incr),
128111         PREFIX(print_partial_compiled_pattern),
128112         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
128113         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
128114         PREFIX(regex_grow_registers), PREFIX(regex_compile),
128115         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
128116         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
128117         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
128118         wcs_compile_range, byte_compile_range, truncate_wchar,
128119         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
128120         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
128121         count_mbs_length, wcs_re_match_2_internal,
128122         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
128123         PREFIX(alt_match_null_string_p),
128124         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
128125         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
128126         regfree, PREFIX(extract_number)): Define with prototype.  Remove
128127         now-unnecessary declaration, if any.
128128         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
128129         regcomp, regexec):
128130         Remove now-unnecessary casts among pointer types.
128131         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
128133         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
128134         (free): Remove decl.
128136         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
128138         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
128139         (free): Remove decl.
128141         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
128142         * lib/xgetcwd.c: Likewise.
128144         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
128145         (free): Remove decl.
128147         * lib/strchrnul.c (strchrnul): Define with a prototype.
128148         Fix bug: c_in was not converted to char before searching.
128150         The following changes are not K&R related:
128152         * lib/group-member.h: Include <sys/types.h>, so that this file is
128153         self-contained.
128154         * lib/makepath.h: Likewise.
128156         * lib/getusershell.c (readname, default_index, line_size, readname):
128157         Use size_t, not int, for sizes.
128158         (readname): If the size overflows, report an error instead of
128159         looping forever.
128161 2003-09-09  Paul Eggert  <eggert@twinsun.com>
128163         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
128164         libc.
128166 2003-09-09  Paul Eggert  <eggert@twinsun.com>
128168         * README: New section: portability guidelines.
128170 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
128172         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
128173         C89 spec.
128175 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
128177         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
128179 2003-09-08  Paul Eggert  <eggert@twinsun.com>
128181         Assume C89 or better; remove K&R cruft.
128182         A few of these changes were first proposed by Derek Robert Price
128183         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
128185         * lib/addext.c: Include <string.h> unconditionally.
128186         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
128187         Don't declare getenv or malloc.
128189         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
128190         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
128191         (NULL): Remove.
128192         (find_stack_direction, alloca): Use prototypes.
128194         * lib/atexit.c (atexit): Define using a prototype.
128196         * lib/basename.c, dirname.c, stripslash.c:
128197         Include <string.h> unconditionally.
128199         * lib/bcopy.c: Include <stddef.h>.
128200         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
128202         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
128204         * lib/error.h (error, error_at_line, error_print_progname)
128205         [! (defined (__STDC__) && __STDC__)]: Remove decls.
128206         * lib/error.c: Include error.h first, to check interface.
128207         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
128208         (VA_START): Remove; all uses changeed to va_start.
128209         (exit, strerror): Remove decls.
128210         (error_print_progname): Prototype uncondionally.
128211         Don't include <errno.h>; no longer needed.
128212         (private_strerror): Remove.
128213         (error_tail): Always define.
128214         (error, error_at_line): Assume C89 or better; always use prototypes.
128215         * lib/fatal.c: Include "fatal.h" first, to test interface.
128216         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
128217         (VA_START): Remove; all uses changed to va_start.
128218         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
128219         this case.
128220         (exit): Remove decl.
128221         (fatal): Prototype unconditionally.  Assume va_start works.
128222         Abort at end, to pacify gcc.
128224         * lib/euidaccess.c (main): Define with a prototype.
128226         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
128228         * lib/exitfail.c: Include <stdlib.h> unconditionally.
128230         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
128231         prototypes.
128232         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
128233         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
128234         (getenv): Remove decl.
128235         (fnmatch): Define using a prototype.
128236         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
128237         (FCT): Define using a prototype.
128239         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
128241         * lib/gethostname.c: Include <stddef.h>.
128242         (gethostname): Define with prototype.  Length is size_t, not int.
128244 2003-09-08  Paul Eggert  <eggert@twinsun.com>
128246         Assume C89 or better; remove K&R cruft.
128247         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
128248         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
128249         string.h, getenv, malloc.
128250         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
128251         headers.
128252         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
128253         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
128254         do not check for strerror.
128255         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
128256         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
128257         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
128258         do not check for doprnt or vprintf.
128259         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
128260         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
128262 2003-09-08  Paul Eggert  <eggert@twinsun.com>
128264         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
128265         getversion.c should have been removed then, but was accidentally
128266         preserved.
128268         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
128269         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
128271 2003-09-08  Karl Berry  <karl@gnu.org>
128273         * config/config.sub, config.guess, srclistvars.sh: update from savannah
128274                 config, forget about prep.
128276         * config/depcomp, missing: update from automake.
128278 2003-09-07  Paul Eggert  <eggert@twinsun.com>
128280         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
128281         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
128283 2003-09-07  Paul Eggert  <eggert@twinsun.com>
128285         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
128286         copy_tm_result.  Bug reported by Simon Josefsson in
128287         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
128289 2003-09-06  Paul Eggert  <eggert@twinsun.com>
128291         * m4/time_r.m4: New file.
128292         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
128293         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
128294         is. Check for timegm declaration.
128295         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
128296         Do not check for gmtime_r.
128297         Replace mktime if __mktime_internal does not exist and if mktime
128298         hasn't been replaced already.
128300 2003-09-06  Paul Eggert  <eggert@twinsun.com>
128302         * lib/time_r.c, lib/time_r.h: New files.
128304         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
128305         __localtime_r.
128306         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
128307         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
128309         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
128310         __gmtime_r.
128311         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
128312         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
128313         Include <time_r.h>.
128315         * lib/timegm.c: Switch to glibc implementation, with the following
128316         changes:
128317         [defined HAVE_CONFIG_H]: Include <config.h>.
128318         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
128319         (__mktime_internal) [!defined _LIBC]: New decl.
128320         (__gmtime_r) [!defined _LIBC]: New macro and function.
128321         (timegm): Use a prototype, since gnulib assumes C89.
128322         Do not bother declaring tmp to be const, as it's not really usefu.
128323         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
128324         (timegm): Declare only if HAVE_DECL_TIMEGM.
128326 2003-09-06  Paul Eggert  <eggert@twinsun.com>
128328         * MODULES.html.sh (func_all_modules): Add time_r.
128329         * modules/time_r: New file.
128330         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
128331         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
128333 2003-09-03  Paul Eggert  <eggert@twinsun.com>
128335         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
128336         Bug reported by Lute Kamstra in
128337         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
128339         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
128340         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
128341         course with correspondingly smaller numbers for tomorrow and
128342         yesterday.  From Tadayoshi Funaba.  Originally installed into
128343         sh-utils on 1999-08-07, but the patch got lost (I guess during the
128344         coreutils merge?).
128346 2003-08-31  Simon Josefsson  <jas@extundo.com>
128348         * modules/timegm: New file.
128349         * MODULES.html.sh (func_all_modules): Add timegm.
128351 2003-08-31  Simon Josefsson  <jas@extundo.com>
128353         * m4/timegm.m4: New file.
128355 2003-08-31  Simon Josefsson  <jas@extundo.com>
128357         * lib/timegm.h: New file.
128358         * lib/timegm.c: New file.  Based on
128359         wget-1.8.2/src/http.c:mktime_from_utc.
128361 2003-08-31  Karl Berry  <karl@gnu.org>
128363         * lib/argp.h: update from libc.
128365 2003-08-28  Bruno Haible  <bruno@clisp.org>
128367         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
128368         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
128369         followed by '#define fnmatch fnmatch_posix' gives an error.
128371 2003-08-28  Bruno Haible  <bruno@clisp.org>
128373         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
128374         warning on QNX, which defines O_BINARY to 000000.
128376 2003-08-27  Jim Meyering  <jim@meyering.net>
128378         * m4/mkstemp.m4: Require that the system mkstemp be able to create
128379         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
128380         would fail after 32.  Reported by Danny Levinson.  Details here:
128381         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
128383 2003-08-24  Bruno Haible  <bruno@clisp.org>
128385         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
128386         MSVC7 <stdio.h> is included later.
128388 2003-08-22  Simon Josefsson  <jas@extundo.com>
128390         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
128392 2003-08-20  Karl Berry  <karl@gnu.org>
128394         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
128396 2003-08-20  Bruno Haible  <bruno@clisp.org>
128398         * modules/progname: New file.
128399         * MODULES.html.sh (func_all_modules): Add progname.
128401 2003-08-20  Bruno Haible  <bruno@clisp.org>
128403         * lib/progname.h: New file, from GNU gettext.
128404         * lib/progname.c: New file, from GNU gettext.
128405         * lib/progreloc.c: New file, from GNU gettext.
128407 2003-08-19  Jim Meyering  <jim@meyering.net>
128409         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
128410         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
128412 2003-08-19  Bruno Haible  <bruno@clisp.org>
128414         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
128415         more.
128417 2003-08-19  Bruno Haible  <bruno@clisp.org>
128419         * lib/xstrdup.c: Assume <string.h> exists.
128421 2003-08-18  Paul Eggert  <eggert@twinsun.com>
128423         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
128424         in makefile rules.
128426 2003-08-18  Jim Meyering  <jim@meyering.net>
128428         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
128429         * m4/lib-ld.m4: Likewise.
128431 2003-08-18  Jim Meyering  <jim@meyering.net>
128433         * lib/setenv.h: Indent nested cpp directive.
128434         * lib/vasnprintf.c: Remove trailing blanks.
128436 2003-08-17  Simon Josefsson  <jas@extundo.com>
128438         * modules/xstrndup: New file.
128439         * MODULES.html.sh (func_all_modules): Add xstrndup.
128441 2003-08-17  Simon Josefsson  <jas@extundo.com>
128443         * modules/argp: Fix autoconf macro name. Add more dependencies.
128445 2003-08-17  Simon Josefsson  <jas@extundo.com>
128447         * m4/xstrndup.m4: New file.
128449 2003-08-17  Simon Josefsson  <jas@extundo.com>
128451         * m4/argp.m4: New file.
128453 2003-08-17  Simon Josefsson  <jas@extundo.com>
128454             Bruno Haible  <bruno@clisp.org>
128456         * lib/xstrndup.h: New file.
128457         * lib/xstrndup.c: New file.
128459 2003-08-17  Bruno Haible  <bruno@clisp.org>
128461         * modules/strndup (Files, Include): Add lib/strndup.h.
128463 2003-08-17  Bruno Haible  <bruno@clisp.org>
128465         * modules/euidaccess (Files): Add lib/euidaccess.h.
128467 2003-08-17  Bruno Haible  <bruno@clisp.org>
128469         * lib/strndup.h: New file.
128471 2003-08-17  Bruno Haible  <bruno@clisp.org>
128473         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
128474         like AC_GNU_SOURCE.
128475         * modules/extensions (configure.ac): Comment out the invocation of
128476         gl_USE_SYSTEM_EXTENSIONS.
128478 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128480         Merges from coreutils, etc.
128481         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
128482         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
128483         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
128484         fixing a typo.
128485         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
128486         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
128488 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128490         Document merge from coreutils.
128491         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
128492         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
128493         * modules/utime: Add m4/utimes-null.m4.
128495 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128497         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
128498         space, undoing this 2003-08-12 change:
128499         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
128501 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128503         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
128504         strtoul.c from libc, undoing this 2003-08-12 change:
128505         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
128507 2003-08-16  Jim Meyering  <jim@meyering.net>
128509         Merges from coreutils.
128510         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
128511         prefix.  Adjust cache variables similarly.  Create 500 rather than
128512         just 300 files, to exercise bug on Darwin6.5, too.
128513         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
128514         $missing_dir.
128515         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
128516         AM_SYS_POSIX_TERMIOS.
128517         Reported by mkc@mathdogs.com.
128518         Also change use of $am_cv_sys_posix_termios
128519         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
128520         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
128521         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
128522         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
128523         in /proc/mounts until it finds one with matching device number.  This
128524         is unnecessary when the FILE argument *is* a mount point.  No stat call
128525         is necessary in that case.  So, disable the statvfs-testing code on
128526         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
128527         as RedHat bug# 84846.
128528         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
128529         to 1MB, so as not to render systems with no stack size limit (e.g.,
128530         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
128531         Include <unistd.h>.  On some systems,
128532         it is required for the definition of _SC_PAGESIZE.
128534 2003-08-16  Jim Meyering  <jim@meyering.net>
128536         Merge from coreutils.
128537         * lib/xstrtoimax.c: #else #if -> #elif.
128538         * lib/xstrtoumax.c: Likewise.
128540 2003-08-16  Jim Meyering  <jim@meyering.net>
128542         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
128543         * m4/utimes.m4: Removed.
128544         * m4/utimes-null.m4: Renamed from utimes.m4.
128546         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
128547         to 1MB, so as not to render systems with no stack size limit (e.g.,
128548         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
128549         Include <unistd.h>.  On some systems,
128550         it is required for the definition of _SC_PAGESIZE.
128552 2003-08-16  Jim Meyering  <jim@meyering.net>
128553         and Paul Eggert  <eggert@cs.ucla.edu>
128555         Merges from coreutils, etc.
128557         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
128558         using the latest version from cvs.  This avoids problems with #line
128559         directives using a vendor (Sun) compiler.
128560         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
128561         Don't set GETGROUPS_LIB here; now it's
128562         done via getgroups.m4's wrapper function.
128563         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
128564         rather than just in sh-util/configure.in, so that the
128565         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
128566         same.
128567         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
128568         AC_FUNC_GETLOADAVG where to find getloadavg.c.
128569         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
128570         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
128571         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
128572         Remove code that is now done by the newly-required macros.
128573         Append $(EXEEXT) to DF_PROG.
128574         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
128575         Do not invoke or require the following here,
128576         since prereq.m4 or some gnulib .m4 now does this for us:
128577         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
128578         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
128579         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
128580         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
128581         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
128582         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
128583         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
128584         AC_FUNC_OBSTACK.
128585         Do not replace the following functions, as this is now the job
128586         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
128587         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
128588         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
128589         atexit getpass, strdup, getpagesize.
128590         Replace 'raise'.
128591         Do not check for the following functions, as this is now the job
128592         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
128593         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
128594         setregid.
128595         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
128596         Check for sys/sysctl.h.
128597         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
128598         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
128599         of checking for ssize_t ourselves.
128601         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
128602         Require every macro that gnulib/modules/* suggests for us.
128603         (jm_PREREQ_ADDEXT): New macro.
128604         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
128605         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
128607         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
128608         (gl_PHYSMEM): Use it.
128609         Also check for `table' function.
128610         Check for new headers and functions.
128611         Add check for sys/sysmp.h.
128612         With suggestions from Kaveh Ghazi.
128613         Ignore headers that are present but cannot be compiled.  This
128614         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
128615         C 5.4.
128617 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128619         Document merge from coreutils.
128620         * modules/userspec: Depend on posixver.
128621         * modules/strftime: Depend on tzset.
128623 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128625         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
128626         rather than tab, after '#' in shell-script copyright notices.
128627         Suggested by Bruno Haible.
128629 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128631         * config/srclist-update: Use three spaces, rather than tab, after '#'
128632         in shell-script copyright notices.  Suggested by Bruno Haible.
128633         Remove unnecessary parenthesization in regular expression.
128635 2003-08-15  Jim Meyering  <jim@meyering.net>
128637         Merge from coreutils.
128638         * lib/xgethostname.c: Include <stdlib.h>.
128639         (xghostname): Don't exit for anything other than memory-related
128640         failure; just return NULL.
128641         * lib/userspec.c: Include "posixver.h".
128642         (parse_user_spec): Accept `.' as a separator only
128643         in pre-POSIX-200112 mode.
128644         * lib/strtoimax.c: Use #elif rather than #else #if.
128645         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
128646         Remove function, now that we can rely on a working tzset function.
128647         [!_LIBC]: Ensure that the required autoconf test has been run.
128648         [!defined _NL_CURRENT && HAVE_STRFTIME]:
128649         Use underlying_strftime for %r.
128650         * lib/sha.c: Merge in some clean-up and optimization changes from
128651         glibc.
128652         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
128653         Ensure that it is a multiple of 64.
128654         Rearrange loop exit tests so as to avoid performing an
128655         additional fread after encountering an error or EOF.
128656         * lib/realloc.c: Update copyright date.
128658 2003-08-15  Jim Meyering  <jim@meyering.net>
128659         and Paul Eggert  <eggert@twinsun.com>
128661         Merge from coreutils.
128662         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
128663         member but strut utmpx does not.  Needed for AIX 4.3.3.
128664         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
128666 2003-08-15  Jim Meyering  <jim@meyering.net>
128667         and Paul Eggert  <eggert@cs.ucla.edu>
128669         Merges from coreutils, etc.
128670         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
128671         Require gl_FUNC_TZSET_CLOBBER.
128672         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
128673         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
128674         members.
128676 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128678         Help the merge from coreutils.
128679         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
128680         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
128681         * m4/tzset.m4: Use it too.
128683 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128685         * modules/tzset: New file.
128687 2003-08-14  Jim Meyering  <jim@meyering.net>
128689         Merges from coreutils.
128690         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
128691         variable names, rather than @FNMATCH_H@.
128692         * modules/alloca: Likewise for $(ALLOCA_H).
128694         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
128695         the three copies of the literal target, `fnmatch.h'.
128696         * modules/alloca (alloca.h): Likewise.
128698 2003-08-14  Jim Meyering  <jim@meyering.net>
128700         Merge from coreutils.
128701         * m4/tzset.m4: New file.
128702         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
128703         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
128704         otherwise, AIX 5.1 systems would end up using the latter.
128705         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
128706         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
128707         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
128708         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
128710 2003-08-14  Jim Meyering  <jim@meyering.net>
128712         Merge from coreutils.
128713         * lib/obstack.h: Whitespace changes.
128714         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
128715         and xcalloc return values.
128716         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
128717         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
128718         hang on OSF/1 5.1 for DIR on both local and remote file systems.
128719         Reported by (and fix confirmed by) Nelson H. F. Beebe.
128720         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128721         error from mntctl.
128722         Use mntctl's return value to drive the entry-processing loop, since
128723         we can't rely on the value of the vmt_length member in the last
128724         entry.  On some systems doing so could result in exhausting
128725         virtual memory.  Based in part on a patch from Mike Jetzer.
128727 2003-08-14  Jim Meyering  <jim@meyering.net>
128728         and Paul Eggert  <eggert@twinsun.com>
128730         Merges from coreutils, plus other fixes.
128731         * lib/physmem.c: Merge in portability changes from gcc/libiberty
128732         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
128733         for credits and details.  Thanks to Kaveh Ghazi for helping
128734         to keep these files in sync.
128735         (ARRAY_SIZE): Define it.
128736         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
128737         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
128738         (memcasecmp): Don't assume size_t fits in unsigned int.
128739         Remove casts and duplicate code.
128740         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
128741         (memcpy): Remove definition.
128742         Merge in some clean-up and optimization changes from glibc.
128743         [BLOCKSIZE]: Move definition to top of file.
128744         Ensure that it is a multiple of 64.
128745         Rearrange loop exit tests so as to avoid performing an
128746         additional fread after encountering an error or EOF.
128747         * lib/md5.h (md5_uintptr): Define.
128748         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
128749         return to the initial working directory.  Preserve errno
128750         for caller.
128751         * lib/idcache.c: Include "xalloc.h".
128752         (xmalloc, xrealloc): Remove decls.
128753         (getuser): Remove casts no longer required in C89.
128754         * lib/human.c: Include stdio.h, for sprintf.
128755         * lib/group-member.c: Include "xalloc.h".
128756         (xmalloc, xrealloc): Remove decls.
128757         (get_group_info): Remove casts no longer required in C89.
128758         * lib/getusershell.c (readname): Remove casts no longer required in
128759         C89.
128760         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
128761         * lib/getline.c: Whitespace fix, from coreutils.
128763 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128765         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
128766         Check for isascii.
128768         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128769         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128770         Undo previous (whitespace-only) change.
128772 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128774         * lib/exclude.c: Include <ctype.h>
128775         (IN_CTYPE_DOMAIN): New macro.
128776         (is_space): New fn.
128777         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
128778         and empty lines.
128780         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128781         Undo previous (whitespace-only) change.
128783 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128785         * config/srclist-update: Change update back to the old behavior,
128786         leaving whitespace alone.  Use one 'sed' command rather than a
128787         pipeline.
128788         (fixlicense): Now a variable, not a function.
128789         (remove_trailing_blanks): Remove.
128790         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
128791         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128792         Undo previous (whitespace-only) change.
128794 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128796         Merge from coreutils.
128797         * modules/euidaccess: Add lib_SOURCES, include for new
128798         file euidaccess.h
128800 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128802         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128803         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128804         Normalize leading white space and remove trailing white space.
128806         Merge from coreutils
128807         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
128809         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
128810         0.12.1.  These files are now being upgraded automatically by
128811         ../config/srclist-update.
128813 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128815         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128816         Normalize leading white space and remove trailing white space.
128817         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
128818         notice, as per ../config/srclist-update.
128820         Merge from coreutils.
128821         * lib/euidaccess.h: New file.
128822         * lib/euidaccess.c: Include it.
128823         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
128824         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
128825         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
128827 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128829         * config/srclist-update: Add copyright notice.
128830         (remove_id_lines, remove_trailing_blanks): New constants.
128831         (fixfile): Use them to normalize spacing a bit in copied files.
128832         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128833         Normalize leading white space and remove trailing white space.
128835         * config/texinfo.tex: Sync with texinfo.
128837         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
128838         strtoul.c from libc, to merge coreutils whitespace changes.
128840         * config/srclist.txt: Get the following m4 files from gettext:
128841         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
128842         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
128843         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
128844         wint_t.m4.
128846 2003-08-12  Karl Berry  <karl@gnu.org>
128848         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
128849         been made.
128851 2003-08-11  Paul Eggert  <eggert@twinsun.com>
128853         * modules/gnu-source, m4/gnu-source.m4:
128854         Remove; we're assuming Autoconf 2.54 or later now.
128855         Suggested by Bruno Haible.
128856         * MODULES.html.sh (func_all_modules): Remove gnu-source.
128858 2003-08-11  Bruno Haible  <bruno@clisp.org>
128860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
128862 2003-08-11  Bruno Haible  <bruno@clisp.org>
128864         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
128865         (vasnprintf): Use it instead of wcslen.
128867 2003-08-11  Bruno Haible  <bruno@clisp.org>
128869         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
128870         value to ensure that _Bool promotes to int. Use #define for _Bool when
128871         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
128873 2003-08-10  Karl Berry  <karl@gnu.org>
128875         * lib/regex.h: update from libc (whitespace fix).
128877 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128879         Merge some files from coreutils.  These changes were
128880         originally made by Jim Meyering.
128881         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
128882         many older Unixes require this.
128883         * lib/alloca.c (alloca): Remove cast to argument of free;
128884         no longer needed in C89.
128885         * lib/alloca_.h, regex.h: Fix white space to match
128886         what GNU indent does.
128888 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128890         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
128891         apparently Emacs's Unicode mode got confused before my 2003-08-05
128892         checkin.
128894 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128896         * m4/extensions.m4: New file.
128897         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
128898         Require gl_USE_SYSTEM_EXTENSIONS.
128899         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
128900         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
128902 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128904         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
128905         * modules/extensions, modules/gnu-source: New files.
128906         * modules/timespec, modules/unlocked-io: Depend on extensions.
128908 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128910         * modules/restrict: New file.
128911         * MODULES.html.sh (func_all_modules): Add restrict.
128912         * modules/regex: Depend on restrict.
128914 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128916         * m4/restrict.m4: New file.
128917         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
128919 2003-08-07  Bruno Haible  <bruno@clisp.org>
128921         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
128922         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
128924 2003-08-07  Bruno Haible  <bruno@clisp.org>
128926         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
128927         makes the module 'getndelim2' compatible with the module 'getline'.
128929 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128931         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
128932         byte with "\201" to avoid glitches when editing that source file
128933         with multi-gnome-terminal.
128935 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128937         * lib/bumpalloc.h: Remove.
128939 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128941         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
128942         * modules/bumpalloc: Remove.
128944 2003-08-04  Paul Eggert  <eggert@twinsun.com>
128946         * lib/getloadavg.c: Change copyright notice and spacing to conform to
128947         GNU coding style.
128949         Merge from coreutils.
128950         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
128951         1. From glibc.
128952         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
128953         from Karl Berry, implemented by Jim Meyering.
128954         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
128955         from Dmitry V. Levin.
128956         Remove anachronistic cast of xrealloc.
128957         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
128958         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
128959         type. Otherwise, it wouldn't compile with at least /bin/cc on
128960         ymp-cray-unicos9.0.2.X.
128961         Combine two mostly-identical uses of alloca into one.
128962         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
128964 2003-08-04  Dave Love  <d.love@dl.ac.uk>
128966         [From Emacs.]
128968         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
128969         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
128970         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
128971         obsolete NLIST_NAME_UNION.
128972         [__GNU__]: Undef BSD and FSCALE.
128973         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
128975 2003-08-03  Paul Eggert  <eggert@twinsun.com>
128977         * lib/stdbool_.h (_Bool): Make it signed char, instead of
128978         an enum type, so that it's guaranteed to promote to int.  See:
128979         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
128981 2003-08-03  Karl Berry  <karl@gnu.org>
128983         * config/depcomp: update from automake.
128985 2003-07-31  Paul Eggert  <eggert@twinsun.com>
128987         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
128988         (strerror): Don't assume that a printable int fits in 14 bytes.
128990 2003-07-31  Bruno Haible  <bruno@clisp.org>
128992         * modules/getpass-gnu: New file.
128993         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
128995 2003-07-31  Bruno Haible  <bruno@clisp.org>
128997         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
128999 2003-07-24  Karl Berry  <karl@gnu.org>
129001         * config/missing: update from automake.
129003 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
129004             Bruno Haible  <bruno@clisp.org>
129006         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
129007         * lib/getline.c (getline, getdelim): Likewise.
129008         Remove _GNU_SOURCE define; now it's defined in config.h through
129009         m4/getline.m4.
129011 2003-07-23  Karl Berry  <karl@gnu.org>
129013         * config/config.sub: update from prep.
129015 2003-07-22  Paul Eggert  <eggert@twinsun.com>
129017         * modules/xalloc (Depends-on): Add exitfail.
129018         * modules/xmemcoll: Likewise.
129020 2003-07-22  Paul Eggert  <eggert@twinsun.com>
129022         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
129023         over-parenthesization in macros.
129025         Sync with coreutils.
129027         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
129028         required by C99.
129030         Use `exit_failure' for xalloc and xmemcoll instead of their own
129031         private exit-failure variables.
129032         * lib/xalloc.h (xalloc_exit_failure): Remove.
129033         * lib/xmalloc.c: Likewise.  Include exitfail.h.
129034         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
129035         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
129036         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
129037         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
129039 2003-07-20  Jim Meyering  <jim@meyering.net>
129041         * modules/closeout (Depends-on): Add exitfail.
129042         Suggestion from Bruno Haible.
129044 2003-07-19  Karl Berry  <karl@gnu.org>
129046         * config/config.sub: update from prep.
129048 2003-07-18  Paul Eggert  <eggert@twinsun.com>
129050         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
129051         Remove.
129052         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
129053         to test that it can stand by itself.  Include "exitfail.h".
129054         Clients should set exit_failure instead.
129055         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
129057 2003-07-18  Bruno Haible  <bruno@clisp.org>
129059         * modules/getndelim2: New file.
129060         * modules/getline: Share files with module getndelim2.
129061         * modules/getnline: Depend on getndelim2 instead of sharing files with
129062         it. Add getnline.c to lib_SOURCES.
129063         * MODULES.html.sh (func_all_modules): Add getndelim2.
129065 2003-07-18  Bruno Haible  <bruno@clisp.org>
129067         * m4/getndelim2.m4: New file.
129068         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
129069         invoke gl_PREREQ_GETNDELIM2.
129070         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
129071         gl_PREREQ_GETNDELIM2.
129072         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
129073         gl_GETNDELIM2.
129075 2003-07-18  Bruno Haible  <bruno@clisp.org>
129077         * lib/getndelim2.h: New file.
129078         * lib/getndelim2.c: Make into a module of its own. Include config.h,
129079         getndelim2.h.
129080         (getndelim2): Make non-static. Change return type to ssize_t.
129081         * lib/getline.h: Change argument names.
129082         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
129083         * lib/getnline.c: Include getndelim2.h.
129085 2003-07-18  Andreas Schwab  <schwab@suse.de>
129087         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
129089 2003-07-17  Karl Berry  <karl@gnu.org>
129091         * config/config.sub: update from prep.
129093 2003-07-17  Bruno Haible  <bruno@clisp.org>
129095         * modules/getnline: New file.
129096         * modules/getline: Add lib/getndelim2.c to source file list.
129097         * MODULES.html.sh (func_all_modules): Add getnline.
129099 2003-07-17  Bruno Haible  <bruno@clisp.org>
129101         * m4/getnline.m4: New file.
129103 2003-07-17  Bruno Haible  <bruno@clisp.org>
129105         * m4/Makefile.am.in: Remove file.
129106         * m4/Makefile.am: Remove file.
129107         * m4/Makefile.in: Remove file.
129109 2003-07-17  Bruno Haible  <bruno@clisp.org>
129111         * lib/getnline.h: New file.
129112         * lib/getnline.c: New file.
129113         * lib/getndelim2.c: New file, extracted from getline.c.
129114         (getndelim2): Renamed from getdelim2, with added nmax argument.
129115         * lib/getline.c: Include getndelim2.c.
129116         (getdelim2): Moved out to getndelim2.c.
129117         (getline, getdelim): Update.
129119 2003-07-17  Bruno Haible  <bruno@clisp.org>
129121         * lib/Makefile.am: Remove file.
129122         * lib/Makefile.in: Remove file.
129124 2003-07-17  Bruno Haible  <bruno@clisp.org>
129126         * configure.in: Remove file.
129127         * Makefile.in: Remove file.
129129 2003-07-17  Bruno Haible  <bruno@clisp.org>
129131         * MODULES.html.sh: Put the </BODY> right before </HTML>.
129133 2003-07-16  Karl Berry  <karl@gnu.org>
129135         * config/srclist-update: was running fixlicense twice, which caused
129136                 texinfo.tex to be nullified for some reason.  Simplify,
129137                 $gplsrc is no longer needed as far as I can see?
129139 2003-07-16  Jim Meyering  <jim@meyering.net>
129141         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
129143 2003-07-15  Paul Eggert  <eggert@twinsun.com>
129145         * config/srclist.txt: Get the following files from gettext-runtime/intl
129146         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
129147         ref-del.sin.  From Bruno Haible.
129148         * config/srclist-update (fixfile): Change grep pattern again, since the
129149         previous fix didn't work (there was another trailing $).  Use
129150         '[$]' to escape the $s.
129152 2003-07-15  Karl Berry  <karl@gnu.org>
129154         * lib/vasnprintf.c: update from gettext.
129156 2003-07-15  Karl Berry  <karl@gnu.org>
129158         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
129159         gets expanded when surrounded by '$'.
129161 2003-07-15  Jim Meyering  <jim@meyering.net>
129163         * modules/save-cwd: Don't depend on error.  From Derek Price.
129165 2003-07-15  Jim Meyering  <jim@meyering.net>
129167         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
129169 2003-07-14  Simon Josefsson  <jas@extundo.com>
129171         * modules/mempcpy: New file.
129172         * MODULES.html.sh (func_all_modules): Add mempcpy.
129174 2003-07-14  Simon Josefsson  <jas@extundo.com>
129176         * m4/mempcpy.m4: New file.
129178 2003-07-14  Simon Josefsson  <jas@extundo.com>
129180         * lib/mempcpy.h: New file.
129181         * lib/mempcpy.c: New file.
129183 2003-07-14  Paul Eggert  <eggert@twinsun.com>
129185         * modules/getdate, modules/posixtm: Depend on mktime.
129187 2003-07-14  Paul Eggert  <eggert@twinsun.com>
129189         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
129190         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
129191         unicodeio.c, unicodeio.h, unlocked-io.h:
129192         Switch from LGPL to GPL.
129194 2003-07-14  Paul Eggert  <eggert@twinsun.com>
129196         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
129197         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
129198         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
129199         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
129200         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
129201         updated automatically by ../config/srclist-update.  This changes
129202         their license from LPGL to GPL.
129204 2003-07-14  Paul Eggert  <eggert@twinsun.com>
129206         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
129207         assumed to refer to the root of the most recent stable gettext version.
129208         * config/srclistvars.sh: Add defaults for eggert.
129209         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
129210         Match "This program" as well as "The program".  This is needed
129211         for gettext.
129213 2003-07-14  Jim Meyering  <jim@meyering.net>
129215         Don't emit diagnostics.  Let callers do that.
129216         * lib/save-cwd.c: Don't include "error.h".
129217         (save_cwd): Don't call error.  Ensure that errno is valid
129218         when returning nonzero.
129220         * lib/save-cwd.h (restore_cwd): Update prototype.
129221         * lib/save-cwd.c (restore_cwd): Remove two parameters.
129222         Simplify.  Don't call error upon failure.  Let callers do that.
129223         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
129224         when auditing is enabled.  But don't bother updating the #if.
129226 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
129228         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
129229         it breaks C++ compilation.
129230         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
129232 2003-07-10  Simon Josefsson  <jas@extundo.com>
129234         * modules/strchrnul (Makefile.am): Add strchrnul.h.
129236 2003-07-10  Jim Meyering  <jim@meyering.net>
129238         * m4/clock_time.m4: Remove trailing blank.
129239         * m4/intmax_t.m4: Likewise.
129241 2003-07-10  Jim Meyering  <jim@meyering.net>
129243         * lib/vasnprintf.c: Remove trailing blanks.
129244         Make cpp indentation consistent.
129246 2003-07-09  Paul Eggert  <eggert@twinsun.com>
129248         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
129249         posixver.c, strftime.c, strnlen.c, strverscmp.c:
129250         Switch from LGPL to GPL.
129252 2003-07-09  Paul Eggert  <eggert@twinsun.com>
129254         * config/srclist.txt: Sort sublists.  Add
129255         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
129256         that differ from gnulib for one reason or another; we'd like this list
129257         to be smaller but for now let's document what we have.
129259 2003-07-08  Paul Eggert  <eggert@twinsun.com>
129261         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
129262         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
129263         and sweeter "eval x=$x".
129264         * config/srclist.txt: Get lib/argp* from glibc.
129266 2003-07-07  Paul Eggert  <eggert@twinsun.com>
129268         * lib/mktime.c: Fix some boundary cases and remove need for floating
129269         point.
129271         Issue a compile-time diagnostic if time_t is floating point, or if
129272         two's complement arithmetic is not in effect, or if arithmetic
129273         right shift does not propagate the sign.  These assumptions were
129274         all in the original code but they weren't checked.
129276         (TIME_T_MIDPOINT, verify): New macros.
129277         (__isleap): Remove; it has integer overflow problems.
129278         (leapyear): New function, without those problems.
129279         (ydhms_tm_diff): Remove; splitting into two parts.
129280         (ydhms_diff): New function, containing the arithmetic part of
129281         the old ydhms_tm_diff function.  Issue a compile-time
129282         diagnostic if we are not using C99 integer division.
129283         Avoid casts when possible.
129284         (guess_time_tm): New function, containing the checking part of
129285         the old ydhms_tm_diff function.  Return the new value, rather than
129286         the difference between it and the old.  Accept a new argument T
129287         so that *T specifies the old value.  Check for overflow in the result.
129289         (__mktime_internal): Use a time_t offset, not a long int offset.
129290         This undoes the 2003-06-04 change, which is no longer needed now
129291         that we have better overflow checking.
129292         (localtime_offset): Likewise.
129294         (__mktime_internal): Avoid harmful overflow on hosts where time_t
129295         and long are 64-bit but int is only 32-bit.
129296         (ydhms_diff): Use long int to store year1 and yday1.
129297         Issue a compile-time diagnostic if long int is not wide enough.
129299         (__mktime_internal): Use long int to store adjusted year and yday.
129300         Use plain C rather than preprocessor commands, if that doesn't
129301         affect efficiency.
129302         Check for overflow (and try to repair) after each probe
129303         rather than checking only at the very end.  This avoids some bugs
129304         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
129305         does not equal GMT offset at maximum time).
129306         Use integer to check for overflow rather than floating point; this
129307         is more portable to non-IEEE hosts, and is a tad faster.
129308         When we detect that we are oscillating between two values,
129309         don't check whether tm_isdst has the requested value, since
129310         we already know the answer.  When tm_isdst has the wrong value,
129311         use a different heuristic to find the right one, based on the
129312         extreme values actually observed in practice in tz2003a,
129313         rather than the (overly optimistic) "previous 3 calendar quarters".
129315         (not_equal_tm, print_tm, check_result): Use "const T" rather than
129316         "T const" to accommodate glibc style.
129317         (check_result): Use less-confusing report format.  "long" -> "long int.
129318         (main): Likewise.
129319         Don't loop if the iteration overflows time_t.
129320         Allow a negative step in the iteration.
129322 2003-07-06  Karl Berry  <karl@gnu.org>
129324         * config/depcomp: update from automake.
129325         * config/config.sub: update from prep.
129327 2003-07-03  Karl Berry  <karl@gnu.org>
129329         * config/config.guess: update from prep.
129331 2003-07-01  Paul Eggert  <eggert@twinsun.com>
129333         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
129334         xreadlink.c now includes it unconditionally.
129336 2003-07-01  Paul Eggert  <eggert@twinsun.com>
129338         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
129339         having it depend on HAVE_SYS_TYPES_H.
129341 2003-07-01  Bruno Haible  <bruno@clisp.org>
129343         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
129344         <sys/types.h> should be sufficient.
129345         Reported by Paul Eggert.
129347 2003-06-26  Karl Berry  <karl@gnu.org>
129349         * config/depcomp: update from automake.
129351 2003-06-26  Bruno Haible  <bruno@clisp.org>
129353         * modules/human: Depend on module stdbool.
129355 2003-06-25  Bruno Haible  <bruno@clisp.org>
129357         * modules/readlink: New file.
129358         * modules/xreadlink: Depend on it.
129359         * MODULES.html.sh (func_all_modules): Add readlink.
129361 2003-06-25  Bruno Haible  <bruno@clisp.org>
129363         * m4/readlink.m4: New file.
129365 2003-06-25  Bruno Haible  <bruno@clisp.org>
129367         * lib/readlink.c: New file.
129369 2003-06-22  Karl Berry  <karl@gnu.org>
129371         * config/srclist.txt: update mkinstalldirs from automake.
129372         * config/mkinstalldirs: update.
129374 2003-06-22  Bruno Haible  <bruno@clisp.org>
129376         Portability to mingw32.
129377         * m4/ssize_t.m4: New file, from GNU gettext.
129378         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
129379         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
129381 2003-06-22  Bruno Haible  <bruno@clisp.org>
129383         * modules/safe-read: Add m4/ssize_t.m4.
129384         * modules/xreadlink: Add m4/ssize_t.m4.
129386 2003-06-20  Bruno Haible  <bruno@clisp.org>
129388         Assume C89, so PARAMS isn't needed.
129389         * lib/unicodeio.h (PARAMS): Remove.
129390         * lib/unicodeio.c: Don't use PARAMS.
129392 2003-06-18  Karl Berry  <karl@gnu.org>
129394         * config/config.{guess,sub}: update from prep.
129396 2003-06-18  Jim Meyering  <jim@meyering.net>
129398         Merge changes from coreutils.
129399         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
129400         Remove explicit declarations of xmalloc and realloc.
129401         Include xalloc.h.
129402         (read_utmp): Remove anachronistic cast of xmalloc.
129404 2003-06-17  Paul Eggert  <eggert@twinsun.com>
129406         Assume C89, so PARAMS isn't needed.
129407         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
129408         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
129409         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
129410         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
129411         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
129412         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
129413         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
129414         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
129415         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
129416         lib/xstrtod.h, lib/xstrtol.h: Likewise.
129417         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
129418         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
129419         no longer needed. Anyway, config.h should always be included before any
129420         other file.
129422 2003-06-11  Simon Josefsson  <jas@extundo.com>
129424         * modules/sysexits: New file.
129425         * MODULES.html.sh (func_all_modules): Add sysexits.
129427 2003-06-11  Simon Josefsson  <jas@extundo.com>
129429         * lib/sysexit_.h: New file.
129431 2003-06-11  Derek Price  <derek@ximbiot.com>
129433         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
129434         necessary.
129436 2003-06-11  Bruno Haible  <bruno@clisp.org>
129438         * m4/sysexits.m4: New file.
129440 2003-06-10  Simon Josefsson  <jas@extundo.com>
129442         * lib/argp.h: New file, from glibc.
129443         * lib/argp-ba.c: New file, from glibc.
129444         * lib/argp-eexst.c: New file, from glibc.
129445         * lib/argp-fmtstream.c: New file, from glibc.
129446         * lib/argp-fmtstream.h: New file, from glibc.
129447         * lib/argp-fs-xinl.c: New file, from glibc.
129448         * lib/argp-help.c: New file, from glibc.
129449         * lib/argp-namefrob.h: New file, from glibc.
129450         * lib/argp-parse.c: New file, from glibc.
129451         * lib/argp-pv.c: New file, from glibc.
129452         * lib/argp-pvh.c: New file, from glibc.
129453         * lib/argp-xinl.c: New file, from glibc.
129455 2003-06-10  Simon Josefsson  <jas@extundo.com>
129457         * modules/strchrnul: New file.
129459 2003-06-10  Simon Josefsson  <jas@extundo.com>
129461         * modules/argp: New file.
129463 2003-06-10  Simon Josefsson  <jas@extundo.com>
129465         * m4/strchrnul.m4: New file.
129467 2003-06-10  Simon Josefsson  <jas@extundo.com>
129469         * lib/strchrnul.h: New file.
129470         * lib/strchrnul.c: New file.
129472 2003-06-10  Bruno Haible  <bruno@clisp.org>
129474         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
129476 2003-06-07  Karl Berry  <karl@gnu.org>
129478         * config/config.{guess,sub}: update from prep.
129480 2003-06-07  Jim Meyering  <jim@meyering.net>
129482         * modules/strtod: Use $(...) notation, not @...@ for
129483         AC_REPLACE'd variables.
129484         * modules/localcharset: Likewise.
129486 2003-06-07  Jim Meyering  <jim@meyering.net>
129488         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
129489         in place of my name in the copyright comment.
129490         Remove definition and uses of __P.
129492         From coreutils.
129493         * lib/stat.c: Don't declare xmalloc explicitly.
129494         Instead, include "xalloc.h".
129495         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
129496         xrealloc, and xcalloc return values.
129497         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
129498         Improve comment.
129499         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
129501 2003-06-07  Bruno Haible  <bruno@clisp.org>
129503         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
129504         avoid AC_CONFIG_LINKS.
129505         * modules/fnmatch (Makefile.am): Use explicit creation rule for
129506         fnmatch.h, to avoid AC_CONFIG_LINKS.
129507         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
129509 2003-06-07  Bruno Haible  <bruno@clisp.org>
129511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
129512         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
129513         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
129514         directory.
129515         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
129516         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
129517         directory.
129519 2003-06-06  Jim Meyering  <jim@meyering.net>
129521         Merge from coreutils.
129522         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
129523         Consolidate declarations and initializations of *_base* locals.
129525         Merge from coreutils.
129526         This avoids a core dump on systems without GNU putenv,
129527         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
129528         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
129529         (unsetenv): New static function, from GNU libc.
129530         (rpl_putenv): Use it.
129532         * lib/modechange.c: Remove trailing blanks.
129534         Merge from coreutils.
129535         * lib/fsusage.c: Remove declaration of statfs.
129536         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
129538         * lib/posixtm.c: Include <stdbool.h> unconditionally.
129540 2003-06-06  Jim Meyering  <jim@meyering.net>
129542         * lib/stdbool_.h: Renamed from stdbool.h.in.
129544 2003-06-06  Jim Meyering  <jim@meyering.net>
129545             Bruno Haible  <bruno@clisp.org>
129547         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
129548         Adjust Makefile.am snippet not to redirect directly to target.
129549         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
129551 2003-06-05  Paul Eggert  <eggert@twinsun.com>
129553         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
129554         mismatch, look in future quarters as well as past.  This fixes a
129555         bug when processing fall-backwards gaps immediately after a long
129556         period of daylight-saving time.
129558         * lib/mktime.c: Assume freestanding C89 or better.
129559         (HAVE_LIMITS_H): Remove.  Assume it's 1.
129560         (__P): Remove; not used.
129561         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
129562         (mktime, not_equal_tm, print_tm, check_result,
129563         main): Use prototypes.  Use const * where appropriate.
129564         (main): Fix typo in testing code that uncovered by above changes.
129565         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
129567 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129569         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
129570         locale.h, localeconv.  This merges changes from coreutils.
129572         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
129573         It can be removed after the next Autoconf is released.
129574         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
129575         needed.
129577 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129579         * lib/mktime.c: Fix Debian bug 177940
129580         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
129581         (localtime_offset): Now long int, not time_t, because we want it
129582         to be guaranteed to be signed.  All uses changed.
129583         (__mktime_internal): If overflow would occur when adding offset,
129584         don't add it.
129586         Merge 'human' changes from coreutils.  Rewrite to support
129587         locale-specific notations like thousands separators.
129588         * lib/human.c: Simplify authorship notice.
129589         Include human.h immediately after config.h.
129590         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
129591         <limits.h>: Do not include, since human.h does.
129592         (SIZE_MAX, UINTMAX_MAX): New macros.
129593         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
129594         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
129595         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
129596         (power_letter): Renamed from suffixes.
129597         (generate_suffix_backwards): Remove.
129598         (adjust_value): Now takes int style (because of human.h changes)
129599         and long double value (for greater precision on some platforms).
129600         (group_number): New function.
129601         (human_readable): Use it.  Use integer options, not enum.
129602         Put the options before the sizes in the arg list.
129603         Support all the new options.
129604         The old human_readable function has been removed;
129605         use inttostr.h instead.
129606         (human_readable, default_block_size, humblock):
129607         Use uintmax_t, not int, for block sizes.
129608         (human_readable_inexact, block_size_types): Remove.
129609         (block_size_opts): New constant.
129610         (human_options): Renamed from human_block_size, with new signature
129611         that allows block sizes up to UINTMAX_MAX.  All callers changed.
129612         * lib/human.h: Add copyright and authorship notice.
129613         Include <limits.h> and <stdbool.h> unconditionally.
129614         (PARAMS): Remove.  All uses removed.
129615         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
129616         (enum human_inexact_style): Remove tag; now a nameless enum.
129617         (human_floor, human_ceiling, human_round_to_even): Now have
129618         values 2, 0, 1 rather than -1, 1, 0.
129619         (human_group_digits, human_suppress_point_zero, human_autoscale,
129620         human_base_1024, human_SI, human_B): New constants.
129621         (human_readable_inexact, human_block_size): Remove.
129622         (human_readable): Size args are now uintmax_t, not int.
129623         (human_options): New decl.
129625         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
129626         unnecessary now that we assume C89 or better.  This change
129627         imported from coreutils.
129629         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129630         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
129631         in the 2003-05-30 sync from glibc.
129633         .h files should stand alone, but we shouldn't include <sys/types.h>
129634         if we can get away with just <stddef.h>.
129636         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
129637         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
129638         rather than <sys/types.h>, as we merely need size_t.
129639         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
129640         to get size_t.
129641         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
129642         Include <stdio.h>, to get FILE.
129643         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
129644         memcasecmp.h has included <stddef.h> and all we need is size_t.
129645         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
129646         our interface, instead of including <sys/types.h>
129648 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129650         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
129651         now, as glibc mktime is buggy on non-glibc systems.
129653 2003-06-03  Karl Berry  <karl@gnu.org>
129655         * config/config.sub: update from prep.
129657 2003-06-02  Paul Eggert  <eggert@twinsun.com>
129659         [from coreutils]
129660         Fix some minor time-related bugs with POSIX time arguments.
129661         Some valid time stamps were being rejected (notably -1, and
129662         time stamps before 1900 on 64-bit hosts).  And some invalid
129663         time stamps were being accepted, e.g. September 31.
129665         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
129666         that we can return (time_t) -1 successfully.
129667         * lib/posixtm.c: Likewise.
129668         [HAVE_STDBOOL_H]: Include <stdbool.h>.
129669         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
129670         (t): Remove static var.
129671         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
129672         of static var.  All uses changed.
129673         (year): Do not reject years before 1900; they can occur with
129674         64-bit time_t.
129675         (posix_time_parse): Do not check for out-of-range components;
129676         that is now the caller's responsibility, since our checks were
129677         only approximations.
129678         (posixtime): Use mktime to check for out-of-range components,
129679         since it knows them exactly.
129680         If mktime returns (time_t) -1, check whether an error actually occurred
129681         by invoking localtime on -1.
129682         (main) [TEST_POSIXTIME]: Check for input data errors, and report
129683         posixtime failures better.
129684         Improve the test data (in comments only).
129686 2003-06-02  Karl Berry  <karl@gnu.org>
129688         * config/mkinstalldirs (version): new variable.
129689         (--version): new option.
129690         (usage): improve message.
129692 2003-05-30  Karl Berry  <karl@gnu.org>
129694         * lib/mktime.c: update from libc.
129696 2003-05-30  Bruno Haible  <bruno@clisp.org>
129698         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
129699         * config/config.rpath: Upgrade to gettext-0.12.1.
129701 2003-05-30  Bruno Haible  <bruno@clisp.org>
129703         * m4/gettext.m4: Upgrade to gettext-0.12.1.
129704         * m4/nls.m4: New file, from gettext-0.12.1.
129705         * m4/po.m4: New file, from gettext-0.12.1.
129706         * m4/progtest.m4: Upgrade to gettext-0.12.1.
129708 2003-05-30  Bruno Haible  <bruno@clisp.org>
129710         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
129711         * lib/localcharset.h: Likewise.
129712         * lib/localcharset.c: Likewise.
129714 2003-05-29  Karl Berry  <karl@gnu.org>
129716         * config/config.rpath: update from gettext.
129718 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129720         Assume the headers required for C89 freestanding compilers.
129721         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
129722         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
129723         * m4/human.m4 (gl_HUMAN): Likewise.
129724         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
129725         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
129726         * m4/userspec.m4 (gl_USERSPEC): Likewise.
129727         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
129728         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
129729         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
129731 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129733         Assume the headers required for C89 freestanding compilers.
129734         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
129735         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
129736         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
129737         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
129738         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
129739         define, since <limits.h> is guaranteed to do that.
129740         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
129741         * lib/exclude.c: Include <stdbool.h> unconditionally.
129742         * lib/tempname.c: Include <stddef.h> unconditionally.
129743         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
129744         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
129745         <stddef.h> does that.
129746         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
129747         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
129748         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
129749         needed.
129750         * lib/xstrtol.c: Likewise.
129751         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
129752         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
129754         * lib/addext.c (addext): Use assignment rather than cast, to avoid
129755         warnings on some platforms.
129757         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129758         arbitrarily.
129760 2003-05-26  Jim Meyering  <jim@meyering.net>
129762         Merge in a change from coreutils:
129763         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
129764         that is guaranteed to be `no'.  Use `no_such_member' to indicate
129765         that condition, rather than `-1' which is slightly misleading.
129766         Change the name of the cache variable to have the gl_ prefix.
129767         Prompted by a patch from Richard Dawe for DJGPP.
129769 2003-05-24  Karl Berry  <karl@gnu.org>
129771         * config/config.guess: update from prep.
129773 2003-05-22  Karl Berry  <karl@gnu.org>
129775         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
129777 2003-05-20  Karl Berry  <karl@gnu.org>
129779         * config/config.guess: update from prep.
129781 2003-05-18  Karl Berry  <karl@gnu.org>
129783         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
129784         might actually be set by the user.
129786         * config/depcomp, install-sh, mdate-sh: update from automake.
129788 2003-05-17  Bruno Haible  <bruno@clisp.org>
129790         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
129791         invalid expansion for AC_EGREP_CPP.
129792         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
129793         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
129794         Suggested by Akim Demaille <akim@epita.fr> in
129795         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
129797 2003-05-12  Jim Meyering  <jim@meyering.net>
129799         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
129800         the space-padded-by-default conversion specifiers, %e, %k, %l.
129802 2003-05-12  Bruno Haible  <bruno@clisp.org>
129804         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
129805         the string is longer than 4 KB.
129807 2003-05-11  Karl Berry  <karl@gnu.org>
129809         * config/config.{guess,sub}: update from prep.
129811 2003-05-09  Bruno Haible  <bruno@clisp.org>
129813         * modules/error: Add m4/strerror_r.m4 to file list.
129815 2003-05-03  Bruno Haible  <bruno@clisp.org>
129817         Upgrade to Unicode-4.0.
129818         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
129819         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
129820         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
129821         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
129822         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
129823         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
129824         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
129825         Change width of U+E0100..U+E01EF from 1 to 0.
129827 2003-04-25  Jim Meyering  <jim@meyering.net>
129829         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
129830         of type size_t, not int.
129832 2003-04-25  Bruno Haible  <bruno@clisp.org>
129834         * lib/copy-file.c: Include <stddef.h>, for size_t.
129836 2003-04-21  Paul Eggert  <eggert@twinsun.com>
129838         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
129839         code which expansion is under static control.  Patch imported from
129840         Akim Demaille's patch to Bison; see
129841         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
129843 2003-04-14  Bruno Haible  <bruno@clisp.org>
129845         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
129847 2003-04-11  Jim Meyering  <jim@meyering.net>
129849         Merge changes from Coreutils.
129851         2003-03-22  Jim Meyering  <jim@meyering.net>
129853         * lib/strftime.c (widen): Cast alloca return value to proper type.
129855         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
129857         From GNU libc.
129858         * lib/strftime.c (my_strftime): Handle very large width
129859         specifications for numeric values correctly.  Improve checks for
129860         overflow.
129862         2003-01-19  Jim Meyering  <jim@meyering.net>
129864         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
129865         definitions.
129866         (nl_get_alt_digit) [! defined my_strftime]: Define.
129867         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
129868         _nl_get_alt_digit and _nl_get_walt_digit.
129870         * lib/strftime.c (my_strftime): Merge in locale-related changes from
129871         libc. These changes have no effect outside of _LIBC.
129873 2003-04-10  Bruno Haible  <bruno@clisp.org>
129875         * modules/findprog: New file.
129876         * MODULES.html.sh (func_all_modules): Add it.
129878 2003-04-10  Bruno Haible  <bruno@clisp.org>
129880         * m4/findprog.m4: New file.
129881         * m4/eaccess.m4: New file.
129883 2003-04-10  Bruno Haible  <bruno@clisp.org>
129885         * lib/findprog.h: New file, from GNU gettext.
129886         * lib/findprog.c: New file, from GNU gettext.
129888 2003-04-05  Jim Meyering  <jim@meyering.net>
129890         Merge changes from Coreutils.
129892         * lib/exclude.h (PARAMS): Remove definition and uses.
129893         * lib/exclude.c: Remove uses of `PARAMS'.
129895         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
129896         Add test-cases for DOS filenames. Declare program_name.
129897         (main): Set up program_name.  Patch by Rich Dawe.
129899         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
129900         error from mntctl.
129901         Use mntctl's return value to drive the entry-processing loop, since
129902         we can't rely on the value of the vmt_length member in the last
129903         entry.  On some systems doing so could result in exhausting
129904         virtual memory.  Based in part on a patch from Mike Jetzer.
129906 2003-04-04  Bruno Haible  <bruno@clisp.org>
129908         * modules/linebreak: New file.
129909         * MODULES.html.sh (func_all_modules): Add it.
129911 2003-04-04  Bruno Haible  <bruno@clisp.org>
129913         * m4/linebreak.m4: New file.
129915 2003-04-04  Bruno Haible  <bruno@clisp.org>
129917         * lib/linebreak.h: New file, from GNU gettext.
129918         * lib/linebreak.c: New file, from GNU gettext with slight
129919         modifications.
129920         * lib/lbrkprop.h: New file, from GNU gettext.
129922 2003-04-03  Bruno Haible  <bruno@clisp.org>
129924         * modules/utf8-ucs4: New file.
129925         * modules/utf16-ucs4: New file.
129926         * modules/ucs4-utf8: New file.
129927         * modules/ucs4-utf16: New file.
129928         * MODULES.html.sh (func_all_modules): Add them.
129930 2003-04-03  Bruno Haible  <bruno@clisp.org>
129932         * m4/utf-ucs4.m4: New file.
129933         * m4/ucs4-utf.m4: New file.
129935 2003-04-03  Bruno Haible  <bruno@clisp.org>
129937         * lib/utf8-ucs4.h: New file, from GNU gettext.
129938         * lib/utf16-ucs4.h: New file, from GNU gettext.
129939         * lib/ucs4-utf8.h: New file, from GNU gettext.
129940         * lib/ucs4-utf16.h: New file, from GNU gettext.
129942 2003-04-02  Bruno Haible  <bruno@clisp.org>
129944         * modules/binary-io: New file.
129945         * MODULES.html.sh (func_all_modules): Add it.
129947 2003-04-02  Bruno Haible  <bruno@clisp.org>
129949         * lib/binary-io.h: New file, from GNU gettext.
129951 2003-04-01  Bruno Haible  <bruno@clisp.org>
129953         * modules/pathname: New file.
129954         * MODULES.html.sh (func_all_modules): Add it.
129956 2003-04-01  Bruno Haible  <bruno@clisp.org>
129958         * lib/pathname.h: New file, from GNU gettext.
129959         * lib/concatpath.c: New file, from GNU gettext.
129961 2003-03-30  Bruno Haible  <bruno@clisp.org>
129963         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
129965 2003-03-30  Bruno Haible  <bruno@clisp.org>
129967         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
129968         function chown() doesn't exist.
129970 2003-03-28  Bruno Haible  <bruno@clisp.org>
129972         * modules/copy-file: New file.
129973         * MODULES.html.sh (func_all_modules): Add it.
129975 2003-03-28  Bruno Haible  <bruno@clisp.org>
129977         * m4/copy-file.m4: New file.
129979 2003-03-28  Bruno Haible  <bruno@clisp.org>
129981         * lib/copy-file.h: New file, from GNU gettext.
129982         * lib/copy-file.c: New file, from GNU gettext.
129984 2003-03-18  Jim Meyering  <jim@meyering.net>
129986         * lib/quote.c (quote_n): Fix typo in comment.
129988 2003-03-18  Bruno Haible  <bruno@clisp.org>
129990         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
129991         checking.
129992         * m4/onceonly_2_57.m4: Likewise.
129994 2003-03-17  Bruno Haible  <bruno@clisp.org>
129996         * m4/onceonly.m4: Require autoconf 2.54 or newer.
129997         (m4_quote): Remove macro.
129998         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
130000 2003-03-14  Jim Meyering  <jim@meyering.net>
130002         Merge changes from Coreutils.
130003         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
130004         to be const, in order to avoid warnings.
130005         (obstack_room): Likewise.
130006         (obstack_empty_p): Likewise.
130008 2003-03-14  Bruno Haible  <bruno@clisp.org>
130010         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
130011         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
130013 2003-03-13  Paul Eggert  <eggert@twinsun.com>
130015         Merge changes from Bison.
130016         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
130017         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
130018         when compiling Bison 1.875's `bitset bset = obstack_alloc
130019         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
130020         * lib/hash.c: Include <stdbool.h> unconditionally.
130022 2003-03-13  Paul Eggert  <eggert@twinsun.com>
130024         * m4/onceonly.m4 (m4_quote): New macro.
130025         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
130026         Quote AC_FOREACH variable-expansions properly.
130028 2003-03-13  Paul Eggert  <eggert@twinsun.com>
130030         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
130032 2003-03-09  Paul Eggert  <eggert@twinsun.com>
130034         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
130035         Reported by Bruce Becker; see:
130036         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
130038 2003-03-03  Paul Eggert  <eggert@twinsun.com>
130039             Bruno Haible  <bruno@clisp.org>
130041         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
130042         Reported by John Hughes, see
130043         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
130045 2003-02-20  Bruno Haible  <bruno@clisp.org>
130047         * MODULES.html.sh (func_all_modules): Add poll.
130049 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
130051         * modules/poll: New file.
130053 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
130055         * lib/poll_.h: New file.
130056         * lib/poll.c: New file.
130058 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
130060         * m4/poll.m4: New file.
130062 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
130064         * modules/mathl: New file.
130066 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
130068         * lib/mathl.h: New file.
130069         * lib/acosl.c: New file.
130070         * lib/asinl.c: New file.
130071         * lib/atanl.c: New file.
130072         * lib/ceill.c: New file.
130073         * lib/cosl.c: New file.
130074         * lib/expl.c: New file.
130075         * lib/floorl.c: New file.
130076         * lib/frexpl.c: New file.
130077         * lib/ldexpl.c: New file.
130078         * lib/logl.c: New file.
130079         * lib/sincosl.c: New file.
130080         * lib/sinl.c: New file.
130081         * lib/sqrtl.c: New file.
130082         * lib/tanl.c: New file.
130083         * lib/trigl.c: New file.
130084         * lib/trigl.h: New file.
130086 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
130088         * m4/mathl.m4: New file.
130090 2003-02-18  Bruno Haible  <bruno@clisp.org>
130092         * MODULES.html.sh (func_all_modules): Add mathl.
130094 2003-02-17  Bruno Haible  <bruno@clisp.org>
130096         * modules/mkdtemp: New module.
130097         * MODULES.html.sh (func_all_modules): Add it.
130099 2003-02-17  Bruno Haible  <bruno@clisp.org>
130101         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
130103 2003-02-17  Bruno Haible  <bruno@clisp.org>
130105         * lib/mkdtemp.h: New file, from GNU gettext.
130106         * lib/mkdtemp.c: New file, from GNU gettext.
130108 2003-02-02  Jim Meyering  <jim@meyering.net>
130110         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
130111         e.g. glibc-2.2.93.
130113 2003-01-31  Bruno Haible  <bruno@clisp.org>
130115         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
130116         'rpl_rename'.
130117         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
130118         'rpl_strnlen'.
130119         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
130120         'rpl_strtod'.
130121         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
130122         'rpl_utime'.
130124 2003-01-31  Bruno Haible  <bruno@clisp.org>
130126         * lib/rename.c: #undef rename before defining rpl_rename.
130127         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
130129 2003-01-30  Bruno Haible  <bruno@clisp.org>
130131         * modules/vasnprintf, modules/vasprintf: New modules.
130132         * MODULES.html.sh (func_all_modules): Add them.
130134 2003-01-30  Bruno Haible  <bruno@clisp.org>
130136         * m4/signed.m4: New file, from GNU gettext.
130137         * m4/longdouble.m4: New file, from GNU gettext.
130138         * m4/wchar_t.m4: New file, from GNU gettext.
130139         * m4/wint_t.m4: New file, from GNU gettext.
130140         * m4/vasnprintf.m4: New file.
130141         * m4/vasprintf.m4: New file.
130143 2003-01-30  Bruno Haible  <bruno@clisp.org>
130145         * lib/printf-args.h: New file, from GNU gettext.
130146         * lib/printf-args.c: New file, from GNU gettext.
130147         * lib/printf-parse.h: New file, from GNU gettext.
130148         * lib/printf-parse.c: New file, from GNU gettext.
130149         * lib/vasnprintf.h: New file, from GNU gettext.
130150         * lib/vasnprintf.c: New file, from GNU gettext.
130151         * lib/asnprintf.c: New file, from GNU gettext.
130152         * lib/vasprintf.h: New file, from GNU gettext with modifications.
130153         * lib/vasprintf.c: New file, from GNU gettext.
130154         * lib/asprintf.c: New file, from GNU gettext.
130156 2003-01-29  Bruno Haible  <bruno@clisp.org>
130158         * modules/stpncpy: New module.
130159         * MODULES.html.sh (func_all_modules): Add it.
130161 2003-01-29  Bruno Haible  <bruno@clisp.org>
130163         * m4/stpncpy.m4: New file.
130165 2003-01-29  Bruno Haible  <bruno@clisp.org>
130167         * lib/stpncpy.h: New file, from GNU gettext with modifications.
130168         * lib/stpncpy.c: New file, from GNU gettext with modifications.
130170 2003-01-28  Bruno Haible  <bruno@clisp.org>
130172         * modules/c-ctype: New module.
130173         * MODULES.html.sh (func_all_modules): Add it.
130175 2003-01-28  Bruno Haible  <bruno@clisp.org>
130177         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
130178         Paul Eggert.
130179         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
130180         Paul Eggert.
130182 2003-01-27  Bruno Haible  <bruno@clisp.org>
130184         * modules/xsetenv: New module.
130185         * MODULES.html.sh (func_all_modules): Add it.
130187 2003-01-27  Bruno Haible  <bruno@clisp.org>
130189         * lib/xsetenv.h: New file, from GNU gettext.
130190         * lib/xsetenv.c: New file, from GNU gettext.
130192 2003-01-23  Jim Meyering  <jim@meyering.net>
130194         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
130195         from working on systems without dirfd (at least Irix and OSF1/Tru64).
130197 2003-01-23  Bruno Haible  <bruno@clisp.org>
130199         * modules/minmax: New module.
130200         * MODULES.html.sh (func_all_modules): Add it.
130202 2003-01-23  Bruno Haible  <bruno@clisp.org>
130204         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
130205         Eggert.
130207 2003-01-22  Bruno Haible  <bruno@clisp.org>
130209         * modules/exit: New module.
130210         * MODULES.html.sh (func_all_modules): Add it.
130212 2003-01-22  Bruno Haible  <bruno@clisp.org>
130214         * lib/exit.h: New file, from GNU gettext.
130216 2003-01-19  Bruno Haible  <bruno@clisp.org>
130218         * gnulib-tool: Recognize option --extract-maintainer.
130219         (func_get_maintainer): New function.
130220         * modules/*: Add Maintainer entry.
130222 2003-01-16  Jim Meyering  <jim@meyering.net>
130224         * m4/regex.m4: The `regex' struct is both input and output.
130225         Initialize it before each use.  Patch by Tim Waugh.
130227 2003-01-16  Bruno Haible  <bruno@clisp.org>
130229         * MODULES.html.sh: Add a table of contents. Add the module name as
130230         leftmost column. Add hyperlinks.
130232 2003-01-15  Bruno Haible  <bruno@clisp.org>
130234         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
130236 2003-01-15  Bruno Haible  <bruno@clisp.org>
130238         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
130239         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
130240         suffix.
130242 2003-01-15  Bruno Haible  <bruno@clisp.org>
130244         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
130246 2003-01-15  Bruno Haible  <bruno@clisp.org>
130248         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
130249         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
130251 2003-01-14  Jim Meyering  <jim@meyering.net>
130253         * lib/same.c (same_name): Tweak a comment.
130255 2003-01-14  Bruno Haible  <bruno@clisp.org>
130257         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
130258         when a string comparison is sufficient.
130260 2003-01-14  Bruno Haible  <bruno@clisp.org>
130262         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
130263         'unsigned int'.
130265 2003-01-14  Bruno Haible  <bruno@clisp.org>
130267         * lib/hash-pjw.c: Add comment about low quality of this function.
130269 2003-01-13  Bruno Haible  <bruno@clisp.org>
130271         * modules/stpcpy: Distribute lib/stpcpy.h.
130272         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
130274 2003-01-13  Bruno Haible  <bruno@clisp.org>
130276         * modules/*: Add a description.
130277         * modules/strpbrk: Fix Makefile.am snippet.
130278         * modules/strtoimax: Fix dependencies.
130279         * modules/strtoumax: Likewise.
130281 2003-01-13  Bruno Haible  <bruno@clisp.org>
130283         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
130284         * modules/alloca (Makefile.am): All object files depend on alloca.h.
130285         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
130287 2003-01-13  Bruno Haible  <bruno@clisp.org>
130289         * gnulib-tool (func_create_testdir): Store config/* files in the main
130290         directory.
130291         * config.rpath: Move to ...
130292         * config/config.rpath: ... here.
130293         * modules/gettext: Contains config/config.rpath, not config.rpath.
130294         * modules/iconv: Likewise.
130296 2003-01-12  Paul Eggert  <eggert@twinsun.com>
130298         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
130299         to avoid collisions with libcurses and libreadline.
130301         * m4/getstr.m4: Remove.
130302         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
130304 2003-01-12  Paul Eggert  <eggert@twinsun.com>
130306         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
130307         to avoid collisions with libcurses and libreadline.
130309         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
130310         * lib/getstr.h, getstr.c: Remove.
130311         * lib/getline.c: Include "getline.h", to check interface.
130312         Move body of old getstr.c here: this defines MIN_CHUNK and
130313         declares getdelim2, which is renamed from getstr.
130314         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
130316         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
130317         All uses changed.
130318         * lib/linebuffer.h: Likewise.
130319         (readline): Remove backward-compatibility macro.
130321 2003-01-12  Paul Eggert  <eggert@twinsun.com>
130323         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
130324         to avoid collisions with libcurses and libreadline.
130325         * getstr: Remove.
130326         * MODULES.html.sh: Remove getstr.
130327         * modules/getline: Depend on unlocked-io, not getstr.
130329 2003-01-12  Jim Meyering  <jim@meyering.net>
130331         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
130333 2003-01-10  Bruno Haible  <bruno@clisp.org>
130335         * modules/alloca: Change Makefile.am requirements. Simplify Include
130336         requirements. Add lib/alloca_.h to file list.
130338 2003-01-10  Bruno Haible  <bruno@clisp.org>
130340         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
130342 2003-01-10  Bruno Haible  <bruno@clisp.org>
130344         * lib/alloca_.h: New file.
130345         * lib/getdate.y: Unconditionally include alloca.h.
130346         * lib/makepath.c: Likewise.
130347         * lib/setenv.c: Likewise.
130348         * lib/userspec.c: Likewise.
130350 2003-01-09  Karl Berry  <karl@gnu.org>
130352         * MODULES.html.sh: include `dirname $0` in PATH, to find
130353         gnulib-tool.
130355 2003-01-09  Bruno Haible  <bruno@clisp.org>
130357         * modules/stdbool: Change configure.ac, Makefile.am requirements.
130358         Simplify Include requirements. Add lib/stdbool.h.in to file list.
130360 2003-01-09  Bruno Haible  <bruno@clisp.org>
130362         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
130364 2003-01-09  Bruno Haible  <bruno@clisp.org>
130366         * lib/stdbool.h.in: New file.
130368 2003-01-09  Bruno Haible  <bruno@clisp.org>
130370         * gnulib-tool (func_all_modules): Ignore files ending in ~.
130371         * MODULES.html.sh: Likewise.
130373 2003-01-08  Jim Meyering  <jim@meyering.net>
130375         * lib/full-write.c: Undefine and define-away `const' after inclusion
130376         of errno.h, not before.  Suggestion from Bruno Haible.
130378 2003-01-08  Bruno Haible  <bruno@clisp.org>
130380         * modules/full-read: Depend on full-write.
130382 2003-01-08  Bruno Haible  <bruno@clisp.org>
130384         * lib/safe-read.c: Include specification header first, to ensure its
130385         selfcontainedness.
130386         * lib/full-write.c: Likewise.
130388 2003-01-07  Jim Meyering  <jim@meyering.net>
130390         * lib/full-write.c: Rework so that it may serve to define full_read,
130391         too.
130392         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
130394 2003-01-07  Bruno Haible  <bruno@clisp.org>
130396         * lib/strtoimax.c: Include <stdint.h> as an alternative to
130397         <inttypes.h>.
130398         * lib/xstrtol.h: Likewise.
130399         * lib/xstrtoimax.c: Likewise.
130400         * lib/xstrtoumax.c: Likewise.
130401         * lib/human.h: Likewise.
130403         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
130404         on systems that have <inttypes.h> but not <stdint.h>.
130406 2003-01-07  Bruno Haible  <bruno@clisp.org>
130408         * MODULES.html.sh: Add copyright notice.
130409         (missed_files): Omit CVS directory entries.
130410         (func_module): Make it work with sed-3.02.
130411         * MODULES.txt: Remove file.
130413 2003-01-06  Jim Meyering  <jim@meyering.net>
130415         * lib/version-etc.c: Update year in translatable copyright string.
130417 2003-01-03  Karl Berry  <karl@gnu.org>
130419         * config/config.{guess,sub}: update from prep.
130421 2003-01-02  Karl Berry  <karl@gnu.org>
130423         * doc/COPYING.DOC: belatedly updated to 1.2.
130425 2003-01-01  Karl Berry  <karl@gnu.org>
130427         * gnulib-tool (func_verify_module): report module name $module in
130428         error message, not $1.
130429         * gnulib-tool (create-testdir): don't complain if destdir couldn't
130430         be created, only if it doesn't exist.
130431         * gnulib-tool (last_checkin_date): don't expand the $Date here.
130433 2002-12-31  Paul Eggert  <eggert@twinsun.com>
130435         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
130437 2002-12-31  Paul Eggert  <eggert@twinsun.com>
130439         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
130440         memcmp if strcoll doesn't work.
130442 2002-12-31  Bruno Haible  <bruno@clisp.org>
130444         * lib/utime.c (utime_null): No need to call ftruncate if the file was
130445         nonempty.
130447 2002-12-31  Bruno Haible  <bruno@clisp.org>
130449         * lib/memcoll.c (STRCOLL): New macro.
130450         (memcoll): Use it.
130452 2002-12-31  Bruno Haible  <bruno@clisp.org>
130454         * lib/localcharset.h: New file.
130455         * lib/localcharset.c: Include it.
130456         * lib/unicodeio.c: Likewise.
130458 2002-12-31  Bruno Haible  <bruno@clisp.org>
130460         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
130461         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
130463 2002-12-31  Bruno Haible  <bruno@clisp.org>
130465         * lib/getline.h: Include <stddef.h>, for size_t.
130467         * lib/unicodeio.h: Include <stddef.h>, for size_t.
130468         * lib/unicodeio.c: Don't include <stddef.h>.
130470 2002-12-31  Bruno Haible  <bruno@clisp.org>
130472         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
130473         HAVE_TM_ZONE.
130475 2002-12-24  Karl Berry  <karl@gnu.org>
130477         * config/config.guess: update from prep.
130479 2002-12-24  Bruno Haible  <bruno@clisp.org>
130481         General infrasructure.
130482         * m4/README: Rewritten.
130483         * m4/onceonly.m4: New file.
130484         * m4/onceonly_2_57.m4: New file.
130486         Module atexit.
130487         * m4/atexit.m4: New file.
130489         Module strtod.
130490         * m4/strtod.m4: New file.
130492         Module strtol.
130493         * m4/strtol.m4: New file.
130495         Module strtoul.
130496         * m4/strtoul.m4: New file.
130498         Module memchr.
130499         * m4/memchr.m4: New file.
130501         Module memcmp.
130502         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
130503         (jm_FUNC_MEMCMP): Invoke it.
130505         Module memcpy.
130506         * m4/memcpy.m4: New file.
130508         Module memmove.
130509         * m4/memmove.m4: New file.
130511         Module memset.
130512         * m4/memset.m4: New file.
130514         Module strcspn.
130515         * m4/strcspn.m4: New file.
130517         Module strpbrk.
130518         * m4/strpbrk.m4: New file.
130520         Module strstr.
130521         * m4/strstr.m4: New file.
130523         Module strerror.
130524         * m4/strerror.m4: New file.
130526         Module mktime.
130527         * m4/mktime.m4: Renamed from jm-mktime.m4.
130528         (gl_PREREQ_MKTIME): New macro.
130529         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
130531         Module malloc.
130532         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
130533         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
130534         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
130536         Module realloc.
130537         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
130538         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
130539         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
130541         Module strftime.
130542         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
130543         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
130544         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
130545         gl_TM_GMTOFF.
130546         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
130548         Module xalloc.
130549         * m4/xalloc.m4: New file.
130551         Module alloca.
130552         * m4/alloca.m4: New file.
130554         Module putenv.
130555         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
130556         (jm_FUNC_PUTENV): Invoke it.
130558         Module setenv.
130559         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
130560         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
130561         when invoked twice.
130562         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
130563         gt_FUNC_SETENV.
130565         Module memrchr.
130566         * m4/memrchr.m4: New file.
130568         Module stpcpy.
130569         * m4/stpcpy.m4: New file.
130571         Module strcase.
130572         * m4/strcase.m4: New file.
130574         Module strdup.
130575         * m4/strdup.m4: New file.
130577         Module strnlen.
130578         * m4/strnlen.m4: New file.
130580         Module strndup.
130581         * m4/strndup.m4: New file.
130583         Module xstrtod.
130584         * m4/xstrtod.m4: New file.
130586         Module xstrtol.
130587         * m4/xstrtol.m4: New file.
130589         Module getdate.
130590         * m4/getdate.m4: New file.
130592         Module unlocked-io.
130593         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
130594         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
130595         * m4/jm-glibc-io.m4n: Remove file.
130597         Module long-options.
130598         * m4/long-options.m4: New file.
130600         Module md5.
130601         * m4/md5.m4: New file.
130603         Module sha.
130604         * m4/sha.m4: New file.
130606         Module getstr.
130607         * m4/getstr.m4: New file.
130609         Module getline.
130610         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
130611         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
130612         <sys/types.h>, for size_t. Use the function name gnu_getline, not
130613         simply getline. Infoke gl_PREREQ_GETLINE.
130615         Module obstack.
130616         * m4/obstack.m4: New file.
130618         Module hash.
130619         * m4/hash.m4: New file.
130621         Module readtokens.
130622         * m4/readtokens.m4: New file.
130624         Module strverscmp.
130625         * m4/strverscmp.m4: New file.
130627         Module stdbool.
130628         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
130629         OSF/1.
130631         Module strtoll.
130632         * m4/strtoll.m4: New file.
130634         Module strtoull.
130635         * m4/strtoull.m4: New file.
130637         Module strtoimax.
130638         * m4/strtoimax.m4: New file.
130640         Module strtoumax.
130641         * m4/strtoumax.m4: New file.
130643         Module xstrtoimax.
130644         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
130645         jm_AC_PREREQ_XSTRTOIMAX.
130646         Moved the strtol prerequisites to strtol.m4.
130647         Moved the strtoll prerequisites to strtoll.m4.
130648         Moved the strtoimax prerequisites to strtoimax.m4.
130650         Module xstrtoumax.
130651         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
130652         jm_AC_PREREQ_XSTRTOUMAX.
130653         Moved the strtoul prerequisites to strtoul.m4.
130654         Moved the strtoull prerequisites to strtoull.m4.
130655         Moved the strtoumax prerequisites to strtoumax.m4.
130657         Module chown.
130658         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
130659         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
130661         Module dup2.
130662         * m4/dup2.m4: New file.
130664         Module ftruncate.
130665         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
130666         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
130668         Module getgroups.
130669         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
130670         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
130672         Module gettimeofday.
130673         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
130674         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
130675         gl_PREREQ_GETTIMEOFDAY.
130677         Module mkdir.
130678         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
130679         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
130681         Module mkstemp.
130682         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
130683         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
130684         jm_AC_TYPE_UINTMAX_T.
130685         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
130687         Module stat.
130688         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
130689         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
130691         Module lstat.
130692         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
130693         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
130695         Module timespec.
130696         * m4/timespec.m4 (gl_TIMESPEC): New macro.
130697         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
130698         * m4/st_mtim.m4: Indentation.
130700         Module nanosleep.
130701         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
130702         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
130703         gl_PREREQ_NANOSLEEP.
130705         Module regex.
130706         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
130707         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
130708         (gl_REGEX): New macro.
130710         Module rename.
130711         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
130712         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
130714         Module rmdir.
130715         * m4/rmdir.m4: New file.
130717         Module utime.
130718         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
130719         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
130720         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
130722         Module dirname.
130723         * m4/dirname.m4: New file.
130725         Module getopt.
130726         * m4/getopt.m4: New file.
130728         Module unistd-safer.
130729         * m4/unistd-safer.m4: New file.
130731         Module fnmatch.
130732         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
130733         declaration.
130734         (gl_PREREQ_FNMATCH_EXTRA): New macro.
130735         (gl_FUNC_FNMATCH_POSIX): New macro.
130736         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
130737         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
130738         simply fnmatch.
130740         Module exclude.
130741         * m4/exclude.m4: New file.
130743         Module human.
130744         * m4/human.m4: New file.
130746         Module acl.
130747         * m4/acl.m4: Nop.
130749         Module backupfile.
130750         * m4/backupfile.m4: New file.
130751         * m4/d-ino.m4: Indentation.
130753         Module fsusage.
130754         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
130755         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
130756         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
130758         Module dirfd.
130759         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
130760         requirements.
130762         Module euidaccess.
130763         * m4/euidaccess.m4: New file.
130765         Module file-type.
130766         * m4/file-type.m4: New file.
130768         Module fileblocks.
130769         * m4/fileblocks.m4: New file.
130771         Module filemode.
130772         * m4/filemode.m4: New file.
130774         Module isdir.
130775         * m4/isdir.m4: New file.
130777         Module lchown.
130778         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
130779         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
130781         Module makepath.
130782         * m4/makepath.m4: New file.
130784         Module modechange.
130785         * m4/modechange.m4: New file.
130787         Module mountlist.
130788         * m4/mountlist.m4: New file.
130789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
130790         Indentation.
130792         Module path-concat.
130793         * m4/path-concat.m4: New file.
130795         Module pathmax.
130796         * m4/pathmax.m4: New file.
130798         Module same.
130799         * m4/same.m4: New file.
130801         Module save-cwd.
130802         * m4/save-cwd.m4: New file.
130804         Module savedir.
130805         * m4/savedir.m4: New file.
130807         Module xgetcwd.
130808         * m4/xgetcwd.m4: New file.
130809         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
130811         Module xreadlink.
130812         * m4/xreadlink.m4: New file.
130814         Module safe-read.
130815         * m4/safe-read.m4: New file.
130817         Module safe-write.
130818         * m4/safe-write.m4: New file.
130820         Module closeout.
130821         * m4/closeout.m4: New file.
130823         Module stdio-safer.
130824         * m4/stdio-safer.m4: New file.
130826         Module getpass.
130827         * m4/getpass.m4: New file.
130829         Module getugroups.
130830         * m4/getugroups.m4: New file.
130832         Module group-member.
130833         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
130834         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
130836         Module idcache.
130837         * m4/idcache.m4: New file.
130839         Module userspec.
130840         * m4/userspec.m4: New file.
130842         Module gettime.
130843         * m4/clock_time.m4: New file.
130844         * m4/gettime.m4: New file.
130846         Module settime.
130847         * m4/settime.m4: New file.
130849         Module posixtm.
130850         * m4/posixtm.m4: New file.
130852         Module gethostname.
130853         * m4/gethostname.m4: New file.
130855         Module canon-host.
130856         * m4/canon-host.m4: New file.
130858         Module gettext.
130859         * m4/codeset.m4: New file, from gettext-0.11.5.
130860         * m4/gettext.m4: New file, from gettext-0.11.5.
130861         * m4/glibc21.m4: New file, from gettext-0.11.5.
130862         * m4/iconv.m4: New file, from gettext-0.11.5.
130863         * m4/intdiv0.m4: New file, from gettext-0.11.5.
130864         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
130865         * m4/inttypes.m4: New file, from gettext-0.11.5.
130866         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
130867         * m4/isc-posix.m4: New file, from gettext-0.11.5.
130868         * m4/lcmessage.m4: New file, from gettext-0.11.5.
130869         * m4/lib-ld.m4: New file, from gettext-0.11.5.
130870         * m4/lib-link.m4: New file, from gettext-0.11.5.
130871         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
130872         * m4/progtest.m4: New file, from gettext-0.11.5.
130873         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
130874         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
130875         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
130877         Module localcharset.
130878         * m4/localcharset.m4: New file.
130880         Module hard-locale.
130881         * m4/hard-locale.m4: New file.
130883         Module mbswidth.
130884         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
130885         onceonly macros.
130886         * m4/mbrtowc.m4: Add comment.
130888         Module memcasecmp.
130889         * m4/memcasecmp.m4: New file.
130891         Module memcoll.
130892         * m4/memcoll.m4: New file.
130894         Module unicodeio.
130895         * m4/unicodeio.m4: New file.
130897         Module rpmatch.
130898         * m4/rpmatch.m4: New file.
130900         Module yesno.
130901         * m4/yesno.m4: New file.
130903         Module exitfail.
130904         * m4/exitfail.m4: New file.
130906         Module c-stack.
130907         * m4/c-stack.m4 (gl_C_STACK): New macro.
130908         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
130910         Module error.
130911         * m4/error.m4 (gl_ERROR): New macro.
130912         (jm_PREREQ_ERROR): Use onceonly macros.
130914         Module fatal.
130915         * m4/fatal.m4: New file.
130917         Module getloadavg.
130918         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
130919         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
130921         Module getpagesize.
130922         * m4/getpagesize.m4: New file.
130924         Module getusershell.
130925         * m4/getusershell.m4: New file.
130927         Module physmem.
130928         * m4/physmem.m4: New file.
130930         Module posixver.
130931         * m4/posixver.m4: New file.
130933         Module quotearg.
130934         * m4/quotearg.m4: New file.
130936         Module quote.
130937         * m4/quote.m4: New file.
130939         Module readutmp.
130940         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
130942         Module sig2str.
130943         * m4/sig2str.m4: New file.
130945         Other.
130946         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
130947         ulonglong.m4.
130948         * m4/intmax_t.m4: New file.
130949         * m4/d-type.m4: Indentation.
130950         * m4/jm-macros.m4: Update.
130951         * m4/prereq.m4 (jm_PREREQ): Update.
130952         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
130953         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
130954         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
130955         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
130956         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
130957         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
130958         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
130959         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
130960         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
130961         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
130962         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
130963         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
130964         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
130965         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
130966         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
130967         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
130968         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
130969         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
130970         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
130972 2002-12-24  Bruno Haible  <bruno@clisp.org>
130974         * MODULES.txt: Update according to m4/ changes.
130976         Module gettext.
130977         * config.rpath: New file, from gettext-0.11.5.
130979         * modules/*: New module descriptions.
130980         * gnulib-tool: New file.
130981         * MODULES.html.sh: New file.
130983 2002-12-21  Karl Berry  <karl@gnu.org>
130985         * doc/fdl.texi: update to version 1.2.
130987 2002-12-19  Karl Berry  <karl@gnu.org>
130989         * config/config.guess: update from prep.
130991 2002-12-18  Bruno Haible  <bruno@clisp.org>
130993         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
130994         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
130996 2002-12-17  Bruno Haible  <bruno@clisp.org>
130998         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
130999         stdlib.h, string.h.
131001 2002-12-17  Bruno Haible  <bruno@clisp.org>
131003         * lib/canon-host.c (strdup): Remove unused declaration.
131005         * lib/fsusage.c: Include full_read.h.
131006         (get_fs_usage): Use full_read instead of safe_read.
131008         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
131010 2002-12-12  Karl Berry  <karl@gnu.org>
131012         * config/config.guess: update from prep.
131014 2002-12-11  Bruno Haible  <bruno@clisp.org>
131016         * m4/setenv.m4: New file, from gettext-0.11.5.
131018 2002-12-11  Bruno Haible  <bruno@clisp.org>
131020         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
131021         not unsetenv().
131022         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
131023         modifications:
131025         2002-12-11  Bruno Haible  <bruno@clisp.org>
131027                 * setenv.c (alloca): Fall back to malloc.
131028                 (freea): New macro.
131029                 (setenv): Use freea() to free memory allocated with alloca().
131031         2002-11-13  Bruno Haible  <bruno@clisp.org>
131033                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
131034                 function declarations.
131035                 * unsetenv.c (unsetenv): Likewise.
131037         2002-03-04  Bruno Haible  <bruno@clisp.org>
131039                 Portability to AIX 4.3.3.
131040                 * unsetenv.c: New file, extracted from setenv.c.
131041                 * setenv.c: Move the unsetenv() function to unsetenv.c.
131043         2001-12-20  Bruno Haible  <bruno@clisp.org>
131045                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
131046                 use malloc instead. For SunOS 4.
131048         2001-12-11  Bruno Haible  <bruno@clisp.org>
131050                 * setenv.c: Declare alloca.
131051                 (compar_fn_t): New typedef.
131052                 (KNOWN_VALUE, STORE_VALUE): Use it.
131054         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
131055         setenv.h.
131057 2002-12-10  Paul Eggert  <eggert@twinsun.com>
131059         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
131060         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
131061         Choose values that are less likely to collide with system fnmatch
131062         options.
131063         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
131064         defined (e.g., a pure POSIX system).
131065         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
131066         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
131068 2002-12-06  Paul Eggert  <eggert@twinsun.com>
131070         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
131071         a pain in practice to deal with generated m4 files.  This change
131072         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
131074         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
131075         and jm-glibc-io.m4, as they are no longer a special case.
131076         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
131077         kludge and the auto-generation stuff.  Check only whether the
131078         functions are declared, not whether they exist, since older hosts
131079         that don't declare the functions can't use the optimization anyway.
131081 2002-12-06  Jim Meyering  <jim@meyering.net>
131083         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
131085         Merge in changes from libc's misc/error.c, in preparation
131086         for the merge of gnulib's changes back into libc.
131088         * lib/error.c (_): Define only if not already defined.
131089         Move definition to follow all #include directives.
131090         Include unlocked-io.h only if !_LIBC.
131091         [_LIBC]: Include <libio/libioP.h>.
131092         [USE_IN_LIBIO]: Include <libio/iolibio.h>
131093         (fflush): Tweak definition to use INTUSE.
131094         (putc): Define.
131096 2002-12-05  Paul Eggert  <eggert@twinsun.com>
131098         * lib/alloca.c [defined emacs]: Include "lisp.h".
131099         (xalloc_die) [defined emacs]: New macro.
131100         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
131101         [! defined emacs]: Include <xalloc.h>.
131102         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
131103         (pointer): Typedef to POINTER_TYPE *.
131104         (malloc): Remove decl; we now always use xmalloc.
131105         (alloca): Use old-style definition, since Emacs needs this.
131106         Check for arithmetic overflow when computing combined size.
131108 2002-12-04  Paul Eggert  <eggert@twinsun.com>
131110         Do not generate unlocked-io.h automatically, since it's easier to
131111         maintain it by hand.
131113         * lib/unlocked-io.h: New file, from GNU diffutils,
131114         but with proper copyright notice and attribution.
131115         * lib/gen-uio: Remove.
131116         * lib/Makefile.am: Add copyright notice.
131117         (libfetish_a_SOURCES): Add unlocked-io.h.
131118         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
131119         (DISTCLEANFILES, io_functions): Remove macros.
131120         (EXTRA_DIST): Remove gen_uio.
131121         (unlocked-io.h): Remove rule.
131123 2002-12-04  Jim Meyering  <jim@meyering.net>
131125         Reflect the fact that stat.c and lstat.c are no longer generated.
131126         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
131127         (DISTCLEANFILES): Likewise.
131128         (EXTRA_DIST): Likewise.
131129         (all_local): Don't depend on stat.c or lstat.c.
131130         (stat.c, lstat.c): Remove rules.
131131         (EXTRA_DIST): Remove xstat.in.
131133         * lib/xstat.in: Remove file.  Contents moved into stat.c.
131134         * lib/stat.c: New file.  Contents mostly from xstat.in.
131135         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
131136         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
131138         * lib/safe-read.c: Rework so that it may serve to define safe_write,
131139         too.
131140         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
131142 2002-12-03  Jim Meyering  <jim@meyering.net>
131144         * lib/safe-read.c, safe-write.c: Change variable names and comments,
131145         but not semantics, to minimize the differences between these two files.
131146         (safe_read): Change comment to mention SAFE_READ_ERROR.
131148         * lib/safe-read.c (IS_EINTR): Define.
131149         (safe_read): Use IS_EINTR in place of in-function cpp directives.
131151 2002-12-02  Jim Meyering  <jim@meyering.net>
131153         * lib/safe-read.c (EINTR): Define.
131154         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
131155         (INT_MAX): Provide fallback.
131156         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
131158         * lib/safe-read.h (SAFE_READ_ERROR): Define.
131160 2002-12-02  Bruno Haible  <bruno@clisp.org>
131162         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
131163         Define, taken from safe-read.c.
131164         (INT_MAX): Provide fallback.
131165         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
131166         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
131168         * lib/safe-read.c (EINTR): Remove definition.
131169         (safe_read): Don't use EINTR if it is absent.
131171 2002-12-01  Jim Meyering  <jim@meyering.net>
131173         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
131174         zero.
131175         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
131177 2002-11-27  Paul Eggert  <eggert@twinsun.com>
131179         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
131180         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
131181         with `if (! (value < limit)) abort ();', for readability.
131183 2002-11-26  Karl Berry  <karl@gnu.org>
131185         * lib/strdup.c: copy from libc again, with jim's ok.
131186         * lib/.cppi-disable: re-add strdup.c
131188 2002-11-25  Karl Berry  <karl@gnu.org>
131190         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
131191         instead of "strtol.c".
131193 2002-11-25  Karl Berry  <karl@gnu.org>
131195         * config/install-sh: update from automake for variable quoting, $0 in
131196         error msgs, etc.
131198         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
131199         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
131200         entry.
131202 2002-11-25  Jim Meyering  <jim@meyering.net>
131204         * lib/mktime.c: Sync from libc, now that it has the latest fix.
131206 2002-11-24  Karl Berry  <karl@gnu.org>
131208         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
131209         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
131211 2002-11-24  Jim Meyering  <jim@meyering.net>
131213         Update from coreutils:
131215         * lib/mktime.c: Merge in changes from libc.
131217         Avoid a link-time failure on some Linux systems.
131218         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
131219         (otherwise).
131220         (__mon_yday): Declare with the STATIC attribute.
131221         (__mktime_internal): Likewise.
131222         Based on a report from Greg Schafer.
131224 2002-11-23  Jim Meyering  <jim@meyering.net>
131226         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
131227         Use `unsigned', not `int', as type of index.
131229         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
131231         * lib/fsusage.c: Remove unneeded parentheses around operands of
131232         `defined'.
131234 2002-11-22  Paul Eggert  <eggert@twinsun.com>
131236         * lib/quotearg.h: Allow multiple inclusion by surrounding with
131237         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
131238         so that we can be included first.
131239         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
131240         * lib/quotearg.c: Include quotearg.h immediately after config.h.
131241         No need to include stddef.h or sys/types.h any more.
131242         Surround local include files with "", not "<>".
131243         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
131244         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
131245         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
131246         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
131247         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
131248         (ISPRINT): Remove; no longer needed now that we assume C89.
131250         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
131251         Preserve errno.
131253         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
131254         quotearg_char): Use SIZE_MAX rather than
131255         (size_t) -1 when we are talking about "infinity".
131257         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
131259 2002-11-22  Paul Eggert  <eggert@twinsun.com>
131261         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
131262         hint that one should use `if (! x) abort ();' rather than `assert
131263         (x);', and anyway it's one less thing to worry about configuring.
131264         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
131265         hash_rehash, hash_insert): Use abort rather than assert.
131267 2002-11-22  Bruno Haible  <bruno@clisp.org>
131269         * lib/safe-read.h: Assume C89. Add comments.
131270         (safe_read): Change return type to size_t.
131271         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
131272         byte counts > SSIZE_MAX correctly.
131273         * lib/safe-write.h: New file.
131274         * lib/safe-write.c: New file.
131275         * lib/full-read.h: New file.
131276         * lib/full-read.c: New file.
131277         * lib/full-write.h: Assume C89. Add comments.
131278         * lib/full-write.c: Include safe-write.h.
131279         (full_write): Rewritten to use safe_write.
131280         Suggested by Jim Meyering and Paul Eggert.
131282 2002-11-21  Jim Meyering  <jim@meyering.net>
131284         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
131286         Merge in changes from the coreutils.
131288         2002-09-25  Paul Eggert  <eggert@twinsun.com>
131289         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
131290         <stdint.h>.
131291         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
131292         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
131293         int.  Work more efficiently if X is the same width as uintmax_t.
131294         Do not compare X to -1, to avoid bogus compiler warning.
131295         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
131296         Don't assume that f_frsize and f_bsize are the same type.
131298         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
131299         warning on FreeBSD.
131301         * lib/makepath.c (make_path): Restore umask *before* creating the final
131302         component.
131303         (make_path): Minor reformatting.
131305         * lib/xmalloc.c: Adjust to work with new autoconf macros,
131306         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
131307         HAVE_MALLOC/HAVE_REALLOC.
131309         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
131310         dummy ones.  At least on GNU/Linux systems, `auto' means something
131311         else.
131312         From Michael Stone.
131314 2002-11-21  Bruno Haible  <bruno@clisp.org>
131316         Remove case insensitive option matching.
131317         * lib/argmatch.h (argcasematch): Remove declaration.
131318         (ARGCASEMATCH): Remove macro.
131319         (__xargmatch_internal): Remove case_sensitive argument.
131320         (XARGMATCH): Update.
131321         (XARGCASEMATCH): Remove macro.
131322         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
131323         case_sensitive argument.
131324         (argcasematch): Remove function.
131325         (__xargmatch_internal): Remove case_sensitive argument.
131326         (main): Use XARGMATCH instead of XARGCASEMATCH.
131328         * lib/xmalloc.c: Change compile-time error message. Add comment about
131329         required autoconf version.
131331 2002-11-20  Paul Eggert  <eggert@twinsun.com>
131333         Merge argmatch cleanups from Bison.  Assume C89.
131335         * lib/argmatch.c: Include config.h here, not in argmatch.h.
131336         Include stdlib.h, for EXIT_FAILURE.
131337         Always include <string.h>, since we assume C89.
131338         (EXIT_FAILURE): Remove pre-C89 bug workaround.
131339         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
131340         Include <stddef.h> instead, since it's all we need for size_t.
131341         (PARAMS): Remove.  All uses removed.
131342         (ARRAY_CARDINALITY): Do not bother to #undef.
131343         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
131344         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
131345         Remove unnecessary parentheses.
131346         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
131347         Insert necessary parentheses.
131348         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
131349         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
131351 2002-11-19  Bruno Haible  <bruno@clisp.org>
131353         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
131354         * lib/mbswidth.h: Include <stddef.h>, for size_t.
131356         * lib/mbswidth.h (PARAMS): Remove macro.
131357         (mbswidth, mbsnwidth): Use ANSI C function declarations.
131358         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
131360         * lib/gcd.h (PARAMS): Remove macro.
131361         (gcd): Use ANSI C function declarations.
131362         * lib/gcd.c (gcd): Likewise.
131364 2002-11-15  Bruno Haible  <bruno@clisp.org>
131366         * lib/strcspn.c: Include <stddef.h>.
131367         (strcspn): Use ANSI C function declaration. Change return type to
131368         size_t. Use NULL.
131369         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
131370         (strpbrk): Use NULL.
131371         * lib/strpbrk.h (PARAMS): Remove macro.
131372         (strpbrk): Use ANSI C function declaration.
131373         * lib/strstr.c: Don't include <sys/types.h>.
131374         * lib/strstr.h (PARAMS): Remove macro.
131375         (strstr): Use ANSI C function declarations.
131377 2002-11-14  Karl Berry  <karl@gnu.org>
131379         * config/mkinstalldirs: `do' on separate line, instead of
131380         `for var; do'.
131382 2002-11-06  Bruno Haible  <bruno@clisp.org>
131384         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
131385         * lib/gcd.c (gcd): Likewise.
131387 2002-11-05  Bruno Haible  <bruno@clisp.org>
131389         * lib/gcd.h: New file, from gettext-0.11.5.
131390         * lib/gcd.c: New file, from gettext-0.11.5.
131392 2002-11-05  Bruno Haible  <bruno@clisp.org>
131394         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131395         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131396         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131397         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131399         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
131400         <libintl.h>.
131401         * lib/makepath.c: Include gettext.h instead of <locale.h> and
131402         <libintl.h>.
131404         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
131405         * lib/human.c: Include gettext.h instead of <libintl.h>.
131406         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
131407         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
131408         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
131409         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
131410         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
131411         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
131412         (textdomain): Remove definition.
131413         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
131415         * lib/long-options.c: Remove include of <libintl.h> and definition of
131416         _.
131417         * lib/same.c: Remove include of <libintl.h> and definition of _.
131419 2002-11-04  Owen Taylor  <otaylor@redhat.com>
131421         * lib/config.charset: A few additions for Solaris.
131423 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
131425         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
131426         * lib/localcharset.c (locale_charset): Declare as extern "C".
131428 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
131430         * lib/config.charset: msdos in uk_UA uses CP1125.
131432 2002-11-04  Bruno Haible  <bruno@clisp.org>
131434         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
131435         * lib/strcase.h: New file, from GNU gettext-0.11.5.
131436         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
131437         * lib/strstr.h: New file, from GNU gettext-0.11.5.
131438         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
131440 2002-11-04  Bruno Haible  <bruno@clisp.org>
131442         * lib/localcharset.c (locale_charset): Don't return an empty string.
131444 2002-11-04  Bruno Haible  <bruno@clisp.org>
131446         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
131447         aliases.
131449 2002-11-04  Bruno Haible  <bruno@clisp.org>
131451         * lib/config.charset: Update for newest glibc. Add canonical names
131452         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
131454 2002-11-04  Bruno Haible  <bruno@clisp.org>
131456         * lib/config.charset: Add support for NetBSD.
131458 2002-11-04  Bruno Haible  <bruno@clisp.org>
131460         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
131462 2002-11-01  Bruno Haible  <bruno@clisp.org>
131464         * configure.in: Add AC_CONFIG_AUX_DIR call.
131465         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
131466         test/Makefile.
131467         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
131469 2002-09-28  Karl Berry  <karl@gnu.org>
131471         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
131472         installed automake until the next release, since changes have been
131473         made.
131475 2002-09-25  Karl Berry  <karl@gnu.org>
131477         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
131478         * lib/getopt*: copy from libc/posix.
131479         * lib/gettext.h: copy from gettext.
131480         * lib/.cppi-disable: add strdup.c, gettext.h.
131482 2002-09-25  Karl Berry  <karl@gnu.org>
131484         * config/srclist.txt: enable gettext.h check.
131485         * config/config.{guess,sub}: update from prep.
131486         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
131487                 from automake 1.6.3.
131488         See srclist*.
131490 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
131492         * regex.c (PATFETCH): Remove the translating fetch.
131493         (PATFETCH_RAW): Rename to PATFETCH.
131494         (set_image_of_range): New fun.
131495         (SET_RANGE_TABLE_WORK_AREA): Use it.
131496         (regex_compile): Don't translate the pattern chars so eagerly.
131497         Only do it when inserting an `exactn' bytecode or when handling
131498         a char-range.
131499         (mutually_exclusive_p): Avoid empty statement.
131501 2002-07-06  Jim Meyering  <meyering@lucent.com>
131503         * m4/README: Don't mention Makefile.am.in.
131504         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
131506 2002-07-01  Jim Meyering  <meyering@lucent.com>
131508         * lib/c-stack.c: Include sys/time.h.
131509         From Volker Borchert.
131511 2002-06-26  Paul Eggert  <eggert@twinsun.com>
131513         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
131515 2002-06-26  Paul Eggert  <eggert@twinsun.com>
131517         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
131518         New macro.  Use it uniformly instead of
131519         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
131520         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
131521         reported by Vin Shelton.
131523 2002-06-22  Paul Eggert  <eggert@twinsun.com>
131525         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
131526         Do not assume SA_SIGINFO behavior.
131527         Bug reported by Jim Meyering on NetBSD 1.5.2.
131529 2002-06-22  Jim Meyering  <meyering@lucent.com>
131531         * m4/c-stack.m4: New file, from diffutils-2.8.2.
131532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
131534         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
131535         now that configure.ac uses AC_GNU_SOURCE.
131536         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
131537         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
131539         Update to latest tools.  Suggestions from Paul Eggert.
131540         * m4/stdbool.m4: New file, from diffutils-2.8.2.
131541         * m4/gnu-source.m4: Update from diffutils-2.8.2.
131542         * m4/fnmatch.m4: Likewise.
131543         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
131544         to AC_HEADER_STDBOOL
131546 2002-06-22  Jim Meyering  <meyering@lucent.com>
131548         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
131549         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
131551 2002-06-22  Jim Meyering  <meyering@lucent.com>
131553         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
131555         * lib/exitfail.c, exitfail.h: Likewise.
131556         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
131558         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
131559         of fnmatch.h.
131560         (EXTRA_DIST): Add fnmatch_loop.c.
131561         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
131563         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
131564         * lib/fnmatch.c: Update from diffutils-2.8.2.
131565         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
131566         * lib/fnmatch.h: Remove file.
131568 2002-06-21  Jim Meyering  <meyering@lucent.com>
131570         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
131571         * m4/mbrtowc.m4: Likewise.
131573         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
131574         * m4/mbswidth.m4: Reflect name change:
131575         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
131576         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131578         * m4/lib-link.m4: Update from gettext-0.11.2.
131579         * m4/gettext.m4: Likewise.
131581         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
131582         From Alfred M. Szmidt.
131584 2002-06-18  Paul Eggert  <eggert@twinsun.com>
131586         * lib/file-type.h: Report an error if neither S_ISREG nor
131587         S_IFREG is defined, instead of using a test specific to glibc
131588         2.2.  This should be safe, since POSIX requires S_ISREG and
131589         Unix Version 7 had S_IFREG.  We don't need to check for
131590         <sys/types.h> since we don't use any symbols that it defines.
131592 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
131594         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
131595         $@-t, so that each temporary file name is unique and valid in the first
131596         8 characters, for operation under DOS.
131598 2002-06-15  Paul Eggert  <eggert@twinsun.com>
131600         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
131602 2002-06-15  Jim Meyering  <meyering@lucent.com>
131604         Work even with DJGPP 2.03, which lacks support for symlinks.
131605         From Richard Dawe.
131606         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
131607         is defined.
131608         * lib/lchown.c (S_ISLNK): Likewise.
131610 2002-06-15  Jim Meyering  <meyering@lucent.com>
131612         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
131613         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
131614         have been included before this file.
131616 2002-06-14  Jim Meyering  <meyering@lucent.com>
131618         * lib/file-type.h: Use the version from diffutils-2.8.2.
131619         * lib/file-type.c: Likewise.
131621 2002-06-07  Jim Meyering  <meyering@lucent.com>
131623         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
131624         They're needed at least for NetBSD 1.5.2.
131625         ($statxfs_includes): Include those same headers.
131626         ($statxfs_includes): Include sys/vfs.h if available.
131627         ($statxfs_includes): Likewise for sys/statvfs.h.
131628         Check for the following members in both structs statfs and statvfs:
131629         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
131631 2002-06-01  Jim Meyering  <meyering@lucent.com>
131633         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
131634         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
131636 2002-05-28  Jim Meyering  <meyering@lucent.com>
131638         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
131639         Reported by Volker Borchert.
131641 2002-05-27  Jim Meyering  <meyering@lucent.com>
131643         Fix a problem seen only on nonconforming systems whereby ls.c's
131644         use of localtime, and then of gettimeofday would cause trouble:
131645         the localtime call used to initialize rpl_gettimeofday's save
131646         mechanism would clobber ls's current local time information so
131647         that in any long listing the first file would always be listed
131648         with date 1970-01-01.  Analysis by Volker Borchert.
131650         * lib/gettimeofday.c (localtime): Undefine.
131651         (rpl_localtime): New function.
131653 2002-05-27  Jim Meyering  <meyering@lucent.com>
131655         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
131656         localtime.
131658         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
131659         use the replacement function; it wouldn't resolve at link time.
131660         Reported by Volker Borchert.
131662 2002-05-22  Jim Meyering  <meyering@lucent.com>
131664         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
131665         file-type.h.
131666         * lib/file-type.h: New file.
131667         * lib/file-type.c (file_type): New file/function.  Extracted from
131668         diffutils.
131670 2002-04-30  Jim Meyering  <meyering@lucent.com>
131672         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
131674 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131676         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
131678 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131680         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
131681         Do not check for alloca.h (no longer used) or stdbool.h (was never
131682         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
131684 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131686         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
131688 2002-04-29  Jim Meyering  <meyering@lucent.com>
131690         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
131691         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
131692         Use AC_FUNC_STRNLEN here instead.
131694         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
131695         With autoconf-2.53a, it's part of AC_PROG_CC.
131697 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131699         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
131700         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
131702 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131704         * lib/sig2str.h, lib/sig2str.c: New files.
131705         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
131707 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131709         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
131710         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
131711         of 127, since 64 is the largest conceivable number for ancient
131712         nonstandard hosts.
131713         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
131715 2002-04-28  Jim Meyering  <meyering@lucent.com>
131717         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
131719 2002-04-24  Jim Meyering  <meyering@lucent.com>
131721         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
131722         (jm_PREREQ): Use it.
131724         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
131725         mach/mach.h fcntl.h.
131726         Check for this function: setlocale.
131728 2002-04-24  Jim Meyering  <meyering@lucent.com>
131730         * lib/gettext.h: New file, from Gettext.
131731         * lib/Makefile.am (INCLUDES): Remove -I../intl.
131732         (libfetish_a_SOURCES): Add gettext.h.
131734 2002-04-16  Jim Meyering  <meyering@lucent.com>
131736         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
131737         ut_pid, ut_id, ut_exit.
131739 2002-04-16  Jim Meyering  <meyering@lucent.com>
131741         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
131742         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
131743         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
131745 2002-04-12  Jim Meyering  <meyering@lucent.com>
131747         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
131748         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
131749         existence of the getmntinfo function.  Needed for Darwin 5.3.
131751         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
131752         This is necessary at least on Darwin 5.3.
131754         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
131755         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
131756         strnlen.o in the library, and that makes some versions of ranlib
131757         object.
131759 2002-04-12  Jim Meyering  <meyering@lucent.com>
131761         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
131763 2002-04-09  Jim Meyering  <meyering@lucent.com>
131765         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
131766         to be more precise.  Rather than saying we're checking whether the
131767         function `works', say what we're testing.
131768         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
131769         Reported by Bruno Haible.
131771 2002-03-10  Jim Meyering  <meyering@lucent.com>
131773         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
131774         Suggestion from Santiago Vila.
131776 2002-03-08  Jim Meyering  <meyering@lucent.com>
131778         * lib/rename.c: Mention that this wrapper is needed also on
131779         mips-dec-ultrix4.4 systems.
131781 2002-03-02  Jim Meyering  <meyering@lucent.com>
131783         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
131784         not HAVE_CLOCK_SETTIME.
131786 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131788         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
131789         Check for clock_settime.
131791 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131793         * lib/nanosleep.h: Rename to....
131794         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
131796         * lib/gettime.c: New file.
131797         * lib/settime.c: New file.
131798         * lib/stime.c: Remove.
131800         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
131801         timespec.h.  Remove nanosleep.h.
131803 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131805         * m4/acl.m4: New file.
131806         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
131807         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
131809 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131811         * lib/acl.c, lib/acl.h: New files.
131812         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
131814 2002-02-24  Jim Meyering  <meyering@lucent.com>
131816         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
131817         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
131818         cause trouble.  Reported by Nelson Beebe.
131820 2002-02-23  Paul Eggert  <eggert@twinsun.com>
131822         * lib/path-concat.c (xpath_concat): Reorder code to pacify
131823         compilers that don't know that xalloc_die never returns.
131825 2002-02-20  Jim Meyering  <meyering@lucent.com>
131827         * lib/getdate.c: Regenerate using bison-1.33.
131829 2002-02-17  Jim Meyering  <meyering@lucent.com>
131831         * config/config.guess (main): Don't use `head -1'; it's no longer
131832         portable. Use `sed 1q' instead.
131834 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
131836         * m4/codeset.m4: Upgrade to gettext-0.11.
131837         * m4/gettext.m4: Upgrade to gettext-0.11.
131838         * m4/glibc21.m4: Upgrade to gettext-0.11.
131839         * m4/iconv.m4: Upgrade to gettext-0.11.
131840         * m4/isc-posix.m4: Upgrade to gettext-0.11.
131841         * m4/lcmessage.m4: Upgrade to gettext-0.11.
131842         * m4/lib-ld.m4: New file, from gettext-0.11.
131843         * m4/lib-link.m4: New file, from gettext-0.11.
131844         * m4/lib-prefix.m4: New file, from gettext-0.11.
131845         * m4/progtest.m4: Upgrade to gettext-0.11.
131847 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131849         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
131850         (jm_PREREQ): Use it.
131852 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131854         * lib/posixver.c, lib/posixver.h: New files.
131855         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131857 2002-02-02  Paul Eggert  <eggert@twinsun.com>
131858             Bruno Haible  <bruno@clisp.org>
131860         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
131861         (fwrite_success_callback): New declaration.
131862         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
131863         print_unicode_char. Call failure callback instead of error.
131864         (fwrite_success_callback): New function.
131865         (exit_failure_callback): New function.
131866         (fallback_failure_callback): New function.
131867         (print_unicode_char): Call unicode_to_mb.
131869 2002-01-26  Jim Meyering  <meyering@lucent.com>
131871         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
131872         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
131874 2002-01-26  Jim Meyering  <meyering@lucent.com>
131876         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
131878 2002-01-22  Paul Eggert  <eggert@twinsun.com>
131880         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
131882 2002-01-22  Jim Meyering  <meyering@lucent.com>
131884         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
131885         Otherwise, some versions of automake would omit the rule that makes
131886         Makefile from Makefile.in.
131888 2002-01-21  Paul Eggert  <eggert@twinsun.com>
131890         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
131891         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131892         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
131893         (memcoll): Set errno to zero if there is no error.
131895         * lib/quotearg.c (quotearg_buffer_restyled):
131896         Fix bug with quoting buffers containing NUL when backslashing escapes.
131897         This bug was exposed by the other changes in this patch.
131898         (quotearg_n_options): New arg ARGSIZE.
131899         All callers changed.
131900         (quoting_options_from_style): New function.
131901         (quotearg_n_style): Use it.
131902         (quotearg_n_style_mem): New function.
131904         * lib/quotearg.h (quotearg_n_style_mem): New function.
131906 2002-01-19  Jim Meyering  <meyering@lucent.com>
131908         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
131909         Remove useless quotes: DF_PROG="df".
131910         * m4/strnlen.m4: New file.
131912 2002-01-16  Paul Eggert  <eggert@twinsun.com>
131914         * lib/backupfile.c (ISDIGIT): Comment fix.
131915         * lib/getdate.y (ISDIGIT): Likewise.
131916         * lib/posixtm.c (ISDIGIT, year): Likewise.
131917         * lib/strverscmp.c (ISDIGIT): Likewise.
131918         * lib/userspec.c (ISDIGIT): Likewise.
131920 2002-01-16  Jim Meyering  <meyering@lucent.com>
131922         * lib/getdate.y: Add three semicolons, each just before a closing
131923         brace. Bison (as of version 1.31) no longer papers over that mistake.
131925 2002-01-05  Jim Meyering  <meyering@lucent.com>
131927         * lib/version-etc.c (version_etc_copyright): Update copyright year.
131929 2001-12-19  Paul Eggert  <eggert@twinsun.com>
131931         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
131932         not silently exit merely because the output buffer happens to
131933         have nothing pending.
131935 2001-12-18  Paul Eggert  <eggert@twinsun.com>
131937         See the big note in ../ChangeLog.
131938         * lib/human.c (suffixes): Prefer K to k for 1024.
131939         (generate_suffix_backwards): New function.
131940         (human_readable_inexact): Use it.
131941         * lib/xstrtol.c (__xstrtol): If there is no number but there
131942         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
131943         Accept 'K' as well as 'k'.
131945 2001-12-15  Jim Meyering  <meyering@lucent.com>
131947         * lib/regex.h (__restrict_arr): Update from libc.
131949         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
131950         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
131951         (STREQ): Define.
131953 2001-12-14  Jim Meyering  <meyering@lucent.com>
131955         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
131956         Suggestion from Bruno Haible.
131958 2001-12-10  Jim Meyering  <meyering@lucent.com>
131960         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
131961         xrealloc, Instead, include "xalloc.h".
131962         (initbuffer): Don't cast xmalloc return value to char*.
131963         (readline): Reword comment.
131964         Don't cast xrealloc return value to char*
131965         Return NULL, not 0.
131967 2001-12-09  Jim Meyering  <meyering@lucent.com>
131969         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
131970         about `signed and unsigned type in conditional expression'.
131971         * lib/posixtm.c (posix_time_parse): Likewise.
131973         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
131975         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
131976         to avoid a pedantic warning.
131978         * lib/getstr.c: Don't include assert.h.
131979         (getstr): Remove warning-evoking assertions.
131980         Return -1 if offset parameter is out of bounds.
131981         Change the type of a local from int to size_t.
131983         * lib/strftime.c (my_strftime_localtime_r): Include this function
131984         definition in the `#if ! HAVE_TM_GMTOFF' block.
131986         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
131987         Include xalloc.h instead.
131989 2001-12-02  Jim Meyering  <meyering@lucent.com>
131991         * lib/tempname.c: Don't declare getenv, thus reverting the change of
131992         2001-11-18.  It's no longer necessary, now that stdlib.h is always
131993         included.
131995         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
131996         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
131998 2001-11-30  Akim Demaille  <akim@epita.fr>
132000         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
132001         before being defined.
132003 2001-11-27  Paul Eggert  <eggert@twinsun.com>
132005         * lib/quotearg.h (quotearg_n, quotearg_n_style):
132006         First arg is int, not unsigned.
132007         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
132008         (SIZE_MAX, UINT_MAX): New macros.
132009         (quotearg_n_options): Abort if N is negative.
132010         Avoid overflow check on hosts where size_t is 64 bits and int
132011         is 32 bits, as overflow is impossible there.
132012         Fix off-by-one typo that caused unnecessary reallocation.
132014 2001-11-27  Jim Meyering  <meyering@lucent.com>
132016         * lib/tempname.c: Merge with version from libc.
132017         * lib/regex.c: Likewise.
132019         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
132020         systems for which STDC_HEADERS is 0, it was not included, resulting in
132021         a warning about an integer-to-pointer conversion problem with getenv.
132022         Reported by Volker Borchert.
132024 2001-11-26  Jim Meyering  <meyering@lucent.com>
132026         * lib/gtod.h: Remove file.
132027         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
132028         * lib/gettimeofday.c: Don't include gtod.h.
132029         (GTOD_init): Remove function.
132030         (rpl_gettimeofday): Do its job here instead, rather than aborting.
132031         Suggestion from Volker Borchert.
132033 2001-11-23  Jim Meyering  <meyering@lucent.com>
132035         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
132036         it.
132037         * lib/hash.c (struct hash_table): Define it here instead.
132039 2001-11-22  Jim Meyering  <meyering@lucent.com>
132041         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
132043 2001-11-20  Jim Meyering  <meyering@lucent.com>
132045         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
132046         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
132048 2001-11-19  Jim Meyering  <meyering@lucent.com>
132050         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
132051         directory.  Use "conftestXXXXXX" as the template.
132052         Suggestion from Paul Eggert.
132054         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
132055         immediately, so the test doesn't mistakenly hit the max-open-files
132056         limit.
132058 2001-11-18  Paul Eggert  <eggert@twinsun.com>
132060         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
132061         (TEMPORARIES): New macro.
132062         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
132063         removes an artificial limitation (e.g. HP-UX 10.20, where
132064         TMP_MAX is 17576).
132066 2001-11-18  Jim Meyering  <meyering@lucent.com>
132068         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
132070 2001-11-18  Jim Meyering  <meyering@lucent.com>
132072         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
132073         on SunOS 4.
132075         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
132076         files will be created before anything else.
132078 2001-11-17  Paul Eggert  <eggert@twinsun.com>
132080         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
132081         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
132083 2001-11-17  Jim Meyering  <meyering@lucent.com>
132085         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
132086         Prompted by a report from Bob Proulx.
132088         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
132089         Instead, require UTILS_FUNC_MKSTEMP.
132091 2001-11-17  Jim Meyering  <meyering@lucent.com>
132093         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
132094         Now, that's done as part of AC_FUNC_STRTOD.
132096 2001-11-17  Jim Meyering  <meyering@lucent.com>
132098         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
132099         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
132100         rather than group writable.  Patch by Juan F. Codagnone.
132102         * lib/readtokens.c: Remove explicit declarations of xmalloc and
132103         xrealloc, Instead, include "xalloc.h".
132105         * lib/mountlist.c: Include unlocked-io.h after all system headers.
132106         Remove explicit declarations of xmalloc, xrealloc,
132107         and xstrdup.  Instead, include "xalloc.h".
132109         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
132110         unlocked-io.h.
132111         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
132112         Likewise.
132113         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
132115         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
132116         Reported by Padraig Brady.
132118         * lib/mkstemp.c: #undef mkstemp.
132119         Include config.h.
132120         (rpl_mkstemp): Rename from mkstemp.
132121         Protoize.
132123 2001-11-16  Jim Meyering  <meyering@lucent.com>
132125         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
132126         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
132127         determine the amount of total physical memory, use pstat_getstatic.
132128         HPUX-11 doesn't define _SC_PHYS_PAGES.
132129         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
132130         If sysconf couldn't be used to determine the amount of available
132131         physical memory, use both pstat_getstatic and pstat_getdynamic.
132132         Based on a patch from Bob Proulx.
132134 2001-11-10  Jim Meyering  <meyering@lucent.com>
132136         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
132137         (jm_PREREQ): Use it.
132139 2001-11-09  Jim Meyering  <meyering@lucent.com>
132141         * m4/jm-macros.m4: Require autoconf-2.52f.
132142         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
132143         Use these AC_-prefixed names, not the AM_-prefixed ones.
132145         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
132147 2001-11-05  Jim Meyering  <meyering@lucent.com>
132149         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
132151 2001-11-04  Jim Meyering  <meyering@lucent.com>
132153         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
132154         $DEFS.
132156 2001-11-03  Jim Meyering  <meyering@lucent.com>
132158         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
132159         of AC_DEFUN.
132161         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
132162         know the name of the variable in the macro definition.
132164 2001-11-03  Jim Meyering  <meyering@lucent.com>
132166         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
132167         in argmatch_to_argument call.
132169         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
132170         argument.
132172         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
132173         e.g., a fault due to an attempt to free a NULL pointer.
132175 2001-11-01  Jim Meyering  <meyering@lucent.com>
132177         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
132178         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
132180 2001-11-01  Jim Meyering  <meyering@lucent.com>
132182         * lib/dirfd.c, lib/dirfd.h: New files.
132183         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
132185         * lib/hash.c (hash_print) [TESTING]: Clean up.
132187 2001-10-22  Paul Eggert  <eggert@twinsun.com>
132189         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
132190         to avoid a warning if -Wall.
132192 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
132194         * README: New file
132195         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
132196         (per RMS's instructions, this is now the canonical source)
132197         * lgpl/, gpl/: New directories.
132199 2001-10-21  Paul Eggert  <eggert@twinsun.com>
132201         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
132203 2001-10-21  Jim Meyering  <meyering@lucent.com>
132205         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
132206         this code would end up calling gettext even in packages built
132207         with --disable-nls.
132208         * lib/getopt.c (_): Likewise.
132209         * lib/regex.c (_): Likewise.
132211 2001-10-20  Paul Eggert  <eggert@twinsun.com>
132213         * m4/error.m4 (jm_PREREQ_ERROR):
132214         Do not invoke AC_CHECK_FUNCS with strerror_r, as
132215         AC_FUNC_STRERROR_R does that.
132216         Check for strerror declaration.
132218         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
132219         are supposed to have them these days.
132220         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
132221         Merge changes from latest Autoconf CVS.
132222         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
132223         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
132224         POSIX decided to standardize on the int flavor of strerror_r.
132226 2001-10-20  Paul Eggert  <eggert@twinsun.com>
132228         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
132229         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
132230         Use strerror_r that is only a macro, even if it is not a function.
132231         (strerror): Check for HAVE_DECL_STRERROR before declaring.
132232         (private_strerror): Use prototypes, not old-style function definition.
132233         (print_errno_message): New function.
132234         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
132235         char*-flavored one.
132236         (error_tail, error, error_at_line): Use it.
132238 2001-10-11  Jim Meyering  <meyering@lucent.com>
132240         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
132241         and quote_n (1, ... to avoid clobbering a buffer.
132243 2001-10-05  Jim Meyering  <meyering@lucent.com>
132245         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
132246         hash-pjw.h.
132247         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
132248         * lib/hash-pjw.h: New file.
132250 2001-09-30  Jim Meyering  <meyering@lucent.com>
132252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
132253         `struct fsstat' has the `f_fstypename' member.
132254         Use that to define FS_TYPE, which is now used to make
132255         the getfsstat link test tighter.
132257 2001-09-30  Jim Meyering  <meyering@lucent.com>
132259         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
132260         Include <sys/ucred.h>, for Apple Darwin.
132261         Include sys/mount.h and sys/fs_types.h only if available.
132262         (FS_TYPE): Define.
132263         (read_filesystem_list): Use FS_TYPE.
132265 2001-09-29  Paul Eggert  <eggert@twinsun.com>
132267         * lib/exclude.c (excluded_filename): 0 -> false, since it's
132268         a boolean context.
132270 2001-09-29  Jim Meyering  <meyering@lucent.com>
132272         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
132273         [one-argument getmntent function]): Include stdio.h before mntent.h.
132274         SunOS 4.1.x needs it for the declaration of `FILE'.
132275         Patch by Volker Borchert.
132277         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
132278         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
132279         sys/fs_types.h, and make the link-test for getfsstat guard #include
132280         directives with appropriate #if HAVE_*_H tests so that we can
132281         detect getfsstat on Apple Darwin1.3.7 systems.
132282         Reported by Nelson Beebe.
132283         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
132285 2001-09-28  Paul Eggert  <eggert@twinsun.com>
132287         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
132288         #defines strtoimax.  Also treat the other strto* functions
132289         like strtoimax.
132291         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
132292         Check for strtoul and strtoumax,
132293         as those declarations are made even in the signed case.
132294         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
132295         Likewise, for strtol and strtoimax.
132297 2001-09-28  Paul Eggert  <eggert@twinsun.com>
132299         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
132300         #defines strtoimax.  Also treat the other strto* functions
132301         like strtoimax.
132303         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
132304         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
132305         (strtoimax, strtoumax): Do not declare if already defined as a macro.
132307 2001-09-26  Jim Meyering  <meyering@lucent.com>
132309         Most macros in unlocked-io.h had the wrong number of arguments.
132310         * lib/gen-uio: New script.
132311         (USE_UNLOCKED_IO): Define to 1 if not already defined.
132312         * lib/unlocked-io.hin: Remove file.
132313         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
132314         rather than trying to embed it here.
132315         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
132316         Reported by Padraig Brady.
132318 2001-09-25  Volker Borchert  <bt@teknon.de>
132320         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
132321         `result'.
132323 2001-09-24  Jim Meyering  <meyering@lucent.com>
132325         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
132327 2001-09-23  Jim Meyering  <meyering@lucent.com>
132329         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
132330         instead of the mere test for existence of mntent.h.  The latter
132331         would get a false-positive on AIX 3.4 systems.
132332         In the outer getmntent if-block, don't die if neither of the getmntent
132333         tests succeeds.  Instead, just fall through and continue with the
132334         remaining tests.
132336 2001-09-23  Jim Meyering  <meyering@lucent.com>
132338         * lib/mountlist.c: Remove useless parentheses in #if directives.
132339         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
132340         the deprecated MOUNTED symbol is no longer defined in mntent.h.
132342 2001-09-22  Jim Meyering  <meyering@lucent.com>
132344         * m4/gettext.m4: New file.  From gettext.
132345         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
132346         * m4/progtest.m4: Likewise
132347         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
132348         * m4/glibc21.m4: Likewise.
132350         * m4/libintl.m4: Remove.  No longer used.
132352 2001-09-22  Jim Meyering  <meyering@lucent.com>
132354         * lib/localcharset.c: Update from latest gettext.
132355         * lib/config.charset: Likewise.
132357 2001-09-20  Jim Meyering  <meyering@lucent.com>
132359         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
132360         strtoimax.
132361         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
132362         strtoumax.
132364 2001-09-20  Jim Meyering  <meyering@lucent.com>
132366         * lib/xstrtol.c (strtoimax): Guard declaration with
132367         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
132368         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
132369         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
132370         (strtoumax): Likewise, for completeness (it wasn't necessary).
132372 2001-09-17  Paul Eggert  <eggert@twinsun.com>
132374         * lib/strtoimax.c (HAVE_LONG_LONG):
132375         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
132376         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
132377         to work around bug in IBM C compiler.
132379 2001-09-17  Jim Meyering  <meyering@lucent.com>
132381         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
132382         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
132383         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
132384         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
132385         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
132386         whenever the right hand side need not be expanded by the shell.
132388 2001-09-16  Paul Eggert  <eggert@twinsun.com>
132390         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
132391         library.  It's not correct, as some older glibcs are buggy.
132392         fnmatch wasn't fixed until glibc 2.2.
132394         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
132395         special shell magic here.
132397 2001-09-16  Jim Meyering  <meyering@lucent.com>
132399         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
132400         * m4/jm-macros.m4: Require it.
132402 2001-09-16  Jim Meyering  <meyering@lucent.com>
132404         * lib/mkdir.c: New file.
132406 2001-09-15  Jim Meyering  <meyering@lucent.com>
132408         * m4/jm-macros.m4: Check for help2man.
132410 2001-09-11  Jim Meyering  <meyering@lucent.com>
132412         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
132413         The body, by Paul Eggert, was moved here from configure.in.
132414         * m4/jm-macros.m4: Require UTILS_HOST_OS.
132416 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132418         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
132419         (jm_PREREQ): Use it.
132421 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132423         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
132424         Use ssize_t, not int, to store result of readlink.
132425         Check for ssize_t overflow as well as size_t overflow,
132426         as POSIX says the result of readlink is implementation-defined
132427         when ssize_t overflows.
132428         Remove unnecessary cast to char*.
132429         Use free+malloc instead of realloc, as the storage doesn't need
132430         to be preserved and it's clearer and can be more efficient that way.
132431         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
132432         * lib/xreadlink.h (xreadlink): Update prototype.
132434 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132436         * lib/xgetcwd.c: Revert some of the previous change; intead,
132437         fix the HAVE_GETCWD_NULL code to behave more like the
132438         !HAVE_GETCWD_NULL code used to.
132440         Include "xalloc.h".
132441         (xgetcwd): Do not return NULL when memory is exhausted; instead,
132442         invoke xalloc_die.
132444 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132446         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
132447         sys/param.h, as pathmax.h includes them.
132449 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132451         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
132452         (jm_PREREQ_XGETCWD): New macro.
132454         * m4/getcwd.m4: New file.
132456 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132458         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
132459         like the HAVE_GETCWD_NULL code.
132460         Include pathmax.h if not HAVE_GETCWD.
132461         Do not include xalloc.h.
132462         (INITIAL_BUFFER_SIZE): New symbol.
132463         Do not use xmalloc / xrealloc, since the caller is responsible for
132464         handling errors.  Preserve errno around `free' during failure.
132465         Do not overrun buffer when using getwd.
132467 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132469         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
132470         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
132471         getcwd (NULL, 0).
132473 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132475         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
132476         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
132477         spotted by Jim Meyering.
132479 2001-09-03  Jim Meyering  <meyering@lucent.com>
132481         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
132482         failure.
132484 2001-09-02  Jim Meyering  <meyering@lucent.com>
132486         * lib/error.c: Update from GNU libc.
132488 2001-09-01  Jim Meyering  <meyering@lucent.com>
132490         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
132491         Used by df.
132493 2001-09-01  Jim Meyering  <meyering@lucent.com>
132495         * lib/xreadlink.c: New file.
132496         * lib/xreadlink.h: New file.
132497         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
132498         xreadlink.h.
132500         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
132501         doesn't conflict with sparc Solaris 7's definition in
132502         /usr/include/sys/int_types.h.
132504         * lib/exclude.c: Use `""', not `<>' to #include non-system header
132505         files.
132506         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
132507         and strncasecmp as r-values.  Unixware didn't have declarations.
132509 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132511         * lib/xstrtol.h: Add copyright notice.
132512         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
132513         LONGINT_INVALID_SUFFIX_CHAR.
132515 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132517         * lib/xstrtol.c (strtoimax): New decl.
132519 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132521         * lib/xgetcwd.c: Don't include pathmax.h.
132522         Include stdlib.h and unistd.h if available.
132523         Include xalloc.h.
132524         (xmalloc, xstrdup, free): Remove decls.
132525         (xgetcwd): Don't assume sizes fit in unsigned.
132526         Check for overflow when computing sizes.
132527         Simplify reallocation code.
132529 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132531         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
132532         a directory's st_size can have an arbitrary value, so the old
132533         usage could waste an arbitrary amount of memory.  All uses
132534         changed.
132535         * lib/savedir.h: Update prototype.
132537 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132539         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
132541         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
132542         old strtoimax.c.
132544         Also, make the following further changes to make this file's
132545         configuration more similar to that of strtol.c:
132546         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
132547         (strtoumax, uintmax_t, strtoull, strtol): Remove.
132548         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
132549         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
132550         changed to signed values.
132552         And make the following changes as well:
132553         Fix copyright notice, as 1999 was missing.
132554         (verify): New macro.
132555         (strtoimax): Check sizes at compile-time, not run-time.
132556         Prefer strtol to strtoll if both work.
132557         (main): Remove; it was not that useful and was a pain to maintain.
132559         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
132561 2001-08-31  Jim Meyering  <meyering@lucent.com>
132563         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
132564         Use an initial, malloc'd, buffer of length 128 rather than
132565         a statically allocated one of length 1024.
132567 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132569         Simplify code, partly by assuming autoconf 2.52 semantics.
132571         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
132573         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
132574         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
132575         All uses removed.
132576         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
132577         Move AC_REQUIRE to next-to-top level, to avoid confusion.
132578         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
132579         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
132580         jm_AC_HEADER_INTTYPES_H.
132581         * m4/jm-macros.m4 (jm_MACROS): Likewise.
132583         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
132585         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
132586         Quote first arg of AC_DEFUN.
132587         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
132588         since they are needed to parse the include file even if we need
132589         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
132590         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
132591         but with opposite signedness.
132593 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132595         Merge 'exclude' changes from tar 1.13.22.
132596         This fixes one or two unlikely storage allocation overflow bugs,
132597         but doesn't change user-visible behavior otherwise.
132599 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132601         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
132602         (jm_PREREQ_EXCLUDE): New macro.
132604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132606         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
132607         tm to be declared.
132609 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132611         * lib/hash.c: Remove '2001' from copyright notice.
132613 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132615         * lib/full-write.h: New file.
132616         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
132617         * lib/full-write.c: Correct credits, as cccp.c no longer
132618         exists and anyway it was so heavily changed from the old cccp
132619         code as to be unrecognizable.  Include full-write.h.
132620         (full_write): Return size_t, with short writes meaning failure.
132621         All callers changed.  This fixes a bug with large buffers
132622         on 64-bit hosts.
132623         * lib/utime.c: Include full-write.h.
132625 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132627         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
132628         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
132629         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
132630         Include if available.
132631         (<xalloc.h>): Include
132632         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
132633         (verify): New macro.  Use it to verify that EXCLUDE macros do not
132634         collide with FNM macros.
132635         (struct patopts): New struct.
132636         (struct exclude): Use it, as exclude patterns now come with options.
132637         (new_exclude): Support above changes.
132638         (new_exclude, add_exclude_file):
132639         Initial size must now be a power of two to simplify overflow checking.
132640         (free_exclude, fnmatch_no_wildcards): New function.
132641         (excluded_filename): No longer requires options arg, as the options
132642         are determined by add_exclude.  Now returns bool, not int.
132643         (excluded_filename, add_exclude):
132644         Add support for the fancy new exclusion options.
132645         (add_exclude, add_exclude_file): Now takes int options arg.
132646         Check for arithmetic overflow when computing sizes.
132647         (add_exclude_file): xrealloc might modify errno, so don't
132648         realloc until after errno might be used.
132650         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
132651         New macros.
132652         (free_exclude): New decl.
132653         (add_exclude, add_exclude_file): Now takes int options arg.
132654         (excluded_filename): No longer requires options arg, as the options
132655         are determined by add_exclude.  Now returns bool, not int.
132657 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132659         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
132661 2001-08-27  Jim Meyering  <meyering@lucent.com>
132663         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
132665         * lib/version-etc.c (N_): Remove definition.
132666         Revert most of last change.
132667         Instead, simply don't mark the `Copyright...' string for translation.
132668         Based on advice from Paul Eggert.
132670         * lib/strtoxmax.c: Tweak comment.
132672 2001-08-26  Jim Meyering  <meyering@lucent.com>
132674         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
132676         * m4/xstrtoimax.m4: New file.
132677         * m4/xstrtoumax.m4: Add comments explaining why we
132678         AC_REPLACE_FUNCS(strtol).
132680 2001-08-26  Jim Meyering  <meyering@lucent.com>
132682         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
132683         of copyright with `%s' so translators don't get an untranslated
132684         message in 2002.
132685         (COPYRIGHT_YEAR): Define.
132686         (version_etc): Use fprintf rather than fputs.
132687         Suggestion from Ulrich Drepper.
132689         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
132691         * lib/strtoll.c: New file, from GNU libc.
132692         * lib/xstrtoimax.c: New file.
132694         * lib/xstrtol.h: Add xstrtoimax.
132695         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
132696         * lib/strtoimax.c: New file.  Likewise, but first define
132697         STRTOUXMAX_SIGNED.
132699         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
132700         ...
132701         * lib/strtoxmax.c: ... then renamed to this.
132703 2001-08-18  Paul Eggert  <eggert@twinsun.com>
132705         * m4/inttypes.m4: Add AC_PREREQ(2.13).
132706         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
132707         (jm_AC_TYPE_INTMAX_T): New macro.
132708         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
132710         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
132712         * m4/longlong.m4: Renamed from ulonglong.m4.
132713         * m4/inttypes.m4: Renamed from inttypes_h.m4.
132714         * m4/uintmax_t.m4: Removed.
132716 2001-08-13  Paul Eggert  <eggert@twinsun.com>
132718         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
132719         Port to Solaris 8, where 'sed' requires a space after the 'r'
132720         command, and where sh dislikes "$/".  Clean up the spacing a bit.
132721         Redirect output to $tmp just once.
132723 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
132725         * lib/addext.c (<errno.h>): Include.
132726         (errno): Declare if not defined.
132727         (addext): Work correctly when pathconf returns -1 and leaves
132728         errno alone because there is no limit.  Also, work even if
132729         pathconf returns a value greater than SIZE_MAX.
132731 2001-08-12  Jim Meyering  <meyering@lucent.com>
132733         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
132734         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
132735         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
132736         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
132737         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
132738         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
132739         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
132740         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
132741         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
132742         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
132743         utime.m4, utimes.m4, xstrtoumax.m4:
132744         Quote the first argument in each use of AC_DEFUN.
132746 2001-08-12  Jim Meyering  <meyering@lucent.com>
132748         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
132749         Simply `return getcwd (NULL, 0);'.
132750         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
132751         Use 1300 as initial value for length, not PATH_MAX.
132753         * lib/pathmax.h: Clean up cpp syntax.
132755 2001-08-12  Jim Meyering  <meyering@lucent.com>
132757         * lib/gettimeofday.c: New file.
132758         * lib/gtod.h: New file.
132759         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
132761 2001-08-05  Jim Meyering  <meyering@lucent.com>
132763         * m4/jm-macros.m4: Require autoconf-2.52.
132765 2001-08-04  Jim Meyering  <meyering@lucent.com>
132767         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
132768         stmt, to get in sync with glibc.
132770 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132772         The following changes are from gettext 0.10.39 as maintained by
132773         Bruno Haible.
132775         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
132776         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
132777         with inverted sense.  All uses changed.
132779         * lib/mbswidth.c: Don't include <limits.h>.
132780         Include <stdlib.h> and <string.h> unconditionally.
132781         (iswcntrl, mbsinit, ISCNTRL): New macros.
132782         (mbsnwidth): Use K&R style function declarations.
132783         Don't bother checking for MB_LEN_MAX == 1, since the compiler
132784         can optimize it when MB_CUR_MAX == 1.
132785         The width of control characters is zero, not 1.
132787 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132789         The following changes are from gettext 0.10.39 as maintained by
132790         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
132792         * m4/codeset.m4: Upgrade to serial AM1.
132793         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
132794         all uses changed.  Quote first arg of AC_DEFUN.
132795         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
132797         * m4/iconv.m4: Upgrade to serial AM2.
132798         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
132799         Add --with-libconv-prefix.
132800         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
132801         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
132802         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
132803         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
132804         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
132806         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
132807         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
132808         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
132809         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
132810         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
132811         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
132812         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
132813         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
132814         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
132816         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
132817         string.h any more.
132819         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
132820         not the default value.
132822         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
132823         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
132824         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
132825         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
132826         Also check for iswcntrl, used for wcwidth fallback.
132827         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
132828         to Autoconf 2.13.
132830 2001-08-03  Jim Meyering  <meyering@lucent.com>
132832         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
132833         as it was in the original.  Reported by Paul Eggert.
132835 2001-07-16  Jim Meyering  <meyering@lucent.com>
132837         * m4/gettimeofday.m4: New file.
132838         Prompted by a report from Bernhard Baehr.
132840 2001-07-15  Jim Meyering  <meyering@lucent.com>
132842         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
132843         stuff. Now it's in ../Makefile.cfg.
132845 2001-07-15  Jim Meyering  <meyering@lucent.com>
132847         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
132848         (BUILT_SOURCES): Add unlocked-io.h.
132849         (io_functions): Define.
132850         (unlocked-io.h): New rule.
132851         (DISTCLEANFILES): Add unlocked-io.h.
132852         (all-local): Depend on unlocked-io.h, to ensure it is created.
132854         * lib/unlocked-io.hin: New file
132856         * lib/regex.c: Update from glibc.
132858 2001-07-05  Jim Meyering  <meyering@lucent.com>
132860         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
132861         recommendation.
132862         (libfetish_a_SOURCES): Put all .h files here instead.
132863         Remove a thus-exposed (better checks in automake) duplicate and
132864         two unnecessary .h files.
132866 2001-07-04  Jim Meyering  <meyering@lucent.com>
132868         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
132869         that generates jm-glibc-io.m4 so that it doesn't trigger any make
132870         distcheck failure.
132872 2001-07-02  Jim Meyering  <meyering@lucent.com>
132874         The following changes were prompted by suggestions from Bruno Haible.
132876         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
132877         is now generated.
132878         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
132879         definition of EXTRA_DIST.
132880         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
132881         ensure that the generated file is created/updated whenever the list
132882         of $(unlocked_functions) is changed.
132883         (jm-glibc-io.m4): New rule.
132884         (unlocked-io.h): New rule -- currently unused.
132886 2001-06-24  Jim Meyering  <meyering@lucent.com>
132888         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
132889         unmatched right bracket, rather than kludging it with an extra,
132890         falsely-matching quote in a comment.  Patch by Akim Demaille.
132892 2001-06-11  Jim Meyering  <meyering@lucent.com>
132894         * lib/regex.c: Update from GNU libc.
132896 2001-05-27  Jim Meyering  <meyering@lucent.com>
132898         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
132899         Check for ut_type in struct utmp.
132901 2001-05-27  Jim Meyering  <meyering@lucent.com>
132903         * lib/readutmp.h (UT_TYPE): Define.
132905 2001-05-24  Jim Meyering  <meyering@lucent.com>
132907         * lib/argmatch.c: Include "quote.h".
132908         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
132909         quote function.  Reported by Göran Uddeborg.
132911 2001-05-22  Jim Meyering  <meyering@lucent.com>
132913         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
132914         now that we use the package-supplied version unconditionally.
132915         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
132917 2001-05-21  Jim Meyering  <meyering@lucent.com>
132919         * m4/regex.m4: Change a couple backticks to single quotes to avoid
132920         shell syntax errors.
132922 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132924         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
132926 2001-05-20  Paul Eggert  <eggert@twinsun.com>
132928         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
132929         Don't bother to check library strftime, since
132930         we'll be using our own my_strftime function anyway.
132931         Define my_strftime instead of strftime.
132933 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
132935         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
132936         which is not yet declared.
132938 2001-05-15  Jim Meyering  <meyering@lucent.com>
132940         * m4/regex.m4: Use proper quoting so brackets appear in the test
132941         program.
132942         Reported by, and with help from, Bruno Haible.
132944 2001-05-13  Jim Meyering  <meyering@lucent.com>
132946         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
132947         undefined.
132949 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132951         dirname code cleanup.  base_name now behaves more compatibly
132952         with POSIX basename when given file names that have trailing
132953         slashes, and similarly for dir_name.  Add new primitives
132954         base_len and dir_len.  Put the directory-name-related decls
132955         into dirname.h.
132957         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
132958         * lib/backupfile.c (base_name): Likewise.
132959         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
132960         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
132961         * lib/makepath.c (strip_trailing_slashes): Likewise.
132962         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
132963         ISSLASH): Likewise.
132964         * lib/rename.c (strip_trailing_slashes): Likewise.
132965         * lib/same.c (base_name): Likewise.
132966         * lib/stripslash.c (ISSLASH): Likewise.
132968         * lib/addext.c: Include <dirname.h> after size_t is defined.
132969         * lib/backupfile.c: Likewise.
132971         * lib/addext.c (addext): Use base_len to trim redundant
132972         trailing slashes instead of doing it ourselves.
132973         But do not trim the last slash if it is not redundant.
132975         * lib/backupfile.c (find_backup_file_name,
132976         max_backup_version): Use base_len instead of rolling it ourselves.
132977         Handle the case of "" and (on DOS) "C:" correctly.
132979         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
132980         needed. Include <string.h>, <dirname.h>.
132981         (base_name): Allow file names ending in slashes, other than names
132982         that are all slashes.  In this case, return the basename followed
132983         by the slashes.  This is more general, and can be used in places
132984         where the original base_name purposely had an assertion failure.
132985         (base_len): New function.
132987         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
132988         Do not include <assert.h>; no longer needed.
132989         Include xalloc.h.
132990         (memrchr): Remove decl.
132991         (dir_name_r): Remove.
132992         (dir_len): Renamed from dirlen.  All callers changed.
132993         Rewrite in terms of base_name, for simplicity and consistency.
132994         (dir_name): Never return NULL.  All callers changed.
132995         Do not include <stdlib.h> in test program; no longer needed.
132996         return 0; is fine for test program.
132998         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
132999         New macros.
133000         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
133002         * lib/path-concat.c (path_concat): Use base_len to compute
133003         base length, not strlen; this means we cannot rely on memcpy
133004         to null-terminate.
133006         * lib/same.c (STREQ): Remove.
133007         (same_name): Handle the case where the basename ends in trailing '/'.
133009         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
133010         a slash was stripped.  Do not strip the last slash after a
133011         file system prefix.
133013 2001-05-11  Paul Eggert  <eggert@twinsun.com>
133015         * lib/Makefile.am (libfetish_a_SOURCES):
133016         Add strftime.c, since we now compile it on all hosts.
133018         * lib/strftime.c (my_strftime):
133019         Define to nstrftime if emacs, but only if my_strftime is not defined.
133020         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
133021         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
133022         Add one more extra argument: a nanoseconds value.
133023         All uses changed.
133024         (ns): New macro.
133025         (my_strftime function): Add %N format.
133026         (emacs_strftimeu): Renamed from emacs_strftime,
133027         with extra ut argument.
133029 2001-05-09  Paul Eggert  <eggert@twinsun.com>
133031         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
133033 2001-04-21  Jim Meyering  <meyering@lucent.com>
133035         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
133036         doesn't interfere.
133038 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
133040         * m4/ftruncate.m4: Check for chsize.
133041         Link with ftruncate.o unconditionally if ftruncate is missing.
133042         This was required when cross-compiling to i586-mingw32msvc.
133044 2001-04-08  Jim Meyering  <meyering@lucent.com>
133046         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
133047         recomputed; that's necessary when the offset spans a DST transition.
133048         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
133050 2001-04-02  Jim Meyering  <meyering@lucent.com>
133052         * lib/regex.h, regex.c: Update from GNU libc.
133054 2001-03-24  Jim Meyering  <meyering@lucent.com>
133056         * m4/jm-macros.m4: Require autoconf-2.49d.
133058 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
133060         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
133062 2001-03-19  Paul Eggert  <eggert@twinsun.com>
133064         * lib/version-etc.c (version_etc_copyright): Update to 2001.
133066 2001-03-17  Jim Meyering  <meyering@lucent.com>
133068         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
133069         now that the version in autoconf is equivalent.
133070         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
133072         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
133073         Suggestion from Akim Demaille.
133075         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
133076         (jm_PREREQ_TEMPNAME): New function.
133078 2001-03-16  Paul Eggert  <eggert@twinsun.com>
133080         * lib/tempname.c (uint64_t): Define to uintmax_t if
133081         not defined, and if UINT64_MAX is not defined.
133082         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
133083         Reported by John David Anglin.
133085 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
133087         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
133088         resolve alias if codeset is empty.
133089         * lib/config.charset (BeOS): Use wildcard syntax.
133091 2001-03-13  Jim Meyering  <meyering@lucent.com>
133093         * lib/path-concat.c (path_concat)
133094         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
133095         concatenating e.g., `C:' and `foo'.
133096         From Bruno Haible.
133098 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
133100         * lib/localcharset.c (locale_charset): Don't use
133101         setlocale(LC_CTYPE,NULL). Don't return NULL.
133102         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
133104 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
133106         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
133107         support for DOS/DJGPP.
133109 2001-03-01  Paul Eggert  <eggert@twinsun.com>
133111         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
133112         lacks mkstemp.  Compile our own tempname.c if we compile our own
133113         mkstemp.c, as mkstemp relies on tempname.
133115 2001-03-01  Jim Meyering  <meyering@lucent.com>
133117         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
133118         AH_VERBATIM really does output its argument verbatim.
133120 2001-02-28  Paul Eggert  <eggert@twinsun.com>
133122         * lib/Makefile.am (libfetish_a_SOURCES):
133123         Add dup-safer.c, fopen-safer.c.
133124         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
133126         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
133127         * lib/unistd-safer.h: New files.
133129 2001-02-25  Paul Eggert  <eggert@twinsun.com>
133131         The mkstemp replacement is taken from glibc 2.2.2, with some
133132         portability fixes for use outside glibc, as follows:
133134         * lib/tempname.c (struct_stat64): New macro.
133135         (direxists, __gen_tempname): Use it.
133136         This avoids a portability problem with Solaris 8.
133138         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
133139         (<stddef.h>, <stdint.h>, <string.h>):
133140         Include only if STDC_HEADERS || _LIBC.
133141         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
133142         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
133143         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
133144         (__set_errno): Define this macro if <errno.h> doesn't.
133145         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
133146         Define these macros if <stdio.h> doesn't.
133147         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
133148         Define these macros if <sys/stat.h>
133149         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
133150         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
133151         __xstat64): Define if not _LIBC.
133152         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
133153         (__gen_tempname): Invoke gettimeofday only if
133154         HAVE_GETTIMEOFDAY || _LIBC;
133155         otherwise, fall back on plain "time".
133156         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
133158         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
133160         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
133162 2001-02-18  Paul Eggert  <eggert@twinsun.com>
133164         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
133166 2001-02-17  Paul Eggert  <eggert@twinsun.com>
133168         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
133169         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
133170         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
133171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
133173 2001-02-17  Paul Eggert  <eggert@twinsun.com>
133175         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
133176         Remove workaround macros for hosts that have mbrtowc but not
133177         mbstate_t, as we now insist on proper declarations for both
133178         before using mbrtowc.
133180 2001-02-17  Jim Meyering  <meyering@lucent.com>
133182         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
133183         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
133184         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
133185         UnixWare 7.1.1.
133187         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
133188         rather than AC_CACHE_VAL.
133190 2001-02-17  Jim Meyering  <meyering@lucent.com>
133192         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
133193         around included file name.
133195         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
133197         * lib/strftime.c: Update from GNU libc (the only changes were to
133198         comments).
133200 2001-02-17  Jim Meyering  <meyering@lucent.com>
133202         * lib/regex.c: Update from libc.
133204 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
133206         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
133207         clash.
133209 2001-02-16  Paul Eggert  <eggert@twinsun.com>
133211         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
133212         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
133213         Reported by Mark Hounschell via Paul Eggert.
133215 2001-02-07  Jim Meyering  <meyering@lucent.com>
133217         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
133219 2001-02-05  Jim Meyering  <meyering@lucent.com>
133221         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
133222         it includes the patch required for `large file' support with at least
133223         HP-UX's 10.20 /bin/cc.
133225 2001-02-03  Jim Meyering  <meyering@lucent.com>
133227         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
133228         AS_IF, now that it works once again (mysteriously).
133229         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
133231 2001-01-30  Jim Meyering  <meyering@lucent.com>
133233         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
133234         * m4/chown.m4: Rename conftestchown to conftest.chown.
133235         * m4/rename.m4: s/conftestdir/conftest.d1/ and
133236         s/conftestdir2/conftest.d2/.
133237         * m4/utimes.m4: s/conftestdata/conftest.data/
133238         Inspired by Pavel Roskin's change in autoconf.
133240 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
133242         * lib/config.charset: Update for FreeBSD 4.2.
133244 2001-01-27  Jim Meyering  <meyering@lucent.com>
133246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
133247         a use of AS_IF.
133248         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
133250 2001-01-26  Jim Meyering  <meyering@lucent.com>
133252         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
133253         quotearg.c includes it.
133255 2001-01-26  Jim Meyering  <meyering@lucent.com>
133257         * lib/quotearg.c: Include stddef.h.
133258         * lib/quote.c: Include stddef.h.
133259         Reported by Axel Kittenberger.
133261         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
133262         line in double quotes so that it evokes a better diagnostic.
133263         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
133264         Reported by Axel Kittenberger.
133266 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
133268         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
133269         as if it was a `charset'.
133271 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
133273         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
133274         has const.
133276 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
133278         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
133279         to avoid a warning.  Add back 'const' to inptr.
133281 2001-01-20  Jim Meyering  <meyering@lucent.com>
133283         Be sure that headers are checked before used in code compiled
133284         for the type checks.
133285         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
133286         In place of that, invoke jm_CHECK_ALL_TYPES.
133287         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
133288         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
133289         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
133290         The check for ssize_t was mistakenly run before the test for unistd.h.
133292         The configure-time check for stdbool.h was missing.
133293         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
133294         (jm_PREREQ_HASH): New function.
133296 2001-01-17  Jim Meyering  <meyering@lucent.com>
133298         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
133299         for autoconf-2.49c.
133300         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
133302 2001-01-16  Jim Meyering  <meyering@lucent.com>
133304         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
133305         From Bruno Haible.
133307 2001-01-14  Jim Meyering  <meyering@lucent.com>
133309         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
133310         foo and bar.  Create conftestdir/ in the script, not in the C code.
133311         Remove directories in the script, not in the C code.
133312         Remove conftestdir{,2} before trying to create the directory.
133313         Make the entire configure script fail if the mkdir fails.
133315 2001-01-14  Jim Meyering  <meyering@lucent.com>
133317         * lib/rename.c: New file.  From Volker Borchert.
133318         Include stdlib.h, string.h or strings.h, and xalloc.h.
133319         Use strip_trailing_slashes rather than open-coding it.
133321 2001-01-03  Paul Eggert  <eggert@twinsun.com>
133323         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
133325 2001-01-03  Jim Meyering  <meyering@lucent.com>
133327         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
133328         of local `inptr' to avoid warning with some system declarations of
133329         iconv.
133331 2001-01-02  Volker Borchert  <bt@teknon.de>
133333         * m4/rename.m4: New file.
133334         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
133336 2001-01-01  Jim Meyering  <meyering@lucent.com>
133338         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
133339         even on systems with utmpx.h.  It's necessary for the declaration of
133340         utmp's ut_user member.  Reported by Andreas Jaeger.
133342         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
133343         available. They are required for the declarations of getgrgid and
133344         getpwuid resp.
133345         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
133346         Reported by Andreas Jaeger.
133348 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
133350         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
133351         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
133352         so `make install' also works in VPATH builds.
133354 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
133356         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
133357         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
133358         can be used in subdirectories.
133360 2000-12-29  Paul Eggert  <eggert@twinsun.com>
133362         * lib/modechange.c: Do not assume that mode_t uses the
133363         traditional octal encoding.  E.g. "chmod 1 FOO" should set
133364         the other-execute bit of FOO even if S_IXOTH != 1.
133366         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
133367         WOTH, XOTH, ALLM): New macros.
133368         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
133369          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
133370         Use them.
133371         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
133372         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
133373         (mode_compile):
133374         No need to use uintmax_t; unsigned long is long enough.
133375         Don't bother to get suffix since we don't use it.
133377 2000-12-26  Jim Meyering  <meyering@lucent.com>
133379         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
133380         better with autoheader.
133382 2000-12-24  Jim Meyering  <meyering@lucent.com>
133384         * lib/hash.c (is_prime): Return explicit boolean values.
133385         (hash_get_first): Return NULL to appease Irix5.6's 89.
133386         Reported by Nelson Beebe.
133388 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
133390         * lib/localcharset.c (locale_charset): Add support for Win32.
133392 2000-12-18  Paul Eggert  <eggert@twinsun.com>
133394         * lib/physmem.h, lib/physmem.c: New files.
133396         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
133397         (noinst_HEADERS): Add physmem.h.
133399         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
133400         't' for compatibility with Solaris 8 sort.
133402 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
133404         * lib/config.charset: Add support for BeOS.
133406 2000-12-17  Jim Meyering  <meyering@lucent.com>
133408         * m4/dos.m4 (jm_AC_DOS): New file and macro.
133409         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
133411 2000-12-16  Jim Meyering  <meyering@lucent.com>
133413         This bug had a serious impact on chown: `chown N:M FILE' (for integer
133414         N and M) would have treated it like `chown N:N FILE'.
133416         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
133418 2000-12-16  Jim Meyering  <meyering@lucent.com>
133420         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
133421         SHELLS_FILE to a file name that's useful on djgpp systems.
133422         Include stdlib.h.
133423         (ADDITIONAL_DEFAULT_SHELLS): Define.
133424         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
133425         Based mostly on a patch from Prashant TR.
133427 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
133429         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
133430         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
133431         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
133433 2000-12-08  Andreas Schwab  <schwab@suse.de>
133435         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
133436         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
133438 2000-12-07  Jim Meyering  <meyering@lucent.com>
133440         * lib/stripslash.c (ISSLASH): Define.
133441         (strip_trailing_slashes): Use ISSLASH rather than comparing against
133442         `/'.
133443         From Prashant TR.
133445         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
133446         (dir_name_r): Declare this function as static.
133447         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
133448         manifest itself on a name containing a mix of slashes and
133449         backslashes.
133450         Make this function work with names starting with a DOS-style
133451         drive letter and colon prefix.
133452         (dir_name): Append `.' if necessary.
133453         Based mostly on patches from Prashant TR and Eli Zaretskii.
133455         * lib/dirname.h (dir_name_r): Remove prototype.
133457 2000-12-06  Paul Eggert  <eggert@twinsun.com>
133459         * m4/off_t-format.m4: Remove this file.
133460         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
133462 2000-12-06  Jim Meyering  <meyering@lucent.com>
133464         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
133465         replacement strtoull, we may well need the replacement strtoul, too.
133466         Check for declarations of strtoul and strtoull.
133467         Check for strtol.  Mainly as a cue to cause automake to include
133468         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
133469         Check for limits.h -- strtol.c needs it.
133471 2000-12-05  Jim Meyering  <meyering@lucent.com>
133473         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
133475 2000-12-04  Jim Meyering  <meyering@lucent.com>
133477         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
133478         Also include memory.h, stdlib.h, unistd.h if appropriate.
133479         Reported by Andreas Jaeger (conflicting declaration of malloc).
133481 2000-12-02  Jim Meyering  <meyering@lucent.com>
133483         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
133484         * m4/jm-macros.m4 (jm_MACROS): require it.
133486 2000-12-02  Jim Meyering  <meyering@lucent.com>
133488         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
133490 2000-12-01  Paul Eggert  <eggert@twinsun.com>
133492         * lib/memrchr.c: Include <config.h> before any system include file.
133494 2000-11-30  Jim Meyering  <meyering@lucent.com>
133496         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
133498 2000-11-30  Jim Meyering  <meyering@lucent.com>
133500         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
133502 2000-11-29  Paul Eggert  <eggert@twinsun.com>
133504         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
133506 2000-11-26  Jim Meyering  <meyering@lucent.com>
133508         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
133510 2000-11-22  Paul Eggert  <eggert@twinsun.com>
133512         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
133513         size of (size_t) -1; it's not portable.
133515 2000-11-17  Jim Meyering  <meyering@lucent.com>
133517         * lib/strstr.c: Update from GNU libc.
133519 2000-11-17  Akim Demaille  <akim@epita.fr>
133521         * lib/obstack.h: Formatting changes.
133522         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
133523         prevent type checking.
133524         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
133525         cast the value to (void *): assigning a `foo *' to a `void *'
133526         variable is valid.
133527         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
133529 2000-11-16  Jim Meyering  <meyering@lucent.com>
133531         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
133533 2000-11-11  Jim Meyering  <meyering@lucent.com>
133535         * lib/error.c: Add a couple #includes, merging from GNU libc version.
133537 2000-11-10  Jim Meyering  <meyering@lucent.com>
133539         * lib/obstack.h: Update from GNU libc.
133540         * lib/obstack.c: Likewise.
133542 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
133544         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
133546 2000-11-06  Paul Eggert  <eggert@twinsun.com>
133548         * lib/getusershell.c (setusershell): Use rewind rather than
133549         fseek/fseeko, to avoid configuration hassles with fseeko.
133550         Don't bother opening SHELLS_FILE if shellstream is NULL;
133551         it's not necessary.
133553 2000-11-05  Jim Meyering  <meyering@lucent.com>
133555         * lib/makepath.h (make_dir): Declare.
133556         * lib/makepath.c (make_dir): Remove `static' attribute.
133557         Tweak a comment.
133559 2000-11-04  Jim Meyering  <meyering@lucent.com>
133561         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
133563 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
133565         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
133566         last one in a bucket, advance to the next bucket.
133568 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
133570         * lib/fnmatch.c: Do not comment out all the code if we are using
133571         the GNU C library, because in some cases we are replacing buggy
133572         code in the GNU C library itself.
133574 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
133576         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
133577         (regex_compile): Catch bogus \(\1\).
133579 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133581         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
133582         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
133583         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
133585 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133587         * lib/error.h, getline.h, modechange.h:
133588         Remove "2000" from Copyright line, as the file hasn't been
133589         changed this year other than in the copyright notice.
133591         * lib/xalloc.h: Add "2000" to Copyright line, as this file
133592         was changed this year.
133594 2000-10-29  Jim Meyering  <meyering@lucent.com>
133596         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
133597         renaming.
133598         * m4/ls-mntd-fs.m4: Likewise
133600 2000-10-29  Jim Meyering  <meyering@lucent.com>
133602         * lib/xstat.in: Fix grammar in comment.
133604 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
133606         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
133607         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
133608         doesn't define __restrict_arr.
133610 2000-10-28  Jim Meyering  <meyering@lucent.com>
133612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
133613         (jm_PREREQ_MEMCHR): New function.
133615 2000-10-28  Jim Meyering  <meyering@lucent.com>
133617         * lib/memchr.c: Update from libc.
133618         Adjust for portability:
133619         [HAVE_STDLIB_H]: Include stdlib.h.
133620         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
133621         Undef __memchr, too.
133622         [!weak_alias]: Define __memchr to memchr.
133624         * lib/regex.c: Update from libc.
133625         * lib/regex.h: Likewise.
133626         * lib/getopt1.c: Likewise.
133627         * lib/memcmp.c: Likewise.
133629         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
133630         Avoid using fseek, when possible -- it's broken by design.
133631         Patch by Ulrich Drepper.
133633 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
133635         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
133636         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
133637         Giving in to popular pressure to shut up the compiler with casts.
133639 2000-10-26  Jim Meyering  <meyering@lucent.com>
133641         * lib/strftime.c: Update from libc.
133643 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
133645         * regex.c: More `unsigned char' -> `re_char' changes.
133646         Also change several `int' into `re_wchar_t'.
133647         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
133648         (PUSH_FAILURE_POINTER): Don't cast any more.
133649         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
133650         We want GCC to complain, since this piece of code makes
133651         re_match non-reentrant, which *should* be fixed.
133652         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
133653         (EXTEND_BUFFER): Use RETALLOC.
133654         (SET_LIST_BIT): Don't cast.
133655         (re_wchar_t): New type.
133656         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
133657         that those two functions will always properly return.
133658         (IMMEDIATE_QUIT_CHECK): Cast to void.
133659         (analyse_first): Use recursion rather than an explicit stack.
133660         (re_compile_fastmap): Can't fail anymore.
133661         (re_search_2): Don't check re_compile_fastmap for failure.
133662         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
133663         Now also sets the new value (passed in a new argument).
133664         (re_match_2_internal): Use it.
133665         Also, use a new var `reg' of type size_t when looping through regs
133666         rather than reuse the inappropriate `mcnt'.
133668 2000-10-25  Jim Meyering  <meyering@lucent.com>
133670         * lib/obstack.c: Update from libc.
133672 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
133674         * regex.c (regex_compile): Change the way of handling a range from
133675         a char less than 256 to a char not less than 256.
133677 2000-10-24  Andrew Innes  <andrewi@gnu.org>
133679         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
133680         NT-Emacs only.
133681         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
133682         so that re_search functions only quit when callers expect them to.
133684 2000-10-23  Jim Meyering  <meyering@lucent.com>
133686         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
133687         wrong.  That set_locale call must not have any side effects.
133688         From Paul Eggert.
133690 2000-10-22  Jim Meyering  <meyering@lucent.com>
133692         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
133693         [CYCLIC]: Remove now-unused definition.
133695         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
133696         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
133697         Suggestion from Ulrich Drepper.
133699 2000-10-21  Jim Meyering  <meyering@lucent.com>
133701         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
133702         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
133703         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
133705 2000-10-21  Jim Meyering  <meyering@lucent.com>
133707         * lib/dirname.c (memrchr): Declare if necessary.
133708         (dir_name): Remove the restriction that there be no
133709         trailing slashes.  Now, this code skips past them, effectively
133710         ignoring them.
133711         [TEST_DIRNAME] (main): New unit tests.
133713         * lib/memrchr.c: New file from GNU libc.
133714         Undef __memrchr, too.
133715         [!weak_alias]: Define __memrchr to memrchr.
133716         Guard weak_alias use with `#ifdef weak_alias'.
133718 2000-10-21  Jim Meyering  <meyering@lucent.com>
133720         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
133721         (dir_name): Use dir_name_r.
133722         * lib/dirname.h (dir_name_r): Declare it.
133724 2000-10-17  Jim Meyering  <meyering@lucent.com>
133726         * lib/quote.h (PARAMS): Define and use.
133727         Reported by Akim Demaille.
133729         * lib/getopt.c: Update from libc.
133731 2000-10-16  Jim Meyering  <meyering@lucent.com>
133733         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
133734         setlocale.
133735         From Jan Fedak.
133737 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
133739         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
133741 2000-09-25  Jim Meyering  <meyering@lucent.com>
133743         * lib/md5.h (rol): Define (from GnuPG).
133745         * lib/sha.c: Give credit (GnuPG) where due.
133746         (M): Use rol rather than open-coding it.
133747         Add a FIXME comment.
133749 2000-09-21  Jim Meyering  <meyering@lucent.com>
133751         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
133752         Reported by Michael Stone.
133754 2000-09-20  Jim Meyering  <meyering@lucent.com>
133756         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
133757         (noinst_HEADERS): Add sha.h.
133758         Based on code from Scott G. Miller and from GnuPG.
133760 2000-09-18  Jim Meyering  <meyering@lucent.com>
133762         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
133763         LIBS. Otherwise, everyone ends up linking with -lelf for some
133764         configurations.
133765         Reported by Mike Stone.
133767 2000-09-15  Jim Meyering  <meyering@lucent.com>
133769         * lib/regex.c: Update from libc.
133771 2000-09-10  Jim Meyering  <meyering@lucent.com>
133773         * lib/getopt.c (_getopt_internal): Update from glibc.
133775 2000-09-09  Jim Meyering  <meyering@lucent.com>
133777         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
133778         think it should be used as a general replacement for isascii.
133779         * lib/fnmatch.c: Likewise.
133780         * lib/mbswidth.c: Likewise
133781         * lib/regex.c: Likewise.
133783         Don't use atoi.
133784         * lib/userspec.c: Include sys/param.h and limits.h.
133785         Include xstrtol.h.
133786         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
133787         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
133788         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
133789         UID, GID.  Check range.
133791 2000-09-06  Jim Meyering  <meyering@lucent.com>
133793         * lib/getopt.c (_getopt_internal): Update from glibc.
133795 2000-08-30  Jim Meyering  <meyering@lucent.com>
133797         * lib/strftime.c: Merge in changes from GNU libc.
133799 2000-08-26  Jim Meyering  <meyering@lucent.com>
133801         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
133802         * m4/fpending.m4: New file.
133804 2000-08-26  Jim Meyering  <meyering@lucent.com>
133806         * lib/closeout.c: Include "__fpending.h".
133807         (close_stdout_status): Return right away if there's nothing to flush.
133809         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
133810         * lib/__fpending.c: New file.
133811         * lib/__fpending.h: New file.
133813 2000-08-20  Jim Meyering  <meyering@lucent.com>
133815         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
133816         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
133817         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
133819 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
133821         Improve fileutils installation on systems where running
133822         programs (like install) can't be unlinked.
133823         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
133824         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
133826 2000-08-07  Paul Eggert  <eggert@twinsun.com>
133828         Standardize on "memory exhausted" instead of "Memory exhausted"
133829         or "virtual memory exhausted".
133830         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
133831         "virtual memory exhausted".
133832         * lib/same.c (same_name): Invoke xalloc_die instead of printing
133833         our own message.
133834         * lib/userspec.c (parse_user_spec): Likewise.
133835         * lib/bumpalloc.h: comment fix
133836         * lib/same.c, userspec.c: Include xalloc.h.
133838         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
133839         not char *const and pointing to a constant array.
133840         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
133841         (xrealloc): Comment fix.
133843         * lib/userspec.c (parse_user_spec):
133844         Don't translate a message until just before returning,
133845         to avoid unnecessary translation.
133847 2000-08-07  Jim Meyering  <meyering@lucent.com>
133849         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
133850         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
133851         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
133852         getgroups.c, gethostname.c, getopt.h, group-member.c,
133853         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
133854         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
133855         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
133856         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
133857         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
133858         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
133859         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
133860         yesno.c: Back out Copyright date changes for each file with no change
133861         this year.  This eases coordination with other programs using the same
133862         source code modules.  From Paul Eggert.
133864 2000-08-06  Paul Eggert  <eggert@twinsun.com>
133866         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
133867         not char, for compatibility with glibc 2.1.3 strftime.c.
133869 2000-08-03  Greg McGary  <greg@mcgary.org>
133871         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
133872         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
133873         (EXTEND_BUFFER): Use them.
133875 2000-08-01  Jim Meyering  <meyering@lucent.com>
133877         * lib/dirname.c (ISSLASH): Define.
133878         (BACKSLASH_IS_PATH_SEPARATOR): Define.
133879         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
133880         both `\' and `/' may be use as path separators.
133881         Based on a patch from Prashant TR.
133883 2000-07-31  Paul Eggert  <eggert@twinsun.com>
133885         * lib/quotearg.c (quotearg_n_options): Don't make the initial
133886         slot vector a constant, since it might get modified.
133888 2000-07-31  Jim Meyering  <meyering@lucent.com>
133890         * lib/xmalloc.c: Use `virtual memory exhausted', not
133891         `Memory exhausted'.
133892         * lib/obstack.c (print_and_abort): Likewise.
133894 2000-07-30  Paul Eggert  <eggert@twinsun.com>
133896         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
133897         buffer, so that the caller can always quote one small
133898         component of a "memory exhausted" message in slot 0.
133899         From a suggestion by Jim Meyering.
133901 2000-07-30  Jim Meyering  <meyering@lucent.com>
133903         * lib/makepath.c (make_path): Quote the other instance, too.
133905         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
133906         (STATIC_BUF_SIZE): Define.
133907         (quotearg_n_options): Use only statically allocated storage when
133908         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
133909         than STATIC_BUF_SIZE.
133911 2000-07-29  Jim Meyering  <meyering@lucent.com>
133913         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
133914         * lib/dirname.c (dir_name): Likewise.
133916         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
133917         `/'.
133919         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
133920         (dir_name): Assert that there are no trailing slashes.
133922 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
133924         * lib/mbswidth.h (mbswidth): Add a flags argument.
133925         (mbswidth): New declaration.
133926         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
133927         * lib/mbswidth.c (mbswidth): Add a flags argument.
133928         (mbsnwidth): New function.
133930 2000-07-24  Jim Meyering  <meyering@lucent.com>
133932         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
133934 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133936         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
133938 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133940         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
133941         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
133942         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
133943         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
133944         invoke multibyte primitives.
133946 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133948         * lib/quotearg.c:
133949         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
133950         so that mbstate_t is always defined.
133952         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
133953         be 1 in at least one GCC installation, and this configuration
133954         error is likely to be common.  Ignoring MB_LEN_MAX hurts
133955         performance on hosts that have mbrtowc but have only unibyte
133956         locales, but I assume these hosts are rare.
133958 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133960         * lib/mbswidth.c (_XOPEN_SOURCE):
133961         Don't define; this causes problems on Solaris 7.
133962         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
133964 2000-07-23  Jim Meyering  <meyering@lucent.com>
133966         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
133967         too: getgrgid, getpwuid, getuid.
133969 2000-07-23  Jim Meyering  <meyering@lucent.com>
133971         * lib/basename.c (base_name): Add an assertion.
133973 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
133975         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
133976         shadow its mbsinit function.
133978 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133980         * lib/mbswidth.h: New file.
133981         * lib/mbswidth.c: New file.
133982         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
133983         (noinst_HEADERS): Add mbswidth.h.
133985 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133987         * lib/config.charset: Add support for FreeBSD. Improve support for
133988         HP-UX and IRIX 6.
133990 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
133992         * m4/mbswidth.m4: New file.
133993         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
133995 2000-07-15  Jim Meyering  <meyering@lucent.com>
133997         * lib/makepath.c: Include quote.h.
133998         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
133999         corresponding argument in a `quote (...)' call.
134000         Give better diagnostics.
134002         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
134003         (noinst_HEADERS): Add quote.h.
134005         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
134006         from tar's src/misc.c.
134007         * lib/quote.h: New file.  Prototypes for same.
134009 2000-07-14  Paul Eggert  <eggert@twinsun.com>
134011         From a suggestion by Bruno Haible.
134012         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
134013         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
134014         to decide whether to define the BeOS workaround macro;
134015         this adjusts to the change to AC_MBSTATE_T.
134017 2000-07-14  Jim Meyering  <meyering@lucent.com>
134019         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
134020         jm_AC_TYPE_UINTMAX_T.
134022 2000-07-13  Paul Eggert  <eggert@twinsun.com>
134024         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
134026         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
134027         quotearg_buffer_restyled): Add support for
134028         clocale_quoting_style.  Undo previous change to
134029         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
134030         and "{RIGHT QUOTATION MARK}" msgids.
134032 2000-07-10  Paul Eggert  <eggert@twinsun.com>
134034         From a suggestion by Bruno Haible.
134035         * m4/mbstate_t.m4 (AC_MBSTATE_T):
134036         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
134037         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
134038         and mbstate_t, to a single-part test that simply defines mbstate_t.
134039         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
134040         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
134042 2000-07-10  Jim Meyering  <meyering@lucent.com>
134044         * m4/strerror_r.m4: Mirror the correction made in autoconf.
134046         * m4/gnu-source.m4: Output to confdefs.h directly.
134047         Suggestion from Akim Demaille.
134049 2000-07-09  Paul Eggert  <eggert@twinsun.com>
134051         The old behavior of quoting `like this' doesn't look good with
134052         newer, ISO-style fonts.  See:
134053         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
134055         Instead, quote "like this" by default.  Let the translator
134056         tailor the locale-specific quoting behavior by providing
134057         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
134059         * lib/quotearg.c (N_): New macro.
134060         (gettext_default): New function.
134061         (quotearg_buffer_restyled): Use
134062         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
134063         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
134065 2000-07-09  Jim Meyering  <meyering@lucent.com>
134067         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
134068         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
134070         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
134071         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
134073 2000-07-09  Jim Meyering  <meyering@lucent.com>
134075         * lib/Most files: Update copyright dates to include 2000.
134077 2000-07-08  Jim Meyering  <meyering@lucent.com>
134079         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
134080         if not defined.
134081         (xgethostname): Remove now-unnecessary #ifdef.
134082         Move declaration of `err' into loop where it's used.
134084 2000-07-05  Paul Eggert  <eggert@twinsun.com>
134085         and Bruno Haible  <haible@clisp.cons.org>
134087         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
134088         only if the test for an object-type mbstate_t fails.  This
134089         prevents us from mistakenly reporting that mbstate_t is a
134090         system object type after we "#define mbstate_t int" to work
134091         around its lack.
134093 2000-07-05  Paul Eggert  <eggert@twinsun.com>
134094         and Bruno Haible  <haible@clisp.cons.org>
134096         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
134098 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
134100         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
134101         to strerror_r.
134102         Include <ctype.h> for use of isalpha.
134104 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
134106         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
134107         by allocating a larger buffer. Test the gethostname return value for
134108         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
134109         returns an error and ENAMETOOLONG isn't defined.
134111 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
134113         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
134114         dimension.
134116 2000-07-04  Jim Meyering  <meyering@lucent.com>
134118         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
134119         of the deprecated AC_CHECKING.
134121 2000-07-04  Jim Meyering  <meyering@lucent.com>
134123         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
134124         Reported by Bruno Haible.
134126 2000-07-04  Jim Meyering  <meyering@lucent.com>
134128         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
134129         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
134130         lacks mbrtowc.
134132 2000-07-03  Paul Eggert  <eggert@twinsun.com>
134134         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
134135         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
134137 2000-07-03  Paul Eggert  <eggert@twinsun.com>
134138         and Bruno Haible  <haible@clisp.cons.org>
134140         * lib/quotearg.c (mbrtowc):
134141         Assign to *pwc, and return 1 only if result is nonzero.
134142         (iswprint): Use ISPRINT when substituting our own mbrtowc.
134144 2000-07-03  Jim Meyering  <meyering@lucent.com>
134146         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
134148 2000-07-03  Jim Meyering  <meyering@lucent.com>
134150         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
134151         This is necessary to get a definition of e.g., UTMP_FILE on
134152         HP-UX 10.20.
134153         From Bob Proulx.
134155 2000-07-02  Jim Meyering  <meyering@lucent.com>
134157         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
134159         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
134160         AC_LIBOBJ(function_name).
134161         * m4/chown.m4: Likewise.
134162         * m4/fnmatch.m4: Likewise.
134163         * m4/ftruncate.m4: Likewise.
134164         * m4/getgroups.m4: Likewise.
134165         * m4/getline.m4: Likewise.
134166         * m4/group-member.m4: Likewise.
134167         * m4/jm-macros.m4: Likewise.
134168         * m4/lstat.m4: Likewise.
134169         * m4/malloc.m4: Likewise.
134170         * m4/memcmp.m4: Likewise.
134171         * m4/nanosleep.m4: Likewise.
134172         * m4/putenv.m4: Likewise.
134173         * m4/realloc.m4: Likewise.
134174         * m4/regex.m4: Likewise.
134175         * m4/stat.m4: Likewise.
134176         * m4/strftime.m4: Likewise.
134178 2000-07-02  Jim Meyering  <meyering@lucent.com>
134180         * lib/quotearg.c (mbstate_t): Don't define here.
134182 2000-07-02  Jim Meyering  <meyering@lucent.com>
134184         * lib/nanosleep.c (SIGCONT): Define if not already defined.
134186 2000-07-01  Jim Meyering  <meyering@lucent.com>
134188         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
134190 2000-07-01  Jim Meyering  <meyering@lucent.com>
134192         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
134193         problem.
134195 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
134197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
134198         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
134200 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
134202         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
134203         per change in ../m4/ls-mntd-fs.m4.
134204         (read_filesystem_list): Ignore symbolic links.
134206 2000-06-29  Jim Meyering  <meyering@lucent.com>
134208         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
134209         for declaration of strcmp.
134211         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
134213         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
134214         Avoid warning by casting result to `char *' to remove `const'.
134216 2000-06-28  Jim Meyering  <meyering@lucent.com>
134218         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
134219         included by quotearg.c, for which we perform this test.  From
134220         Bruno Haible.
134222 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
134224         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
134225         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
134226         <utmpx.h> exists, put readutmp.o into LIBOBJS.
134228 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
134230         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
134232 2000-06-26  Paul Eggert  <eggert@twinsun.com>
134234         savedir now sets errno on failure and invokes xmalloc to get memory.
134235         Fix a couple of other minor bugs while we're at it.
134237         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
134238         (NAMLEN): Remove macro.
134239         (malloc, realloc): Remove decls.
134240         (stpcpy): Likewise.
134241         ("xalloc.h"): Include.
134242         (NAME_SIZE_DEFAULT): New macro.
134243         (savedir): Use xmalloc / xrealloc to allocate memory.
134244         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
134245         Skip "" directory entries.
134246         Use strlen to calculate directory entry length, since the old method
134247         is rarely used these days and isn't worth supporting.
134248         Don't use a pointer after freeing it.
134249         Check for integer overflow when calculating allocation size.
134250         Use memcpy to copy entries, instead of stpcpy.
134251         Set errno properly when returning NULL.
134252         Check for readdir error.
134254 2000-06-26  Jim Meyering  <meyering@lucent.com>
134256         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
134258 2000-06-25  Jim Meyering  <meyering@lucent.com>
134260         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
134261         Linux header bug when _XOPEN_SOURCE is defined to 500.
134263 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
134265         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
134266         deficiency.
134268 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
134270         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
134271         Include xalloc.h.
134272         Don't include <stdlib.h>.  Don't declare malloc, realloc.
134274 2000-06-24  Jim Meyering  <meyering@lucent.com>
134276         * m4/strerror_r.m4: Revive this file -- to try out an experimental
134277         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
134278         for which strerror does return char*, but which lacks a conveniently
134279         accessible declaration of the function.  If the compile-test says
134280         strerror_r doesn't work, then resort to a `run'-test that works on
134281         BeOS and segfaults on DEC Unix.
134283 2000-06-24  Jim Meyering  <meyering@lucent.com>
134285         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
134287 2000-06-23  Paul Eggert  <eggert@twinsun.com>
134289         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
134290         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
134292 2000-06-23  Paul Eggert  <eggert@twinsun.com>
134294         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
134295         (mbrtowc, mbstate_t): Define substitutes if
134296         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
134297         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
134298         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
134300 2000-06-23  Jim Meyering  <meyering@lucent.com>
134302         * m4/afs.m4: Add missing AC_MSG_RESULT.
134303         Reported by Bruno Haible.
134305         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
134306         Suggestion from Bruno Haible.
134308 2000-06-23  Jim Meyering  <meyering@lucent.com>
134310         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
134312 2000-06-21  Jim Meyering  <meyering@lucent.com>
134314         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
134316 2000-06-21  Jim Meyering  <meyering@lucent.com>
134318         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
134319         (noinst_HEADERS): Add getstr.h.
134321         * lib/getline.c (getstr): Move into a separate file.
134322         * lib/getstr.c (getstr): New file, extracted from getline.c, with
134323         the following changes: new parameter, delim2; both delim[12]
134324         parameters have type `int', not `char'.  The latter would lose
134325         with 8-bit delimiters.
134326         * lib/getstr.h: New file.
134328 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
134330         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
134331         than 1024, return a memory chunk of least possible size, instead
134332         of size PATH_MAX + 2. In the loop, increment the size proportionally.
134333         Use free/xmalloc instead of xrealloc to avoid copying for very long
134334         paths.
134336 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
134338         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
134339         the empty string.
134341 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
134343         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
134344         address, not strdup.  Include <stdlib.h> and don't declare free().
134346 2000-06-19  Jim Meyering  <meyering@lucent.com>
134348         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
134350 2000-06-18  Jim Meyering  <meyering@lucent.com>
134352         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
134354         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
134355         `checking whether...' message to be consistent with that of the
134356         lstat test.
134358 2000-06-18  Jim Meyering  <meyering@lucent.com>
134360         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
134361         Besides, these days every porting target provides a mkdir function.
134363         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
134364         needed. (this snippet comes from src/system.h).
134366 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
134368         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
134370 2000-06-15  Paul Eggert  <eggert@twinsun.com>
134372         * lib/human.c (adjust_value): New function.
134373         (human_readable_inexact): Apply rounding style even when
134374         printing approximate values.
134376 2000-06-14  Paul Eggert  <eggert@twinsun.com>
134378         * lib/human.c (human_readable_inexact): Allow an input block
134379         size that is not a multiple of the output block size, and vice versa.
134380         Reported by Piergiorgio Sartor.
134382 2000-06-14  Paul Eggert  <eggert@twinsun.com>
134384         * lib/getdate.y (get_date): Apply relative times after time
134385         zone indicator, not before.  Reported by Todd A. Jacobs.
134387 2000-06-13  Jim Meyering  <meyering@lucent.com>
134389         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
134391         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
134393 2000-06-12  Paul Eggert  <eggert@twinsun.com>
134395         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
134397 2000-06-12  Jim Meyering  <meyering@lucent.com>
134399         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
134400         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
134401         optional argument.
134402         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
134403         the optional argument, `lib'.
134405 2000-06-08  Jim Meyering  <meyering@lucent.com>
134407         * m4/largefile.m4: Remove file (now that it's part of autoconf).
134409 2000-06-04  Paul Eggert  <eggert@twinsun.com>
134411         Rewrite largefile configuration so that we don't need to run
134412         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
134413         AC_CANONICAL_HOST in configure.in -- jmm]
134415         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
134416         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
134417         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
134418         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
134419         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
134420         All uses changed.
134421         Instead of inspecting the output of getconf, try to compile the
134422         test program without and with the macro definition.
134423         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
134424         for getconf.  Instead, check for the needed flags by compiling
134425         test programs.
134427 2000-06-04  Paul Eggert  <eggert@twinsun.com>
134429         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
134431 2000-06-04  Jim Meyering  <meyering@lucent.com>
134433         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
134434         SunOS 4.1.4 for which gid_t is an unsigned type.
134436 2000-06-03  Jim Meyering  <meyering@lucent.com>
134438         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
134439         now that autoconf requires that.
134441         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
134442         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
134443         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
134445 2000-06-03  Jim Meyering  <meyering@lucent.com>
134447         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
134449 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
134451         * m4/glibc21.m4: New file.
134452         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
134454 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
134456         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
134457         newer, don't install charset.alias.
134458         * lib/config.charset: Change the Linux/glibc rules so they become empty
134459         on glibc-2.1 or newer.
134461 2000-06-02  Jim Meyering  <meyering@lucent.com>
134463         * lib/mountlist.c: Back out last change.  Instead, do this...
134464         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
134465         me_dummy member using the same `ignore'-testing code.
134466         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
134467         fs_type strings.
134468         From Mark D. Roth.
134470 2000-05-29  Jim Meyering  <meyering@lucent.com>
134472         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
134473         mounts with the `ignore' attribute.  Based on a patch from
134474         Mark D. Roth.
134476 2000-05-28  Jim Meyering  <meyering@lucent.com>
134478         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
134479         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134480         * m4/stat.m4: Likewise.
134481         * m4/lstat.m4: Likewise.
134482         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
134484         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
134485         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
134487 2000-05-26  Jim Meyering  <meyering@lucent.com>
134489         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
134491 2000-05-24  Jim Meyering  <meyering@lucent.com>
134493         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
134494         autoconf requires that.
134495         * m4/lib-check.m4: Likewise.
134496         * m4/jm-macros.m4: Likewise.
134497         * m4/strftime.m4: Likewise.
134499         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
134500         AC_CHECK_DECLS, now that autoconf requires that.
134502 2000-05-22  Jim Meyering  <meyering@lucent.com>
134504         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134505         * m4/lstat.m4: Likewise.
134507 2000-05-22  Jim Meyering  <meyering@lucent.com>
134509         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
134511 2000-05-20  Jim Meyering  <meyering@lucent.com>
134513         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
134514         (jm_PREREQ): Use it.
134516 2000-05-18  Jim Meyering  <meyering@lucent.com>
134518         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
134519         back, too, since it may have been modified by allocate_entry.
134520         (hash_delete): Rewrite to use neither the assignment operator
134521         nor the comma operator in an if-expression.
134523 2000-05-15  Paul Eggert  <eggert@twinsun.com>
134525         * lib/closeout.c:
134526         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
134527         Remove; no longer needed.
134528         "quotearg.h": Add include.
134529         (file_name): Do not bother to explicitly initialize to NULL; it's less
134530         efficient on some hosts.
134531         (close_stdout_status): Remove test as to whether stdout was already
134532         closed; it breaks for the case "echo x | sort >&-".
134533         Quote file name colons.
134534         Do not assume that _("write error") lacks format strings.
134536 2000-05-15  Jim Meyering  <meyering@lucent.com>
134538         * lib/version-etc.c (version_etc_copyright): Update the copyright
134539         string used in all --version output.
134541 2000-05-14  Jim Meyering  <meyering@lucent.com>
134543         * lib/closeout.c (close_stdout_set_file_name): New function.
134544         (close_stdout_status): Use new file-scoped global.
134545         Return right away if fstat says the stdout file descriptor is invalid.
134546         * lib/closeout.h (close_stdout_set_file_name): Declare.
134548 2000-05-10  Jim Meyering  <meyering@lucent.com>
134550         * lib/closeout.c [default_exit_status]: New file-scoped variable.
134551         (close_stdout_set_status): New function.
134552         * lib/closeout.h (close_stdout_set_status): Declare.
134554 2000-05-09  Jim Meyering  <meyering@lucent.com>
134556         * m4/gettext.m4: Rename this...
134557         * m4/libintl.m4: ...to this.
134559 2000-05-08  Jim Meyering  <meyering@lucent.com>
134561         * lib/long-options.c: Don't include closeout.h.
134562         (parse_long_options): Don't call close_stdout for --version.
134564 2000-05-06  Paul Eggert  <eggert@twinsun.com>
134566         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
134567         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
134568         2.1.3 bug.  This avoids a clash when files like regex.c define
134569         _GNU_SOURCE.
134571 2000-05-06  Jim Meyering  <meyering@lucent.com>
134573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
134574         (AC_REPLACE_FUNCS): Add strnlen.
134576         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
134577         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
134579         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
134580         AC_SEARCH_LIBS call for nanosleep.
134581         (LIB_NANOSLEEP): Set and AC_SUBST.
134583 2000-05-06  Jim Meyering  <meyering@lucent.com>
134585         * lib/strnlen.c: Undefine __strnlen and strnlen.
134586         [!weak_alias]: Define __strnlen to strnlen.
134588         * lib/atexit.c: New file, from libiberty.
134590 2000-05-06  Jim Meyering  <meyering@lucent.com>
134592         * lib/closeout.c (close_stdout_status): Also check for errors on the
134593         stderr stream.
134595 2000-05-05  Jim Meyering  <meyering@lucent.com>
134597         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
134598         AC_SEARCH_LIBS call for clock_gettime.
134599         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
134601         * m4/search-libs.m4: Update from autoconf.
134603         su doesn't work on Solaris 2.6.
134604         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
134605         <shadow.h>.  Reported by Dragos Harabor.
134607 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
134609         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
134610         memcpy instead of xmalloc, xrealloc, path_concat.
134611         (locale_charset): Treat empty environment variables as absent.
134612         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
134614 2000-05-04  Jim Meyering  <meyering@lucent.com>
134616         * lib/getopt.c: Update from glibc.
134617         * lib/obstack.c: Likewise.
134618         * lib/obstack.h: Likewise.
134619         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
134620         file
134622         * lib/regex.h: Likewise.
134623         * lib/strndup.c: Likewise.
134624         * lib/strnlen.c: New file, from glibc.
134626 2000-05-03  Jim Meyering  <meyering@lucent.com>
134628         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
134630 2000-05-02  Paul Eggert  <eggert@twinsun.com>
134632         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
134633         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
134634         compile-time test, rather than inspecting host and OS, to
134635         decide whether to define _LARGEFILE_SOURCE.
134637 2000-05-01  Jim Meyering  <meyering@lucent.com>
134639         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
134641         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
134642         Based on a patch from Bruno Haible.
134644 2000-05-01  Jim Meyering  <meyering@lucent.com>
134646         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
134648 2000-04-29  Jim Meyering  <meyering@lucent.com>
134650         * lib/path-concat.c: Declare strdup only if it's not defined.
134651         * lib/canon-host.c: Likewise.
134653 2000-04-28  Jim Meyering  <meyering@lucent.com>
134655         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
134656         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
134657         is included first, then limits.h is included by locale.h by libintl.h.
134658         From John David Anglin.
134660 2000-04-25  Jim Meyering  <meyering@lucent.com>
134662         * lib/makepath.c (S_IRWXUGO): Define.
134663         (make_path): Always perform explicit chmod if MODE specifies any
134664         of the `special' permission bits.  Prompted by a bug report against
134665         install from Mate Wierdl and Joost van Baal.
134667 2000-04-18  Jim Meyering  <meyering@lucent.com>
134669         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
134670         (jm_PREREQ): Use it.
134672 2000-04-18  Jim Meyering  <meyering@lucent.com>
134674         * lib/README: New file.
134676         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
134677         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
134679 2000-04-17  Jim Meyering  <meyering@lucent.com>
134681         Get it right :-)
134682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
134683         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
134684         Suggestion from Akim Demaille.
134686 2000-04-17  Jim Meyering  <meyering@lucent.com>
134688         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
134689         the definition of it to rpl_strftime also defined-away the system's
134690         declaration.
134692 2000-04-15  Jim Meyering  <meyering@lucent.com>
134694         Use `C' to denote so-called `contiguous' files, the same way
134695         that tar does.
134696         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
134697         (ftypelet): Use S_ISCTG.
134698         From Michael Deutschmann.
134700 2000-04-14  Jim Meyering  <meyering@lucent.com>
134702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
134703         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
134704         clobbered.
134706 2000-04-14  Jim Meyering  <meyering@lucent.com>
134708         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
134710 2000-04-13  Jim Meyering  <meyering@lucent.com>
134712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
134713         AH_VERBATIM to insert required #ifndef into config.h.in.
134714         Suggestion from Akim Demaille.
134716 2000-04-12  Jim Meyering  <meyering@lucent.com>
134718         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
134719         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
134720         Christian Krackowizer.
134722         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
134723         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
134724         (AC_SYS_LARGEFILE): Require.
134725         (AM_C_PROTOTYPES): Require.
134727 2000-04-08  Jim Meyering  <meyering@lucent.com>
134729         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
134730         names don't conflict.  Reported by Eli Zaretskii.
134732 2000-04-07  Jim Meyering  <meyering@lucent.com>
134734         * lib/putenv.c: Move inclusion of errno.h so it follows that of
134735         sys/types.h, to work around system header problems on AIX 3.2.5.
134736         From Bruno Haible.
134738 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
134740         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
134741         bug.  Deal with the different error behavior of Irix iconv.
134743 2000-04-05  Paul Eggert  <eggert@twinsun.com>
134745         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
134746         IRIX if the installer said otherwise.
134748 2000-04-05  Jim Meyering  <meyering@lucent.com>
134750         Portability tweaks required for ultrix4.3.
134751         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
134752         (jm_CHECK_DECLS): Add getutent to the list of functions.
134753         (_jm_DECL_HEADERS): Add utmpx.h.
134754         From John David Anglin.
134756         * m4/strftime.m4: Back out the 2000-04-02 change.
134757         Instead of that change, simply undefine putenv in the test program.
134759 2000-04-05  Jim Meyering  <meyering@lucent.com>
134761         Portability tweaks required for ultrix4.3.
134762         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
134763         getutent.
134764         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
134765         * lib/canon-host.c: Declare strdup.
134766         * lib/path-concat.c: Likewise.
134767         From John David Anglin.
134769 2000-04-04  Jim Meyering  <meyering@lucent.com>
134771         Be more DOS 8.3-friendly.
134772         * lib/ref-add.sin: Renamed from ref-add.sed.in.
134773         * lib/ref-del.sin: Renamed from ref-del.sed.in.
134774         * lib/Makefile.am: Reflect renaming.
134775         Reported by Eli Zaretskii.
134777         Use a temporary file name that won't clash with `charset.alias'
134778         in the DOS 8.3 name space.
134779         * lib/Makefile.am (charset_tmp): Define.
134780         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
134781         (uninstall-local): Likewise.
134782         Reported by Eli Zaretskii.
134784 2000-04-03  Jim Meyering  <meyering@lucent.com>
134786         * m4/gettext.m4: Fix typo in comment.
134788         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
134789         textutils/configure.in).  Suggestion from Paul Eggert.
134790         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
134792 2000-04-02  Paul Eggert  <eggert@twinsun.com>
134794         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
134795         variable in the shell rather than using putenv, which isn't
134796         portable.  This avoids the configure-time inter-test dependency
134797         on the potentially-renamed putenv function.
134799 2000-03-30  Paul Eggert  <eggert@twinsun.com>
134801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
134802         before checking struct stat.st_blksize, so that
134803         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
134805 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134807         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
134808         since strftime.c uses HAVE_STRFTIME to decide whether to use
134809         the underlying strftime.
134811 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134813         * lib/time/strftime.c (my_strftime): Make sure we call the system
134814         strftime, not ourselves, when invoking the underlying strftime.
134816 2000-03-24  Jim Meyering  <meyering@lucent.com>
134818         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
134819         (charset_alias): Define.
134820         (install-exec-local): Factor out common code.
134821         (uninstall-local): Split lines longer than 80.
134822         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
134823         (SUFFIXES): Define.
134824         (.sed.in.sed): New rule.  Don't redirect directly to $@.
134825         (CLEANFILES): Add ref-add.sed and ref-del.sed.
134827 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
134829         * lib/config.charset: Output a line containing "Packages using this
134830         file".
134831         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
134832         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
134833         ref-del.sed): New rules.
134835 2000-03-17  Jim Meyering  <meyering@lucent.com>
134837         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
134838         Otherwise, include <strings.h>
134840 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
134842         * lib/unicodeio.c (utf8_wctomb): New function.
134843         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
134844         format instead of in UCS-4 with platform dependent endianness.
134846 2000-03-10  Jim Meyering  <meyering@lucent.com>
134848         * m4/lib-check.m4: Look for getspnam in -lgen, too.
134849         From Marco Franzen.
134851 2000-03-07  Paul Eggert  <eggert@twinsun.com>
134853         * lib/savedir.c (savedir): Work even if directory size is
134854         negative; this can happen with some screwy NFS configurations.
134856 2000-03-06  Jim Meyering  <meyering@lucent.com>
134858         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
134859         if it's NULL (because we ran out of memory).  From Bruno Haible.
134861 2000-03-05  Jim Meyering  <meyering@lucent.com>
134863         * lib/localcharset.c ("path-concat.h"): Include.
134864         (get_charset_aliases): Use path_concat instead of ANSI string
134865         concatenation.
134867         * lib/unicodeio.h (PARAMS): Define.
134868         Use it to guard prototype.
134870 2000-03-04  Jim Meyering  <meyering@lucent.com>
134872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
134873         for lib/localcharset.c.
134875 2000-03-04  Jim Meyering  <meyering@lucent.com>
134877         * lib/Makefile.am (install-exec-local): Create $(libdir) before
134878         installing into it.
134879         (uninstall-local): Uncomment this rule so `make distcheck' works
134880         once again.
134882         * lib/unicodeio.c (<errno.h>): Include it.
134883         (errno): Declare if not defined.
134885         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
134887         * lib/config.charset: New version, incorporating remarks from a linux
134888         i18n mailing list.  From Bruno Haible.
134890 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
134892         * m4/codeset.m4: New file.
134893         * m4/iconv.m4: New file.
134894         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
134896 2000-03-03  Jim Meyering  <meyering@lucent.com>
134898         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
134900 2000-03-02  Jim Meyering  <meyering@lucent.com>
134902         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
134903         the messages come out on separate lines.
134905         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
134906         rather than jm_CHECK_DECLARATIONS.
134907         * m4/decl.m4: Remove now-unused file.
134909         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
134910         geteuid.
134912 2000-03-02  Jim Meyering  <meyering@lucent.com>
134914         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
134916 2000-03-01  Jim Meyering  <meyering@lucent.com>
134918         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
134919         * lib/unicodeio.c: Likewise.
134921 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
134923         * lib/config.charset: New file.
134924         * lib/localcharset.c: New file.
134925         * lib/unicodeio.h, lib/unicodeio.c: New files.
134926         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
134927         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
134928         (noinst_HEADERS): Add unicodeio.h.
134929         (all-local, install-exec-local, charset.alias): New targets.
134931 2000-02-28  Paul Eggert  <eggert@twinsun.com>
134933         * lib/quotearg.c (ALERT_CHAR): New macro.
134934         (quotearg_buffer_restyled): Use it.
134936 2000-02-27  Jim Meyering  <meyering@lucent.com>
134938         * m4/check-decl.m4: Add getenv to the list.
134940 2000-02-27  Jim Meyering  <meyering@lucent.com>
134942         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
134943         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
134945         * lib/backupfile.c: Guard inclusion of stdlib.h with
134946         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
134947         Declare malloc if needed.
134949         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
134950         `#ifndef HAVE_DECL..'
134951         now that autoconf always defines the HAVE_DECL_ symbols.
134952         * lib/human.c: Likewise.
134953         * lib/same.c: Likewise.
134954         * lib/strtoumax.c: Likewise.
134956         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
134957         declaration check was not run.
134958         * lib/hash.c: Likewise.
134959         * lib/human.c: Likewise.
134960         * lib/same.c: Likewise.
134961         * lib/strtoumax.c: Likewise.
134963         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
134964         `.', then first look up the entire `.'-containing string as a login
134965         name.
134967 2000-02-23  Jim Meyering  <meyering@lucent.com>
134969         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
134970         in place of my hack.
134972 2000-02-18  Paul Eggert  <eggert@twinsun.com>
134974         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
134975         (textint): New typedef.
134976         (parser_control): Member year changed from int to textint.
134977         All uses changed.
134978         (YYSTYPE): Removed; replaced by %union with int and textint members.
134979         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
134980         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
134981         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
134982         (tSNUMBER, tUNUMBER): Now of type <textintval>.
134983         (date, number, to_year): Use width of number in digits, not its value,
134984         to determine whether it's a 2-digit year, or a 2-digit time.
134985         (yylex): Store number of digits of numeric tokens.
134986         Reported by John Kendall.
134988         (parser_control): Changed from struct parser_control to typedef (for
134989         consistency).  All uses changed.
134991         (tID): Removed; not used.
134992         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
134994 2000-02-14  Paul Eggert  <eggert@twinsun.com>
134996         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
134997         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
134999 2000-02-12  Jim Meyering  <meyering@lucent.com>
135001         * lib/userspec.c (ISDIGIT): Define it.
135002         (isdigit): Remove definition.
135003         (is_number): Use ISDIGIT, not isdigit.
135004         <libintl.h>: Include.
135005         (_ and N_): Define.
135006         (parse_user_spec): Mark translatable strings.
135008 2000-02-10  Jim Meyering  <meyering@lucent.com>
135010         With these changes, nanosleep.[ch] are finally enough like the other
135011         lib/* replacement files to compile on a few more losing systems.
135013         * lib/nanosleep.h: Don't include config.h.
135014         Remove prototype from declaration of nanosleep.
135015         (PARAMS): Remove now-unneeded definition.
135016         * lib/nanosleep.c: #undef nanosleep.
135017         (rpl_nanosleep): Rename from nanosleep.
135019 2000-02-10  Jim Meyering  <meyering@lucent.com>
135021         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
135022         gnu_nanosleep to rpl_nanosleep.
135024 2000-02-09  Jim Meyering  <meyering@lucent.com>
135026         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
135027         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
135029 2000-02-08  Akim Demaille  <akim@epita.fr>
135031         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
135032         `[' and `]' and remove uses of `changequote'.
135033         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
135034         (AC_SYS_LARGEFILE): Likewise.
135035         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
135036         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
135037         of changequote.
135038         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
135039         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
135040         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
135041         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
135043 2000-02-05  Jim Meyering  <meyering@lucent.com>
135045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
135046         Remove explicit use of AC_HEADER_TIME.  It is required by
135047         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
135048         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
135049         in autoconf whereby the expansion of the latter ended up preceding
135050         the expansion of its prerequisite, AC_HEADER_TIME.
135051         Reported by Volker Borchert.
135053 2000-02-03  Jim Meyering  <meyering@lucent.com>
135055         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
135057 2000-02-03  Jim Meyering  <meyering@lucent.com>
135059         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
135060         rather than with `#if HAVE_UTMPNAME'.
135062 2000-02-02  Jim Meyering  <meyering@lucent.com>
135064         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
135065         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
135066         Reported by Eli Zaretskii.
135068 2000-02-01  Jim Meyering  <meyering@lucent.com>
135070         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
135072 2000-01-31  Jim Meyering  <meyering@lucent.com>
135074         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
135075         functions.  Add the time.h and sys/time.h headers along with the
135076         AC_REQUIRE'ment of AC_HEADER_TIME.
135078 2000-01-31  Jim Meyering  <meyering@lucent.com>
135080         * lib/nanosleep.h (nanosleep): Guard declaration with
135081         `#if ! HAVE_DECL_NANOSLEEP'.
135082         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
135083         the declaration in that vendor's sys/timers.h.
135084         Reported by Christian Krackowizer.
135086         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
135087         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
135088         (ISPRINT): Likewise.
135089         Reported by Tom Tromey.
135091 2000-01-30  Jim Meyering  <meyering@lucent.com>
135093         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
135095         * m4/prereq.m4 (utmp_includes): Define.
135096         Check for ut_user and ut_name members in both struct utmpx
135097         and struct utmp.
135099 2000-01-30  Jim Meyering  <meyering@lucent.com>
135101         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
135102         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
135103         header files where only utmpx.ut_user is declared.
135105         * lib/readutmp.h (UT_USER): Define.
135107 2000-01-29  Jim Meyering  <meyering@lucent.com>
135109         * m4/lib-check.m4: New file containing library-related checks from
135110         fileutils and sh-utils (textutils had none).
135112 2000-01-28  Jim Meyering  <meyering@lucent.com>
135114         * m4/perl.m4: Change format of warning message to look more like that
135115         from the missing script.  Suggestion from François Pinard.
135117 2000-01-25  Jim Meyering  <meyering@lucent.com>
135119         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
135120         well as time.h in the compile check.
135121         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
135122         Fix typo in cross-compiling case: s/yes/no/.
135124 2000-01-23  Jim Meyering  <meyering@lucent.com>
135126         * m4/jm-macros.m4: Move df-related tests here from
135127         fileutils/configure.in
135129         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
135130         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
135132         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
135133         s/space/ac_fsusage_space/.
135134         (jm_FILE_SYSTEM_USAGE): Take two parameters.
135136         * m4/ftruncate.m4: New file (derived from part of
135137         fileutils/configure.in).
135138         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
135139         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
135141         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
135142         AC_SUBST these here, rather than just in sh-util/configure.in, so
135143         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
135144         all the same.
135145         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
135146         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
135147         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
135148         (AC_SUBST(POW_LIBM)): Likewise.
135149         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
135151 2000-01-23  Jim Meyering  <meyering@lucent.com>
135153         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
135154         obstack.c.
135156 2000-01-22  Jim Meyering  <meyering@lucent.com>
135158         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
135160         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
135162         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
135163         configure.in
135164         (AC_CHECK_HEADERS): Likewise for sh-utils.
135165         (AC_CHECK_HEADERS): Likewise for textutils.
135166         Merge the three lists of headers.
135168         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
135169         from fileutils' configure.in.
135171         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
135172         code. Moved tests into their own function (_jm_DECL_HEADERS) in
135173         check-decl.m4.
135175         * m4/check-decl.m4: Use #if rather than #ifdef.
135176         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
135177         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
135178         (_jm_DECL_HEADERS): Define new function.
135179         (jm_CHECK_DECLARATIONS): Require it.
135181 2000-01-22  Jim Meyering  <meyering@lucent.com>
135183         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
135184         [! HAVE_DECL_STRTOULL]: Declare strtoull.
135185         Required for some AIX systems.  Reported by Christian Krackowizer.
135186         [TESTING] (main): New function.
135188         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
135189         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
135190         letters.
135192         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
135193         iswprint.
135195         * lib/strverscmp.c (ISDIGIT): Define.
135196         (strverscmp): Use ISDIGIT, not isdigit.
135198 2000-01-19  Jim Meyering  <meyering@lucent.com>
135200         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
135201         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
135202         defines `struct timespec' in <sys/time.h>
135204         * m4/c-bs-a.m4: Remove uses of changequote altogether.
135205         Thanks to Akim for explaining.
135207 2000-01-17  Paul Eggert  <eggert@twinsun.com>
135209         * lib/nanosleep.c (nanosleep):
135210         Don't use SA_INTERRUPT to decide whether to call sigaction, as
135211         POSIX.1 doesn't require SA_INTERRUPT and some systems
135212         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
135213         it's been part of POSIX.1 since day 1 (in 1988).
135215 2000-01-17  Jim Meyering  <meyering@lucent.com>
135217         * lib/interlock: Remove unused file.  Reported by François Pinard.
135219 2000-01-16  Paul Eggert  <eggert@twinsun.com>
135221         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
135222         alert, backslash, formfeed, and vertical tab unnecessarily in
135223         shell quoting style.
135225 2000-01-16  Jim Meyering  <meyering@lucent.com>
135227         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
135228         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
135229         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
135230         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
135232 2000-01-16  Jim Meyering  <meyering@lucent.com>
135234         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
135235         because the latter didn't work.
135237 2000-01-15  Jim Meyering  <meyering@lucent.com>
135239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
135240         (AC_REPLACE_FUNCS): Add memcpy and memset.
135241         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
135242         Add strpbrk.
135243         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
135245 2000-01-12  Jim Meyering  <meyering@lucent.com>
135247         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
135248         (jm_PREREQ): Use it.
135249         (jm_PREREQ_READUTMP): New macro.
135250         (jm_PREREQ): Use it.
135252 2000-01-11  Paul Eggert  <eggert@twinsun.com>
135254         Quote multibyte characters correctly.
135255         * m4/c-bs-a.m4: New file.
135256         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
135257         (jm_PREREQ): Use it.
135259 2000-01-11  Paul Eggert  <eggert@twinsun.com>
135261         * m4/uintmax_t.m4: Port to autoconf 2.13.
135263 2000-01-08  Jim Meyering  <meyering@ascend.com>
135265         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
135266         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
135268 2000-01-04  Jim Meyering  <meyering@ascend.com>
135270         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
135271         jm_STRUCT_DIRENT_D_TYPE.
135272         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
135273         jm_STRUCT_DIRENT_D_INO.
135274         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
135275         jm_STRUCT_UTIMBUF.
135276         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
135277         renamings.
135278         * m4/utime.m4: Likewise.
135280         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
135281         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
135283 2000-01-03  Paul Eggert  <eggert@twinsun.com>
135285         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
135286         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
135288 2000-01-02  Jim Meyering  <meyering@ascend.com>
135290         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
135291         remember if this is necessary.
135293 1999-12-26  Jim Meyering  <meyering@ascend.com>
135295         * m4/jm-macros.m4: Use it here.
135296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
135298 1999-12-23  Jim Meyering  <meyering@ascend.com>
135300         * m4/jm-macros.m4: Check for clock_gettime (moved from
135301         fileutils/configure.in)
135302         Check for gettimeofday.
135304 1999-12-20  Jim Meyering  <meyering@ascend.com>
135306         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
135307         autoconf-2.14a-1999-12-20.
135309 1999-12-19  Jim Meyering  <meyering@ascend.com>
135311         * m4/lstat-slash.m4: New file.
135312         * m4/jm-macros.m4: Use the new macro:
135313         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
135315 1999-12-07  Jim Meyering  <meyering@ascend.com>
135317         * m4/perl.m4: Require that File::Compare be available, too.
135318         Too many systems seem to lack it.
135320         * m4/strftime.m4: Add checks for most of the cpp macros tested in
135321         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
135323 1999-11-18  Paul Eggert  <eggert@twinsun.com>
135325         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
135326         problem with the QNX 4.25 shell, which doesn't propagate exit
135327         status of failed commands inside shell assignments.
135329 1999-11-17  Jim Meyering  <meyering@ascend.com>
135331         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
135333 1999-11-07  Jim Meyering  <meyering@ascend.com>
135335         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
135337 1999-11-06  Jim Meyering  <meyering@ascend.com>
135339         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
135340         * m4/jm-macros.m4 (jm_MACROS): Use it here.
135342 1999-11-05  Jim Meyering  <meyering@ascend.com>
135344         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
135345         configure.in of textutils, fileutils, and sh-utils into this one
135346         (shared between those packages) file.
135347         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
135348         AC_STRUCT_ST_BLKSIZE.
135350 1999-11-03  Jim Meyering  <meyering@ascend.com>
135352         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
135353         of AC_CHECK_TYPE checks includes unistd.h.
135354         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
135355         Suggestion from Akim Demaille.
135357 1999-10-30  Jim Meyering  <meyering@ascend.com>
135359         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
135360         m4-quoted string.
135361         * m4/ls-mntd-fs.m4: Likewise.
135362         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
135363         * m4/jm-winsz1.m4: Likewise.
135365         * m4/const.m4: Remove file, since the fix made it into the experimental
135366         version of autoconf.
135367         * m4/mktime.m4: Likewise.
135369         * m4/check-type.m4: Remove file, now that the latest version of
135370         AC_CHECK_TYPE takes a third arg to specify additional #includes.
135372         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
135373         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
135374         AC_CHECK_TYPE.
135376 1999-10-04  Jim Meyering  <meyering@ascend.com>
135378         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
135380 1999-09-22  Paul Eggert  <eggert@twinsun.com>
135382         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
135383         2.95.1 bug with HP-UX 10.20.
135385 1999-09-17  Jim Meyering  <meyering@ascend.com>
135387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
135388         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
135389         due to missing strdup (against sh-utils-2.0).
135391 1999-08-29  Jim Meyering  <meyering@ascend.com>
135393         * m4/jm-macros.m4: Require jm_BISON.
135394         * m4/bison.m4: New file.
135396 1999-08-17  Paul Eggert  <eggert@twinsun.com>
135398         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
135399         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
135401 1999-08-05  Jim Meyering  <meyering@ascend.com>
135403         * m4/getline.m4: Rename test file from conftestdata to conftest.data
135404         to avoid conflicts with `conftest' on 8+3 filesystems.
135405         Suggestion from Eli Zaretskii.
135407 1999-08-04  Jim Meyering  <meyering@ascend.com>
135409         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
135410         fileutils and sh-utils (textutils's getline test was inadequate).
135411         (AM_FUNC_GETLINE): Run this test.
135412         (AC_CHECK_FUNCS): Check for getdelim.
135413         Reported by Bob Proulx.
135415 1999-08-02  Jim Meyering  <meyering@ascend.com>
135417         * m4/jm-macros.m4: Add a comment.
135419 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135421         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
135422         <inttypes.h> defines strtoumax as a macro (and not as a
135423         function).
135425 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135427         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
135428         that we can shift, multiply and divide unsigned long long
135429         values; Ultrix cc can't do it.
135431 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135433         * m4/mktime.m4: New file, which is a preview of what should appear
135434         in the next public autoconf release.
135436 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135438         * m4/lfs.m4: Remove this file.
135439         * m4/largefile.m4: New file.  It contains the old contents of
135440         lfs.m4, except that all names with prefix AC_LFS have been
135441         changed to use the prefix AC_SYS_LARGEFILE instead, to be
135442         compatible with future autoconf versions.  Also, some minor m4
135443         quoting problems have been fixed.
135445 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135447         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
135448         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
135449         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
135450         and simplify the shell code.
135452 1999-08-01  Jim Meyering  <meyering@ascend.com>
135454         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
135455         m4.
135457 1999-07-20  Jim Meyering  <meyering@ascend.com>
135459         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
135461 1999-07-15  Jim Meyering  <meyering@ascend.com>
135463         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
135465 1999-05-22  Jim Meyering  <meyering@ascend.com>
135467         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
135469 1999-05-20  Jim Meyering  <meyering@ascend.com>
135471         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
135472         Add a colon after each `then' in case $4 is empty.
135474 1999-05-16  Jim Meyering  <meyering@ascend.com>
135476         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
135478 1999-05-10  Jim Meyering  <meyering@ascend.com>
135480         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
135482         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
135483         AC_FUNC_MKTIME.
135485 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
135487         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
135489 1999-05-04  Paul Eggert  <eggert@twinsun.com>
135491         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
135492         not CPPFLAGS, so that linking works correctly in IRIX.
135494 1999-04-30  Paul Eggert  <eggert@twinsun.com>
135496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
135498 1999-04-20  Paul Eggert  <eggert@twinsun.com>
135500         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
135501         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
135502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
135503         jm_AC_TYPE_UNSIGNED_LONG_LONG.
135504         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
135506         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
135508 1999-04-20  Jim Meyering  <meyering@ascend.com>
135510         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
135511         AC_REPLACE xstroull if necessary.  From Paul Eggert.
135512         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
135514 1999-04-18  Jim Meyering  <meyering@ascend.com>
135516         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
135517         * m4/jm-macros.m4: Use it.
135519 1999-04-06  Jim Meyering  <meyering@ascend.com>
135521         * m4/strftime.m4: Remove test for %f.
135523 1999-03-29  Jim Meyering  <meyering@ascend.com>
135525         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
135526         superset of the AC_TYPE_* checks in the textutils, fileutils,
135527         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
135528         AC_TYPE_PID_T.
135530 1999-03-28  Jim Meyering  <meyering@ascend.com>
135532         * m4/jm-macros.m4: Define GNU_PACKAGE here.
135533         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
135534         replaced e.g., in the *.sh files of the sh-utils.
135536 1999-03-20  Jim Meyering  <meyering@ascend.com>
135538         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
135539         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
135540         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
135542 1999-03-19  Jim Meyering  <meyering@ascend.com>
135544         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
135546 1999-03-12  Jim Meyering  <meyering@ascend.com>
135548         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
135550 1999-03-07  Jim Meyering  <meyering@ascend.com>
135552         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
135553         declared.
135555 1999-02-17  Jim Meyering  <meyering@ascend.com>
135557         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
135558         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
135560 1999-02-07  Jim Meyering  <meyering@ascend.com>
135562         * m4/group-member.m4: New file -- extracted from sh-utils'
135563         configure.in.
135565         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
135566         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
135568 1999-02-06  Jim Meyering  <meyering@ascend.com>
135570         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
135571         * m4/fnmatch.m4: Likewise.
135572         * m4/getgroups.m4: Likewise.
135573         * m4/lstat.m4: Likewise.
135574         * m4/malloc.m4: Likewise.
135575         * m4/putenv.m4: Likewise.
135576         * m4/realloc.m4: Likewise.
135577         * m4/regex.m4: Likewise.
135578         * m4/stat.m4: Likewise.
135579         * m4/strftime.m4: Likewise.
135580         Suggestion from Alain Magloire.
135582         * m4/chown.m4: Use `.$ac_objext', not `.o'.
135583         * m4/fnmatch.m4: Likewise.
135584         * m4/getgroups.m4: Likewise.
135585         * m4/getline.m4: Likewise.
135586         * m4/lstat.m4: Likewise.
135587         * m4/malloc.m4: Likewise.
135588         * m4/memcmp.m4: Likewise.
135589         * m4/putenv.m4: Likewise.
135590         * m4/realloc.m4: Likewise.
135591         * m4/regex.m4: Likewise.
135592         * m4/stat.m4: Likewise.
135593         * m4/strftime.m4: Likewise.
135594         Suggestion from Alain Magloire.
135596         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
135597         an argument.
135599         * m4/regex.m4: Add a run-time Test for proper operation of
135600         re_compile_pattern.
135602 1999-01-31  Jim Meyering  <meyering@ascend.com>
135604         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
135606 1999-01-30  Jim Meyering  <meyering@ascend.com>
135608         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
135610         * m4/jm-mktime.m4: Make this a wrapper around the official
135611         AM_FUNC_MKTIME rather than my private copy, now that the official one
135612         is up to date.
135613         * m4/mktime.m4: Remove file.
135615         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
135616         * m4/uptime.m4: Likewise.
135617         * m4/uintmax_t.m4: Likewise.
135619 1999-01-28  Jim Meyering  <meyering@ascend.com>
135621         * m4/jm-macros.m4: Use jm_AFS.
135622         * m4/afs.m4: New file (from fileutils' configure.in).
135624         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
135625         * m4/chown.m4: Likewise.
135626         * m4/d-ino.m4: Likewise.
135627         * m4/d-type.m4: Likewise.
135628         * m4/fnmatch.m4: Likewise.
135629         * m4/getgroups.m4: Likewise.
135630         * m4/gettext.m4: Likewise.
135631         * m4/jm-mktime.m4: Likewise.
135632         * m4/jm-winsz2.m4: Likewise.
135633         * m4/lcmessage.m4: Likewise.
135634         * m4/ls-mntd-fs.m4: Likewise.
135635         * m4/malloc.m4: Likewise.
135636         * m4/memcmp.m4: Likewise.
135637         * m4/putenv.m4: Likewise.
135638         * m4/realloc.m4: Likewise.
135639         * m4/st_mtim.m4: Likewise.
135640         * m4/strftime.m4: Likewise.
135642 1999-01-16  Jim Meyering  <meyering@ascend.com>
135644         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
135645         (ARGMATCH_DIE_DECL): Define.
135647 1999-01-12  Jim Meyering  <meyering@ascend.com>
135649         * m4/Makefile.am.in: Rewrite to avoid using fmt.
135650         Reported by Lars Hecking.
135652 1999-01-10  Jim Meyering  <meyering@ascend.com>
135654         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
135655         gross kludge.
135656         * m4/inttypes_h.m4: Likewise.
135657         * m4/lstat.m4: Likewise.
135658         * m4/malloc.m4: Likewise.
135659         * m4/readdir.m4: Likewise.
135660         * m4/realloc.m4: Likewise.
135661         * m4/st_dm_mode.m4: Likewise.
135662         * m4/stat.m4: Likewise.
135663         * m4/utimbuf.m4: Likewise.
135664         * m4/utimes.m4: Likewise.
135666         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
135667         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
135668         comments in config.h.in are meaningful.
135670         * m4/jm-macros.m4: Require autoconf-2.13 here.
135672         * m4/regex.m4: By default, don't use the included regex.c on systems
135673         with glibc 2.  Suggestion from Uli Drepper.
135675 1999-01-02  Jim Meyering  <meyering@ascend.com>
135677         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
135679 1998-12-18  Jim Meyering  <meyering@ascend.com>
135681         * m4/Makefile.am.in (Makefile.am): Simplify rule.
135682         Based on a suggestion from Lars Hecking.
135684 1998-11-16  Paul Eggert  <eggert@twinsun.com>
135686         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
135688 1998-11-16  Jim Meyering  <meyering@ascend.com>
135690         * m4/lfs.m4: Double-quote the `uname...` expression.
135692 1998-11-14  Jim Meyering  <meyering@ascend.com>
135694         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
135695         * m4/stat.m4: Likewise.
135697 1998-11-03  Jim Meyering  <meyering@ascend.com>
135699         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
135700         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
135702 1998-10-18  Jim Meyering  <meyering@ascend.com>
135704         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
135706 1998-10-17  Jim Meyering  <meyering@ascend.com>
135708         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
135709         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
135710         calls for those previously hard-coded headers.  Instead, take a new
135711         parameter.
135712         (jm_CHECK_DECLARATIONS): Reflect interface change.
135713         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
135714         (jm_CHECK_DECL_LOCALTIME_R): New macro.
135716         * m4/mktime.m4: Test for spring-forward gap before long-running test.
135718 1998-10-14  Jim Meyering  <meyering@ascend.com>
135720         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
135721         instead of "TZ=America/Vancouver".  From Paul Eggert.
135723 1998-10-11  Jim Meyering  <meyering@ascend.com>
135725         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
135726         This adds a test for a recently added compatibility fix for mktime.c.
135727         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
135729 1998-09-27  Jim Meyering  <meyering@ascend.com>
135731         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
135733         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
135734         ../configure.in, including a change from Gordon Matzigkeit to allow
135735         cross-compiling for the Hurd.
135737         * m4/glibc.m4: New file/macro to test for the GNU C Library
135738         versions 1 and 2.  From Gordon Matzigkeit.
135739         Indent.
135741 1998-09-21  Jim Meyering  <meyering@ascend.com>
135743         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
135745 1998-08-18  Paul Eggert  <eggert@twinsun.com>
135747         Port nanosecond-resolution times to UnixWare 2.1.2 and
135748         pedantic Solaris 2.6.
135750         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
135751         AC_STRUCT_ST_MTIM.
135752         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
135753         Generate name of ns member, instead of just 1 or undef.
135754         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
135756 1998-08-15  Jim Meyering  <meyering@ascend.com>
135758         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
135759         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
135760         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
135761         instead of jm_TYPE_SSIZE_T.
135763 1998-08-12  Jim Meyering  <meyering@ascend.com>
135765         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
135767 1998-08-02  Jim Meyering  <meyering@ascend.com>
135769         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
135770         in acconfig.h manually.
135772 1998-07-31  Paul Eggert  <eggert@twinsun.com>
135774         * m4/st_mtim.m4: New file.
135776 1998-07-28  Jim Meyering  <meyering@ascend.com>
135778         * m4/utimes.m4: Undef stat.
135780 1998-07-25  Jim Meyering  <meyering@ascend.com>
135782         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
135783         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
135785 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
135787         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
135788         uid and gid actually remain unchanged.
135790 1998-07-07  Jim Meyering  <meyering@ascend.com>
135792         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
135794 1998-07-04  Jim Meyering  <meyering@ascend.com>
135796         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
135797         to prove that this macro can be used in packages without regex.c.
135799 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
135801         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
135802         is to be used.
135804 1998-07-03  Jim Meyering  <meyering@ascend.com>
135806         * m4/gettext.m4: Add -lintl if it's found to be necessary.
135808         * m4/gettext.m4: New file -- from gettext-0.10.35.
135809         * m4/lcmessage.m4: Likewise.
135810         * m4/progtest.m4: Likewise.
135812         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
135813         * m4/jm-macros.m4: Require the new macro.
135815 1998-06-29  Jim Meyering  <meyering@ascend.com>
135817         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
135818         for the definition of NGROUPS (used in a system header included
135819         by sys/mount.h).
135821 1998-06-28  Jim Meyering  <meyering@ascend.com>
135823         * m4/ls-mntd-fs.m4: New file.
135824         * m4/fstypename.m4: New file.
135826         * m4/jm-macros.m4: Require the new macro.
135827         * m4/jm-glibc-io.m4: New file.
135829 1998-05-19  Jim Meyering  <meyering@ascend.com>
135831         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
135832         * m4/lchown.m4: New file.
135834         * m4/Makefile.am.in: New file.
135835         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
135837 1998-05-14  Jim Meyering  <meyering@ascend.com>
135839         * m4/Makefile.am (EXTRA_DIST): Add them.
135840         * m4/jm-macros.m4: New file.
135841         * m4/utimbuf.m4: New file.
135843 1998-05-12  Jim Meyering  <meyering@ascend.com>
135845         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
135847 1998-05-11  Jim Meyering  <meyering@ascend.com>
135849         * m4/isc-posix.m4: New file.
135851 1998-05-10  Jim Meyering  <meyering@ascend.com>
135853         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
135855 1998-05-09  Jim Meyering  <meyering@ascend.com>
135857         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
135858         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
135859         with automake.
135861         * m4/ssize_t.m4: New file.
135862         * m4/mktime.m4: Remove file -- the new automake has this now.
135864 1998-04-26  Jim Meyering  <meyering@ascend.com>
135866         * m4/assert.m4: New file.
135867         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
135869 1998-04-05  Jim Meyering  <meyering@ascend.com>
135871         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
135872         (jm_PREREQ): Use it here.
135874 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
135876         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
135877         in acconfig.h.
135879 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
135881         * m4/prereq.m4: New file.
135882         * m4/error.m4: New file.
135883         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
135885 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
135887         * m4/getline.m4: Don't set am_cv_func_working_getline before the
135888         cache-check for the same variable -- that defeated the purpose of
135889         the test; the test program was never run.  This was a problem only
135890         on systems with losing getline functions -- HP-UX 10.20 is one.
135891         Reported by Bjorn Helgaas.
135893 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
135895         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
135897 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
135899         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
135901         * m4/const.m4: New file.  Use an initializer in this declaration
135902         typedef int charset[2]; const charset x;
135903         Reported by Bob Glickstein.
135905 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
135907         * m4/chown.m4: Fix reversed types on -1 args to chown.
135908         From Kaveh Ghazi.
135910 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
135912         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
135913         Add lseek and memchr.
135915         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
135916         T.E.Dickey <dickey@clark.net> said that some older preprocessors
135917         have a 20-character limit on names.
135919 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
135921         * m4/inttypes_h.m4: New file.
135922         * m4/uintmax_t.m4: New file.
135923         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
135926         -----
135928         Local Variables:
135929         coding: utf-8
135930         End:
135932         Copyright (C) 1997-2021 Free Software Foundation, Inc.
135934         Copying and distribution of this file, with or without
135935         modification, are permitted provided the copyright notice
135936         and this notice are preserved.